contentful 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/ChangeLog.md +6 -0
  4. data/Gemfile +5 -0
  5. data/README.md +1 -0
  6. data/contentful.gemspec +1 -1
  7. data/lib/contentful/array.rb +1 -2
  8. data/lib/contentful/asset.rb +3 -3
  9. data/lib/contentful/client.rb +15 -18
  10. data/lib/contentful/content_type.rb +1 -1
  11. data/lib/contentful/dynamic_entry.rb +6 -6
  12. data/lib/contentful/entry.rb +1 -1
  13. data/lib/contentful/error.rb +3 -3
  14. data/lib/contentful/field.rb +1 -1
  15. data/lib/contentful/file.rb +1 -1
  16. data/lib/contentful/link.rb +2 -2
  17. data/lib/contentful/locale.rb +1 -1
  18. data/lib/contentful/location.rb +1 -1
  19. data/lib/contentful/resource.rb +10 -11
  20. data/lib/contentful/resource_builder.rb +63 -39
  21. data/lib/contentful/space.rb +1 -1
  22. data/lib/contentful/support.rb +5 -3
  23. data/lib/contentful/version.rb +1 -1
  24. data/spec/fixtures/json_responses/includes.json +111 -0
  25. data/spec/fixtures/json_responses/link_array.json +43 -0
  26. data/spec/resource_building_spec.rb +20 -0
  27. data/spec/spec_helper.rb +5 -1
  28. metadata +138 -192
  29. data/.README.md.swp +0 -0
  30. data/do_request.sh +0 -5
  31. data/doc/Contentful.html +0 -131
  32. data/doc/Contentful/AccessDenied.html +0 -158
  33. data/doc/Contentful/Array.html +0 -346
  34. data/doc/Contentful/Asset.html +0 -315
  35. data/doc/Contentful/BadRequest.html +0 -158
  36. data/doc/Contentful/Client.html +0 -1407
  37. data/doc/Contentful/ContentType.html +0 -183
  38. data/doc/Contentful/DynamicEntry.html +0 -333
  39. data/doc/Contentful/Entry.html +0 -198
  40. data/doc/Contentful/Error.html +0 -413
  41. data/doc/Contentful/Field.html +0 -161
  42. data/doc/Contentful/File.html +0 -160
  43. data/doc/Contentful/Link.html +0 -275
  44. data/doc/Contentful/Locale.html +0 -161
  45. data/doc/Contentful/NotFound.html +0 -158
  46. data/doc/Contentful/Request.html +0 -669
  47. data/doc/Contentful/Resource.html +0 -606
  48. data/doc/Contentful/Resource/AssetFields.html +0 -413
  49. data/doc/Contentful/Resource/AssetFields/ClassMethods.html +0 -174
  50. data/doc/Contentful/Resource/ClassMethods.html +0 -271
  51. data/doc/Contentful/Resource/Fields.html +0 -398
  52. data/doc/Contentful/Resource/Fields/ClassMethods.html +0 -187
  53. data/doc/Contentful/Resource/SystemProperties.html +0 -444
  54. data/doc/Contentful/Resource/SystemProperties/ClassMethods.html +0 -174
  55. data/doc/Contentful/ResourceBuilder.html +0 -1400
  56. data/doc/Contentful/Response.html +0 -546
  57. data/doc/Contentful/ServerError.html +0 -158
  58. data/doc/Contentful/Space.html +0 -183
  59. data/doc/Contentful/Support.html +0 -198
  60. data/doc/Contentful/Unauthorized.html +0 -158
  61. data/doc/Contentful/UnparsableJson.html +0 -158
  62. data/doc/Contentful/UnparsableResource.html +0 -158
  63. data/doc/_index.html +0 -410
  64. data/doc/class_list.html +0 -54
  65. data/doc/css/common.css +0 -1
  66. data/doc/css/full_list.css +0 -57
  67. data/doc/css/style.css +0 -338
  68. data/doc/file.README.html +0 -214
  69. data/doc/file_list.html +0 -56
  70. data/doc/frames.html +0 -26
  71. data/doc/index.html +0 -214
  72. data/doc/js/app.js +0 -219
  73. data/doc/js/full_list.js +0 -178
  74. data/doc/js/jquery.js +0 -4
  75. data/doc/method_list.html +0 -533
  76. data/doc/top-level-namespace.html +0 -112
@@ -11,4 +11,4 @@ module Contentful
11
11
  property :name, :string
12
12
  property :locales, Locale
13
13
  end
14
- end
14
+ end
@@ -4,13 +4,15 @@ module Contentful
4
4
  class << self
5
5
  # Transforms CamelCase into snake_case (taken from zucker)
6
6
  def snakify(object)
7
- object.to_s.gsub(/(?<!^)[A-Z]/) do "_#$&" end.downcase
7
+ snake = String(object).gsub(/(?<!^)[A-Z]/) { "_#$&" }
8
+ snake.downcase
8
9
  end
9
10
 
10
11
  # Transforms each hash key into a symbol (like in AS)
11
- def symbolize_keys(h)
12
+ def symbolize_keys(hash)
12
13
  result = {}
13
- h.each_key{ |key| result[(key.to_sym rescue key)] = h[key] }
14
+ # XXX remove inline rescue
15
+ hash.each_key { |key| result[(key.to_sym rescue key)] = hash[key] }
14
16
  result
15
17
  end
16
18
  end
@@ -1,3 +1,3 @@
1
1
  module Contentful
2
- VERSION = "0.1.0"
2
+ VERSION = '0.1.1'
3
3
  end
@@ -0,0 +1,111 @@
1
+ {
2
+ "sys": {
3
+ "type": "Array"
4
+ },
5
+ "total": 1,
6
+ "skip": 0,
7
+ "limit": 100,
8
+ "items": [
9
+ {
10
+ "sys": {
11
+ "space": {
12
+ "sys": {
13
+ "type": "Link",
14
+ "linkType": "Space",
15
+ "id": "6yahkaf5ehkk"
16
+ }
17
+ },
18
+ "type": "Entry",
19
+ "contentType": {
20
+ "sys": {
21
+ "type": "Link",
22
+ "linkType": "ContentType",
23
+ "id": "tSFLnCNqvuyoMA6SKkQ2W"
24
+ }
25
+ },
26
+ "id": "2fCmT4nxtO6eI6usgoEkQG",
27
+ "revision": 1,
28
+ "createdAt": "2014-04-11T10:59:40.249Z",
29
+ "updatedAt": "2014-04-11T10:59:40.249Z",
30
+ "locale": "en-US"
31
+ },
32
+ "fields": {
33
+ "foo": "dog",
34
+ "links": [
35
+ {
36
+ "sys": {
37
+ "type": "Link",
38
+ "linkType": "Entry",
39
+ "id": "5ulKc1zdg4ES0oAKuCe8yA"
40
+ }
41
+ },
42
+ {
43
+ "sys": {
44
+ "type": "Link",
45
+ "linkType": "Entry",
46
+ "id": "49fzjGhfBCAu6iOqIeg8yQ"
47
+ }
48
+ }
49
+ ]
50
+ }
51
+ }
52
+ ],
53
+ "includes": {
54
+ "Entry": [
55
+ {
56
+ "sys": {
57
+ "space": {
58
+ "sys": {
59
+ "type": "Link",
60
+ "linkType": "Space",
61
+ "id": "6yahkaf5ehkk"
62
+ }
63
+ },
64
+ "type": "Entry",
65
+ "contentType": {
66
+ "sys": {
67
+ "type": "Link",
68
+ "linkType": "ContentType",
69
+ "id": "tSFLnCNqvuyoMA6SKkQ2W"
70
+ }
71
+ },
72
+ "id": "49fzjGhfBCAu6iOqIeg8yQ",
73
+ "revision": 1,
74
+ "createdAt": "2014-04-11T10:58:58.286Z",
75
+ "updatedAt": "2014-04-11T10:58:58.286Z",
76
+ "locale": "en-US"
77
+ },
78
+ "fields": {
79
+ "foo": "nyancat"
80
+ }
81
+ },
82
+ {
83
+ "sys": {
84
+ "space": {
85
+ "sys": {
86
+ "type": "Link",
87
+ "linkType": "Space",
88
+ "id": "6yahkaf5ehkk"
89
+ }
90
+ },
91
+ "type": "Entry",
92
+ "contentType": {
93
+ "sys": {
94
+ "type": "Link",
95
+ "linkType": "ContentType",
96
+ "id": "tSFLnCNqvuyoMA6SKkQ2W"
97
+ }
98
+ },
99
+ "id": "5ulKc1zdg4ES0oAKuCe8yA",
100
+ "revision": 1,
101
+ "createdAt": "2014-04-11T10:59:17.658Z",
102
+ "updatedAt": "2014-04-11T10:59:17.658Z",
103
+ "locale": "en-US"
104
+ },
105
+ "fields": {
106
+ "foo": "happycat"
107
+ }
108
+ }
109
+ ]
110
+ }
111
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "sys": {
3
+ "space": {
4
+ "sys": {
5
+ "type": "Link",
6
+ "linkType": "Space",
7
+ "id": "6yahkaf5ehkk"
8
+ }
9
+ },
10
+ "type": "Entry",
11
+ "contentType": {
12
+ "sys": {
13
+ "type": "Link",
14
+ "linkType": "ContentType",
15
+ "id": "tSFLnCNqvuyoMA6SKkQ2W"
16
+ }
17
+ },
18
+ "id": "2fCmT4nxtO6eI6usgoEkQG",
19
+ "revision": 1,
20
+ "createdAt": "2014-04-11T10:59:40.249Z",
21
+ "updatedAt": "2014-04-11T10:59:40.249Z",
22
+ "locale": "en-US"
23
+ },
24
+ "fields": {
25
+ "foo": "dog",
26
+ "links": [
27
+ {
28
+ "sys": {
29
+ "type": "Link",
30
+ "linkType": "Entry",
31
+ "id": "5ulKc1zdg4ES0oAKuCe8yA"
32
+ }
33
+ },
34
+ {
35
+ "sys": {
36
+ "type": "Link",
37
+ "linkType": "Entry",
38
+ "id": "49fzjGhfBCAu6iOqIeg8yQ"
39
+ }
40
+ }
41
+ ]
42
+ }
43
+ }
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+
4
+ describe 'Resource Building Examples' do
5
+ it 'can deal with arrays' do
6
+ response = Contentful::Response.new raw_fixture('link_array')
7
+ resource = Contentful::ResourceBuilder.new(create_client, response).run
8
+
9
+ expect( resource.fields[:links] ).to be_a Array
10
+ expect( resource.fields[:links].first ).to be_a Contentful::Link
11
+ end
12
+
13
+ it 'replaces links with included versions if present' do
14
+ response = Contentful::Response.new raw_fixture('includes')
15
+ resource = Contentful::ResourceBuilder.new(create_client, response).run.first
16
+
17
+ expect( resource.fields[:links] ).to be_a Array
18
+ expect( resource.fields[:links].first ).to be_a Contentful::Entry
19
+ end
20
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,10 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
1
4
  require 'rspec'
