cardmagic-etsy 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/.travis.yml +13 -0
  4. data/Gemfile +11 -0
  5. data/LICENSE +9 -0
  6. data/README.md +348 -0
  7. data/Rakefile +12 -0
  8. data/etsy.gemspec +34 -0
  9. data/lib/etsy.rb +223 -0
  10. data/lib/etsy/about.rb +15 -0
  11. data/lib/etsy/address.rb +47 -0
  12. data/lib/etsy/attribute_value.rb +46 -0
  13. data/lib/etsy/basic_client.rb +32 -0
  14. data/lib/etsy/category.rb +84 -0
  15. data/lib/etsy/country.rb +27 -0
  16. data/lib/etsy/favorite_listing.rb +26 -0
  17. data/lib/etsy/image.rb +44 -0
  18. data/lib/etsy/listing.rb +296 -0
  19. data/lib/etsy/model.rb +127 -0
  20. data/lib/etsy/payment_template.rb +33 -0
  21. data/lib/etsy/profile.rb +49 -0
  22. data/lib/etsy/receipt.rb +37 -0
  23. data/lib/etsy/request.rb +150 -0
  24. data/lib/etsy/response.rb +128 -0
  25. data/lib/etsy/section.rb +16 -0
  26. data/lib/etsy/secure_client.rb +131 -0
  27. data/lib/etsy/shipping_info.rb +27 -0
  28. data/lib/etsy/shipping_template.rb +41 -0
  29. data/lib/etsy/shop.rb +88 -0
  30. data/lib/etsy/transaction.rb +29 -0
  31. data/lib/etsy/user.rb +109 -0
  32. data/lib/etsy/variation/property_set.rb +71 -0
  33. data/lib/etsy/verification_request.rb +17 -0
  34. data/lib/etsy/version.rb +3 -0
  35. data/test/fixtures/about/getAbout.json +16 -0
  36. data/test/fixtures/address/getUserAddresses.json +12 -0
  37. data/test/fixtures/attribute_value/findAllListingPropertyValues.json +44 -0
  38. data/test/fixtures/category/findAllSubCategoryChildren.json +78 -0
  39. data/test/fixtures/category/findAllTopCategory.json +347 -0
  40. data/test/fixtures/category/findAllTopCategory.single.json +18 -0
  41. data/test/fixtures/category/findAllTopCategoryChildren.json +308 -0
  42. data/test/fixtures/category/getCategory.multiple.json +28 -0
  43. data/test/fixtures/category/getCategory.single.json +18 -0
  44. data/test/fixtures/country/getCountry.json +1 -0
  45. data/test/fixtures/favorite_listing/findAllFavoriteListings.json +1 -0
  46. data/test/fixtures/image/findAllListingImages.json +102 -0
  47. data/test/fixtures/listing/findAllListingActive.category.json +827 -0
  48. data/test/fixtures/listing/findAllShopListings.json +69 -0
  49. data/test/fixtures/listing/getListing.multiple.json +1 -0
  50. data/test/fixtures/listing/getListing.single.includeImages.json +1 -0
  51. data/test/fixtures/listing/getListing.single.json +1 -0
  52. data/test/fixtures/payment_template/getPaymentTemplate.json +1 -0
  53. data/test/fixtures/profile/new.json +28 -0
  54. data/test/fixtures/receipt/findAllShopReceipts.json +28 -0
  55. data/test/fixtures/section/getShopSection.json +18 -0
  56. data/test/fixtures/shipping_info/getShippingInfo.json +1 -0
  57. data/test/fixtures/shipping_template/getShippingTemplate.json +1 -0
  58. data/test/fixtures/shop/findAllShop.json +1 -0
  59. data/test/fixtures/shop/findAllShop.single.json +1 -0
  60. data/test/fixtures/shop/getShop.multiple.json +1 -0
  61. data/test/fixtures/shop/getShop.single.json +34 -0
  62. data/test/fixtures/transaction/findAllShopTransactions.json +1 -0
  63. data/test/fixtures/user/getUser.multiple.json +29 -0
  64. data/test/fixtures/user/getUser.single.json +13 -0
  65. data/test/fixtures/user/getUser.single.private.json +18 -0
  66. data/test/fixtures/user/getUser.single.withProfile.json +38 -0
  67. data/test/fixtures/user/getUser.single.withShops.json +41 -0
  68. data/test/test_helper.rb +45 -0
  69. data/test/unit/etsy/address_test.rb +61 -0
  70. data/test/unit/etsy/attribute_value_test.rb +67 -0
  71. data/test/unit/etsy/basic_client_test.rb +30 -0
  72. data/test/unit/etsy/category_test.rb +106 -0
  73. data/test/unit/etsy/country_test.rb +64 -0
  74. data/test/unit/etsy/favorite_listing_test.rb +44 -0
  75. data/test/unit/etsy/image_test.rb +51 -0
  76. data/test/unit/etsy/listing_test.rb +268 -0
  77. data/test/unit/etsy/model_test.rb +64 -0
  78. data/test/unit/etsy/payment_template_test.rb +68 -0
  79. data/test/unit/etsy/profile_test.rb +111 -0
  80. data/test/unit/etsy/receipt_test.rb +107 -0
  81. data/test/unit/etsy/request_test.rb +190 -0
  82. data/test/unit/etsy/response_test.rb +175 -0
  83. data/test/unit/etsy/section_test.rb +28 -0
  84. data/test/unit/etsy/secure_client_test.rb +132 -0
  85. data/test/unit/etsy/shipping_info_test.rb +24 -0
  86. data/test/unit/etsy/shipping_template_test.rb +24 -0
  87. data/test/unit/etsy/shop_about_test.rb +43 -0
  88. data/test/unit/etsy/shop_test.rb +116 -0
  89. data/test/unit/etsy/transaction_test.rb +61 -0
  90. data/test/unit/etsy/user_test.rb +250 -0
  91. data/test/unit/etsy/verification_request_test.rb +26 -0
  92. data/test/unit/etsy_test.rb +173 -0
  93. metadata +293 -0
