oat 0.5.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +2 -28
- data/CHANGELOG.md +7 -0
- data/lib/oat/adapters/siren.rb +6 -2
- data/lib/oat/version.rb +1 -1
- data/spec/adapters/siren_spec.rb +1 -0
- data/spec/fixtures.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 81a5eec5265ffe5304b90205043dd56bde0d379466c598f233ab840b8998a5bd
|
4
|
+
data.tar.gz: 411ee0a41a93cd42d7a628b3bce59e5730276402ee743632d01cb4b5b3b5a0b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4536b22318309566582ee14c37b5ee367d13f0e0d5d6b1486083951d9197d6d8181ccb1192c4fcf976f132875bdc5e6bd4956e4a4dd77df9bac152ebd54911d7
|
7
|
+
data.tar.gz: 2a068482ed4ef964b11f1ad7a7cdc6a88ac7b85c4ee524c886e5cd3b91c135d6288f1bbb652a82af553e002ebaef6fd6a3cb8ff4da7a584d199a3502d5de2891
|
data/.travis.yml
CHANGED
@@ -2,35 +2,9 @@ sudo: false
|
|
2
2
|
language: ruby
|
3
3
|
rvm:
|
4
4
|
- 2.1.2
|
5
|
-
- 2.0.0
|
6
5
|
- 1.9.3
|
7
|
-
- 1.9.2
|
8
|
-
- 1.8.7
|
9
|
-
- jruby-1.7.11
|
10
|
-
|
11
|
-
gemfile:
|
12
|
-
- gemfiles/Gemfile.as-3.0.x
|
13
|
-
- gemfiles/Gemfile.as-3.1.x
|
14
|
-
- gemfiles/Gemfile.as-3.2.x
|
15
|
-
- gemfiles/Gemfile.as-4.0.x
|
16
|
-
- gemfiles/Gemfile.as-4.1.x
|
17
6
|
|
18
7
|
matrix:
|
19
8
|
include:
|
20
|
-
-
|
21
|
-
|
22
|
-
- gemfile: gemfiles/Gemfile.as-2.3.x
|
23
|
-
rvm: 1.8.7
|
24
|
-
- gemfile: gemfiles/Gemfile.as-2.3.x
|
25
|
-
rvm: 1.9.2
|
26
|
-
- gemfile: gemfiles/Gemfile.as-2.3.x
|
27
|
-
rvm: 1.9.3
|
28
|
-
exclude:
|
29
|
-
- gemfile: gemfiles/Gemfile.as-4.0.x
|
30
|
-
rvm: 1.8.7
|
31
|
-
- gemfile: gemfiles/Gemfile.as-4.1.x
|
32
|
-
rvm: 1.8.7
|
33
|
-
- gemfile: gemfiles/Gemfile.as-4.0.x
|
34
|
-
rvm: 1.9.2
|
35
|
-
- gemfile: gemfiles/Gemfile.as-4.1.x
|
36
|
-
rvm: 1.9.2
|
9
|
+
- rvm: 1.9.3
|
10
|
+
- rvm: 2.1.2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v0.5.2](https://github.com/ismasan/oat/tree/v0.5.2) (2018-02-02)
|
4
|
+
[Full Changelog](https://github.com/ismasan/oat/compare/v0.5.1...v0.5.2)
|
5
|
+
|
6
|
+
**Merged pull requests:**
|
7
|
+
|
8
|
+
- Remove dependency on ActiveSupport. [\#76](https://github.com/ismasan/oat/pull/76) ([ismasan](https://github.com/ismasan))
|
9
|
+
|
3
10
|
## [v0.5.1](https://github.com/ismasan/oat/tree/v0.5.1) (2017-06-06)
|
4
11
|
[Full Changelog](https://github.com/ismasan/oat/compare/v0.5.0...v0.5.1)
|
5
12
|
|
data/lib/oat/adapters/siren.rb
CHANGED
@@ -70,7 +70,7 @@ module Oat
|
|
70
70
|
@data = { :name => name, :class => [], :fields => [] }
|
71
71
|
end
|
72
72
|
|
73
|
-
def
|
73
|
+
def klass(value)
|
74
74
|
data[:class] << value
|
75
75
|
end
|
76
76
|
|
@@ -91,7 +91,11 @@ module Oat
|
|
91
91
|
attr_reader :data
|
92
92
|
|
93
93
|
def initialize(name)
|
94
|
-
@data = { :name => name }
|
94
|
+
@data = { :name => name, :class => []}
|
95
|
+
end
|
96
|
+
|
97
|
+
def klass(value)
|
98
|
+
data[:class] << value
|
95
99
|
end
|
96
100
|
|
97
101
|
%w(type value title).each do |attribute|
|
data/lib/oat/version.rb
CHANGED
data/spec/adapters/siren_spec.rb
CHANGED
data/spec/fixtures.rb
CHANGED
@@ -41,11 +41,12 @@ module Fixtures
|
|
41
41
|
if adapter.respond_to?(:action)
|
42
42
|
action :close_account do |action|
|
43
43
|
action.href "http://foo.bar.com/#{item.id}/close_account"
|
44
|
-
action.
|
45
|
-
action.
|
44
|
+
action.klass 'danger'
|
45
|
+
action.klass 'irreversible'
|
46
46
|
action.method 'DELETE'
|
47
47
|
action.type 'application/json'
|
48
48
|
action.field :current_password do |field|
|
49
|
+
field.klass 'string'
|
49
50
|
field.type :password
|
50
51
|
field.title 'enter password:'
|
51
52
|
end
|
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.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ismael Celis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.6
|
122
|
+
rubygems_version: 2.7.6
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Adapters-based serializers with Hypermedia support
|