oat 0.5.2 → 0.6.1
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/lib/support/class_attribute.rb +0 -2
- data/oat.gemspec +1 -1
- data/spec/adapters/siren_spec.rb +1 -0
- data/spec/fixtures.rb +3 -2
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f31cac5180fe59a1a1b12bc62e238402773427603e121aaaa95b0c890795aecc
|
4
|
+
data.tar.gz: e27594d9026178b226671ba57fbf0185dacc2f88b3795c3e76ed15248feb403a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e639e02745315a592e752fd2ec52929da702062a38df170cdfe1fc71eea902996faae73cc04ec758180519656415ede5588e908755b4187d5bdc67aa4cb7a8b
|
7
|
+
data.tar.gz: 647884d0504ab06b76e022ad001e48f72e76603e9e93d3ff27565197888f424cc8d005191294d46cbd024b17bfa0cf417f07446ca9800b44679a99c74a8da9c4
|
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/oat.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "bundler", "~> 1
|
21
|
+
spec.add_development_dependency "bundler", "~> 2.1"
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
spec.add_development_dependency "rspec", ">= 3.0"
|
24
24
|
spec.add_development_dependency "rspec-its"
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ismael Celis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1
|
19
|
+
version: '2.1'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1
|
26
|
+
version: '2.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -103,7 +103,7 @@ homepage: https://github.com/ismasan/oat
|
|
103
103
|
licenses:
|
104
104
|
- MIT
|
105
105
|
metadata: {}
|
106
|
-
post_install_message:
|
106
|
+
post_install_message:
|
107
107
|
rdoc_options: []
|
108
108
|
require_paths:
|
109
109
|
- lib
|
@@ -118,9 +118,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
|
-
|
122
|
-
|
123
|
-
signing_key:
|
121
|
+
rubygems_version: 3.4.18
|
122
|
+
signing_key:
|
124
123
|
specification_version: 4
|
125
124
|
summary: Adapters-based serializers with Hypermedia support
|
126
125
|
test_files:
|