oat 0.3.0 → 0.4.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
- ---
2
- SHA1:
3
- metadata.gz: d46e82b85714a233bfeb43fb7fd17484ab5b1bfc
4
- data.tar.gz: e5d24b98474b575a26e39f0d5b37f32bd24ba51a
5
- SHA512:
6
- metadata.gz: 588c0d3d4f3f9feacafed50afba811aa7972b5922147084bb85431c998d86e40787fadd5d9c49ddd27fa227dfd20e698f82605cee1f2134e87a4b1056b21159e
7
- data.tar.gz: 8bcace9c58e4c84a973aeaa42b457cdcce1e796562489f978b39c7fa400fe5acd7cfde7b9aa69e0c5213a2cb55bdbff39c37b6065a0dbb4a38bd8b7d96d1976f
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 89c8d41bf1fe016c6e714fc2cf8884de9b3b8af9
4
+ data.tar.gz: 2022badfdfa88afe0677b21203efa51ba5e05eba
5
+ SHA512:
6
+ metadata.gz: c819633a5ad0726b9176ddd90abd7548a53b29a123ee078815e54f275484b1b2c36dd035e0beeef89ff152ccad4b0a912a94884c03527f3b192fc1437538992e
7
+ data.tar.gz: a55145b6cecfd76f845e5ab7e952302545369d9bbeb7c558979f6ad7ac13397e94cd2ee39461be1278c5fa1c654729f5df1eba2d7d6d9d04df045e058656e535
@@ -35,7 +35,7 @@ module Oat
35
35
  if adapter.respond_to?(name)
36
36
  adapter.send(name, *args, &block)
37
37
  else
38
- self.class.warn "[#{adapter.class}] does not implement ##{name}. Called with #{args}"
38
+ super
39
39
  end
40
40
  end
41
41
 
data/lib/oat/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Oat
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
data/spec/fixtures.rb CHANGED
@@ -10,7 +10,7 @@ module Fixtures
10
10
  klass = self
11
11
 
12
12
  schema do
13
- type 'user'
13
+ type 'user' if respond_to?(:type)
14
14
  link :self, :href => url_for(item.id)
15
15
  link :empty, :href => nil
16
16
 
@@ -33,13 +33,15 @@ module Fixtures
33
33
  end
34
34
  end
35
35
 
36
- action :close_account do |action|
37
- action.href "http://foo.bar.com/#{item.id}/close_account"
38
- action.class 'danger'
39
- action.class 'irreversible'
40
- action.method 'DELETE'
41
- action.field :current_password do |field|
42
- field.type :password
36
+ if respond_to?(:action)
37
+ action :close_account do |action|
38
+ action.href "http://foo.bar.com/#{item.id}/close_account"
39
+ action.class 'danger'
40
+ action.class 'irreversible'
41
+ action.method 'DELETE'
42
+ action.field :current_password do |field|
43
+ field.type :password
44
+ end
43
45
  end
44
46
  end
45
47
  end
metadata CHANGED
@@ -1,80 +1,63 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: oat
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.0
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Ismael Celis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-25 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
11
+
12
+ date: 2014-04-07 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
14
15
  name: activesupport
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
16
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - &id003
20
+ - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: "0"
23
+ type: :runtime
24
+ version_requirements: *id001
25
+ - !ruby/object:Gem::Dependency
28
26
  name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ~>
32
- - !ruby/object:Gem::Version
33
- version: '1.3'
34
- type: :development
35
27
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
28
+ requirement: &id002 !ruby/object:Gem::Requirement
29
+ requirements:
38
30
  - - ~>
39
- - !ruby/object:Gem::Version
40
- version: '1.3'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
31
+ - !ruby/object:Gem::Version
32
+ version: "1.3"
48
33
  type: :development
34
+ version_requirements: *id002
35
+ - !ruby/object:Gem::Dependency
36
+ name: rake
49
37
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
38
+ requirement: &id004 !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - *id003
62
41
  type: :development
42
+ version_requirements: *id004
43
+ - !ruby/object:Gem::Dependency
44
+ name: rspec
63
45
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '>='
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- description: Oat helps you separate your API schema definitions from the underlying
70
- media type. Media types can be plugged or swapped on demand globally or on the content-negotiation
71
- phase
72
- email:
46
+ requirement: &id005 !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - *id003
49
+ type: :development
50
+ version_requirements: *id005
51
+ description: Oat helps you separate your API schema definitions from the underlying media type. Media types can be plugged or swapped on demand globally or on the content-negotiation phase
52
+ email:
73
53
  - ismaelct@gmail.com
74
54
  executables: []
55
+
75
56
  extensions: []
57
+
76
58
  extra_rdoc_files: []
77
- files:
59
+
60
+ files:
78
61
  - .gitignore
79
62
  - .rspec
80
63
  - .travis.yml
@@ -106,33 +89,33 @@ files:
106
89
  - spec/serializer_spec.rb
107
90
  - spec/spec_helper.rb
108
91
  homepage: https://github.com/ismasan/oat
109
- licenses:
92
+ licenses:
110
93
  - MIT
111
94
  metadata: {}
95
+
112
96
  post_install_message:
113
97
  rdoc_options: []
114
- require_paths:
98
+
99
+ require_paths:
115
100
  - lib
116
- required_ruby_version: !ruby/object:Gem::Requirement
117
- requirements:
118
- - - '>='
119
- - !ruby/object:Gem::Version
120
- version: '0'
121
- required_rubygems_version: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - *id003
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - *id003
126
107
  requirements: []
108
+
127
109
  rubyforge_project:
128
- rubygems_version: 2.0.3
110
+ rubygems_version: 2.0.5
129
111
  signing_key:
130
112
  specification_version: 4
131
113
  summary: Adapters-based serializers with Hypermedia support
132
- test_files:
114
+ test_files:
133
115
  - spec/adapters/hal_spec.rb
134
116
  - spec/adapters/json_api_spec.rb
135
117
  - spec/adapters/siren_spec.rb
136
118
  - spec/fixtures.rb
137
119
  - spec/serializer_spec.rb
138
120
  - spec/spec_helper.rb
121
+ has_rdoc: