oat 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/oat/adapters/hal.rb +1 -1
- data/lib/oat/version.rb +1 -1
- data/spec/adapters/hal_spec.rb +2 -0
- data/spec/fixtures.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0301b4c113c6202d3f7ba67f5c4acb07c3021407
|
4
|
+
data.tar.gz: b35bb46fe71c4334bb37fec794fd160ab8654414
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c641981d4467f2fcf9793b322269bbabd055f334b2c9568dd0df40c5a82d8d84d5f76a0a3a83a9bd644f56172dda578481fe23620e40207b516116129330955d
|
7
|
+
data.tar.gz: 08ea3bad413a1c6c2655a8ad6d9491d2cb1f47aedd2bb745c46b0ad2307cbcae5fc5556cef14db2baaa4608f2ed0a18ea80331c1b88c77375dda2b152d0da617
|
data/README.md
CHANGED
@@ -560,7 +560,6 @@ Or install it yourself as:
|
|
560
560
|
|
561
561
|
## TODO / contributions welcome
|
562
562
|
|
563
|
-
* Siren actions.
|
564
563
|
* JsonAPI URL and ID modes, top-level links
|
565
564
|
* testing module that can be used for testing spec-compliance in user apps?
|
566
565
|
|
@@ -571,3 +570,7 @@ Or install it yourself as:
|
|
571
570
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
572
571
|
4. Push to the branch (`git push origin my-new-feature`)
|
573
572
|
5. Create new Pull Request
|
573
|
+
|
574
|
+
## Contributors
|
575
|
+
|
576
|
+
Many thanks to all contributors! https://github.com/ismasan/oat/graphs/contributors
|
data/lib/oat/adapters/hal.rb
CHANGED
data/lib/oat/version.rb
CHANGED
data/spec/adapters/hal_spec.rb
CHANGED
@@ -17,6 +17,8 @@ describe Oat::Adapters::HAL do
|
|
17
17
|
h[:controller_name].should == 'some_controller'
|
18
18
|
# links
|
19
19
|
h[:_links][:self][:href].should == "http://foo.bar.com/#{user.id}"
|
20
|
+
# HAL Spec says href is REQUIRED
|
21
|
+
h[:_links].should_not include(:empty)
|
20
22
|
# embedded manager
|
21
23
|
h[:_embedded][:manager].tap do |m|
|
22
24
|
m[:id].should == manager.id
|
data/spec/fixtures.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ismael Celis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|