2
5
  require 'contentful'
3
6
  require 'securerandom'
4
7
  require 'rr'
5
8
 
6
- Dir[File.dirname(__FILE__) + '/support/**/*.rb'].each{ |f| require f }
9
+
10
+ Dir[File.dirname(__FILE__) + '/support/**/*.rb'].each{ |f| require f }
metadata CHANGED
@@ -1,164 +1,151 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.1.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Contentful GmbH (Jan Lelis)
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-03-14 00:00:00.000000000 Z
11
+ date: 2014-04-14 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: http
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '0.6'
22
23
  type: :runtime
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
26
  requirements:
27
- - - ~>
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '0.6'
30
33
  - !ruby/object:Gem::Dependency
31
34
  name: multi_json
32
35
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
36
  requirements:
35
- - - ~>
37
+ - - "~>"
36
38
  - !ruby/object:Gem::Version
37
39
  version: '1'
38
40
  type: :runtime
39
41
  prerelease: false
40
42
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
43
  requirements:
43
- - - ~>
44
+ - - "~>"
44
45
  - !ruby/object:Gem::Version
45
46
  version: '1'
46
47
  - !ruby/object:Gem::Dependency
47
48
  name: bundler
48
49
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
50
  requirements:
51
- - - ~>
51
+ - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '1.5'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
57
  requirements:
