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 +4 -4
- data/.travis.yml +2 -2
- data/CHANGES.markdown +1 -0
- data/gemfiles/Gemfile.representable-2.1 +1 -1
- data/lib/roar/hypermedia.rb +6 -1
- data/lib/roar/version.rb +1 -1
- data/roar.gemspec +2 -2
- data/test/json_api_test.rb +1 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10476a18173be43334b532ee1d5d88c41de38244
|
4
|
+
data.tar.gz: 95912cb828884fec27f2c2a74b4c95821f217c07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8db19659880efe5b15ea0ea19091529822a2afaf4977fcfd9a9f7d9440eee0d6d5656ef0020731aec024cd67682aee24de28c394630aeab7476d54a280ee29ae
|
7
|
+
data.tar.gz: 22502b9bb0e66fe182f95866825dc27cc92d1be702b94ebf9313600a12d793375fc804139bdc04ca076e0f33a5418d82e1a09c5b56144ebb4997f51be85f8582
|
data/.travis.yml
CHANGED
data/CHANGES.markdown
CHANGED
@@ -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
|
|
data/lib/roar/hypermedia.rb
CHANGED
@@ -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
|
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
|
data/lib/roar/version.rb
CHANGED
data/roar.gemspec
CHANGED
@@ -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.
|
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", "
|
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"
|
data/test/json_api_test.rb
CHANGED
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.
|
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.
|
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.
|
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
|