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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e91756d324b28991b10b9b78aad3dac169ff75ef
4
- data.tar.gz: 64cb4030b9179913f78b575848f4f80a919f26e1
2
+ SHA256:
3
+ metadata.gz: 81a5eec5265ffe5304b90205043dd56bde0d379466c598f233ab840b8998a5bd
4
+ data.tar.gz: 411ee0a41a93cd42d7a628b3bce59e5730276402ee743632d01cb4b5b3b5a0b4
5
5
  SHA512:
6
- metadata.gz: '08264457ae25d020fa01992d7854945d1c553d0e6c8fd5be02cb0641a3daa03195f182bf0bf15ee047e571f11dfe1c18637ee9711b16513eee8195daebdc16fa'
7
- data.tar.gz: 4e96b9fcf7bf646a289ff692f7fb7e5b70e4c8becb57258b65e24790327c87b0dc3477f8a4961da17bc24c1375a8a3bdd39b55cea513a02126a368637ea6c164
6
+ metadata.gz: 4536b22318309566582ee14c37b5ee367d13f0e0d5d6b1486083951d9197d6d8181ccb1192c4fcf976f132875bdc5e6bd4956e4a4dd77df9bac152ebd54911d7
7
+ data.tar.gz: 2a068482ed4ef964b11f1ad7a7cdc6a88ac7b85c4ee524c886e5cd3b91c135d6288f1bbb652a82af553e002ebaef6fd6a3cb8ff4da7a584d199a3502d5de2891
@@ -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
- - gemfile: gemfiles/Gemfile.as-1.4.4
21
- rvm: 1.8.7
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
@@ -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
 
@@ -70,7 +70,7 @@ module Oat
70
70
  @data = { :name => name, :class => [], :fields => [] }
71
71
  end
72
72
 
73
- def class(value)
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|
@@ -1,3 +1,3 @@
1
1
  module Oat
2
- VERSION = "0.5.2"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -74,6 +74,7 @@ describe Oat::Adapters::Siren do
74
74
  )
75
75
 
76
76
  expect(actions.first.fetch(:fields)).to include(
77
+ :class => ['string'],
77
78
  :name => :current_password,
78
79
  :type => :password,
79
80
  :title => 'enter password:'
@@ -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.class 'danger'
45
- action.class 'irreversible'
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.5.2
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-02-02 00:00:00.000000000 Z
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.13
122
+ rubygems_version: 2.7.6
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Adapters-based serializers with Hypermedia support