59
- - - ~>
58
+ - - "~>"
60
59
  - !ruby/object:Gem::Version
61
60
  version: '1.5'
62
61
  - !ruby/object:Gem::Dependency
63
62
  name: rake
64
63
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
64
  requirements:
67
- - - ~>
65
+ - - "~>"
68
66
  - !ruby/object:Gem::Version
69
67
  version: '10'
70
68
  type: :development
71
69
  prerelease: false
72
70
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
71
  requirements:
75
- - - ~>
72
+ - - "~>"
76
73
  - !ruby/object:Gem::Version
77
74
  version: '10'
78
75
  - !ruby/object:Gem::Dependency
79
76
  name: rubygems-tasks
80
77
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
78
  requirements:
83
- - - ~>
79
+ - - "~>"
84
80
  - !ruby/object:Gem::Version
85
81
  version: '0.2'
86
82
  type: :development
87
83
  prerelease: false
88
84
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
85
  requirements:
91
- - - ~>
86
+ - - "~>"
92
87
  - !ruby/object:Gem::Version
93
88
  version: '0.2'
94
89
  - !ruby/object:Gem::Dependency
95
90
  name: rspec
96
91
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
92
  requirements:
99
- - - ~>
93
+ - - "~>"
100
94
  - !ruby/object:Gem::Version
101
95
  version: '2'
102
96
  type: :development
103
97
  prerelease: false
104
98
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
99
  requirements:
107
- - - ~>
100
+ - - "~>"
108
101
  - !ruby/object:Gem::Version
109
102
  version: '2'
110
103
  - !ruby/object:Gem::Dependency
111
104
  name: rr
112
105
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
106
  requirements:
115
- - - ! '>='
107
+ - - ">="
116
108
  - !ruby/object:Gem::Version
117
109
  version: '0'
118
110
  type: :development
119
111
  prerelease: false
120
112
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
113
  requirements:
123
- - - ! '>='
114
+ - - ">="
124
115
  - !ruby/object:Gem::Version
125
116
  version: '0'
126
117
  - !ruby/object:Gem::Dependency
127
118
  name: vcr
128
119
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
120
  requirements:
131
- - - ! '>='
121
+ - - ">="
132
122
  - !ruby/object:Gem::Version
133
123
  version: '0'
134
124
  type: :development
135
125
  prerelease: false
136
126
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
127
  requirements:
139
- - - ! '>='
128
+ - - ">="
140
129
  - !ruby/object:Gem::Version
141
130
  version: '0'
142
131
  - !ruby/object:Gem::Dependency
143
132
  name: webmock
144
133
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
134
  requirements:
147
- - - ~>
135
+ - - "~>"
148
136
  - !ruby/object:Gem::Version
149
137
  version: '1'
150
- - - ! '>='
138
+ - - ">="
151
139
  - !ruby/object:Gem::Version
152
140
  version: 1.17.3
153
141
  type: :development
154
142
  prerelease: false
155
143
  version_requirements: !ruby/object:Gem::Requirement
156
- none: false
157
144
  requirements:
