contentful 2.15.1 → 2.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +11 -0
  4. data/lib/contentful/array_like.rb +11 -2
  5. data/lib/contentful/asset.rb +4 -0
  6. data/lib/contentful/base_resource.rb +14 -2
  7. data/lib/contentful/client.rb +1 -2
  8. data/lib/contentful/entry.rb +2 -1
  9. data/lib/contentful/request.rb +6 -1
  10. data/lib/contentful/version.rb +1 -1
  11. metadata +10 -371
  12. data/.gitignore +0 -7
  13. data/.rspec +0 -1
  14. data/.rubocop.yml +0 -31
  15. data/.rubocop_todo.yml +0 -35
  16. data/.travis.yml +0 -14
  17. data/.yardopts +0 -4
  18. data/Gemfile +0 -9
  19. data/Guardfile +0 -24
  20. data/RELEASE.md +0 -8
  21. data/Rakefile +0 -33
  22. data/contentful.gemspec +0 -44
  23. data/examples/custom_classes.rb +0 -39
  24. data/examples/example_queries.rb +0 -26
  25. data/examples/raise_errors.rb +0 -20
  26. data/examples/raw_mode.rb +0 -14
  27. data/spec/array_spec.rb +0 -167
  28. data/spec/asset_spec.rb +0 -192
  29. data/spec/auto_includes_spec.rb +0 -12
  30. data/spec/client_class_spec.rb +0 -86
  31. data/spec/client_configuration_spec.rb +0 -377
  32. data/spec/content_type_spec.rb +0 -49
  33. data/spec/deleted_asset_spec.rb +0 -38
  34. data/spec/deleted_entry_spec.rb +0 -38
  35. data/spec/entry_spec.rb +0 -766
  36. data/spec/error_class_spec.rb +0 -327
  37. data/spec/error_requests_spec.rb +0 -87
  38. data/spec/field_spec.rb +0 -95
  39. data/spec/file_spec.rb +0 -33
  40. data/spec/fixtures/json_responses/400_details_errors_object.json +0 -14
  41. data/spec/fixtures/json_responses/400_details_errors_string.json +0 -12
  42. data/spec/fixtures/json_responses/400_details_string.json +0 -8
  43. data/spec/fixtures/json_responses/403_reasons.json +0 -13
  44. data/spec/fixtures/json_responses/404_details_string.json +0 -8
  45. data/spec/fixtures/json_responses/404_id.json +0 -11
  46. data/spec/fixtures/json_responses/404_sys_type.json +0 -12
  47. data/spec/fixtures/json_responses/404_type.json +0 -10
  48. data/spec/fixtures/json_responses/content_type.json +0 -83
  49. data/spec/fixtures/json_responses/default_400.json +0 -7
  50. data/spec/fixtures/json_responses/default_401.json +0 -7
  51. data/spec/fixtures/json_responses/default_403.json +0 -7
  52. data/spec/fixtures/json_responses/default_404.json +0 -7
  53. data/spec/fixtures/json_responses/default_429.json +0 -7
  54. data/spec/fixtures/json_responses/default_500.json +0 -7
  55. data/spec/fixtures/json_responses/default_502.json +0 -7
  56. data/spec/fixtures/json_responses/default_503.json +0 -7
  57. data/spec/fixtures/json_responses/includes.json +0 -111
  58. data/spec/fixtures/json_responses/link_array.json +0 -43
  59. data/spec/fixtures/json_responses/not_found.json +0 -13
  60. data/spec/fixtures/json_responses/nyancat.json +0 -48
  61. data/spec/fixtures/json_responses/other_error.json +0 -9
  62. data/spec/fixtures/json_responses/other_error_no_details.json +0 -8
  63. data/spec/fixtures/json_responses/other_error_no_message.json +0 -8
  64. data/spec/fixtures/json_responses/other_error_no_request_id.json +0 -8
  65. data/spec/fixtures/json_responses/other_error_nothing.json +0 -6
  66. data/spec/fixtures/json_responses/self_link.json +0 -82
  67. data/spec/fixtures/json_responses/unparsable.json +0 -13
  68. data/spec/fixtures/vcr_cassettes/array.yml +0 -288
  69. data/spec/fixtures/vcr_cassettes/array/marshal_custom_classes.yml +0 -159
  70. data/spec/fixtures/vcr_cassettes/array/marshal_unpublished.yml +0 -315
  71. data/spec/fixtures/vcr_cassettes/array/nested_resources.yml +0 -159
  72. data/spec/fixtures/vcr_cassettes/arrayField.yml +0 -87
  73. data/spec/fixtures/vcr_cassettes/array_page_1.yml +0 -106
  74. data/spec/fixtures/vcr_cassettes/array_page_2.yml +0 -73
  75. data/spec/fixtures/vcr_cassettes/asset.yml +0 -96
  76. data/spec/fixtures/vcr_cassettes/asset/select_empty_array.yml +0 -104
  77. data/spec/fixtures/vcr_cassettes/asset/select_no_sys.yml +0 -119
  78. data/spec/fixtures/vcr_cassettes/asset/select_one_field.yml +0 -97
  79. data/spec/fixtures/vcr_cassettes/asset/select_only_sys.yml +0 -88
  80. data/spec/fixtures/vcr_cassettes/assets/issues_129.yml +0 -90
  81. data/spec/fixtures/vcr_cassettes/assets/issues_jekyll_46.yml +0 -115
  82. data/spec/fixtures/vcr_cassettes/bad_request.yml +0 -76
  83. data/spec/fixtures/vcr_cassettes/content_type.yml +0 -147
  84. data/spec/fixtures/vcr_cassettes/entries.yml +0 -561
  85. data/spec/fixtures/vcr_cassettes/entries/empty_fields.yml +0 -246
  86. data/spec/fixtures/vcr_cassettes/entries/issue_117.yml +0 -201
  87. data/spec/fixtures/vcr_cassettes/entries/issue_125.yml +0 -198
  88. data/spec/fixtures/vcr_cassettes/entries/rich_text.yml +0 -1707
  89. data/spec/fixtures/vcr_cassettes/entries/rich_text_hydration_issue.yml +0 -460
  90. data/spec/fixtures/vcr_cassettes/entries/rich_text_nested_fields.yml +0 -653
  91. data/spec/fixtures/vcr_cassettes/entries/rich_text_unresolved_relationships.yml +0 -983
  92. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter.yml +0 -159
  93. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter_deeply_nested.yml +0 -167
  94. data/spec/fixtures/vcr_cassettes/entry.yml +0 -102
  95. data/spec/fixtures/vcr_cassettes/entry/custom_resource.yml +0 -168
  96. data/spec/fixtures/vcr_cassettes/entry/include_resolution.yml +0 -101
  97. data/spec/fixtures/vcr_cassettes/entry/include_resolution_uniques.yml +0 -81
  98. data/spec/fixtures/vcr_cassettes/entry/json_objects.yml +0 -88
  99. data/spec/fixtures/vcr_cassettes/entry/json_objects_client.yml +0 -86
  100. data/spec/fixtures/vcr_cassettes/entry/marshal_138.yml +0 -159
  101. data/spec/fixtures/vcr_cassettes/entry/marshal_unpublished.yml +0 -303
  102. data/spec/fixtures/vcr_cassettes/entry/marshall.yml +0 -293
  103. data/spec/fixtures/vcr_cassettes/entry/raw.yml +0 -201
  104. data/spec/fixtures/vcr_cassettes/entry/search_link_to_asset.yml +0 -81
  105. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry.yml +0 -81
  106. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry_with_custom_query.yml +0 -115
  107. data/spec/fixtures/vcr_cassettes/entry/select_empty_array.yml +0 -111
  108. data/spec/fixtures/vcr_cassettes/entry/select_no_sys.yml +0 -102
  109. data/spec/fixtures/vcr_cassettes/entry/select_one_field.yml +0 -76
  110. data/spec/fixtures/vcr_cassettes/entry/select_one_field_proper.yml +0 -114
  111. data/spec/fixtures/vcr_cassettes/entry/select_only_sys.yml +0 -111
  112. data/spec/fixtures/vcr_cassettes/entry_cache.yml +0 -288
  113. data/spec/fixtures/vcr_cassettes/entry_locales.yml +0 -104
  114. data/spec/fixtures/vcr_cassettes/field.yml +0 -147
  115. data/spec/fixtures/vcr_cassettes/human.yml +0 -118
  116. data/spec/fixtures/vcr_cassettes/linkField.yml +0 -83
  117. data/spec/fixtures/vcr_cassettes/locale.yml +0 -83
  118. data/spec/fixtures/vcr_cassettes/locale_from_environment.yml +0 -121
  119. data/spec/fixtures/vcr_cassettes/location.yml +0 -193
  120. data/spec/fixtures/vcr_cassettes/multi_locale_array_reference.yml +0 -196
  121. data/spec/fixtures/vcr_cassettes/multi_locale_reference.yml +0 -214
  122. data/spec/fixtures/vcr_cassettes/not_found.yml +0 -76
  123. data/spec/fixtures/vcr_cassettes/nyancat.yml +0 -102
  124. data/spec/fixtures/vcr_cassettes/query_array_1.yml +0 -89
  125. data/spec/fixtures/vcr_cassettes/query_array_2.yml +0 -89
  126. data/spec/fixtures/vcr_cassettes/ratelimit.yml +0 -64
  127. data/spec/fixtures/vcr_cassettes/ratelimit_retry.yml +0 -294
  128. data/spec/fixtures/vcr_cassettes/reloaded_entry.yml +0 -102
  129. data/spec/fixtures/vcr_cassettes/space.yml +0 -83
  130. data/spec/fixtures/vcr_cassettes/sync_deleted_asset.yml +0 -174
  131. data/spec/fixtures/vcr_cassettes/sync_deleted_entry.yml +0 -89
  132. data/spec/fixtures/vcr_cassettes/sync_deletion.yml +0 -191
  133. data/spec/fixtures/vcr_cassettes/sync_environment.yml +0 -81
  134. data/spec/fixtures/vcr_cassettes/sync_page.yml +0 -637
  135. data/spec/fixtures/vcr_cassettes/sync_page_2.yml +0 -71
  136. data/spec/fixtures/vcr_cassettes/sync_page_short.yml +0 -106
  137. data/spec/fixtures/vcr_cassettes/unauthorized.yml +0 -64
  138. data/spec/fixtures/vcr_cassettes/unavailable.yml +0 -76
  139. data/spec/link_spec.rb +0 -50
  140. data/spec/locale_spec.rb +0 -37
  141. data/spec/location_spec.rb +0 -25
  142. data/spec/request_spec.rb +0 -57
  143. data/spec/resource_building_spec.rb +0 -31
  144. data/spec/response_spec.rb +0 -62
  145. data/spec/space_spec.rb +0 -31
  146. data/spec/spec_helper.rb +0 -14
  147. data/spec/support/client.rb +0 -6
  148. data/spec/support/json_responses.rb +0 -18
  149. data/spec/support/vcr.rb +0 -16
  150. data/spec/sync_page_spec.rb +0 -103
  151. data/spec/sync_spec.rb +0 -180
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8c85b0c13bf08766561d80cf44766dc7c3d52d6cd230bbd33df53bee3347293
4
- data.tar.gz: 3a652af950c5af6dc28c2c7d1962d64e067bc46b927aec8817ed9feb0561d187
3
+ metadata.gz: 178d059e2b0f47f47f3bc5e44208a42ed68c58858d1f6e1b1b9a4cb5c09348f7
4
+ data.tar.gz: cb357eff26d47ce5eeea5038e562320dd27141d6c225a246afa4b13c3e3da723
5
5
  SHA512:
6
- metadata.gz: 2680b3032848974c5e186f11a413ccd67c3bf84cad1d6905ab23128f2d1df3f21baa0fcf8b9600b37412a92f7b0f20b67e797f6a0bc5135dd31761e292afef8e
7
- data.tar.gz: 03304dfea1de0c7467e465cf71b87fd091bd2556ad3d0b11cd1766f04925726e19fbc33288a26e9c8bbbc2dca083e11ba958a3222bfd29f9b57ae9748f969271
6
+ metadata.gz: c80c6476e99f7ce91d479e89a4d9cc683d11fbc1547f6bc983a6da03dc7c79709555925c7c972190b0090d591cdb653006ac1baa157433e771e7289224581b53
7
+ data.tar.gz: df5b8dc4ec81cbe7747c7c39b701836b89559da678cf8335531a2906a5ad39129a498c83dae318f40d4c284c453313f99521b29475b625295ad0280ddf5c5564
data/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 2.16.1
6
+ * Removed unncessary files from gem release package.
7
+
8
+ ## 2.16.0
9
+
10
+ ### Added
11
+ * Added `Contentful::ArrayLike#to_ary`. [#200](https://github.com/contentful/contentful.rb/issues/200)
12
+ * Added `_metadata[:tags]` to read metadata tags on `entry` and `asset`.
13
+
14
+ ## 2.15.4
15
+
16
+ ### Fixed
17
+ * Fixed an issue where the `log_level` of `Logger` was changed unintentionally [#222](https://github.com/contentful/contentful.rb/pull/222)
18
+ * Fixed an issue cause by a `Logger` not being correctly thrown away, causing an exception. [#220](https://github.com/contentful/contentful.rb/pull/220)
19
+ * Added `title` field to assets to prevent Error raising when the field is empty. [#218](https://github.com/contentful/contentful.rb/pull/218)
20
+ * Fixed an issue with `ArrayLike` not taking multiple arguments leading to Errors when using it with pagination libraries. [#215](https://github.com/contentful/contentful.rb/pull/215)
21
+
22
+ ## 2.15.3
23
+ ### Fixed
24
+ * Fixed a deprecation warning in Ruby 2.7.0 for `URI::escape` and replaced it with a backwards compatible mechanism. [#217](https://github.com/contentful/contentful.rb/issues/217)
25
+
26
+ ## 2.15.2
27
+ ### Fixed
28
+ * Fixed unresolvable single linked entries and assets returning a JSON Link rather than being `nil`, the same way they are filtered from Link arrays.
29
+
5
30
  ## 2.15.1
6
31
  ### Fixed
7
32
  * Fixed how `entry_mapping` is cached in order to avoid errors when deserializing resources that have been serialized with previously deleted mapping classes. [#212](https://github.com/contentful/contentful.rb/issues/212)
data/README.md CHANGED
@@ -363,6 +363,8 @@ client = Contentful::Client.new(
363
363
  <td>
364
364
  The default severity is set to INFO and logs only the request attributes (headers, parameters and url).
365
365
  Setting it to DEBUG will also log the raw JSON response.
366
+ WARNING: Setting this will override the level on the logger instance. Leave out this key to preserve
367
+ the original log_level on the logger, for example when using Rails.logger.
366
368
  </td>
367
369
  </tr>
368
370
  </tbody>
@@ -422,6 +424,15 @@ entry.color # 'rainbow'
422
424
  entry.birthday # #<DateTime: 2011-04-04T22:00:00+00:00 ((2455656j,79200s,0n),+0s,2299161j)>
423
425
  ```
424
426
 
427
+ #### Accessing tags
428
+
429
+ Tags can be accessed via the `#_metadata` method.
430
+
431
+ ```ruby
432
+ entry = client.entry 'nyancat'
433
+ entry._metadata[:tags] # => [<Contentful::Link id='tagID'>]
434
+ ```
435
+
425
436
  #### Dynamic entries
426
437
 
427
438
  However, you can (and should) set `:dynamic_entries` to `:auto` in your client configuration.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Contentful
2
4
  # Useful methods for array-like resources that can be included if an
3
5
  # :items property exists
@@ -37,8 +39,8 @@ module Contentful
37
39
  # Delegates to items#[]
38
40
  #
39
41
  # @return [Contentful::Entry, Contentful::Asset]
40
- def [](index)
41
- items[index]
42
+ def [](*args)
43
+ items[*args]
42
44
  end
43
45
 
44
46
  # Delegates to items#last
@@ -47,5 +49,12 @@ module Contentful
47
49
  def last
48
50
  items.last
49
51
  end
52
+
53
+ # Delegates to items#to_ary
54
+ #
55
+ # @return [Contentful::Entry, Contentful::Asset]
56
+ def to_ary
57
+ items
58
+ end
50
59
  end
51
60
  end
@@ -93,6 +93,10 @@ module Contentful
93
93
  end
94
94
 
95
95
  def define_asset_methods!
96
+ define_singleton_method :title do
97
+ fields.fetch(:title, nil)
98
+ end
99
+
96
100
  define_singleton_method :description do
97
101
  fields.fetch(:description, nil)
98
102
  end
@@ -5,7 +5,7 @@ require_relative 'support'
5
5
  module Contentful
6
6
  # Base definition of a Contentful Resource containing Sys properties
7
7
  class BaseResource
8
- attr_reader :raw, :default_locale, :sys
8
+ attr_reader :raw, :default_locale, :sys, :_metadata
9
9
 
10
10
  # rubocop:disable Metrics/ParameterLists
11
11
  def initialize(item, configuration = {}, _localized = false, _includes = [], entries = {}, depth = 0, _errors = [])
@@ -15,6 +15,7 @@ module Contentful
15
15
  @depth = depth
16
16
  @configuration = configuration
17
17
  @sys = hydrate_sys
18
+ @_metadata = hydrate_metadata
18
19
 
19
20
  define_sys_methods!
20
21
  end
@@ -36,7 +37,8 @@ module Contentful
36
37
  end
37
38
 
38
39
  {
39
- configuration: @configuration.merge(entry_mapping: entry_mapping),
40
+ # loggers usually have a file handle that can't be marshalled, so let's not return that
41
+ configuration: @configuration.merge(entry_mapping: entry_mapping, logger: nil),
40
42
  raw: raw
41
43
  }
42
44
  end
@@ -56,6 +58,7 @@ module Contentful
56
58
  @configuration = raw_object[:configuration]
57
59
  @default_locale = @configuration[:default_locale]
58
60
  @sys = hydrate_sys
61
+ @_metadata = hydrate_metadata
59
62
  @depth = 0
60
63
  define_sys_methods!
61
64
  end
@@ -92,6 +95,15 @@ module Contentful
92
95
  result
93
96
  end
94
97
 
98
+ def hydrate_metadata
99
+ result = {}
100
+ raw.fetch('metadata', {}).each do |k, v|
101
+ v.map! { |tag| build_link(tag) } if k == 'tags'
102
+ result[Support.snakify(k, @configuration[:use_camel_case]).to_sym] = v
103
+ end
104
+ result
105
+ end
106
+
95
107
  protected
96
108
 
97
109
  def repr_name
@@ -30,7 +30,6 @@ module Contentful
30
30
  raw_mode: false,
31
31
  gzip_encoded: true,
32
32
  logger: false,
33
- log_level: Logger::INFO,
34
33
  proxy_host: nil,
35
34
  proxy_username: nil,
36
35
  proxy_password: nil,
@@ -105,7 +104,7 @@ module Contentful
105
104
  # @private
106
105
  def setup_logger
107
106
  @logger = configuration[:logger]
108
- logger.level = configuration[:log_level] if logger
107
+ logger.level = configuration[:log_level] if logger && configuration.key?(:log_level)
109
108
  end
110
109
 
111
110
  # @private
@@ -17,7 +17,8 @@ module Contentful
17
17
  private
18
18
 
19
19
  def coerce(field_id, value, includes, errors, entries = {})
20
- if Support.link?(value) && !Support.unresolvable?(value, errors)
20
+ if Support.link?(value)
21
+ return nil if Support.unresolvable?(value, errors)
21
22
  return build_nested_resource(value, includes, entries, errors)
22
23
  end
23
24
  return coerce_link_array(value, includes, errors, entries) if Support.link_array?(value)
@@ -13,7 +13,12 @@ module Contentful
13
13
 
14
14
  if id
15
15
  @type = :single
16
- @id = URI.escape(id)
16
+ # Given the deprecation of `URI::escape` and `URI::encode`
17
+ # it is needed to replace it with `URI::encode_www_form_component`.
18
+ # This method, does replace spaces with `+` instead of `%20`.
19
+ # Therefore, to keep backwards compatibility, we're replacing the resulting `+`
20
+ # back with `%20`.
21
+ @id = URI.encode_www_form_component(id).gsub('+', '%20')
17
22
  else
18
23
  @type = :multi
19
24
  @id = nil
@@ -1,5 +1,5 @@
1
1
  # Contentful Namespace
2
2
  module Contentful
3
3
  # Gem Version
4
- VERSION = '2.15.1'
4
+ VERSION = '2.16.1'
5
5
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.15.1
4
+ version: 2.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (Jan Lelis)
8
8
  - Contentful GmbH (Andreas Tiefenthaler)
9
9
  - Contentful GmbH (David Litvak Bruno)
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-11-29 00:00:00.000000000 Z
13
+ date: 2021-04-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: http
@@ -64,16 +64,16 @@ dependencies:
64
64
  name: rake
65
65
  requirement: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "<"
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '11.0'
69
+ version: 12.3.3
70
70
  type: :development
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - "<"
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
- version: '11.0'
76
+ version: 12.3.3
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: rubygems-tasks
79
79
  requirement: !ruby/object:Gem::Requirement
@@ -248,120 +248,9 @@ executables: []
248
248
  extensions: []
249
249
  extra_rdoc_files: []
250
250
  files:
251
- - ".gitignore"
252
- - ".rspec"
253
- - ".rubocop.yml"
254
- - ".rubocop_todo.yml"
255
- - ".travis.yml"
256
- - ".yardopts"
257
251
  - CHANGELOG.md
258
- - Gemfile
259
- - Gemfile.lock
260
- - Guardfile
261
252
  - LICENSE.txt
262
253
  - README.md
263
- - RELEASE.md
264
- - Rakefile
265
- - contentful.gemspec
266
- - coverage/.last_run.json
267
- - coverage/.resultset.json
268
- - coverage/.resultset.json.lock
269
- - coverage/assets/0.10.2/application.css
270
- - coverage/assets/0.10.2/application.js
271
- - coverage/assets/0.10.2/colorbox/border.png
272
- - coverage/assets/0.10.2/colorbox/controls.png
273
- - coverage/assets/0.10.2/colorbox/loading.gif
274
- - coverage/assets/0.10.2/colorbox/loading_background.png
275
- - coverage/assets/0.10.2/favicon_green.png
276
- - coverage/assets/0.10.2/favicon_red.png
277
- - coverage/assets/0.10.2/favicon_yellow.png
278
- - coverage/assets/0.10.2/loading.gif
279
- - coverage/assets/0.10.2/magnify.png
280
- - coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
281
- - coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
282
- - coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
283
- - coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
284
- - coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png
285
- - coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
286
- - coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
287
- - coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
288
- - coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png
289
- - coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png
290
- - coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png
291
- - coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png
292
- - coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png
293
- - coverage/index.html
294
- - doc/Contentful.html
295
- - doc/Contentful/AccessDenied.html
296
- - doc/Contentful/Array.html
297
- - doc/Contentful/ArrayCoercion.html
298
- - doc/Contentful/ArrayLike.html
299
- - doc/Contentful/Asset.html
300
- - doc/Contentful/BadGateway.html
301
- - doc/Contentful/BadRequest.html
302
- - doc/Contentful/BaseCoercion.html
303
- - doc/Contentful/BaseResource.html
304
- - doc/Contentful/BooleanCoercion.html
305
- - doc/Contentful/Client.html
306
- - doc/Contentful/ContentType.html
307
- - doc/Contentful/ContentTypeCache.html
308
- - doc/Contentful/DateCoercion.html
309
- - doc/Contentful/DeletedAsset.html
310
- - doc/Contentful/DeletedEntry.html
311
- - doc/Contentful/EmptyFieldError.html
312
- - doc/Contentful/Entry.html
313
- - doc/Contentful/Error.html
314
- - doc/Contentful/Field.html
315
- - doc/Contentful/FieldsResource.html
316
- - doc/Contentful/File.html
317
- - doc/Contentful/FloatCoercion.html
318
- - doc/Contentful/IntegerCoercion.html
319
- - doc/Contentful/Link.html
320
- - doc/Contentful/LinkCoercion.html
321
- - doc/Contentful/Locale.html
322
- - doc/Contentful/Location.html
323
- - doc/Contentful/LocationCoercion.html
324
- - doc/Contentful/NotFound.html
325
- - doc/Contentful/ObjectCoercion.html
326
- - doc/Contentful/RateLimitExceeded.html
327
- - doc/Contentful/Request.html
328
- - doc/Contentful/ResourceBuilder.html
329
- - doc/Contentful/ResourceReferences.html
330
- - doc/Contentful/Response.html
331
- - doc/Contentful/RichTextCoercion.html
332
- - doc/Contentful/ServerError.html
333
- - doc/Contentful/ServiceUnavailable.html
334
- - doc/Contentful/Space.html
335
- - doc/Contentful/StringCoercion.html
336
- - doc/Contentful/StructuredTextCoercion.html
337
- - doc/Contentful/Support.html
338
- - doc/Contentful/SymbolCoercion.html
339
- - doc/Contentful/Sync.html
340
- - doc/Contentful/SyncPage.html
341
- - doc/Contentful/TextCoercion.html
342
- - doc/Contentful/Unauthorized.html
343
- - doc/Contentful/UnparsableJson.html
344
- - doc/Contentful/UnparsableResource.html
345
- - doc/_index.html
346
- - doc/class_list.html
347
- - doc/css/common.css
348
- - doc/css/full_list.css
349
- - doc/css/style.css
350
- - doc/file.CHANGELOG.html
351
- - doc/file.LICENSE.html
352
- - doc/file.README.html
353
- - doc/file_list.html
354
- - doc/frames.html
355
- - doc/index.html
356
- - doc/js/app.js
357
- - doc/js/full_list.js
358
- - doc/js/jquery.js
359
- - doc/method_list.html
360
- - doc/top-level-namespace.html
361
- - examples/custom_classes.rb
362
- - examples/example_queries.rb
363
- - examples/raise_errors.rb
364
- - examples/raw_mode.rb
365
254
  - lib/contentful.rb
366
255
  - lib/contentful/array.rb
367
256
  - lib/contentful/array_like.rb
@@ -390,136 +279,11 @@ files:
390
279
  - lib/contentful/sync.rb
391
280
  - lib/contentful/sync_page.rb
392
281
  - lib/contentful/version.rb
393
- - spec/array_spec.rb
394
- - spec/asset_spec.rb
395
- - spec/auto_includes_spec.rb
396
- - spec/client_class_spec.rb
397
- - spec/client_configuration_spec.rb
398
- - spec/content_type_spec.rb
399
- - spec/deleted_asset_spec.rb
400
- - spec/deleted_entry_spec.rb
401
- - spec/entry_spec.rb
402
- - spec/error_class_spec.rb
403
- - spec/error_requests_spec.rb
404
- - spec/field_spec.rb
405
- - spec/file_spec.rb
406
- - spec/fixtures/json_responses/400_details_errors_object.json
407
- - spec/fixtures/json_responses/400_details_errors_string.json
408
- - spec/fixtures/json_responses/400_details_string.json
409
- - spec/fixtures/json_responses/403_reasons.json
410
- - spec/fixtures/json_responses/404_details_string.json
411
- - spec/fixtures/json_responses/404_id.json
412
- - spec/fixtures/json_responses/404_sys_type.json
413
- - spec/fixtures/json_responses/404_type.json
414
- - spec/fixtures/json_responses/content_type.json
415
- - spec/fixtures/json_responses/default_400.json
416
- - spec/fixtures/json_responses/default_401.json
417
- - spec/fixtures/json_responses/default_403.json
418
- - spec/fixtures/json_responses/default_404.json
419
- - spec/fixtures/json_responses/default_429.json
420
- - spec/fixtures/json_responses/default_500.json
421
- - spec/fixtures/json_responses/default_502.json
422
- - spec/fixtures/json_responses/default_503.json
423
- - spec/fixtures/json_responses/includes.json
424
- - spec/fixtures/json_responses/link_array.json
425
- - spec/fixtures/json_responses/not_found.json
426
- - spec/fixtures/json_responses/nyancat.json
427
- - spec/fixtures/json_responses/other_error.json
428
- - spec/fixtures/json_responses/other_error_no_details.json
429
- - spec/fixtures/json_responses/other_error_no_message.json
430
- - spec/fixtures/json_responses/other_error_no_request_id.json
431
- - spec/fixtures/json_responses/other_error_nothing.json
432
- - spec/fixtures/json_responses/self_link.json
433
- - spec/fixtures/json_responses/unparsable.json
434
- - spec/fixtures/vcr_cassettes/array.yml
435
- - spec/fixtures/vcr_cassettes/array/marshal_custom_classes.yml
436
- - spec/fixtures/vcr_cassettes/array/marshal_unpublished.yml
437
- - spec/fixtures/vcr_cassettes/array/nested_resources.yml
438
- - spec/fixtures/vcr_cassettes/arrayField.yml
439
- - spec/fixtures/vcr_cassettes/array_page_1.yml
440
- - spec/fixtures/vcr_cassettes/array_page_2.yml
441
- - spec/fixtures/vcr_cassettes/asset.yml
442
- - spec/fixtures/vcr_cassettes/asset/select_empty_array.yml
443
- - spec/fixtures/vcr_cassettes/asset/select_no_sys.yml
444
- - spec/fixtures/vcr_cassettes/asset/select_one_field.yml
445
- - spec/fixtures/vcr_cassettes/asset/select_only_sys.yml
446
- - spec/fixtures/vcr_cassettes/assets/issues_129.yml
447
- - spec/fixtures/vcr_cassettes/assets/issues_jekyll_46.yml
448
- - spec/fixtures/vcr_cassettes/bad_request.yml
449
- - spec/fixtures/vcr_cassettes/content_type.yml
450
- - spec/fixtures/vcr_cassettes/entries.yml
451
- - spec/fixtures/vcr_cassettes/entries/empty_fields.yml
452
- - spec/fixtures/vcr_cassettes/entries/issue_117.yml
453
- - spec/fixtures/vcr_cassettes/entries/issue_125.yml
454
- - spec/fixtures/vcr_cassettes/entries/rich_text.yml
455
- - spec/fixtures/vcr_cassettes/entries/rich_text_hydration_issue.yml
456
- - spec/fixtures/vcr_cassettes/entries/rich_text_nested_fields.yml
457
- - spec/fixtures/vcr_cassettes/entries/rich_text_unresolved_relationships.yml
458
- - spec/fixtures/vcr_cassettes/entries/unresolvable_filter.yml
459
- - spec/fixtures/vcr_cassettes/entries/unresolvable_filter_deeply_nested.yml
460
- - spec/fixtures/vcr_cassettes/entry.yml
461
- - spec/fixtures/vcr_cassettes/entry/custom_resource.yml
462
- - spec/fixtures/vcr_cassettes/entry/include_resolution.yml
463
- - spec/fixtures/vcr_cassettes/entry/include_resolution_uniques.yml
464
- - spec/fixtures/vcr_cassettes/entry/json_objects.yml
465
- - spec/fixtures/vcr_cassettes/entry/json_objects_client.yml
466
- - spec/fixtures/vcr_cassettes/entry/marshal_138.yml
467
- - spec/fixtures/vcr_cassettes/entry/marshal_unpublished.yml
468
- - spec/fixtures/vcr_cassettes/entry/marshall.yml
469
- - spec/fixtures/vcr_cassettes/entry/raw.yml
470
- - spec/fixtures/vcr_cassettes/entry/search_link_to_asset.yml
471
- - spec/fixtures/vcr_cassettes/entry/search_link_to_entry.yml
472
- - spec/fixtures/vcr_cassettes/entry/search_link_to_entry_with_custom_query.yml
473
- - spec/fixtures/vcr_cassettes/entry/select_empty_array.yml
474
- - spec/fixtures/vcr_cassettes/entry/select_no_sys.yml
475
- - spec/fixtures/vcr_cassettes/entry/select_one_field.yml
476
- - spec/fixtures/vcr_cassettes/entry/select_one_field_proper.yml
477
- - spec/fixtures/vcr_cassettes/entry/select_only_sys.yml
478
- - spec/fixtures/vcr_cassettes/entry_cache.yml
479
- - spec/fixtures/vcr_cassettes/entry_locales.yml
480
- - spec/fixtures/vcr_cassettes/field.yml
481
- - spec/fixtures/vcr_cassettes/human.yml
482
- - spec/fixtures/vcr_cassettes/linkField.yml
483
- - spec/fixtures/vcr_cassettes/locale.yml
484
- - spec/fixtures/vcr_cassettes/locale_from_environment.yml
485
- - spec/fixtures/vcr_cassettes/location.yml
486
- - spec/fixtures/vcr_cassettes/multi_locale_array_reference.yml
487
- - spec/fixtures/vcr_cassettes/multi_locale_reference.yml
488
- - spec/fixtures/vcr_cassettes/not_found.yml
489
- - spec/fixtures/vcr_cassettes/nyancat.yml
490
- - spec/fixtures/vcr_cassettes/query_array_1.yml
491
- - spec/fixtures/vcr_cassettes/query_array_2.yml
492
- - spec/fixtures/vcr_cassettes/ratelimit.yml
493
- - spec/fixtures/vcr_cassettes/ratelimit_retry.yml
494
- - spec/fixtures/vcr_cassettes/reloaded_entry.yml
495
- - spec/fixtures/vcr_cassettes/space.yml
496
- - spec/fixtures/vcr_cassettes/sync_deleted_asset.yml
497
- - spec/fixtures/vcr_cassettes/sync_deleted_entry.yml
498
- - spec/fixtures/vcr_cassettes/sync_deletion.yml
499
- - spec/fixtures/vcr_cassettes/sync_environment.yml
500
- - spec/fixtures/vcr_cassettes/sync_page.yml
501
- - spec/fixtures/vcr_cassettes/sync_page_2.yml
502
- - spec/fixtures/vcr_cassettes/sync_page_short.yml
503
- - spec/fixtures/vcr_cassettes/unauthorized.yml
504
- - spec/fixtures/vcr_cassettes/unavailable.yml
505
- - spec/link_spec.rb
506
- - spec/locale_spec.rb
507
- - spec/location_spec.rb
508
- - spec/request_spec.rb
509
- - spec/resource_building_spec.rb
510
- - spec/response_spec.rb
511
- - spec/space_spec.rb
512
- - spec/spec_helper.rb
513
- - spec/support/client.rb
514
- - spec/support/json_responses.rb
515
- - spec/support/vcr.rb
516
- - spec/sync_page_spec.rb
517
- - spec/sync_spec.rb
518
282
  homepage: https://github.com/contentful/contentful.rb
519
283
  licenses:
520
284
  - MIT
521
285
  metadata: {}
522
- post_install_message:
286
+ post_install_message:
523
287
  rdoc_options: []
524
288
  require_paths:
525
289
  - lib
@@ -535,132 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
535
299
  version: '0'
536
300
  requirements: []
537
301
  rubygems_version: 3.0.3
538
- signing_key:
302
+ signing_key:
539
303
  specification_version: 4
540
304
  summary: contentful
541
- test_files:
542
- - spec/array_spec.rb
543
- - spec/asset_spec.rb
544
- - spec/auto_includes_spec.rb
545
- - spec/client_class_spec.rb
546
- - spec/client_configuration_spec.rb
547
- - spec/content_type_spec.rb
548
- - spec/deleted_asset_spec.rb
549
- - spec/deleted_entry_spec.rb
550
- - spec/entry_spec.rb
551
- - spec/error_class_spec.rb
552
- - spec/error_requests_spec.rb
553
- - spec/field_spec.rb
554
- - spec/file_spec.rb
555
- - spec/fixtures/json_responses/400_details_errors_object.json
556
- - spec/fixtures/json_responses/400_details_errors_string.json
557
- - spec/fixtures/json_responses/400_details_string.json
558
- - spec/fixtures/json_responses/403_reasons.json
559
- - spec/fixtures/json_responses/404_details_string.json
560
- - spec/fixtures/json_responses/404_id.json
561
- - spec/fixtures/json_responses/404_sys_type.json
562
- - spec/fixtures/json_responses/404_type.json
563
- - spec/fixtures/json_responses/content_type.json
564
- - spec/fixtures/json_responses/default_400.json
565
- - spec/fixtures/json_responses/default_401.json
566
- - spec/fixtures/json_responses/default_403.json
567
- - spec/fixtures/json_responses/default_404.json
568
- - spec/fixtures/json_responses/default_429.json
569
- - spec/fixtures/json_responses/default_500.json
570
- - spec/fixtures/json_responses/default_502.json
571
- - spec/fixtures/json_responses/default_503.json
572
- - spec/fixtures/json_responses/includes.json
573
- - spec/fixtures/json_responses/link_array.json
574
- - spec/fixtures/json_responses/not_found.json
575
- - spec/fixtures/json_responses/nyancat.json
576
- - spec/fixtures/json_responses/other_error.json
577
- - spec/fixtures/json_responses/other_error_no_details.json
578
- - spec/fixtures/json_responses/other_error_no_message.json
579
- - spec/fixtures/json_responses/other_error_no_request_id.json
580
- - spec/fixtures/json_responses/other_error_nothing.json
581
- - spec/fixtures/json_responses/self_link.json
582
- - spec/fixtures/json_responses/unparsable.json
583
- - spec/fixtures/vcr_cassettes/array.yml
584
- - spec/fixtures/vcr_cassettes/array/marshal_custom_classes.yml
585
- - spec/fixtures/vcr_cassettes/array/marshal_unpublished.yml
586
- - spec/fixtures/vcr_cassettes/array/nested_resources.yml
587
- - spec/fixtures/vcr_cassettes/arrayField.yml
588
- - spec/fixtures/vcr_cassettes/array_page_1.yml
589
- - spec/fixtures/vcr_cassettes/array_page_2.yml
590
- - spec/fixtures/vcr_cassettes/asset.yml
591
- - spec/fixtures/vcr_cassettes/asset/select_empty_array.yml
592
- - spec/fixtures/vcr_cassettes/asset/select_no_sys.yml
593
- - spec/fixtures/vcr_cassettes/asset/select_one_field.yml
594
- - spec/fixtures/vcr_cassettes/asset/select_only_sys.yml
595
- - spec/fixtures/vcr_cassettes/assets/issues_129.yml
596
- - spec/fixtures/vcr_cassettes/assets/issues_jekyll_46.yml
597
- - spec/fixtures/vcr_cassettes/bad_request.yml
598
- - spec/fixtures/vcr_cassettes/content_type.yml
599
- - spec/fixtures/vcr_cassettes/entries.yml
600
- - spec/fixtures/vcr_cassettes/entries/empty_fields.yml
601
- - spec/fixtures/vcr_cassettes/entries/issue_117.yml
602
- - spec/fixtures/vcr_cassettes/entries/issue_125.yml
603
- - spec/fixtures/vcr_cassettes/entries/rich_text.yml
604
- - spec/fixtures/vcr_cassettes/entries/rich_text_hydration_issue.yml
605
- - spec/fixtures/vcr_cassettes/entries/rich_text_nested_fields.yml
606
- - spec/fixtures/vcr_cassettes/entries/rich_text_unresolved_relationships.yml
607
- - spec/fixtures/vcr_cassettes/entries/unresolvable_filter.yml
608
- - spec/fixtures/vcr_cassettes/entries/unresolvable_filter_deeply_nested.yml
609
- - spec/fixtures/vcr_cassettes/entry.yml
610
- - spec/fixtures/vcr_cassettes/entry/custom_resource.yml
611
- - spec/fixtures/vcr_cassettes/entry/include_resolution.yml
612
- - spec/fixtures/vcr_cassettes/entry/include_resolution_uniques.yml
613
- - spec/fixtures/vcr_cassettes/entry/json_objects.yml
614
- - spec/fixtures/vcr_cassettes/entry/json_objects_client.yml
615
- - spec/fixtures/vcr_cassettes/entry/marshal_138.yml
616
- - spec/fixtures/vcr_cassettes/entry/marshal_unpublished.yml
617
- - spec/fixtures/vcr_cassettes/entry/marshall.yml
618
- - spec/fixtures/vcr_cassettes/entry/raw.yml
619
- - spec/fixtures/vcr_cassettes/entry/search_link_to_asset.yml
620
- - spec/fixtures/vcr_cassettes/entry/search_link_to_entry.yml
621
- - spec/fixtures/vcr_cassettes/entry/search_link_to_entry_with_custom_query.yml
622
- - spec/fixtures/vcr_cassettes/entry/select_empty_array.yml
623
- - spec/fixtures/vcr_cassettes/entry/select_no_sys.yml
624
- - spec/fixtures/vcr_cassettes/entry/select_one_field.yml
625
- - spec/fixtures/vcr_cassettes/entry/select_one_field_proper.yml
626
- - spec/fixtures/vcr_cassettes/entry/select_only_sys.yml
627
- - spec/fixtures/vcr_cassettes/entry_cache.yml
628
- - spec/fixtures/vcr_cassettes/entry_locales.yml
629
- - spec/fixtures/vcr_cassettes/field.yml
630
- - spec/fixtures/vcr_cassettes/human.yml
631
- - spec/fixtures/vcr_cassettes/linkField.yml
632
- - spec/fixtures/vcr_cassettes/locale.yml
633
- - spec/fixtures/vcr_cassettes/locale_from_environment.yml
634
- - spec/fixtures/vcr_cassettes/location.yml
635
- - spec/fixtures/vcr_cassettes/multi_locale_array_reference.yml
636
- - spec/fixtures/vcr_cassettes/multi_locale_reference.yml
637
- - spec/fixtures/vcr_cassettes/not_found.yml
638
- - spec/fixtures/vcr_cassettes/nyancat.yml
639
- - spec/fixtures/vcr_cassettes/query_array_1.yml
640
- - spec/fixtures/vcr_cassettes/query_array_2.yml
641
- - spec/fixtures/vcr_cassettes/ratelimit.yml
642
- - spec/fixtures/vcr_cassettes/ratelimit_retry.yml
643
- - spec/fixtures/vcr_cassettes/reloaded_entry.yml
644
- - spec/fixtures/vcr_cassettes/space.yml
645
- - spec/fixtures/vcr_cassettes/sync_deleted_asset.yml
646
- - spec/fixtures/vcr_cassettes/sync_deleted_entry.yml
647
- - spec/fixtures/vcr_cassettes/sync_deletion.yml
648
- - spec/fixtures/vcr_cassettes/sync_environment.yml
649
- - spec/fixtures/vcr_cassettes/sync_page.yml
650
- - spec/fixtures/vcr_cassettes/sync_page_2.yml
651
- - spec/fixtures/vcr_cassettes/sync_page_short.yml
652
- - spec/fixtures/vcr_cassettes/unauthorized.yml
653
- - spec/fixtures/vcr_cassettes/unavailable.yml
654
- - spec/link_spec.rb
655
- - spec/locale_spec.rb
656
- - spec/location_spec.rb
657
- - spec/request_spec.rb
658
- - spec/resource_building_spec.rb
659
- - spec/response_spec.rb
660
- - spec/space_spec.rb
661
- - spec/spec_helper.rb
662
- - spec/support/client.rb
663
- - spec/support/json_responses.rb
664
- - spec/support/vcr.rb
665
- - spec/sync_page_spec.rb
666
- - spec/sync_spec.rb
305
+ test_files: []