contentful 2.12.0 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +69 -1
  3. data/README.md +24 -13
  4. data/lib/contentful/array.rb +14 -6
  5. data/lib/contentful/array_like.rb +11 -2
  6. data/lib/contentful/asset.rb +10 -4
  7. data/lib/contentful/base_resource.rb +29 -6
  8. data/lib/contentful/client.rb +4 -3
  9. data/lib/contentful/coercions.rb +1 -4
  10. data/lib/contentful/entry.rb +9 -5
  11. data/lib/contentful/fields_resource.rb +7 -11
  12. data/lib/contentful/includes.rb +74 -0
  13. data/lib/contentful/request.rb +6 -1
  14. data/lib/contentful/resource_builder.rb +15 -12
  15. data/lib/contentful/support.rb +0 -35
  16. data/lib/contentful/version.rb +1 -1
  17. metadata +15 -370
  18. data/.gitignore +0 -7
  19. data/.rspec +0 -1
  20. data/.rubocop.yml +0 -28
  21. data/.rubocop_todo.yml +0 -35
  22. data/.travis.yml +0 -13
  23. data/.yardopts +0 -4
  24. data/Gemfile +0 -9
  25. data/Gemfile.lock +0 -152
  26. data/Guardfile +0 -24
  27. data/RELEASE.md +0 -8
  28. data/Rakefile +0 -33
  29. data/contentful.gemspec +0 -44
  30. data/coverage/.last_run.json +0 -5
  31. data/coverage/.resultset.json +0 -2419
  32. data/coverage/.resultset.json.lock +0 -0
  33. data/coverage/assets/0.10.2/application.css +0 -799
  34. data/coverage/assets/0.10.2/application.js +0 -1707
  35. data/coverage/assets/0.10.2/colorbox/border.png +0 -0
  36. data/coverage/assets/0.10.2/colorbox/controls.png +0 -0
  37. data/coverage/assets/0.10.2/colorbox/loading.gif +0 -0
  38. data/coverage/assets/0.10.2/colorbox/loading_background.png +0 -0
  39. data/coverage/assets/0.10.2/favicon_green.png +0 -0
  40. data/coverage/assets/0.10.2/favicon_red.png +0 -0
  41. data/coverage/assets/0.10.2/favicon_yellow.png +0 -0
  42. data/coverage/assets/0.10.2/loading.gif +0 -0
  43. data/coverage/assets/0.10.2/magnify.png +0 -0
  44. data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  45. data/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  46. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  47. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  48. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  49. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  50. data/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  51. data/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  52. data/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png +0 -0
  53. data/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  54. data/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png +0 -0
  55. data/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png +0 -0
  56. data/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  57. data/coverage/index.html +0 -15071
  58. data/doc/Contentful/AccessDenied.html +0 -159
  59. data/doc/Contentful/Array.html +0 -765
  60. data/doc/Contentful/ArrayCoercion.html +0 -242
  61. data/doc/Contentful/ArrayLike.html +0 -625
  62. data/doc/Contentful/Asset.html +0 -487
  63. data/doc/Contentful/BadGateway.html +0 -159
  64. data/doc/Contentful/BadRequest.html +0 -159
  65. data/doc/Contentful/BaseCoercion.html +0 -445
  66. data/doc/Contentful/BaseResource.html +0 -599
  67. data/doc/Contentful/BooleanCoercion.html +0 -242
  68. data/doc/Contentful/Client.html +0 -1740
  69. data/doc/Contentful/ContentType.html +0 -618
  70. data/doc/Contentful/ContentTypeCache.html +0 -428
  71. data/doc/Contentful/DateCoercion.html +0 -244
  72. data/doc/Contentful/DeletedAsset.html +0 -157
  73. data/doc/Contentful/DeletedEntry.html +0 -157
  74. data/doc/Contentful/EmptyFieldError.html +0 -217
  75. data/doc/Contentful/Entry.html +0 -334
  76. data/doc/Contentful/Error.html +0 -410
  77. data/doc/Contentful/Field.html +0 -936
  78. data/doc/Contentful/FieldsResource.html +0 -583
  79. data/doc/Contentful/File.html +0 -218
  80. data/doc/Contentful/FloatCoercion.html +0 -238
  81. data/doc/Contentful/IntegerCoercion.html +0 -238
  82. data/doc/Contentful/Link.html +0 -249
  83. data/doc/Contentful/LinkCoercion.html +0 -158
  84. data/doc/Contentful/Locale.html +0 -537
  85. data/doc/Contentful/Location.html +0 -383
  86. data/doc/Contentful/LocationCoercion.html +0 -238
  87. data/doc/Contentful/NotFound.html +0 -159
  88. data/doc/Contentful/ObjectCoercion.html +0 -238
  89. data/doc/Contentful/RateLimitExceeded.html +0 -346
  90. data/doc/Contentful/Request.html +0 -887
  91. data/doc/Contentful/ResourceBuilder.html +0 -978
  92. data/doc/Contentful/ResourceReferences.html +0 -254
  93. data/doc/Contentful/Response.html +0 -710
  94. data/doc/Contentful/RichTextCoercion.html +0 -238
  95. data/doc/Contentful/ServerError.html +0 -159
  96. data/doc/Contentful/ServiceUnavailable.html +0 -159
  97. data/doc/Contentful/Space.html +0 -393
  98. data/doc/Contentful/StringCoercion.html +0 -242
  99. data/doc/Contentful/StructuredTextCoercion.html +0 -238
  100. data/doc/Contentful/Support.html +0 -788
  101. data/doc/Contentful/SymbolCoercion.html +0 -169
  102. data/doc/Contentful/Sync.html +0 -653
  103. data/doc/Contentful/SyncPage.html +0 -807
  104. data/doc/Contentful/TextCoercion.html +0 -169
  105. data/doc/Contentful/Unauthorized.html +0 -159
  106. data/doc/Contentful/UnparsableJson.html +0 -159
  107. data/doc/Contentful/UnparsableResource.html +0 -135
  108. data/doc/Contentful.html +0 -157
  109. data/doc/_index.html +0 -563
  110. data/doc/class_list.html +0 -51
  111. data/doc/css/common.css +0 -1
  112. data/doc/css/full_list.css +0 -58
  113. data/doc/css/style.css +0 -496
  114. data/doc/file.CHANGELOG.html +0 -729
  115. data/doc/file.LICENSE.html +0 -70
  116. data/doc/file.README.html +0 -925
  117. data/doc/file_list.html +0 -66
  118. data/doc/frames.html +0 -17
  119. data/doc/index.html +0 -925
  120. data/doc/js/app.js +0 -292
  121. data/doc/js/full_list.js +0 -216
  122. data/doc/js/jquery.js +0 -4
  123. data/doc/method_list.html +0 -1171
  124. data/doc/top-level-namespace.html +0 -110
  125. data/examples/custom_classes.rb +0 -39
  126. data/examples/example_queries.rb +0 -26
  127. data/examples/raise_errors.rb +0 -20
  128. data/examples/raw_mode.rb +0 -14
  129. data/spec/array_spec.rb +0 -122
  130. data/spec/asset_spec.rb +0 -192
  131. data/spec/auto_includes_spec.rb +0 -12
  132. data/spec/client_class_spec.rb +0 -86
  133. data/spec/client_configuration_spec.rb +0 -377
  134. data/spec/content_type_spec.rb +0 -49
  135. data/spec/deleted_asset_spec.rb +0 -38
  136. data/spec/deleted_entry_spec.rb +0 -38
  137. data/spec/entry_spec.rb +0 -688
  138. data/spec/error_class_spec.rb +0 -327
  139. data/spec/error_requests_spec.rb +0 -87
  140. data/spec/field_spec.rb +0 -95
  141. data/spec/file_spec.rb +0 -33
  142. data/spec/fixtures/json_responses/400_details_errors_object.json +0 -14
  143. data/spec/fixtures/json_responses/400_details_errors_string.json +0 -12
  144. data/spec/fixtures/json_responses/400_details_string.json +0 -8
  145. data/spec/fixtures/json_responses/403_reasons.json +0 -13
  146. data/spec/fixtures/json_responses/404_details_string.json +0 -8
  147. data/spec/fixtures/json_responses/404_id.json +0 -11
  148. data/spec/fixtures/json_responses/404_sys_type.json +0 -12
  149. data/spec/fixtures/json_responses/404_type.json +0 -10
  150. data/spec/fixtures/json_responses/content_type.json +0 -83
  151. data/spec/fixtures/json_responses/default_400.json +0 -7
  152. data/spec/fixtures/json_responses/default_401.json +0 -7
  153. data/spec/fixtures/json_responses/default_403.json +0 -7
  154. data/spec/fixtures/json_responses/default_404.json +0 -7
  155. data/spec/fixtures/json_responses/default_429.json +0 -7
  156. data/spec/fixtures/json_responses/default_500.json +0 -7
  157. data/spec/fixtures/json_responses/default_502.json +0 -7
  158. data/spec/fixtures/json_responses/default_503.json +0 -7
  159. data/spec/fixtures/json_responses/includes.json +0 -111
  160. data/spec/fixtures/json_responses/link_array.json +0 -43
  161. data/spec/fixtures/json_responses/not_found.json +0 -13
  162. data/spec/fixtures/json_responses/nyancat.json +0 -48
  163. data/spec/fixtures/json_responses/other_error.json +0 -9
  164. data/spec/fixtures/json_responses/other_error_no_details.json +0 -8
  165. data/spec/fixtures/json_responses/other_error_no_message.json +0 -8
  166. data/spec/fixtures/json_responses/other_error_no_request_id.json +0 -8
  167. data/spec/fixtures/json_responses/other_error_nothing.json +0 -6
  168. data/spec/fixtures/json_responses/self_link.json +0 -82
  169. data/spec/fixtures/json_responses/unparsable.json +0 -13
  170. data/spec/fixtures/vcr_cassettes/array/marshal_custom_classes.yml +0 -159
  171. data/spec/fixtures/vcr_cassettes/array/nested_resources.yml +0 -159
  172. data/spec/fixtures/vcr_cassettes/array.yml +0 -288
  173. data/spec/fixtures/vcr_cassettes/arrayField.yml +0 -87
  174. data/spec/fixtures/vcr_cassettes/array_page_1.yml +0 -106
  175. data/spec/fixtures/vcr_cassettes/array_page_2.yml +0 -73
  176. data/spec/fixtures/vcr_cassettes/asset/select_empty_array.yml +0 -104
  177. data/spec/fixtures/vcr_cassettes/asset/select_no_sys.yml +0 -119
  178. data/spec/fixtures/vcr_cassettes/asset/select_one_field.yml +0 -97
  179. data/spec/fixtures/vcr_cassettes/asset/select_only_sys.yml +0 -88
  180. data/spec/fixtures/vcr_cassettes/asset.yml +0 -96
  181. data/spec/fixtures/vcr_cassettes/assets/issues_129.yml +0 -90
  182. data/spec/fixtures/vcr_cassettes/assets/issues_jekyll_46.yml +0 -115
  183. data/spec/fixtures/vcr_cassettes/bad_request.yml +0 -76
  184. data/spec/fixtures/vcr_cassettes/content_type.yml +0 -147
  185. data/spec/fixtures/vcr_cassettes/entries/empty_fields.yml +0 -246
  186. data/spec/fixtures/vcr_cassettes/entries/issue_117.yml +0 -201
  187. data/spec/fixtures/vcr_cassettes/entries/issue_125.yml +0 -198
  188. data/spec/fixtures/vcr_cassettes/entries/rich_text.yml +0 -1707
  189. data/spec/fixtures/vcr_cassettes/entries/rich_text_hydration_issue.yml +0 -460
  190. data/spec/fixtures/vcr_cassettes/entries/rich_text_nested_fields.yml +0 -653
  191. data/spec/fixtures/vcr_cassettes/entries/rich_text_unresolved_relationships.yml +0 -983
  192. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter.yml +0 -159
  193. data/spec/fixtures/vcr_cassettes/entries/unresolvable_filter_deeply_nested.yml +0 -167
  194. data/spec/fixtures/vcr_cassettes/entries.yml +0 -561
  195. data/spec/fixtures/vcr_cassettes/entry/custom_resource.yml +0 -168
  196. data/spec/fixtures/vcr_cassettes/entry/include_resolution.yml +0 -101
  197. data/spec/fixtures/vcr_cassettes/entry/include_resolution_uniques.yml +0 -81
  198. data/spec/fixtures/vcr_cassettes/entry/json_objects.yml +0 -88
  199. data/spec/fixtures/vcr_cassettes/entry/json_objects_client.yml +0 -86
  200. data/spec/fixtures/vcr_cassettes/entry/marshal_138.yml +0 -159
  201. data/spec/fixtures/vcr_cassettes/entry/marshal_unpublished.yml +0 -303
  202. data/spec/fixtures/vcr_cassettes/entry/marshall.yml +0 -293
  203. data/spec/fixtures/vcr_cassettes/entry/raw.yml +0 -201
  204. data/spec/fixtures/vcr_cassettes/entry/search_link_to_asset.yml +0 -81
  205. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry.yml +0 -81
  206. data/spec/fixtures/vcr_cassettes/entry/search_link_to_entry_with_custom_query.yml +0 -115
  207. data/spec/fixtures/vcr_cassettes/entry/select_empty_array.yml +0 -111
  208. data/spec/fixtures/vcr_cassettes/entry/select_no_sys.yml +0 -102
  209. data/spec/fixtures/vcr_cassettes/entry/select_one_field.yml +0 -76
  210. data/spec/fixtures/vcr_cassettes/entry/select_one_field_proper.yml +0 -114
  211. data/spec/fixtures/vcr_cassettes/entry/select_only_sys.yml +0 -111
  212. data/spec/fixtures/vcr_cassettes/entry.yml +0 -102
  213. data/spec/fixtures/vcr_cassettes/entry_cache.yml +0 -288
  214. data/spec/fixtures/vcr_cassettes/entry_locales.yml +0 -104
  215. data/spec/fixtures/vcr_cassettes/field.yml +0 -147
  216. data/spec/fixtures/vcr_cassettes/human.yml +0 -118
  217. data/spec/fixtures/vcr_cassettes/linkField.yml +0 -83
  218. data/spec/fixtures/vcr_cassettes/locale.yml +0 -83
  219. data/spec/fixtures/vcr_cassettes/locale_from_environment.yml +0 -121
  220. data/spec/fixtures/vcr_cassettes/location.yml +0 -193
  221. data/spec/fixtures/vcr_cassettes/multi_locale_array_reference.yml +0 -196
  222. data/spec/fixtures/vcr_cassettes/multi_locale_reference.yml +0 -214
  223. data/spec/fixtures/vcr_cassettes/not_found.yml +0 -76
  224. data/spec/fixtures/vcr_cassettes/nyancat.yml +0 -102
  225. data/spec/fixtures/vcr_cassettes/ratelimit.yml +0 -64
  226. data/spec/fixtures/vcr_cassettes/ratelimit_retry.yml +0 -294
  227. data/spec/fixtures/vcr_cassettes/reloaded_entry.yml +0 -102
  228. data/spec/fixtures/vcr_cassettes/space.yml +0 -83
  229. data/spec/fixtures/vcr_cassettes/sync_deleted_asset.yml +0 -174
  230. data/spec/fixtures/vcr_cassettes/sync_deleted_entry.yml +0 -89
  231. data/spec/fixtures/vcr_cassettes/sync_deletion.yml +0 -191
  232. data/spec/fixtures/vcr_cassettes/sync_environment.yml +0 -81
  233. data/spec/fixtures/vcr_cassettes/sync_page.yml +0 -637
  234. data/spec/fixtures/vcr_cassettes/sync_page_2.yml +0 -71
  235. data/spec/fixtures/vcr_cassettes/sync_page_short.yml +0 -106
  236. data/spec/fixtures/vcr_cassettes/unauthorized.yml +0 -64
  237. data/spec/fixtures/vcr_cassettes/unavailable.yml +0 -76
  238. data/spec/link_spec.rb +0 -50
  239. data/spec/locale_spec.rb +0 -37
  240. data/spec/location_spec.rb +0 -25
  241. data/spec/request_spec.rb +0 -57
  242. data/spec/resource_building_spec.rb +0 -31
  243. data/spec/response_spec.rb +0 -62
  244. data/spec/space_spec.rb +0 -31
  245. data/spec/spec_helper.rb +0 -14
  246. data/spec/support/client.rb +0 -6
  247. data/spec/support/json_responses.rb +0 -18
  248. data/spec/support/vcr.rb +0 -16
  249. data/spec/sync_page_spec.rb +0 -103
  250. data/spec/sync_spec.rb +0 -180
@@ -8,6 +8,7 @@ require_relative 'link'
8
8
  require_relative 'deleted_entry'
9
9
  require_relative 'deleted_asset'
10
10
  require_relative 'locale'
11
+ require_relative 'includes'
11
12
 
12
13
  module Contentful
13
14
  # Transforms a Contentful::Response into a Contentful::Resource or a Contentful::Error
@@ -25,25 +26,28 @@ module Contentful
25
26
  'DeletedEntry' => DeletedEntry,
26
27
  'DeletedAsset' => DeletedAsset,
27
28
  'Locale' => Locale
28
- }
29
+ }.freeze
29
30
  # Default Entry Mapping
30
31
  # @see _ README for more information on Entry Mapping
31
- DEFAULT_ENTRY_MAPPING = {}
32
+ DEFAULT_ENTRY_MAPPING = {}.freeze
33
+ # Buildable Resources
34
+ BUILDABLES = %w[Entry Asset ContentType Space DeletedEntry DeletedAsset Locale].freeze
32
35
 
33
- attr_reader :json, :default_locale, :endpoint, :depth, :localized, :resource_mapping, :entry_mapping, :resource
36
+ attr_reader :json, :default_locale, :endpoint, :depth, :localized, :resource_mapping, :entry_mapping, :resource, :query
34
37
 