158
- - - ~>
145
+ - - "~>"
159
146
  - !ruby/object:Gem::Version
160
147
  version: '1'
161
- - - ! '>='
148
+ - - ">="
162
149
  - !ruby/object:Gem::Version
163
150
  version: 1.17.3
164
151
  description: Ruby client for the https://www.contentful.com Content Delivery API
@@ -167,208 +154,167 @@ executables: []
167
154
  extensions: []
168
155
  extra_rdoc_files: []
169
156
  files:
170
- - .gitignore
171
- - .travis.yml
172
- - .rspec
173
- - .README.md.swp
174
- - doc/js/full_list.js
175
- - doc/js/app.js
176
- - doc/js/jquery.js
177
- - doc/css/style.css
178
- - doc/css/full_list.css
179
- - doc/css/common.css
180
- - doc/Contentful.html
181
- - doc/file_list.html
182
- - doc/Contentful/Field.html
183
- - doc/Contentful/Locale.html
184
- - doc/Contentful/ResourceBuilder.html
185
- - doc/Contentful/Asset.html
186
- - doc/Contentful/NotFound.html
187
- - doc/Contentful/Unauthorized.html
188
- - doc/Contentful/Request.html
189
- - doc/Contentful/Link.html
190
- - doc/Contentful/Response.html
191
- - doc/Contentful/Error.html
192
- - doc/Contentful/Array.html
193
- - doc/Contentful/ContentType.html
194
- - doc/Contentful/File.html
195
- - doc/Contentful/UnparsableResource.html
196
- - doc/Contentful/ServerError.html
197
- - doc/Contentful/AccessDenied.html
198
- - doc/Contentful/Space.html
199
- - doc/Contentful/Resource.html
200
- - doc/Contentful/DynamicEntry.html
201
- - doc/Contentful/Support.html
202
- - doc/Contentful/Entry.html
203
- - doc/Contentful/UnparsableJson.html
204
- - doc/Contentful/BadRequest.html
205
- - doc/Contentful/Resource/SystemProperties.html
206
- - doc/Contentful/Resource/Fields/ClassMethods.html
207
- - doc/Contentful/Resource/SystemProperties/ClassMethods.html
208
- - doc/Contentful/Resource/ClassMethods.html
209
- - doc/Contentful/Resource/AssetFields/ClassMethods.html
210
- - doc/Contentful/Resource/AssetFields.html
211
- - doc/Contentful/Resource/Fields.html
212
- - doc/Contentful/Client.html
213
- - doc/index.html
214
- - doc/class_list.html
215
- - doc/top-level-namespace.html
216
- - doc/_index.html
217
- - doc/file.README.html
218
- - doc/method_list.html
219
- - doc/frames.html
157
+ - ".gitignore"
158
+ - ".rspec"
159
+ - ".travis.yml"
160
+ - ChangeLog.md
161
+ - Gemfile
162
+ - Gemfile.lock
163
+ - LICENSE.txt
164
+ - README.md
165
+ - Rakefile
166
+ - contentful.gemspec
167
+ - coverage/.last_run.json
168
+ - coverage/.resultset.json
169
+ - examples/custom_classes.rb
170
+ - examples/dynamic_entries.rb
171
+ - examples/example_queries.rb
172
+ - examples/raise_errors.rb
173
+ - examples/raw_mode.rb
174
+ - examples/resource_mapping.rb
175
+ - lib/contentful.rb
176
+ - lib/contentful/array.rb
177
+ - lib/contentful/asset.rb
178
+ - lib/contentful/client.rb
179
+ - lib/contentful/content_type.rb
220
180
  - lib/contentful/dynamic_entry.rb
221
- - lib/contentful/response.rb
222
- - lib/contentful/space.rb
223
- - lib/contentful/resource/fields.rb
224
- - lib/contentful/resource/system_properties.rb
225
- - lib/contentful/resource/asset_fields.rb
181
+ - lib/contentful/entry.rb
226
182
  - lib/contentful/error.rb
