delivery-sdk-ruby 1.0.5 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +49 -48
  3. data/lib/delivery/builders/image_transformation_builder.rb +239 -237
  4. data/lib/delivery/builders/url_builder.rb +95 -93
  5. data/lib/delivery/client/delivery_client.rb +137 -135
  6. data/lib/delivery/client/delivery_query.rb +222 -220
  7. data/lib/delivery/client/request_manager.rb +83 -81
  8. data/lib/delivery/models/content_item.rb +132 -130
  9. data/lib/delivery/models/content_type.rb +33 -31
  10. data/lib/delivery/models/pagination.rb +16 -14
  11. data/lib/delivery/models/taxonomy_group.rb +33 -31
  12. data/lib/delivery/query_parameters/filters.rb +36 -34
  13. data/lib/delivery/query_parameters/parameter_base.rb +37 -35
  14. data/lib/delivery/query_parameters/query_string.rb +65 -63
  15. data/lib/delivery/resolvers/content_link_resolver.rb +85 -83
  16. data/lib/delivery/resolvers/inline_content_item_resolver.rb +61 -59
  17. data/lib/delivery/resolvers/linked_item_resolver.rb +29 -27
  18. data/lib/delivery/responses/delivery_element_response.rb +25 -23
  19. data/lib/delivery/responses/delivery_item_listing_response.rb +41 -39
  20. data/lib/delivery/responses/delivery_item_response.rb +30 -28
  21. data/lib/delivery/responses/delivery_taxonomy_listing_response.rb +33 -31
  22. data/lib/delivery/responses/delivery_taxonomy_response.rb +22 -20
  23. data/lib/delivery/responses/delivery_type_listing_response.rb +33 -31
  24. data/lib/delivery/responses/delivery_type_response.rb +22 -20
  25. data/lib/delivery/responses/response_base.rb +29 -27
  26. data/lib/delivery/tests/fake_responder.rb +50 -48
  27. data/lib/delivery/tests/filtering/items_gt.json +4 -4
  28. data/lib/delivery/tests/filtering/multiple.json +2 -2
  29. data/lib/delivery/tests/filtering/pagination_about_us.json +3 -3
  30. data/lib/delivery/tests/generic/items.json +25 -25
  31. data/lib/delivery/tests/generic/items/about_us.json +1 -1
  32. data/lib/delivery/tests/generic/items/aeropress_filters.json +1 -1
  33. data/lib/delivery/tests/generic/items/coffee_processing_techniques.json +1 -1
  34. data/lib/delivery/tests/generic/items/where_does_coffee_come_from_.json +4 -4
  35. data/lib/delivery/version.rb +5 -3
  36. data/lib/kontent-delivery-sdk-ruby.rb +19 -0
  37. metadata +38 -23
@@ -120,7 +120,7 @@
120
120
  "metadata__twitter_creator": {
121
121
  "type": "text",
122
122
  "name": "twitter:creator",
123
- "value": "@kenticoCloud"
123
+ "value": "@kenticokontent"
124
124
  },
125
125
  "metadata__twitter_title": {
126
126
  "type": "text",
@@ -256,7 +256,7 @@
256
256
  "metadata__twitter_creator": {
257
257
  "type": "text",
258
258
  "name": "twitter:creator",
259
- "value": "@kenticoCloud"
259
+ "value": "@kenticokontent"
260
260
  },
261
261
  "metadata__twitter_title": {
262
262
  "type": "text",
@@ -392,7 +392,7 @@
392
392
  "metadata__twitter_creator": {
393
393
  "type": "text",
394
394
  "name": "twitter:creator",
395
- "value": "@kenticoCloud"
395
+ "value": "@kenticokontent"
396
396
  },
397
397
  "metadata__twitter_title": {
398
398
  "type": "text",
@@ -528,7 +528,7 @@
528
528
  "metadata__twitter_creator": {
529
529
  "type": "text",
530
530
  "name": "twitter:creator",
531
- "value": "@kenticoCloud"
531
+ "value": "@kenticokontent"
532
532
  },
533
533
  "metadata__twitter_title": {
534
534
  "type": "text",
@@ -109,7 +109,7 @@
109
109
  "metadata__twitter_creator": {
110
110
  "type": "text",
111
111
  "name": "twitter:creator",
112
- "value": "@kenticoCloud"
112
+ "value": "@kenticokontent"
113
113
  },
114
114
  "metadata__twitter_title": {
115
115
  "type": "text",
@@ -245,7 +245,7 @@
245
245
  "metadata__twitter_creator": {
246
246
  "type": "text",
247
247
  "name": "twitter:creator",
248
- "value": "@kenticoCloud"
248
+ "value": "@kenticokontent"
249
249
  },
250
250
  "metadata__twitter_title": {
251
251
  "type": "text",
@@ -68,7 +68,7 @@
68
68
  "metadata__twitter_creator": {
69
69
  "type": "text",
70
70
  "name": "twitter:creator",
71
- "value": "@kenticoCloud"
71
+ "value": "@kenticokontent"
72
72
  },
73
73
  "metadata__twitter_title": {
74
74
  "type": "text",
@@ -215,7 +215,7 @@
215
215
  "metadata__twitter_creator": {
216
216
  "type": "text",
217
217
  "name": "twitter:creator",
218
- "value": "@kenticoCloud"
218
+ "value": "@kenticokontent"
219
219
  },
220
220
  "metadata__twitter_title": {
221
221
  "type": "text",
@@ -351,7 +351,7 @@
351
351
  "metadata__twitter_creator": {
352
352
  "type": "text",
353
353
  "name": "twitter:creator",
354
- "value": "@kenticoCloud"
354
+ "value": "@kenticokontent"
355
355
  },
356
356
  "metadata__twitter_title": {
357
357
  "type": "text",
@@ -68,7 +68,7 @@
68
68
  "metadata__twitter_creator": {
69
69
  "type": "text",
70
70
  "name": "twitter:creator",
71
- "value": "@kenticoCloud"
71
+ "value": "@kenticokontent"
72
72
  },
73
73
  "metadata__twitter_title": {
74
74
  "type": "text",
@@ -215,7 +215,7 @@
215
215
  "metadata__twitter_creator": {
216
216
  "type": "text",
217
217
  "name": "twitter:creator",
218
- "value": "@kenticoCloud"
218
+ "value": "@kenticokontent"
219
219
  },
220
220
  "metadata__twitter_title": {
221
221
  "type": "text",
@@ -351,7 +351,7 @@
351
351
  "metadata__twitter_creator": {
352
352
  "type": "text",
353
353
  "name": "twitter:creator",
354
- "value": "@kenticoCloud"
354
+ "value": "@kenticokontent"
355
355
  },
356
356
  "metadata__twitter_title": {
357
357
  "type": "text",
@@ -641,7 +641,7 @@
641
641
  "metadata__twitter_creator": {
642
642
  "type": "text",
643
643
  "name": "twitter:creator",
644
- "value": "@kenticoCloud"
644
+ "value": "@kenticokontent"
645
645
  },
646
646
  "metadata__twitter_title": {
647
647
  "type": "text",
@@ -792,7 +792,7 @@
792
792
  "metadata__twitter_creator": {
793
793
  "type": "text",
794
794
  "name": "twitter:creator",
795
- "value": "@kenticoCloud"
795
+ "value": "@kenticokontent"
796
796
  },
797
797
  "metadata__twitter_title": {
798
798
  "type": "text",
@@ -958,7 +958,7 @@
958
958
  "metadata__twitter_creator": {
959
959
  "type": "text",
960
960
  "name": "twitter:creator",
961
- "value": "@kenticoCloud"
961
+ "value": "@kenticokontent"
962
962
  },
963
963
  "metadata__twitter_title": {
964
964
  "type": "text",
@@ -1106,7 +1106,7 @@
1106
1106
  "metadata__twitter_creator": {
1107
1107
  "type": "text",
1108
1108
  "name": "twitter:creator",
1109
- "value": "@kenticoCloud"
1109
+ "value": "@kenticokontent"
1110
1110
  },
1111
1111
  "metadata__twitter_title": {
1112
1112
  "type": "text",
@@ -1242,7 +1242,7 @@
1242
1242
  "metadata__twitter_creator": {
1243
1243
  "type": "text",
1244
1244
  "name": "twitter:creator",
1245
- "value": "@kenticoCloud"
1245
+ "value": "@kenticokontent"
1246
1246
  },
1247
1247
  "metadata__twitter_title": {
1248
1248
  "type": "text",
@@ -1378,7 +1378,7 @@
1378
1378
  "metadata__twitter_creator": {
1379
1379
  "type": "text",
1380
1380
  "name": "twitter:creator",
1381
- "value": "@kenticoCloud"
1381
+ "value": "@kenticokontent"
1382
1382
  },
1383
1383
  "metadata__twitter_title": {
1384
1384
  "type": "text",
@@ -1520,7 +1520,7 @@
1520
1520
  "metadata__twitter_creator": {
1521
1521
  "type": "text",
1522
1522
  "name": "twitter:creator",
1523
- "value": "@kenticoCloud"
1523
+ "value": "@kenticokontent"
1524
1524
  },
1525
1525
  "metadata__twitter_title": {
1526
1526
  "type": "text",
@@ -1650,7 +1650,7 @@
1650
1650
  "metadata__twitter_creator": {
1651
1651
  "type": "text",
1652
1652
  "name": "twitter:creator",
1653
- "value": "@kenticoCloud"
1653
+ "value": "@kenticokontent"
1654
1654
  },
1655
1655
  "metadata__twitter_title": {
1656
1656
  "type": "text",
@@ -1985,7 +1985,7 @@
1985
1985
  "metadata__twitter_creator": {
1986
1986
  "type": "text",
1987
1987
  "name": "twitter:creator",
1988
- "value": "@kenticoCloud"
1988
+ "value": "@kenticokontent"
1989
1989
  },
1990
1990
  "metadata__twitter_title": {
1991
1991
  "type": "text",
@@ -2396,7 +2396,7 @@
2396
2396
  "metadata__twitter_creator": {
2397
2397
  "type": "text",
2398
2398
  "name": "twitter:creator",
2399
- "value": "@kenticoCloud"
2399
+ "value": "@kenticokontent"
2400
2400
  },
2401
2401
  "metadata__twitter_title": {
2402
2402
  "type": "text",
@@ -2548,7 +2548,7 @@
2548
2548
  "metadata__twitter_creator": {
2549
2549
  "type": "text",
2550
2550
  "name": "twitter:creator",
2551
- "value": "@kenticoCloud"
2551
+ "value": "@kenticokontent"
2552
2552
  },
2553
2553
  "metadata__twitter_title": {
2554
2554
  "type": "text",
@@ -2772,7 +2772,7 @@
2772
2772
  "metadata__twitter_creator": {
2773
2773
  "type": "text",
2774
2774
  "name": "twitter:creator",
2775
- "value": "@kenticoCloud"
2775
+ "value": "@kenticokontent"
2776
2776
  },
2777
2777
  "metadata__twitter_title": {
2778
2778
  "type": "text",
@@ -2908,7 +2908,7 @@
2908
2908
  "metadata__twitter_creator": {
2909
2909
  "type": "text",
2910
2910
  "name": "twitter:creator",
2911
- "value": "@kenticoCloud"
2911
+ "value": "@kenticokontent"
2912
2912
  },
2913
2913
  "metadata__twitter_title": {
2914
2914
  "type": "text",
@@ -3097,7 +3097,7 @@
3097
3097
  "metadata__twitter_creator": {
3098
3098
  "type": "text",
3099
3099
  "name": "twitter:creator",
3100
- "value": "@KenticoCloud"
3100
+ "value": "@kenticokontent"
3101
3101
  },
3102
3102
  "metadata__twitter_title": {
3103
3103
  "type": "text",
@@ -3260,7 +3260,7 @@
3260
3260
  "metadata__twitter_creator": {
3261
3261
  "type": "text",
3262
3262
  "name": "twitter:creator",
3263
- "value": "@kenticoCloud"
3263
+ "value": "@kenticokontent"
3264
3264
  },
3265
3265
  "metadata__twitter_title": {
3266
3266
  "type": "text",
@@ -3409,7 +3409,7 @@
3409
3409
  "metadata__twitter_creator": {
3410
3410
  "type": "text",
3411
3411
  "name": "twitter:creator",
3412
- "value": "@kenticoCloud"
3412
+ "value": "@kenticokontent"
3413
3413
  },
3414
3414
  "metadata__twitter_title": {
3415
3415
  "type": "text",
@@ -3688,7 +3688,7 @@
3688
3688
  "metadata__twitter_creator": {
3689
3689
  "type": "text",
3690
3690
  "name": "twitter:creator",
3691
- "value": "@kenticoCloud"
3691
+ "value": "@kenticokontent"
3692
3692
  },
3693
3693
  "metadata__twitter_title": {
3694
3694
  "type": "text",
@@ -3854,7 +3854,7 @@
3854
3854
  "metadata__twitter_creator": {
3855
3855
  "type": "text",
3856
3856
  "name": "twitter:creator",
3857
- "value": "@kenticoCloud"
3857
+ "value": "@kenticokontent"
3858
3858
  },
3859
3859
  "metadata__twitter_title": {
3860
3860
  "type": "text",
@@ -4040,7 +4040,7 @@
4040
4040
  "metadata__twitter_creator": {
4041
4041
  "type": "text",
4042
4042
  "name": "twitter:creator",
4043
- "value": "@kenticoCloud"
4043
+ "value": "@kenticokontent"
4044
4044
  },
4045
4045
  "metadata__twitter_title": {
4046
4046
  "type": "text",
@@ -4547,7 +4547,7 @@
4547
4547
  "metadata__twitter_creator": {
4548
4548
  "type": "text",
4549
4549
  "name": "twitter:creator",
4550
- "value": "@kenticoCloud"
4550
+ "value": "@kenticokontent"
4551
4551
  },
4552
4552
  "metadata__twitter_title": {
4553
4553
  "type": "text",
@@ -4699,7 +4699,7 @@
4699
4699
  "metadata__twitter_creator": {
4700
4700
  "type": "text",
4701
4701
  "name": "twitter:creator",
4702
- "value": "@kenticoCloud"
4702
+ "value": "@kenticokontent"
4703
4703
  },
4704
4704
  "metadata__twitter_title": {
4705
4705
  "type": "text",
@@ -4948,7 +4948,7 @@
4948
4948
  "metadata__twitter_creator": {
4949
4949
  "type": "text",
4950
4950
  "name": "twitter:creator",
4951
- "value": "@kenticoCloud"
4951
+ "value": "@kenticokontent"
4952
4952
  },
4953
4953
  "metadata__twitter_title": {
4954
4954
  "type": "text",
@@ -67,7 +67,7 @@
67
67
  "metadata__twitter_creator": {
68
68
  "type": "text",
69
69
  "name": "twitter:creator",
70
- "value": "@kenticoCloud"
70
+ "value": "@kenticokontent"
71
71
  },
72
72
  "metadata__twitter_title": {
73
73
  "type": "text",
@@ -108,7 +108,7 @@
108
108
  "metadata__twitter_creator": {
109
109
  "type": "text",
110
110
  "name": "twitter:creator",
111
- "value": "@kenticoCloud"
111
+ "value": "@kenticokontent"
112
112
  },
113
113
  "metadata__twitter_title": {
114
114
  "type": "text",
@@ -138,7 +138,7 @@
138
138
  "metadata__twitter_creator": {
139
139
  "type": "text",
140
140
  "name": "twitter:creator",
141
- "value": "@kenticoCloud"
141
+ "value": "@kenticokontent"
142
142
  },
143
143
  "metadata__twitter_title": {
144
144
  "type": "text",
@@ -133,7 +133,7 @@
133
133
  "metadata__twitter_creator": {
134
134
  "type": "text",
135
135
  "name": "twitter:creator",
136
- "value": "@KenticoCloud"
136
+ "value": "@kenticokontent"
137
137
  },
138
138
  "metadata__twitter_title": {
139
139
  "type": "text",
@@ -283,7 +283,7 @@
283
283
  "metadata__twitter_creator": {
284
284
  "type": "text",
285
285
  "name": "twitter:creator",
286
- "value": "@kenticoCloud"
286
+ "value": "@kenticokontent"
287
287
  },
288
288
  "metadata__twitter_title": {
289
289
  "type": "text",
@@ -438,7 +438,7 @@
438
438
  "metadata__twitter_creator": {
439
439
  "type": "text",
440
440
  "name": "twitter:creator",
441
- "value": "@kenticoCloud"
441
+ "value": "@kenticokontent"
442
442
  },
443
443
  "metadata__twitter_title": {
444
444
  "type": "text",
@@ -590,7 +590,7 @@
590
590
  "metadata__twitter_creator": {
591
591
  "type": "text",
592
592
  "name": "twitter:creator",
593
- "value": "@kenticoCloud"
593
+ "value": "@kenticokontent"
594
594
  },
595
595
  "metadata__twitter_title": {
596
596
  "type": "text",
@@ -1,5 +1,7 @@
1
- module KenticoCloud
2
- module Delivery
3
- VERSION = '1.0.5'.freeze
1
+ module Kentico
2
+ module Kontent
3
+ module Delivery
4
+ VERSION = '2.0.3'.freeze
5
+ end
4
6
  end
5
7
  end
@@ -0,0 +1,19 @@
1
+ require File.dirname(__FILE__) + '/delivery/client/delivery_client'
2
+ require File.dirname(__FILE__) + '/delivery/client/delivery_query'
3
+ require File.dirname(__FILE__) + '/delivery/client/request_manager'
4
+ require File.dirname(__FILE__) + '/delivery/models/content_item'
5
+ require File.dirname(__FILE__) + '/delivery/models/content_type'
6
+ require File.dirname(__FILE__) + '/delivery/models/taxonomy_group'
7
+ require File.dirname(__FILE__) + '/delivery/query_parameters/filters'
8
+ require File.dirname(__FILE__) + '/delivery/responses/delivery_item_listing_response'
9
+ require File.dirname(__FILE__) + '/delivery/responses/delivery_item_response'
10
+ require File.dirname(__FILE__) + '/delivery/responses/delivery_type_listing_response'
11
+ require File.dirname(__FILE__) + '/delivery/responses/delivery_type_response'
12
+ require File.dirname(__FILE__) + '/delivery/responses/delivery_taxonomy_listing_response'
13
+ require File.dirname(__FILE__) + '/delivery/responses/delivery_taxonomy_response'
14
+ require File.dirname(__FILE__) + '/delivery/responses/delivery_element_response'
15
+ require File.dirname(__FILE__) + '/delivery/resolvers/content_link_resolver'
16
+ require File.dirname(__FILE__) + '/delivery/resolvers/inline_content_item_resolver'
17
+ require File.dirname(__FILE__) + '/delivery/resolvers/linked_item_resolver'
18
+ require File.dirname(__FILE__) + '/delivery/builders/image_transformation_builder'
19
+ require File.dirname(__FILE__) + '/delivery/tests/fake_responder'
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delivery-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dugre
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-17 00:00:00.000000000 Z
11
+ date: 2019-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: dotenv
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 2.7.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 2.7.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: nokogiri
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -50,20 +64,6 @@ dependencies:
50
64
  - - "~>"
51
65
  - !ruby/object:Gem::Version
52
66
  version: 2.1.0.rc1
53
- - !ruby/object:Gem::Dependency
54
- name: dotenv
55
- requirement: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: 2.7.0
60
- type: :development
61
- prerelease: false
62
- version_requirements: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - "~>"
65
- - !ruby/object:Gem::Version
66
- version: 2.7.0
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: bundler
69
69
  requirement: !ruby/object:Gem::Requirement
@@ -106,7 +106,21 @@ dependencies:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
108
  version: '3.0'
109
- description: Kentico Cloud Delivery SDK for Ruby
109
+ - !ruby/object:Gem::Dependency
110
+ name: simplecov
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ description: Kentico Kontent Delivery SDK for Ruby
110
124
  email:
111
125
  - EricD@kentico.com
112
126
  executables: []
@@ -155,14 +169,15 @@ files:
155
169
  - lib/delivery/tests/generic/types.json
156
170
  - lib/delivery/tests/generic/types/brewer/elements/product_status.json
157
171
  - lib/delivery/version.rb
158
- homepage: https://github.com/Kentico/delivery-sdk-ruby
172
+ - lib/kontent-delivery-sdk-ruby.rb
173
+ homepage: https://github.com/Kentico/kontent-delivery-sdk-ruby
159
174
  licenses:
160
175
  - MIT
161
176
  metadata:
162
177
  allowed_push_host: https://rubygems.org
163
- homepage_uri: https://github.com/Kentico/delivery-sdk-ruby
164
- source_code_uri: https://github.com/Kentico/delivery-sdk-ruby
165
- changelog_uri: https://github.com/Kentico/delivery-sdk-ruby
178
+ homepage_uri: https://github.com/Kentico/kontent-delivery-sdk-ruby
179
+ source_code_uri: https://github.com/Kentico/kontent-delivery-sdk-ruby
180
+ changelog_uri: https://github.com/Kentico/kontent-delivery-sdk-ruby
166
181
  post_install_message:
167
182
  rdoc_options: []
168
183
  require_paths:
@@ -178,8 +193,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
193
  - !ruby/object:Gem::Version
179
194
  version: '0'
180
195
  requirements: []
181
- rubygems_version: 3.0.3
196
+ rubygems_version: 3.0.6
182
197
  signing_key:
183
198
  specification_version: 4
184
- summary: Kentico Cloud Delivery SDK for Ruby
199
+ summary: Kentico Kontent Delivery SDK for Ruby
185
200
  test_files: []