35
- def initialize(json, configuration = {}, localized = false, depth = 0, errors = [])
38
+ def initialize(json, configuration = {}, localized = false, depth = 0, errors = [], query = {})
36
39
  @json = json
37
40
  @default_locale = configuration.fetch(:default_locale, ::Contentful::Client::DEFAULT_CONFIGURATION[:default_locale])
38
41
  @resource_mapping = default_resource_mapping.merge(configuration.fetch(:resource_mapping, {}))
39
42
  @entry_mapping = default_entry_mapping.merge(configuration.fetch(:entry_mapping, {}))
40
- @includes_for_single = configuration.fetch(:includes_for_single, [])
43
+ @includes_for_single = configuration.fetch(:includes_for_single, Includes.new)
41
44
  @localized = localized
42
45
  @depth = depth
43
46
  @endpoint = configuration.fetch(:endpoint, nil)
44
47
  @configuration = configuration
45
48
  @resource_cache = configuration[:_entries_cache] || {}
46
49
  @errors = errors
50
+ @query = query
47
51
  end
48
52
 
49
53
  # Starts the parsing process.
@@ -67,7 +71,7 @@ module Contentful
67
71
  build_item(item, includes, errors)
68
72
  end
69
73
  array_class = fetch_array_class
70
- array_class.new(json.dup.merge('items' => result), @configuration, endpoint)
74
+ array_class.new(json.merge('items' => result), @configuration, endpoint, query)
71
75
  end
72
76
 
73
77
  def build_single
@@ -76,9 +80,8 @@ module Contentful
76
80
  build_item(json, includes, @errors)
77
81
  end
78
82
 
79
- def build_item(item, includes = [], errors = [])
80
- buildables = %w[Entry Asset ContentType Space DeletedEntry DeletedAsset Locale]
81
- item_type = buildables.detect { |b| b.to_s == item['sys']['type'] }
83
+ def build_item(item, includes = Includes.new, errors = [])
84
+ item_type = BUILDABLES.detect { |b| b == item['sys']['type'] }
82
85
  fail UnparsableResource, 'Item type is not known, could not parse' if item_type.nil?
83
86
  item_class = resource_class(item)
84
87
 
@@ -96,7 +99,7 @@ module Contentful
96
99
  end
97
100
 
98
101
  def fetch_includes
99
- Support.includes_from_response(json)
102
+ Includes.from_response(json)
100
103
  end
101
104
 
102
105
  def fetch_errors
@@ -155,12 +158,12 @@ module Contentful
155
158
 
156
159
  # The default mapping for #detect_resource_class
157
160
  def default_resource_mapping
158
- DEFAULT_RESOURCE_MAPPING.dup
161
+ DEFAULT_RESOURCE_MAPPING
159
162
  end
160
163
 
161
164
  # The default entry mapping
162
165
  def default_entry_mapping
163
- DEFAULT_ENTRY_MAPPING.dup
166
+ DEFAULT_ENTRY_MAPPING
164
167
  end
165
168
  end
166
169
  end
@@ -47,41 +47,6 @@ module Contentful
47
47
 
48
48
  false
49
49
  end
50
-
51
- # Returns the resource that matches the link
52
- #
53
- # @param [Hash] link
54
- # @param [::Array] includes
55
- #
56
- # @return [Hash]
57
- def resource_for_link(link, includes)
58
- includes.detect do |i|
59
- i['sys']['id'] == link['sys']['id'] &&
60
- i['sys']['type'] == link['sys']['linkType']
61
- end
62
- end
63
-
64
- # Returns combined include array from an API Response
65
- #
66
- # @param [Hash] json JSON Response
67
- # @param [Bool] raw Response pre-proccessed?
68
- #
69
- # @return [Array]
70
- def includes_from_response(json, raw = true)
71
- includes = if raw
72
- json['items'].dup
73
- else
74
- json['items'].map(&:raw)
75
- end
76
-
77
- %w[Entry Asset].each do |type|
78
- if json.fetch('includes', {}).key?(type)
79
- includes.concat(json['includes'].fetch(type, []))
80
- end
81
- end
82
-
83
- includes
84
- end
85
50
  end
86
51
  end
87
52
  end
@@ -1,5 +1,5 @@
1
1
  # Contentful Namespace
2
2
  module Contentful
3
3
  # Gem Version
4
- VERSION = '2.12.0'
4
+ VERSION = '2.17.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.0
4
+ version: 2.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (Jan Lelis)
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-04-09 00:00:00.000000000 Z
13
+ date: 2023-04-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: http
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0.8'
22
22
  - - "<"
23
23
  - !ruby/object:Gem::Version
24
- version: '4.0'
24
+ version: '6.0'
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -31,7 +31,7 @@ dependencies:
31
31
  version: '0.8'
32
32
  - - "<"
33
33
  - !ruby/object:Gem::Version
34
- version: '4.0'
34
+ version: '6.0'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: multi_json
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -50,30 +50,30 @@ dependencies:
50
50
  name: bundler
51
51
  requirement: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: '1.5'
55
+ version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
58
  version_requirements: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: '1.5'
62
+ version: '0'
63
63
  - !ruby/object:Gem::Dependency
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
@@ -378,6 +267,7 @@ files:
378
267
  - lib/contentful/field.rb
379
268
  - lib/contentful/fields_resource.rb
380
269
  - lib/contentful/file.rb
270
+ - lib/contentful/includes.rb
381
271
  - lib/contentful/link.rb
382
272
  - lib/contentful/locale.rb
383
273
  - lib/contentful/location.rb
@@ -390,128 +280,6 @@ files:
390
280
  - lib/contentful/sync.rb
391
281
  - lib/contentful/sync_page.rb
392
282
  - 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/nested_resources.yml
437
- - spec/fixtures/vcr_cassettes/arrayField.yml
438
- - spec/fixtures/vcr_cassettes/array_page_1.yml
439
- - spec/fixtures/vcr_cassettes/array_page_2.yml
440
- - spec/fixtures/vcr_cassettes/asset.yml
441
- - spec/fixtures/vcr_cassettes/asset/select_empty_array.yml
442
- - spec/fixtures/vcr_cassettes/asset/select_no_sys.yml
443
- - spec/fixtures/vcr_cassettes/asset/select_one_field.yml
444
- - spec/fixtures/vcr_cassettes/asset/select_only_sys.yml
445
- - spec/fixtures/vcr_cassettes/assets/issues_129.yml
446
- - spec/fixtures/vcr_cassettes/assets/issues_jekyll_46.yml
447
- - spec/fixtures/vcr_cassettes/bad_request.yml
448
- - spec/fixtures/vcr_cassettes/content_type.yml
449
- - spec/fixtures/vcr_cassettes/entries.yml
450
- - spec/fixtures/vcr_cassettes/entries/empty_fields.yml
451
- - spec/fixtures/vcr_cassettes/entries/issue_117.yml
452
- - spec/fixtures/vcr_cassettes/entries/issue_125.yml
453
- - spec/fixtures/vcr_cassettes/entries/rich_text.yml
454
- - spec/fixtures/vcr_cassettes/entries/rich_text_hydration_issue.yml
455
- - spec/fixtures/vcr_cassettes/entries/rich_text_nested_fields.yml
456
- - spec/fixtures/vcr_cassettes/entries/rich_text_unresolved_relationships.yml
457
- - spec/fixtures/vcr_cassettes/entries/unresolvable_filter.yml
458
- - spec/fixtures/vcr_cassettes/entries/unresolvable_filter_deeply_nested.yml
459
- - spec/fixtures/vcr_cassettes/entry.yml
460
- - spec/fixtures/vcr_cassettes/entry/custom_resource.yml
461
- - spec/fixtures/vcr_cassettes/entry/include_resolution.yml
462
- - spec/fixtures/vcr_cassettes/entry/include_resolution_uniques.yml
463
- - spec/fixtures/vcr_cassettes/entry/json_objects.yml
464
- - spec/fixtures/vcr_cassettes/entry/json_objects_client.yml
465
- - spec/fixtures/vcr_cassettes/entry/marshal_138.yml
466
- - spec/fixtures/vcr_cassettes/entry/marshal_unpublished.yml
467
- - spec/fixtures/vcr_cassettes/entry/marshall.yml
468
- - spec/fixtures/vcr_cassettes/entry/raw.yml
469
- - spec/fixtures/vcr_cassettes/entry/search_link_to_asset.yml
470
- - spec/fixtures/vcr_cassettes/entry/search_link_to_entry.yml
471
- - spec/fixtures/vcr_cassettes/entry/search_link_to_entry_with_custom_query.yml
472
- - spec/fixtures/vcr_cassettes/entry/select_empty_array.yml
473
- - spec/fixtures/vcr_cassettes/entry/select_no_sys.yml
474
- - spec/fixtures/vcr_cassettes/entry/select_one_field.yml
475
- - spec/fixtures/vcr_cassettes/entry/select_one_field_proper.yml
476
- - spec/fixtures/vcr_cassettes/entry/select_only_sys.yml
477
- - spec/fixtures/vcr_cassettes/entry_cache.yml
478
- - spec/fixtures/vcr_cassettes/entry_locales.yml
479
- - spec/fixtures/vcr_cassettes/field.yml
480
- - spec/fixtures/vcr_cassettes/human.yml
481
- - spec/fixtures/vcr_cassettes/linkField.yml
482
- - spec/fixtures/vcr_cassettes/locale.yml
483
- - spec/fixtures/vcr_cassettes/locale_from_environment.yml
484
- - spec/fixtures/vcr_cassettes/location.yml
485
- - spec/fixtures/vcr_cassettes/multi_locale_array_reference.yml
486
- - spec/fixtures/vcr_cassettes/multi_locale_reference.yml
487
- - spec/fixtures/vcr_cassettes/not_found.yml
488
- - spec/fixtures/vcr_cassettes/nyancat.yml
489
- - spec/fixtures/vcr_cassettes/ratelimit.yml
490
- - spec/fixtures/vcr_cassettes/ratelimit_retry.yml
491
- - spec/fixtures/vcr_cassettes/reloaded_entry.yml
492
- - spec/fixtures/vcr_cassettes/space.yml
493
- - spec/fixtures/vcr_cassettes/sync_deleted_asset.yml
494
- - spec/fixtures/vcr_cassettes/sync_deleted_entry.yml
495
- - spec/fixtures/vcr_cassettes/sync_deletion.yml
496
- - spec/fixtures/vcr_cassettes/sync_environment.yml
497
- - spec/fixtures/vcr_cassettes/sync_page.yml
498
- - spec/fixtures/vcr_cassettes/sync_page_2.yml
499
- - spec/fixtures/vcr_cassettes/sync_page_short.yml
500
- - spec/fixtures/vcr_cassettes/unauthorized.yml
501
- - spec/fixtures/vcr_cassettes/unavailable.yml
502
- - spec/link_spec.rb
503
- - spec/locale_spec.rb
504
- - spec/location_spec.rb
505
- - spec/request_spec.rb
506
- - spec/resource_building_spec.rb
507
- - spec/response_spec.rb
508
- - spec/space_spec.rb
509
- - spec/spec_helper.rb
510
- - spec/support/client.rb
511
- - spec/support/json_responses.rb
512
- - spec/support/vcr.rb
513
- - spec/sync_page_spec.rb
514
- - spec/sync_spec.rb
515
283
  homepage: https://github.com/contentful/contentful.rb
516
284
  licenses:
517
285
  - MIT
@@ -531,131 +299,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
531
299
  - !ruby/object:Gem::Version
532
300
  version: '0'
533
301
  requirements: []
534
- rubyforge_project:
535
- rubygems_version: 2.7.8
302
+ rubygems_version: 3.1.6
536
303
  signing_key:
537
304
  specification_version: 4
538
305
  summary: contentful
539
- test_files:
540
- - spec/array_spec.rb
541
- - spec/asset_spec.rb
542
- - spec/auto_includes_spec.rb
543
- - spec/client_class_spec.rb
544
- - spec/client_configuration_spec.rb
545
- - spec/content_type_spec.rb
546
- - spec/deleted_asset_spec.rb
547
- - spec/deleted_entry_spec.rb
548
- - spec/entry_spec.rb
549
- - spec/error_class_spec.rb
550
- - spec/error_requests_spec.rb
551
- - spec/field_spec.rb
552
- - spec/file_spec.rb
553
- - spec/fixtures/json_responses/400_details_errors_object.json
554
- - spec/fixtures/json_responses/400_details_errors_string.json
555
- - spec/fixtures/json_responses/400_details_string.json
556
- - spec/fixtures/json_responses/403_reasons.json
557
- - spec/fixtures/json_responses/404_details_string.json
558
- - spec/fixtures/json_responses/404_id.json
559
- - spec/fixtures/json_responses/404_sys_type.json
560
- - spec/fixtures/json_responses/404_type.json
561
- - spec/fixtures/json_responses/content_type.json
562
- - spec/fixtures/json_responses/default_400.json
563
- - spec/fixtures/json_responses/default_401.json
564
- - spec/fixtures/json_responses/default_403.json
565
- - spec/fixtures/json_responses/default_404.json
566
- - spec/fixtures/json_responses/default_429.json
567
- - spec/fixtures/json_responses/default_500.json
568
- - spec/fixtures/json_responses/default_502.json
569
- - spec/fixtures/json_responses/default_503.json
570
- - spec/fixtures/json_responses/includes.json
571
- - spec/fixtures/json_responses/link_array.json
572
- - spec/fixtures/json_responses/not_found.json
573
- - spec/fixtures/json_responses/nyancat.json
574
- - spec/fixtures/json_responses/other_error.json
575
- - spec/fixtures/json_responses/other_error_no_details.json
576
- - spec/fixtures/json_responses/other_error_no_message.json
577
- - spec/fixtures/json_responses/other_error_no_request_id.json
578
- - spec/fixtures/json_responses/other_error_nothing.json
579
- - spec/fixtures/json_responses/self_link.json
580
- - spec/fixtures/json_responses/unparsable.json
581
- - spec/fixtures/vcr_cassettes/array.yml
582
- - spec/fixtures/vcr_cassettes/array/marshal_custom_classes.yml
583
- - spec/fixtures/vcr_cassettes/array/nested_resources.yml
584
- - spec/fixtures/vcr_cassettes/arrayField.yml
585
- - spec/fixtures/vcr_cassettes/array_page_1.yml
586
- - spec/fixtures/vcr_cassettes/array_page_2.yml
587
- - spec/fixtures/vcr_cassettes/asset.yml
588
- - spec/fixtures/vcr_cassettes/asset/select_empty_array.yml
589
- - spec/fixtures/vcr_cassettes/asset/select_no_sys.yml
590
- - spec/fixtures/vcr_cassettes/asset/select_one_field.yml
591
- - spec/fixtures/vcr_cassettes/asset/select_only_sys.yml
592
- - spec/fixtures/vcr_cassettes/assets/issues_129.yml
593
- - spec/fixtures/vcr_cassettes/assets/issues_jekyll_46.yml
594
- - spec/fixtures/vcr_cassettes/bad_request.yml
595
- - spec/fixtures/vcr_cassettes/content_type.yml
596
- - spec/fixtures/vcr_cassettes/entries.yml
597
- - spec/fixtures/vcr_cassettes/entries/empty_fields.yml
598
- - spec/fixtures/vcr_cassettes/entries/issue_117.yml
599
- - spec/fixtures/vcr_cassettes/entries/issue_125.yml
600
- - spec/fixtures/vcr_cassettes/entries/rich_text.yml
601
- - spec/fixtures/vcr_cassettes/entries/rich_text_hydration_issue.yml
602
- - spec/fixtures/vcr_cassettes/entries/rich_text_nested_fields.yml
603
- - spec/fixtures/vcr_cassettes/entries/rich_text_unresolved_relationships.yml
604
- - spec/fixtures/vcr_cassettes/entries/unresolvable_filter.yml
605
- - spec/fixtures/vcr_cassettes/entries/unresolvable_filter_deeply_nested.yml
606
- - spec/fixtures/vcr_cassettes/entry.yml
607
- - spec/fixtures/vcr_cassettes/entry/custom_resource.yml
608
- - spec/fixtures/vcr_cassettes/entry/include_resolution.yml
609
- - spec/fixtures/vcr_cassettes/entry/include_resolution_uniques.yml
610
- - spec/fixtures/vcr_cassettes/entry/json_objects.yml
611
- - spec/fixtures/vcr_cassettes/entry/json_objects_client.yml
612
- - spec/fixtures/vcr_cassettes/entry/marshal_138.yml
613
- - spec/fixtures/vcr_cassettes/entry/marshal_unpublished.yml
614
- - spec/fixtures/vcr_cassettes/entry/marshall.yml
615
- - spec/fixtures/vcr_cassettes/entry/raw.yml
616
- - spec/fixtures/vcr_cassettes/entry/search_link_to_asset.yml
617
- - spec/fixtures/vcr_cassettes/entry/search_link_to_entry.yml
618
- - spec/fixtures/vcr_cassettes/entry/search_link_to_entry_with_custom_query.yml
619
- - spec/fixtures/vcr_cassettes/entry/select_empty_array.yml
620
- - spec/fixtures/vcr_cassettes/entry/select_no_sys.yml
621
- - spec/fixtures/vcr_cassettes/entry/select_one_field.yml
622
- - spec/fixtures/vcr_cassettes/entry/select_one_field_proper.yml
623
- - spec/fixtures/vcr_cassettes/entry/select_only_sys.yml
624
- - spec/fixtures/vcr_cassettes/entry_cache.yml
625
- - spec/fixtures/vcr_cassettes/entry_locales.yml
626
- - spec/fixtures/vcr_cassettes/field.yml
627
- - spec/fixtures/vcr_cassettes/human.yml
628
- - spec/fixtures/vcr_cassettes/linkField.yml
629
- - spec/fixtures/vcr_cassettes/locale.yml
630
- - spec/fixtures/vcr_cassettes/locale_from_environment.yml
631
- - spec/fixtures/vcr_cassettes/location.yml
632
- - spec/fixtures/vcr_cassettes/multi_locale_array_reference.yml
633
- - spec/fixtures/vcr_cassettes/multi_locale_reference.yml
634
- - spec/fixtures/vcr_cassettes/not_found.yml
635
- - spec/fixtures/vcr_cassettes/nyancat.yml
636
- - spec/fixtures/vcr_cassettes/ratelimit.yml
637
- - spec/fixtures/vcr_cassettes/ratelimit_retry.yml
638
- - spec/fixtures/vcr_cassettes/reloaded_entry.yml
639
- - spec/fixtures/vcr_cassettes/space.yml
640
- - spec/fixtures/vcr_cassettes/sync_deleted_asset.yml
641
- - spec/fixtures/vcr_cassettes/sync_deleted_entry.yml
642
- - spec/fixtures/vcr_cassettes/sync_deletion.yml
643
- - spec/fixtures/vcr_cassettes/sync_environment.yml
644
- - spec/fixtures/vcr_cassettes/sync_page.yml
645
- - spec/fixtures/vcr_cassettes/sync_page_2.yml
646
- - spec/fixtures/vcr_cassettes/sync_page_short.yml
647
- - spec/fixtures/vcr_cassettes/unauthorized.yml
648
- - spec/fixtures/vcr_cassettes/unavailable.yml
649
- - spec/link_spec.rb
650
- - spec/locale_spec.rb
651
- - spec/location_spec.rb
652
- - spec/request_spec.rb
653
- - spec/resource_building_spec.rb
654
- - spec/response_spec.rb
655
- - spec/space_spec.rb
656
- - spec/spec_helper.rb
657
- - spec/support/client.rb
658
- - spec/support/json_responses.rb
659
- - spec/support/vcr.rb
660
- - spec/sync_page_spec.rb
661
- - spec/sync_spec.rb
306
+ test_files: []
data/.gitignore DELETED
@@ -1,7 +0,0 @@
1
- pkg
2
- doc/
3
- .yardoc/
4
- coverage
5
- Gemfile.lock
6
- .idea
7
- *.DS_Store
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --color --format documentation
data/.rubocop.yml DELETED
@@ -1,28 +0,0 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
- Encoding:
4
- Enabled: false
5
-
6
- Metrics/ClassLength:
7
- CountComments: false
8
-
9
- Metrics/MethodLength:
10
- CountComments: false
11
-
12
- AllCops:
13
- Exclude:
14
- - contentful.gemspec
15
- - spec/**/*
16
- - examples/**/*
17
- - Guardfile
18
- - Gemfile
19
- - Rakefile
20
-
21
- Metrics/ClassLength:
22
- Max: 280
23
-
24
- Style/MutableConstant:
25
- Enabled: false
26
-
27
- Style/SignalException:
28
- EnforcedStyle: 'semantic'
data/.rubocop_todo.yml DELETED
@@ -1,35 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2016-02-02 13:30:13 -0300 using RuboCop version 0.36.0.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 6
10
- Metrics/AbcSize:
11
- Max: 38
12
-
13
- # Offense count: 5
14
- Metrics/CyclomaticComplexity:
15
- Max: 10
16
-
17
- # Offense count: 1
18
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
19
- # URISchemes: http, https
20
- Metrics/LineLength:
21
- Max: 142
22
-
23
- # Offense count: 12
24
- # Configuration parameters: CountComments.
25
- Metrics/MethodLength:
26
- Max: 27
27
-
28
- # Offense count: 2
29
- # Configuration parameters: CountComments.
30
- Metrics/ModuleLength:
31
- Max: 500
32
-
33
- # Offense count: 4
34
- Metrics/PerceivedComplexity:
35
- Max: 10