227
- - lib/contentful/link.rb
228
183
  - lib/contentful/field.rb
229
- - lib/contentful/resource.rb
230
- - lib/contentful/resource_builder.rb
231
184
  - lib/contentful/file.rb
232
- - lib/contentful/content_type.rb
233
- - lib/contentful/request.rb
234
- - lib/contentful/entry.rb
185
+ - lib/contentful/link.rb
235
186
  - lib/contentful/locale.rb
236
187
  - lib/contentful/location.rb
237
- - lib/contentful/client.rb
238
- - lib/contentful/array.rb
188
+ - lib/contentful/request.rb
189
+ - lib/contentful/resource.rb
190
+ - lib/contentful/resource/asset_fields.rb
191
+ - lib/contentful/resource/fields.rb
192
+ - lib/contentful/resource/system_properties.rb
193
+ - lib/contentful/resource_builder.rb
194
+ - lib/contentful/response.rb
195
+ - lib/contentful/space.rb
239
196
  - lib/contentful/support.rb
240
- - lib/contentful/asset.rb
241
197
  - lib/contentful/version.rb
242
- - lib/contentful.rb
243
- - spec/request_spec.rb
244
- - spec/space_spec.rb
245
- - spec/entry_spec.rb
246
- - spec/error_class_spec.rb
247
- - spec/spec_helper.rb
248
198
  - spec/array_spec.rb
249
199
  - spec/asset_spec.rb
200
+ - spec/auto_includes_spec.rb
201
+ - spec/client_class_spec.rb
202
+ - spec/client_configuration_spec.rb
250
203
  - spec/coercions_spec.rb
251
- - spec/link_spec.rb
252
- - spec/field_spec.rb
253
- - spec/resource_spec.rb
254
- - spec/location_spec.rb
204
+ - spec/content_type_spec.rb
255
205
  - spec/dynamic_entry_spec.rb
256
- - spec/locale_spec.rb
257
- - spec/support/json_responses.rb
258
- - spec/support/vcr.rb
259
- - spec/support/client.rb
260
- - spec/auto_includes_spec.rb
206
+ - spec/entry_spec.rb
207
+ - spec/error_class_spec.rb
208
+ - spec/error_requests_spec.rb
209
+ - spec/field_spec.rb
210
+ - spec/file_spec.rb
211
+ - spec/fixtures/json_responses/content_type.json
212
+ - spec/fixtures/json_responses/includes.json
213
+ - spec/fixtures/json_responses/link_array.json
214
+ - spec/fixtures/json_responses/not_found.json
215
+ - spec/fixtures/json_responses/nyancat.json
216
+ - spec/fixtures/json_responses/unparsable.json
217
+ - spec/fixtures/vcr_cassettes/array.yml
261
218
  - spec/fixtures/vcr_cassettes/array_page_1.yml
262
219
  - spec/fixtures/vcr_cassettes/array_page_2.yml
263
- - spec/fixtures/vcr_cassettes/field.yml
264
- - spec/fixtures/vcr_cassettes/space.yml
265
- - spec/fixtures/vcr_cassettes/content_type.yml
266
220
  - spec/fixtures/vcr_cassettes/asset.yml
267
- - spec/fixtures/vcr_cassettes/unauthorized.yml
221
+ - spec/fixtures/vcr_cassettes/bad_request.yml
222
+ - spec/fixtures/vcr_cassettes/content_type.yml
223
+ - spec/fixtures/vcr_cassettes/entries.yml
224
+ - spec/fixtures/vcr_cassettes/entry.yml
225
+ - spec/fixtures/vcr_cassettes/entry_cache.yml
226
+ - spec/fixtures/vcr_cassettes/field.yml
268
227
  - spec/fixtures/vcr_cassettes/locale.yml
269
- - spec/fixtures/vcr_cassettes/array.yml
270
228
  - spec/fixtures/vcr_cassettes/location.yml
