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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e91756d324b28991b10b9b78aad3dac169ff75ef
4
- data.tar.gz: 64cb4030b9179913f78b575848f4f80a919f26e1
2
+ SHA256:
3
+ metadata.gz: f31cac5180fe59a1a1b12bc62e238402773427603e121aaaa95b0c890795aecc
4
+ data.tar.gz: e27594d9026178b226671ba57fbf0185dacc2f88b3795c3e76ed15248feb403a
5
5
  SHA512:
6
- metadata.gz: '08264457ae25d020fa01992d7854945d1c553d0e6c8fd5be02cb0641a3daa03195f182bf0bf15ee047e571f11dfe1c18637ee9711b16513eee8195daebdc16fa'
7
- data.tar.gz: 4e96b9fcf7bf646a289ff692f7fb7e5b70e4c8becb57258b65e24790327c87b0dc3477f8a4961da17bc24c1375a8a3bdd39b55cea513a02126a368637ea6c164
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
- - 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
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
 
@@ -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|
data/lib/oat/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Oat
2
- VERSION = "0.5.2"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -24,8 +24,6 @@ module Oat
24
24
  end
25
25
  end
26
26
 
27
- private
28
-
29
27
  def singleton_class
30
28
  class << self
31
29
  self
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.3"
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"
@@ -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:'
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.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.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: 2018-02-02 00:00:00.000000000 Z
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.3'
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.3'
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
- rubyforge_project:
122
- rubygems_version: 2.6.13
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: