roar 1.0.0.beta1 → 1.0.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52b7f8314b58e3ebc06ca5dde920c82d8584b16b
4
- data.tar.gz: 005bfc57c05c3a67ed3d7f1a778f1052c5d087c7
3
+ metadata.gz: 10476a18173be43334b532ee1d5d88c41de38244
4
+ data.tar.gz: 95912cb828884fec27f2c2a74b4c95821f217c07
5
5
  SHA512:
6
- metadata.gz: 9c06fc967e1c3f389e4ad87a144c78b516fc32267dea3bd0d5bacd99b7cc3e102faadeaec32c06dc4887526e74b95b745452210d13042aff727bd238f127f8f4
7
- data.tar.gz: 497ac335d8ad6d65df546e8bff9e3c148fd204872d608a48580dce62334f082838f9e213cbaec7dd2c38b2c822073a661796e0c1eae3ebb04206a5a1778262c8
6
+ metadata.gz: 8db19659880efe5b15ea0ea19091529822a2afaf4977fcfd9a9f7d9440eee0d6d5656ef0020731aec024cd67682aee24de28c394630aeab7476d54a280ee29ae
7
+ data.tar.gz: 22502b9bb0e66fe182f95866825dc27cc92d1be702b94ebf9313600a12d793375fc804139bdc04ca076e0f33a5418d82e1a09c5b56144ebb4997f51be85f8582
@@ -1,6 +1,6 @@
1
1
  rvm:
2
- - 1.9.3
3
- - 2.0.0
2
+ - 1.9
3
+ - 2.0
4
4
  - 2.1
5
5
  - 2.2
6
6
  gemfiles:
@@ -23,6 +23,7 @@
23
23
 
24
24
  * Remove the concept of ´links_array`. `Hyperlink` instances for rendering or that have been parsed are always stored in a `LinkCollection` that is available via `#links`.
25
25
  * `Hypermedia` is now 43% simpler.
26
+ * `HyperlinkCollection#each` now has different semantics for 1- or 2-arity.
26
27
 
27
28
  # 0.12.8
28
29
 
@@ -2,4 +2,4 @@ source "http://rubygems.org"
2
2
 
3
3
  gemspec path: '../'
4
4
 
5
- gem 'representable', '~> 2.1.0'
5
+ gem 'representable', '~> 2.1.3'
@@ -98,7 +98,12 @@ module Roar
98
98
 
99
99
  # Iterating links. Block parameters: |link| or |rel, link|.
100
100
  # This is used Hash::HashBinding#serialize.
101
- def collect(&block)
101
+ def each(&block)
102
+ return values.each(&block) if block.arity == 1
103
+ super(&block)
104
+ end
105
+
106
+ def collect(&block) # TODO: remove me when we drop representable 2.0.x support!
102
107
  return values.collect(&block) if block.arity == 1
103
108
  super(&block)
104
109
  end
@@ -1,3 +1,3 @@
1
1
  module Roar
2
- VERSION = "1.0.0.beta1"
2
+ VERSION = "1.0.0.beta2"
3
3
  end
@@ -17,10 +17,10 @@ Gem::Specification.new do |s|
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
  s.require_paths = ["lib"]
19
19
 
20
- s.add_runtime_dependency "representable", ">= 2.0.0", "<= 3.0.0"
20
+ s.add_runtime_dependency "representable", ">= 2.0.1", "<= 3.0.0"
21
21
 
22
22
  s.add_development_dependency "rake", ">= 0.10.1"
23
- s.add_development_dependency "test_xml", ">= 0.1.6"
23
+ s.add_development_dependency "test_xml", "0.1.6"
24
24
  s.add_development_dependency "minitest", ">= 5.4.2"
25
25
  s.add_development_dependency "sinatra"
26
26
  s.add_development_dependency "sinatra-contrib"
@@ -1,5 +1,6 @@
1
1
  require 'test_helper'
2
2
  require 'roar/json/json_api'
3
+ require 'json'
3
4
 
4
5
  class JSONAPITest < MiniTest::Spec
5
6
  let(:song) {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta1
4
+ version: 1.0.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.0
19
+ version: 2.0.1
20
20
  - - "<="
21
21
  - !ruby/object:Gem::Version
22
22
  version: 3.0.0
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 2.0.0
29
+ version: 2.0.1
30
30
  - - "<="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 3.0.0
@@ -48,14 +48,14 @@ dependencies:
48
48
  name: test_xml
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ">="
51
+ - - '='
52
52
  - !ruby/object:Gem::Version
53
53
  version: 0.1.6
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ">="
58
+ - - '='
59
59
  - !ruby/object:Gem::Version
60
60
  version: 0.1.6
61
61
  - !ruby/object:Gem::Dependency