271
- - spec/fixtures/vcr_cassettes/entries.yml
272
229
  - spec/fixtures/vcr_cassettes/not_found.yml
273
- - spec/fixtures/vcr_cassettes/bad_request.yml
274
230
  - spec/fixtures/vcr_cassettes/nyancat.yml
275
- - spec/fixtures/vcr_cassettes/entry.yml
276
- - spec/fixtures/vcr_cassettes/entry_cache.yml
277
- - spec/fixtures/vcr_cassettes/reloaded_entry.yml
278
231
  - spec/fixtures/vcr_cassettes/nyancat_include.yml
279
- - spec/fixtures/json_responses/unparsable.json
280
- - spec/fixtures/json_responses/not_found.json
281
- - spec/fixtures/json_responses/nyancat.json
282
- - spec/fixtures/json_responses/content_type.json
283
- - spec/client_configuration_spec.rb
284
- - spec/content_type_spec.rb
232
+ - spec/fixtures/vcr_cassettes/reloaded_entry.yml
233
+ - spec/fixtures/vcr_cassettes/space.yml
234
+ - spec/fixtures/vcr_cassettes/unauthorized.yml
235
+ - spec/link_spec.rb
236
+ - spec/locale_spec.rb
237
+ - spec/location_spec.rb
238
+ - spec/request_spec.rb
239
+ - spec/resource_building_spec.rb
240
+ - spec/resource_spec.rb
285
241
  - spec/response_spec.rb
286
- - spec/client_class_spec.rb
287
- - spec/file_spec.rb
288
- - spec/error_requests_spec.rb
289
- - README.md
290
- - Rakefile
291
- - contentful.gemspec
292
- - do_request.sh
293
- - LICENSE.txt
294
- - examples/dynamic_entries.rb
295
- - examples/resource_mapping.rb
296
- - examples/raise_errors.rb
297
- - examples/example_queries.rb
298
- - examples/raw_mode.rb
299
- - examples/custom_classes.rb
300
- - Gemfile
301
- - ChangeLog.md
242
+ - spec/space_spec.rb
243
+ - spec/spec_helper.rb
244
+ - spec/support/client.rb
245
+ - spec/support/json_responses.rb
246
+ - spec/support/vcr.rb
302
247
  homepage: https://github.com/contentful/contentful.rb
303
248
  licenses:
304
249
  - MIT
250
+ metadata: {}
305
251
  post_install_message:
306
252
  rdoc_options: []
307
253
  require_paths:
308
254
  - lib
309
255
  required_ruby_version: !ruby/object:Gem::Requirement
310
- none: false
311
256
  requirements:
312
- - - ! '>='
257
+ - - ">="
313
258
  - !ruby/object:Gem::Version
314
259
  version: '0'
315
260
  required_rubygems_version: !ruby/object:Gem::Requirement
316
- none: false
317
261
  requirements:
318
- - - ! '>='
262
+ - - ">="
319
263
  - !ruby/object:Gem::Version
320
264
  version: '0'
321
265
  requirements: []
322
266
  rubyforge_project:
323
- rubygems_version: 1.8.24
267
+ rubygems_version: 2.2.0
324
268
  signing_key:
325
- specification_version: 3
269
+ specification_version: 4
326
270
  summary: contentful
327
271
  test_files:
328
- - spec/request_spec.rb
329
- - spec/space_spec.rb
330
- - spec/entry_spec.rb
331
- - spec/error_class_spec.rb
332
- - spec/spec_helper.rb
333
272
  - spec/array_spec.rb
334
273
  - spec/asset_spec.rb
274
+ - spec/auto_includes_spec.rb
275
+ - spec/client_class_spec.rb
276
+ - spec/client_configuration_spec.rb
335
277
  - spec/coercions_spec.rb
336
- - spec/link_spec.rb
337
- - spec/field_spec.rb
338
- - spec/resource_spec.rb
339
- - spec/location_spec.rb
278
+ - spec/content_type_spec.rb
340
279
  - spec/dynamic_entry_spec.rb