metadata ADDED
@@ -0,0 +1,293 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cardmagic-etsy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.2
5
+ platform: ruby
6
+ authors:
7
+ - Patrick Reagan
8
+ - Katrina Owen
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2018-04-30 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: json
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: 1.5.0
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: 1.5.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: oauth
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: 0.4.0
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: 0.4.0
42
+ - !ruby/object:Gem::Dependency
43
+ name: rake
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: 10.0.4
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: 10.0.4
56
+ - !ruby/object:Gem::Dependency
57
+ name: jnunemaker-matchy
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: 0.4.0
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: 0.4.0
70
+ - !ruby/object:Gem::Dependency
71
+ name: shoulda
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: 3.4.0
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: 3.4.0
84
+ - !ruby/object:Gem::Dependency
85
+ name: mocha
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: 0.13.3
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: 0.13.3
98
+ - !ruby/object:Gem::Dependency
99
+ name: test-unit
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: 3.2.5
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: 3.2.5
112
+ description: A friendly Ruby interface to the Etsy API
113
+ email:
114
+ - reaganpr@gmail.com
115
+ - katrina.owen@gmail.com
116
+ executables: []
117
+ extensions: []
118
+ extra_rdoc_files: []
119
+ files:
120
+ - ".gitignore"
121
+ - ".travis.yml"
122
+ - Gemfile
123
+ - LICENSE
124
+ - README.md
125
+ - Rakefile
126
+ - etsy.gemspec
127
+ - lib/etsy.rb
128
+ - lib/etsy/about.rb
129
+ - lib/etsy/address.rb
130
+ - lib/etsy/attribute_value.rb
131
+ - lib/etsy/basic_client.rb
132
+ - lib/etsy/category.rb
133
+ - lib/etsy/country.rb
134
+ - lib/etsy/favorite_listing.rb
135
+ - lib/etsy/image.rb
136
+ - lib/etsy/listing.rb
137
+ - lib/etsy/model.rb
138
+ - lib/etsy/payment_template.rb
139
+ - lib/etsy/profile.rb
140
+ - lib/etsy/receipt.rb
141
+ - lib/etsy/request.rb
142
+ - lib/etsy/response.rb
143
+ - lib/etsy/section.rb
144
+ - lib/etsy/secure_client.rb
145
+ - lib/etsy/shipping_info.rb
146
+ - lib/etsy/shipping_template.rb
147
+ - lib/etsy/shop.rb
148
+ - lib/etsy/transaction.rb
149
+ - lib/etsy/user.rb
150
+ - lib/etsy/variation/property_set.rb
151
+ - lib/etsy/verification_request.rb
152
+ - lib/etsy/version.rb
153
+ - test/fixtures/about/getAbout.json
154
+ - test/fixtures/address/getUserAddresses.json
155
+ - test/fixtures/attribute_value/findAllListingPropertyValues.json
156
+ - test/fixtures/category/findAllSubCategoryChildren.json
157
+ - test/fixtures/category/findAllTopCategory.json
158
+ - test/fixtures/category/findAllTopCategory.single.json
159
+ - test/fixtures/category/findAllTopCategoryChildren.json
160
+ - test/fixtures/category/getCategory.multiple.json
161
+ - test/fixtures/category/getCategory.single.json
162
+ - test/fixtures/country/getCountry.json
163
+ - test/fixtures/favorite_listing/findAllFavoriteListings.json
164
+ - test/fixtures/image/findAllListingImages.json
165
+ - test/fixtures/listing/findAllListingActive.category.json
166
+ - test/fixtures/listing/findAllShopListings.json
167
+ - test/fixtures/listing/getListing.multiple.json
168
+ - test/fixtures/listing/getListing.single.includeImages.json
169
+ - test/fixtures/listing/getListing.single.json
170
+ - test/fixtures/payment_template/getPaymentTemplate.json
171
+ - test/fixtures/profile/new.json
172
+ - test/fixtures/receipt/findAllShopReceipts.json
173
+ - test/fixtures/section/getShopSection.json
174
+ - test/fixtures/shipping_info/getShippingInfo.json
175
+ - test/fixtures/shipping_template/getShippingTemplate.json
176
+ - test/fixtures/shop/findAllShop.json
177
+ - test/fixtures/shop/findAllShop.single.json
178
+ - test/fixtures/shop/getShop.multiple.json
179
+ - test/fixtures/shop/getShop.single.json
180
+ - test/fixtures/transaction/findAllShopTransactions.json
181
+ - test/fixtures/user/getUser.multiple.json
182
+ - test/fixtures/user/getUser.single.json
183
+ - test/fixtures/user/getUser.single.private.json
184
+ - test/fixtures/user/getUser.single.withProfile.json
185
+ - test/fixtures/user/getUser.single.withShops.json
186
+ - test/test_helper.rb
187
+ - test/unit/etsy/address_test.rb
188
+ - test/unit/etsy/attribute_value_test.rb
189
+ - test/unit/etsy/basic_client_test.rb
190
+ - test/unit/etsy/category_test.rb
191
+ - test/unit/etsy/country_test.rb
192
+ - test/unit/etsy/favorite_listing_test.rb
193
+ - test/unit/etsy/image_test.rb
194
+ - test/unit/etsy/listing_test.rb
195
+ - test/unit/etsy/model_test.rb
196
+ - test/unit/etsy/payment_template_test.rb
197
+ - test/unit/etsy/profile_test.rb
198
+ - test/unit/etsy/receipt_test.rb
199
+ - test/unit/etsy/request_test.rb
200
+ - test/unit/etsy/response_test.rb
201
+ - test/unit/etsy/section_test.rb
202
+ - test/unit/etsy/secure_client_test.rb
203
+ - test/unit/etsy/shipping_info_test.rb
204
+ - test/unit/etsy/shipping_template_test.rb
205
+ - test/unit/etsy/shop_about_test.rb
206
+ - test/unit/etsy/shop_test.rb
207
+ - test/unit/etsy/transaction_test.rb
208
+ - test/unit/etsy/user_test.rb
209
+ - test/unit/etsy/verification_request_test.rb
210
+ - test/unit/etsy_test.rb
211
+ homepage: http://github.com/kytrinyx/etsy
212
+ licenses:
213
+ - MIT
214
+ metadata: {}
215
+ post_install_message:
216
+ rdoc_options: []
217
+ require_paths:
218
+ - lib
219
+ required_ruby_version: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - ">="
222
+ - !ruby/object:Gem::Version
223
+ version: '0'
224
+ required_rubygems_version: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - ">="
227
+ - !ruby/object:Gem::Version
228
+ version: '0'
229
+ requirements: []
230
+ rubyforge_project:
231
+ rubygems_version: 2.7.6
232
+ signing_key:
233
+ specification_version: 4
234
+ summary: Provides a friendly ruby-like wrapper for the Etsy API
235
+ test_files:
236
+ - test/fixtures/about/getAbout.json
237
+ - test/fixtures/address/getUserAddresses.json
238
+ - test/fixtures/attribute_value/findAllListingPropertyValues.json
239
+ - test/fixtures/category/findAllSubCategoryChildren.json
240
+ - test/fixtures/category/findAllTopCategory.json
241
+ - test/fixtures/category/findAllTopCategory.single.json
242
+ - test/fixtures/category/findAllTopCategoryChildren.json
243
+ - test/fixtures/category/getCategory.multiple.json
244
+ - test/fixtures/category/getCategory.single.json
245
+ - test/fixtures/country/getCountry.json
246
+ - test/fixtures/favorite_listing/findAllFavoriteListings.json
247
+ - test/fixtures/image/findAllListingImages.json
248
+ - test/fixtures/listing/findAllListingActive.category.json
249
+ - test/fixtures/listing/findAllShopListings.json
250
+ - test/fixtures/listing/getListing.multiple.json
251
+ - test/fixtures/listing/getListing.single.includeImages.json
252
+ - test/fixtures/listing/getListing.single.json
253
+ - test/fixtures/payment_template/getPaymentTemplate.json
254
+ - test/fixtures/profile/new.json
255
+ - test/fixtures/receipt/findAllShopReceipts.json
256
+ - test/fixtures/section/getShopSection.json
257
+ - test/fixtures/shipping_info/getShippingInfo.json
258
+ - test/fixtures/shipping_template/getShippingTemplate.json
259
+ - test/fixtures/shop/findAllShop.json
260
+ - test/fixtures/shop/findAllShop.single.json
261
+ - test/fixtures/shop/getShop.multiple.json
262
+ - test/fixtures/shop/getShop.single.json
263
+ - test/fixtures/transaction/findAllShopTransactions.json
264
+ - test/fixtures/user/getUser.multiple.json
265
+ - test/fixtures/user/getUser.single.json
266
+ - test/fixtures/user/getUser.single.private.json
267
+ - test/fixtures/user/getUser.single.withProfile.json
268
+ - test/fixtures/user/getUser.single.withShops.json
269
+ - test/test_helper.rb
270
+ - test/unit/etsy/address_test.rb
271
+ - test/unit/etsy/attribute_value_test.rb
272
+ - test/unit/etsy/basic_client_test.rb
273
+ - test/unit/etsy/category_test.rb
274
+ - test/unit/etsy/country_test.rb
275
+ - test/unit/etsy/favorite_listing_test.rb
276
+ - test/unit/etsy/image_test.rb
277
+ - test/unit/etsy/listing_test.rb
278
+ - test/unit/etsy/model_test.rb
279
+ - test/unit/etsy/payment_template_test.rb
280
+ - test/unit/etsy/profile_test.rb
281
+ - test/unit/etsy/receipt_test.rb
282
+ - test/unit/etsy/request_test.rb
283
+ - test/unit/etsy/response_test.rb
284
+ - test/unit/etsy/section_test.rb
285
+ - test/unit/etsy/secure_client_test.rb
286
+ - test/unit/etsy/shipping_info_test.rb
287
+ - test/unit/etsy/shipping_template_test.rb
288
+ - test/unit/etsy/shop_about_test.rb
289
+ - test/unit/etsy/shop_test.rb
290
+ - test/unit/etsy/transaction_test.rb
291
+ - test/unit/etsy/user_test.rb
292
+ - test/unit/etsy/verification_request_test.rb
293
+ - test/unit/etsy_test.rb