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 +7 -7
- data/lib/oat/serializer.rb +1 -1
- data/lib/oat/version.rb +1 -1
- data/spec/fixtures.rb +10 -8
- metadata +55 -72
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
5
|
-
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 89c8d41bf1fe016c6e714fc2cf8884de9b3b8af9
|
4
|
+
data.tar.gz: 2022badfdfa88afe0677b21203efa51ba5e05eba
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c819633a5ad0726b9176ddd90abd7548a53b29a123ee078815e54f275484b1b2c36dd035e0beeef89ff152ccad4b0a912a94884c03527f3b192fc1437538992e
|
7
|
+
data.tar.gz: a55145b6cecfd76f845e5ab7e952302545369d9bbeb7c558979f6ad7ac13397e94cd2ee39461be1278c5fa1c654729f5df1eba2d7d6d9d04df045e058656e535
|
data/lib/oat/serializer.rb
CHANGED
data/lib/oat/version.rb
CHANGED
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
|
-
|
37
|
-
action
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
field
|
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
|
+
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
|
-
|
12
|
-
|
13
|
-
|
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
|
-
|
23
|
-
requirements:
|
24
|
-
-
|
25
|
-
-
|
26
|
-
|
27
|
-
|
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
|
-
|
37
|
-
requirements:
|
28
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
38
30
|
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version:
|
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
|
-
|
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
|
-
|
65
|
-
requirements:
|
66
|
-
-
|
67
|
-
|
68
|
-
|
69
|
-
description: Oat helps you separate your API schema definitions from the underlying
|
70
|
-
|
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
|
-
|
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
|
-
|
98
|
+
|
99
|
+
require_paths:
|
115
100
|
- lib
|
116
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
117
|
-
requirements:
|
118
|
-
-
|
119
|
-
|
120
|
-
|
121
|
-
|
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.
|
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:
|