341
- - spec/locale_spec.rb
342
- - spec/support/json_responses.rb
343
- - spec/support/vcr.rb
344
- - spec/support/client.rb
345
- - spec/auto_includes_spec.rb
280
+ - spec/entry_spec.rb
281
+ - spec/error_class_spec.rb
282
+ - spec/error_requests_spec.rb
283
+ - spec/field_spec.rb
284
+ - spec/file_spec.rb
285
+ - spec/fixtures/json_responses/content_type.json
286
+ - spec/fixtures/json_responses/includes.json
287
+ - spec/fixtures/json_responses/link_array.json
288
+ - spec/fixtures/json_responses/not_found.json
289
+ - spec/fixtures/json_responses/nyancat.json
290
+ - spec/fixtures/json_responses/unparsable.json
291
+ - spec/fixtures/vcr_cassettes/array.yml
346
292
  - spec/fixtures/vcr_cassettes/array_page_1.yml
347
293
  - spec/fixtures/vcr_cassettes/array_page_2.yml
348
- - spec/fixtures/vcr_cassettes/field.yml
349
- - spec/fixtures/vcr_cassettes/space.yml
350
- - spec/fixtures/vcr_cassettes/content_type.yml
351
294
  - spec/fixtures/vcr_cassettes/asset.yml
352
- - spec/fixtures/vcr_cassettes/unauthorized.yml
295
+ - spec/fixtures/vcr_cassettes/bad_request.yml
296
+ - spec/fixtures/vcr_cassettes/content_type.yml
297
+ - spec/fixtures/vcr_cassettes/entries.yml
298
+ - spec/fixtures/vcr_cassettes/entry.yml
299
+ - spec/fixtures/vcr_cassettes/entry_cache.yml
300
+ - spec/fixtures/vcr_cassettes/field.yml
353
301
  - spec/fixtures/vcr_cassettes/locale.yml
354
- - spec/fixtures/vcr_cassettes/array.yml
355
302
  - spec/fixtures/vcr_cassettes/location.yml
356
- - spec/fixtures/vcr_cassettes/entries.yml
357
303
  - spec/fixtures/vcr_cassettes/not_found.yml
358
- - spec/fixtures/vcr_cassettes/bad_request.yml
359
304
  - spec/fixtures/vcr_cassettes/nyancat.yml
360
- - spec/fixtures/vcr_cassettes/entry.yml
361
- - spec/fixtures/vcr_cassettes/entry_cache.yml
362
- - spec/fixtures/vcr_cassettes/reloaded_entry.yml
363
305
  - spec/fixtures/vcr_cassettes/nyancat_include.yml
364
- - spec/fixtures/json_responses/unparsable.json
365
- - spec/fixtures/json_responses/not_found.json
366
- - spec/fixtures/json_responses/nyancat.json
367
- - spec/fixtures/json_responses/content_type.json
368
- - spec/client_configuration_spec.rb
369
- - spec/content_type_spec.rb
306
+ - spec/fixtures/vcr_cassettes/reloaded_entry.yml
307
+ - spec/fixtures/vcr_cassettes/space.yml
308
+ - spec/fixtures/vcr_cassettes/unauthorized.yml
309
+ - spec/link_spec.rb
310
+ - spec/locale_spec.rb
311
+ - spec/location_spec.rb
312
+ - spec/request_spec.rb
313
+ - spec/resource_building_spec.rb
314
+ - spec/resource_spec.rb
370
315
  - spec/response_spec.rb
371
- - spec/client_class_spec.rb
372
- - spec/file_spec.rb
373
- - spec/error_requests_spec.rb
374
- has_rdoc:
316
+ - spec/space_spec.rb
317
+ - spec/spec_helper.rb
318
+ - spec/support/client.rb
319
+ - spec/support/json_responses.rb
320
+ - spec/support/vcr.rb