bigcommerce 0.10.0 → 1.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +17 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +620 -0
  5. data/.travis.yml +15 -0
  6. data/CHANGELOG.md +11 -0
  7. data/CONTRIBUTING.md +119 -0
  8. data/DEPENDENCIES.md +7 -0
  9. data/Gemfile +15 -0
  10. data/Guardfile +22 -0
  11. data/LICENSE +15 -15
  12. data/README.md +61 -70
  13. data/RELEASING.md +64 -0
  14. data/Rakefile +8 -6
  15. data/bigcommerce.gemspec +22 -53
  16. data/examples/README.md +148 -0
  17. data/examples/configuration/legacy_auth.rb +12 -0
  18. data/examples/configuration/oauth.rb +9 -0
  19. data/examples/content/blog_post.rb +39 -0
  20. data/examples/content/blog_tag.rb +10 -0
  21. data/examples/content/redirect.rb +43 -0
  22. data/examples/customers/customer.rb +36 -0
  23. data/examples/customers/customer_address.rb +50 -0
  24. data/examples/customers/customer_group.rb +35 -0
  25. data/examples/exception_handling.rb +50 -0
  26. data/examples/geography/country.rb +16 -0
  27. data/examples/geography/state.rb +19 -0
  28. data/examples/marketing/coupon.rb +44 -0
  29. data/examples/orders/order.rb +53 -0
  30. data/examples/orders/order_coupon.rb +17 -0
  31. data/examples/orders/order_message.rb +17 -0
  32. data/examples/orders/order_product.rb +23 -0
  33. data/examples/orders/order_shipping_address.rb +23 -0
  34. data/examples/orders/order_status.rb +15 -0
  35. data/examples/orders/order_tax.rb +17 -0
  36. data/examples/orders/shipment.rb +57 -0
  37. data/examples/payments/payment_method.rb +10 -0
  38. data/examples/products/brand.rb +36 -0
  39. data/examples/products/bulk_pricing_rule.rb +47 -0
  40. data/examples/products/category.rb +37 -0
  41. data/examples/products/configurable_field.rb +29 -0
  42. data/examples/products/custom_field.rb +44 -0
  43. data/examples/products/google_product_search_mapping.rb +12 -0
  44. data/examples/products/option.rb +37 -0
  45. data/examples/products/option_set.rb +35 -0
  46. data/examples/products/option_set_option.rb +50 -0
  47. data/examples/products/option_value.rb +43 -0
  48. data/examples/products/product.rb +44 -0
  49. data/examples/products/product_image.rb +42 -0
  50. data/examples/products/product_option.rb +17 -0
  51. data/examples/products/product_review.rb +12 -0
  52. data/examples/products/product_rule.rb +54 -0
  53. data/examples/products/product_video.rb +45 -0
  54. data/examples/products/sku.rb +48 -0
  55. data/examples/shipping/shipping_method.rb +13 -0
  56. data/examples/store/store_info.rb +10 -0
  57. data/examples/system/time.rb +10 -0
  58. data/examples/tax/tax_class.rb +13 -0
  59. data/examples/webhooks/webhook.rb +29 -0
  60. data/lib/bigcommerce.rb +50 -8
  61. data/lib/bigcommerce/exception.rb +51 -0
  62. data/lib/bigcommerce/middleware/auth.rb +16 -0
  63. data/lib/bigcommerce/middleware/http_exception.rb +14 -0
  64. data/lib/bigcommerce/request.rb +89 -0
  65. data/lib/bigcommerce/resource_actions.rb +51 -0
  66. data/lib/bigcommerce/resources/content/blog_post.rb +31 -0
  67. data/lib/bigcommerce/resources/content/blog_tag.rb +17 -0
  68. data/lib/bigcommerce/resources/content/redirect.rb +21 -0
  69. data/lib/bigcommerce/resources/customers/customer.rb +30 -0
  70. data/lib/bigcommerce/resources/customers/customer_address.rb +34 -0
  71. data/lib/bigcommerce/resources/customers/customer_group.rb +21 -0
  72. data/lib/bigcommerce/resources/geography/country.rb +22 -0
  73. data/lib/bigcommerce/resources/geography/state.rb +25 -0
  74. data/lib/bigcommerce/resources/marketing/coupon.rb +30 -0
  75. data/lib/bigcommerce/resources/orders/order.rb +73 -0
  76. data/lib/bigcommerce/resources/orders/order_coupon.rb +20 -0
  77. data/lib/bigcommerce/resources/orders/order_message.rb +23 -0
  78. data/lib/bigcommerce/resources/orders/order_product.rb +64 -0
  79. data/lib/bigcommerce/resources/orders/order_shipping_address.rb +50 -0
  80. data/lib/bigcommerce/resources/orders/order_status.rb +16 -0
  81. data/lib/bigcommerce/resources/orders/order_tax.rb +23 -0
  82. data/lib/bigcommerce/resources/orders/shipment.rb +30 -0
  83. data/lib/bigcommerce/resources/payments/payment_method.rb +17 -0
  84. data/lib/bigcommerce/resources/products/brand.rb +23 -0
  85. data/lib/bigcommerce/resources/products/bulk_pricing_rule.rb +26 -0
  86. data/lib/bigcommerce/resources/products/category.rb +29 -0
  87. data/lib/bigcommerce/resources/products/configurable_field.rb +30 -0
  88. data/lib/bigcommerce/resources/products/custom_field.rb +24 -0
  89. data/lib/bigcommerce/resources/products/google_product_search_mapping.rb +26 -0
  90. data/lib/bigcommerce/resources/products/option.rb +20 -0
  91. data/lib/bigcommerce/resources/products/option_set.rb +18 -0
  92. data/lib/bigcommerce/resources/products/option_set_option.rb +19 -0
  93. data/lib/bigcommerce/resources/products/option_value.rb +15 -0
  94. data/lib/bigcommerce/resources/products/product.rb +97 -0
  95. data/lib/bigcommerce/resources/products/product_image.rb +31 -0
  96. data/lib/bigcommerce/resources/products/product_option.rb +17 -0
  97. data/lib/bigcommerce/resources/products/product_review.rb +22 -0
  98. data/lib/bigcommerce/resources/products/product_rule.rb +31 -0
  99. data/lib/bigcommerce/resources/products/product_video.rb +24 -0
  100. data/lib/bigcommerce/resources/products/sku.rb +29 -0
  101. data/lib/bigcommerce/resources/resource.rb +10 -0
  102. data/lib/bigcommerce/resources/shipping/shipping_method.rb +15 -0
  103. data/lib/bigcommerce/resources/store/store_information.rb +37 -0
  104. data/lib/bigcommerce/resources/system/time.rb +15 -0
  105. data/lib/bigcommerce/resources/tax/tax_class.rb +15 -0
  106. data/lib/bigcommerce/resources/webhooks/webhook.rb +22 -0
  107. data/lib/bigcommerce/subresource_actions.rb +43 -0
  108. data/lib/bigcommerce/version.rb +1 -4
  109. data/spec/bigcommerce/bigcommerce_spec.rb +76 -0
  110. data/spec/bigcommerce/unit/actions_spec.rb +151 -0
  111. data/spec/bigcommerce/unit/exception_spec.rb +53 -0
  112. data/spec/bigcommerce/unit/middleware/auth_spec.rb +18 -0
  113. data/spec/bigcommerce/unit/middleware/http_exception_spec.rb +40 -0
  114. data/spec/bigcommerce/unit/request_spec.rb +180 -0
  115. data/spec/bigcommerce/unit/resources/content/blog_post_spec.rb +12 -0
  116. data/spec/bigcommerce/unit/resources/content/blog_tag_spec.rb +12 -0
  117. data/spec/bigcommerce/unit/resources/content/redirect_spec.rb +12 -0
  118. data/spec/bigcommerce/unit/resources/customers/customer_address_spec.rb +21 -0
  119. data/spec/bigcommerce/unit/resources/customers/customer_group_spec.rb +12 -0
  120. data/spec/bigcommerce/unit/resources/customers/customer_spec.rb +12 -0
  121. data/spec/bigcommerce/unit/resources/geography/country_spec.rb +12 -0
  122. data/spec/bigcommerce/unit/resources/geography/state_spec.rb +21 -0
  123. data/spec/bigcommerce/unit/resources/marketing/coupon_spec.rb +12 -0
  124. data/spec/bigcommerce/unit/resources/orders/order_product_spec.rb +21 -0
  125. data/spec/bigcommerce/unit/resources/orders/order_shipping_address_spec.rb +21 -0
  126. data/spec/bigcommerce/unit/resources/orders/order_spec.rb +13 -0
  127. data/spec/bigcommerce/unit/resources/orders/shipment_spec.rb +21 -0
  128. data/spec/bigcommerce/unit/resources/payments/payment_method_spec.rb +23 -0
  129. data/spec/bigcommerce/unit/resources/products/brand_spec.rb +12 -0
  130. data/spec/bigcommerce/unit/resources/products/bulk_pricing_rule_spec.rb +21 -0
  131. data/spec/bigcommerce/unit/resources/products/category_spec.rb +12 -0
  132. data/spec/bigcommerce/unit/resources/products/configurable_field_spec.rb +21 -0
  133. data/spec/bigcommerce/unit/resources/products/custom_field_spec.rb +21 -0
  134. data/spec/bigcommerce/unit/resources/products/google_product_search_mapping_spec.rb +14 -0
  135. data/spec/bigcommerce/unit/resources/products/option_set_spec.rb +12 -0
  136. data/spec/bigcommerce/unit/resources/products/option_spec.rb +12 -0
  137. data/spec/bigcommerce/unit/resources/products/product_image_spec.rb +21 -0
  138. data/spec/bigcommerce/unit/resources/products/product_review_spec.rb +14 -0
  139. data/spec/bigcommerce/unit/resources/products/product_rule_spec.rb +21 -0
  140. data/spec/bigcommerce/unit/resources/products/product_spec.rb +13 -0
  141. data/spec/bigcommerce/unit/resources/products/product_video_spec.rb +21 -0
  142. data/spec/bigcommerce/unit/resources/products/sku_spec.rb +21 -0
  143. data/spec/bigcommerce/unit/resources/resource_spec.rb +4 -0
  144. data/spec/bigcommerce/unit/resources/store_info/store_information_spec.rb +12 -0
  145. data/spec/bigcommerce/unit/resources/system/time_spec.rb +12 -0
  146. data/spec/bigcommerce/unit/version_spec.rb +7 -0
  147. data/spec/spec_helper.rb +9 -25
  148. metadata +203 -127
  149. data/lib/big_commerce.rb +0 -1
  150. data/lib/bigcommerce/api.rb +0 -473
  151. data/lib/bigcommerce/connection.rb +0 -171
  152. data/lib/bigcommerce/product.rb +0 -13
  153. data/lib/bigcommerce/resource.rb +0 -50
  154. data/spec/big_commerce_spec.rb +0 -9
  155. data/spec/integration/orders_spec.rb +0 -18
  156. data/spec/support/integration_context.rb +0 -13
  157. data/spec/support/mock_api_context.rb +0 -10
  158. data/spec/unit/api_request_spec.rb +0 -34
  159. data/spec/unit/api_spec.rb +0 -49
  160. data/spec/unit/connection_spec.rb +0 -23
  161. data/spec/unit/date_time_spec.rb +0 -31
  162. data/spec/unit/version_spec.rb +0 -13
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::OrderShippingAddress do
4
+ before(:each) { @shipping_address = Bigcommerce::OrderShippingAddress }
5
+
6
+ let(:params) { 1 }
7
+
8
+ describe '.count' do
9
+ it 'should hit the correct path' do
10
+ expect(@shipping_address).to receive(:get).with('orders/1/shipping_addresses/count')
11
+ @shipping_address.count params
12
+ end
13
+ end
14
+
15
+ describe '.count_all' do
16
+ it 'should hit the correct path' do
17
+ expect(@shipping_address).to receive(:get).with('orders/shipping_addresses/count')
18
+ @shipping_address.count_all
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::Order do
4
+ before(:each) { @order = Bigcommerce::Order }
5
+
6
+ describe '.count' do
7
+ it 'should hit the correct path and should allow params' do
8
+ params = { page: 1 }
9
+ expect(@order).to receive(:get).with('orders/count', params)
10
+ @order.count params
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::Shipment do
4
+ before(:each) { @shipment = Bigcommerce::Shipment }
5
+
6
+ let(:params) { 1 }
7
+
8
+ describe '.count' do
9
+ it 'hit the correct path' do
10
+ expect(@shipment).to receive(:get).with('orders/1/shipments/count')
11
+ @shipment.count params
12
+ end
13
+ end
14
+
15
+ describe '.count_all' do
16
+ it 'hit the correct path' do
17
+ expect(@shipment).to receive(:get).with('orders/shipments/count')
18
+ @shipment.count_all
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::PaymentMethod do
4
+ before(:each) { @payment_method = Bigcommerce::PaymentMethod }
5
+
6
+ let(:params) do
7
+ {
8
+ page: 1
9
+ }
10
+ end
11
+
12
+ describe '.all' do
13
+ it 'should hit the correct path without params' do
14
+ expect(@payment_method).to receive(:get).with('payments/methods', {})
15
+ @payment_method.all
16
+ end
17
+
18
+ it 'should hit the correct path with params' do
19
+ expect(@payment_method).to receive(:get).with('payments/methods', params)
20
+ @payment_method.all params
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::Brand do
4
+ before(:each) { @brand = Bigcommerce::Brand }
5
+
6
+ describe '.count' do
7
+ it 'should hit the correct path' do
8
+ expect(@brand).to receive(:get).with('brands/count')
9
+ @brand.count
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::BulkPricingRule do
4
+ before(:each) { @bulk_pricing_rule = Bigcommerce::BulkPricingRule }
5
+
6
+ let(:params) { 1 }
7
+
8
+ describe '.count' do
9
+ it 'should hit the correct path' do
10
+ expect(@bulk_pricing_rule).to receive(:get).with('products/1/discount_rules/count')
11
+ @bulk_pricing_rule.count params
12
+ end
13
+ end
14
+
15
+ describe '.count_all' do
16
+ it 'should hit the correct path' do
17
+ expect(@bulk_pricing_rule).to receive(:get).with('products/discount_rules/count')
18
+ @bulk_pricing_rule.count_all
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::Category do
4
+ before(:each) { @category = Bigcommerce::Category }
5
+
6
+ describe '.count' do
7
+ it 'should hit the correct path' do
8
+ expect(@category).to receive(:get).with('categories/count')
9
+ @category.count
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::ConfigurableField do
4
+ before(:each) { @configurable_field = Bigcommerce::ConfigurableField }
5
+
6
+ let(:params) { 1 }
7
+
8
+ describe '.count' do
9
+ it 'should hit the correct path' do
10
+ expect(@configurable_field).to receive(:get).with('products/1/configurable_fields/count')
11
+ @configurable_field.count params
12
+ end
13
+ end
14
+
15
+ describe '.count_all' do
16
+ it 'should hit the correct path' do
17
+ expect(@configurable_field).to receive(:get).with('products/configurable_fields/count')
18
+ @configurable_field.count_all
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::CustomField do
4
+ before(:each) { @custom_field = Bigcommerce::CustomField }
5
+
6
+ let(:params) { 1 }
7
+
8
+ describe '.count' do
9
+ it 'should hit the correct path' do
10
+ expect(@custom_field).to receive(:get).with('products/1/custom_fields/count')
11
+ @custom_field.count params
12
+ end
13
+ end
14
+
15
+ describe '.count_all' do
16
+ it 'should hit the correct path' do
17
+ expect(@custom_field).to receive(:get).with('products/custom_fields/count')
18
+ @custom_field.count_all
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,14 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::GoogleProductSearchMapping do
4
+ before(:each) { @mapping = Bigcommerce::GoogleProductSearchMapping }
5
+
6
+ let(:params) { 1 }
7
+
8
+ describe '.all' do
9
+ it 'should hit the correct path' do
10
+ expect(@mapping).to receive(:get).with('products/1/googleproductsearch')
11
+ @mapping.all params
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::OptionSet do
4
+ before(:each) { @option_set = Bigcommerce::OptionSet }
5
+
6
+ describe '.count' do
7
+ it 'should hit the correct path' do
8
+ expect(@option_set).to receive(:get).with('option_sets/count')
9
+ @option_set.count
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::Option do
4
+ before(:each) { @option = Bigcommerce::Option }
5
+
6
+ describe '.count' do
7
+ it 'should hit the correct path' do
8
+ expect(@option).to receive(:get).with('options/count')
9
+ @option.count
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::ProductImage do
4
+ before(:each) { @image = Bigcommerce::ProductImage }
5
+
6
+ let(:params) { 1 }
7
+
8
+ describe '.count' do
9
+ it 'should hit the correct path' do
10
+ expect(@image).to receive(:get).with('products/1/images/count')
11
+ @image.count params
12
+ end
13
+ end
14
+
15
+ describe '.count_all' do
16
+ it 'should hit the correct path' do
17
+ expect(@image).to receive(:get).with('products/images/count')
18
+ @image.count_all
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,14 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::ProductReview do
4
+ before(:each) { @product_review = Bigcommerce::ProductReview }
5
+
6
+ let(:params) { 1 }
7
+
8
+ describe '.all' do
9
+ it 'should hit the correct path' do
10
+ expect(@product_review).to receive(:get).with('products/1/reviews')
11
+ @product_review.all params
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::ProductRule do
4
+ before(:each) { @rule = Bigcommerce::ProductRule }
5
+
6
+ let(:params) { 1 }
7
+
8
+ describe '.count' do
9
+ it 'should hit the correct path' do
10
+ expect(@rule).to receive(:get).with('products/1/rules/count')
11
+ @rule.count params
12
+ end
13
+ end
14
+
15
+ describe '.count_all' do
16
+ it 'should hit the correct path' do
17
+ expect(@rule).to receive(:get).with('products/rules/count')
18
+ @rule.count_all
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::Product do
4
+ before(:each) { @product = Bigcommerce::Product }
5
+
6
+ describe '.count' do
7
+ it 'should hit the correct path with params' do
8
+ params = { page: 1 }
9
+ expect(@product).to receive(:get).with('products/count', params)
10
+ @product.count params
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::ProductVideo do
4
+ before(:each) { @video = Bigcommerce::ProductVideo }
5
+
6
+ let(:params) { 1 }
7
+
8
+ describe '.count' do
9
+ it '.count should hit the correct path' do
10
+ expect(@video).to receive(:get).with('products/1/videos/count')
11
+ @video.count params
12
+ end
13
+ end
14
+
15
+ describe '.count_all' do
16
+ it '.count should hit the correct path' do
17
+ expect(@video).to receive(:get).with('products/videos/count')
18
+ @video.count_all
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::Sku do
4
+ before(:each) { @sku = Bigcommerce::Sku }
5
+
6
+ let(:params) { 1 }
7
+
8
+ describe '.count' do
9
+ it 'should hit the correct path' do
10
+ expect(@sku).to receive(:get).with('products/1/skus/count')
11
+ @sku.count params
12
+ end
13
+ end
14
+
15
+ describe '.count_all' do
16
+ it 'should hit the correct path' do
17
+ expect(@sku).to receive(:get).with('products/skus/count')
18
+ @sku.count_all
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,4 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::Resource do
4
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::StoreInfo do
4
+ before(:each) { @store_info = Bigcommerce::StoreInfo }
5
+
6
+ describe '.info' do
7
+ it 'should hit the correct path' do
8
+ expect(@store_info).to receive(:get).with(@store_info.path.build)
9
+ @store_info.info
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Bigcommerce::System do
4
+ before(:each) { @system = Bigcommerce::System }
5
+
6
+ describe '.time' do
7
+ it 'should hit the correct path' do
8
+ expect(@system).to receive(:get).with(@system.path.build)
9
+ @system.time
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Bigcommerce::VERSION' do
4
+ it 'is not nil' do
5
+ expect(Bigcommerce::VERSION).not_to be_nil
6
+ end
7
+ end
@@ -1,27 +1,11 @@
1
- begin
2
- require 'coveralls'
3
- Coveralls.wear!
4
- rescue LoadError => e
5
- raise e
6
- end
1
+ require 'coveralls'
2
+ Coveralls.wear!
7
3
 
8
- require 'bigcommerce'
9
- require 'date'
10
- require 'vcr'
11
- require 'webmock/rspec'
12
-
13
- # Requires supporting ruby files with custom matchers and macros, etc,
14
- # in spec/support/ and its subdirectories.
15
- Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f }
4
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
5
+ Coveralls::SimpleCov::Formatter,
6
+ SimpleCov::Formatter::HTMLFormatter
7
+ ]
8
+ SimpleCov.start { add_filter '/spec/' }
16
9
 
17
- VCR.configure do |c|
18
- c.cassette_library_dir = 'spec/fixtures'
19
- c.hook_into :webmock
20
- c.configure_rspec_metadata!
21
- c.filter_sensitive_data('<API_USER>') { ENV['API_USER'] }
22
- c.filter_sensitive_data('<API_PASS>') { ENV['API_PASS'] }
23
- end
24
-
25
- RSpec.configure do |c|
26
- c.treat_symbols_as_metadata_keys_with_true_values = true
27
- end
10
+ require 'rspec'
11
+ require 'bigcommerce'
metadata CHANGED
@@ -1,62 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bigcommerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 1.0.0.beta
5
5
  platform: ruby
6
6
  authors:
7
- - Mark Rickerby
8
- - Rob Howard
9
- - Saranyan Vigraham
10
- - Sasha Gerrand
7
+ - Patrick Edelman
11
8
  autorequire:
12
9
  bindir: bin
13
10
  cert_chain: []
14
- date: 2015-01-27 00:00:00.000000000 Z
11
+ date: 2015-03-17 00:00:00.000000000 Z
15
12
  dependencies:
16
13
  - !ruby/object:Gem::Dependency
17
- name: activesupport
18
- requirement: !ruby/object:Gem::Requirement
19
- requirements:
20
- - - '>='
21
- - !ruby/object:Gem::Version
22
- version: '0'
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: json
32
- requirement: !ruby/object:Gem::Requirement
33
- requirements:
34
- - - '>='
35
- - !ruby/object:Gem::Version
36
- version: '0'
37
- type: :runtime
38
- prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
44
- - !ruby/object:Gem::Dependency
45
- name: rest-client
46
- requirement: !ruby/object:Gem::Requirement
47
- requirements:
48
- - - '>='
49
- - !ruby/object:Gem::Version
50
- version: '0'
51
- type: :runtime
52
- prerelease: false
53
- version_requirements: !ruby/object:Gem::Requirement
54
- requirements:
55
- - - '>='
56
- - !ruby/object:Gem::Version
57
- version: '0'
58
- - !ruby/object:Gem::Dependency
59
- name: coveralls
14
+ name: rake
60
15
  requirement: !ruby/object:Gem::Requirement
61
16
  requirements:
62
17
  - - '>='
@@ -70,7 +25,7 @@ dependencies:
70
25
  - !ruby/object:Gem::Version
71
26
  version: '0'
72
27
  - !ruby/object:Gem::Dependency
73
- name: ci_reporter_rspec
28
+ name: bundler
74
29
  requirement: !ruby/object:Gem::Requirement
75
30
  requirements:
76
31
  - - '>='
@@ -84,13 +39,13 @@ dependencies:
84
39
  - !ruby/object:Gem::Version
85
40
  version: '0'
86
41
  - !ruby/object:Gem::Dependency
87
- name: mocha
42
+ name: faraday
88
43
  requirement: !ruby/object:Gem::Requirement
89
44
  requirements:
90
45
  - - '>='
91
46
  - !ruby/object:Gem::Version
92
47
  version: '0'
93
- type: :development
48
+ type: :runtime
94
49
  prerelease: false
95
50
  version_requirements: !ruby/object:Gem::Requirement
96
51
  requirements:
@@ -98,13 +53,13 @@ dependencies:
98
53
  - !ruby/object:Gem::Version
99
54
  version: '0'
100
55
  - !ruby/object:Gem::Dependency
101
- name: rake
56
+ name: faraday_middleware
102
57
  requirement: !ruby/object:Gem::Requirement
103
58
  requirements:
104
59
  - - '>='
105
60
  - !ruby/object:Gem::Version
106
61
  version: '0'
107
- type: :development
62
+ type: :runtime
108
63
  prerelease: false
109
64
  version_requirements: !ruby/object:Gem::Requirement
110
65
  requirements:
@@ -112,86 +67,175 @@ dependencies:
112
67
  - !ruby/object:Gem::Version
113
68
  version: '0'
114
69
  - !ruby/object:Gem::Dependency
115
- name: rspec
116
- requirement: !ruby/object:Gem::Requirement
117
- requirements:
118
- - - ~>
119
- - !ruby/object:Gem::Version
120
- version: '2.11'
121
- type: :development
122
- prerelease: false
123
- version_requirements: !ruby/object:Gem::Requirement
124
- requirements:
125
- - - ~>
126
- - !ruby/object:Gem::Version
127
- version: '2.11'
128
- - !ruby/object:Gem::Dependency
129
- name: vcr
70
+ name: hashie
130
71
  requirement: !ruby/object:Gem::Requirement
131
72
  requirements:
132
73
  - - '>='
133
74
  - !ruby/object:Gem::Version
134
75
  version: '0'
135
- type: :development
76
+ type: :runtime
136
77
  prerelease: false
137
78
  version_requirements: !ruby/object:Gem::Requirement
138
79
  requirements:
139
80
  - - '>='
140
81
  - !ruby/object:Gem::Version
141
82
  version: '0'
142
- - !ruby/object:Gem::Dependency
143
- name: webmock
144
- requirement: !ruby/object:Gem::Requirement
145
- requirements:
146
- - - '='
147
- - !ruby/object:Gem::Version
148
- version: '1.9'
149
- type: :development
150
- prerelease: false
151
- version_requirements: !ruby/object:Gem::Requirement
152
- requirements:
153
- - - '='
154
- - !ruby/object:Gem::Version
155
- version: '1.9'
156
- description: Enables Ruby applications to communicate with the Bigcommerce API V2.
157
- email:
158
- - mark.rickerby@bigcommerce.com
159
- - rob.howard@bigcommerce.com
160
- - saranyan.vigraham@bigcommerce.com
161
- - sasha.gerrand@bigcommerce.com
83
+ description: |-
84
+ Bigcommerce API Ruby client library. Allows developers to \
85
+ easily communicate with the Bigcommerce API, for either CLI tools or public \
86
+ apps. More info: http://developer.bigcommerce.com
87
+ email:
162
88
  executables: []
163
89
  extensions: []
164
90
  extra_rdoc_files: []
165
91
  files:
92
+ - .gitignore
93
+ - .rspec
94
+ - .rubocop.yml
95
+ - .travis.yml
96
+ - CHANGELOG.md
97
+ - CONTRIBUTING.md
98
+ - DEPENDENCIES.md
99
+ - Gemfile
100
+ - Guardfile
166
101
  - LICENSE
167
- - Rakefile
168
102
  - README.md
103
+ - RELEASING.md
104
+ - Rakefile
169
105
  - bigcommerce.gemspec
170
- - ./lib/big_commerce.rb
171
- - ./lib/bigcommerce/api.rb
172
- - ./lib/bigcommerce/connection.rb
173
- - ./lib/bigcommerce/version.rb
174
- - ./lib/bigcommerce/resource.rb
175
- - ./lib/bigcommerce/product.rb
176
- - ./lib/bigcommerce.rb
177
- - ./spec/big_commerce_spec.rb
178
- - ./spec/integration/orders_spec.rb
179
- - ./spec/spec_helper.rb
180
- - ./spec/support/integration_context.rb
181
- - ./spec/support/mock_api_context.rb
182
- - ./spec/unit/api_request_spec.rb
183
- - ./spec/unit/api_spec.rb
184
- - ./spec/unit/connection_spec.rb
185
- - ./spec/unit/date_time_spec.rb
186
- - ./spec/unit/version_spec.rb
187
- - spec/big_commerce_spec.rb
188
- - spec/integration/orders_spec.rb
189
- - spec/unit/api_request_spec.rb
190
- - spec/unit/api_spec.rb
191
- - spec/unit/connection_spec.rb
192
- - spec/unit/date_time_spec.rb
193
- - spec/unit/version_spec.rb
194
- homepage: http://github.com/bigcommerce/bigcommerce-api-ruby
106
+ - examples/README.md
107
+ - examples/configuration/legacy_auth.rb
108
+ - examples/configuration/oauth.rb
109
+ - examples/content/blog_post.rb
110
+ - examples/content/blog_tag.rb
111
+ - examples/content/redirect.rb
112
+ - examples/customers/customer.rb
113
+ - examples/customers/customer_address.rb
114
+ - examples/customers/customer_group.rb
115
+ - examples/exception_handling.rb
116
+ - examples/geography/country.rb
117
+ - examples/geography/state.rb
118
+ - examples/marketing/coupon.rb
119
+ - examples/orders/order.rb
120
+ - examples/orders/order_coupon.rb
121
+ - examples/orders/order_message.rb
122
+ - examples/orders/order_product.rb
123
+ - examples/orders/order_shipping_address.rb
124
+ - examples/orders/order_status.rb
125
+ - examples/orders/order_tax.rb
126
+ - examples/orders/shipment.rb
127
+ - examples/payments/payment_method.rb
128
+ - examples/products/brand.rb
129
+ - examples/products/bulk_pricing_rule.rb
130
+ - examples/products/category.rb
131
+ - examples/products/configurable_field.rb
132
+ - examples/products/custom_field.rb
133
+ - examples/products/google_product_search_mapping.rb
134
+ - examples/products/option.rb
135
+ - examples/products/option_set.rb
136
+ - examples/products/option_set_option.rb
137
+ - examples/products/option_value.rb
138
+ - examples/products/product.rb
139
+ - examples/products/product_image.rb
140
+ - examples/products/product_option.rb
141
+ - examples/products/product_review.rb
142
+ - examples/products/product_rule.rb
143
+ - examples/products/product_video.rb
144
+ - examples/products/sku.rb
145
+ - examples/shipping/shipping_method.rb
146
+ - examples/store/store_info.rb
147
+ - examples/system/time.rb
148
+ - examples/tax/tax_class.rb
149
+ - examples/webhooks/webhook.rb
150
+ - lib/bigcommerce.rb
151
+ - lib/bigcommerce/exception.rb
152
+ - lib/bigcommerce/middleware/auth.rb
153
+ - lib/bigcommerce/middleware/http_exception.rb
154
+ - lib/bigcommerce/request.rb
155
+ - lib/bigcommerce/resource_actions.rb
156
+ - lib/bigcommerce/resources/content/blog_post.rb
157
+ - lib/bigcommerce/resources/content/blog_tag.rb
158
+ - lib/bigcommerce/resources/content/redirect.rb
159
+ - lib/bigcommerce/resources/customers/customer.rb
160
+ - lib/bigcommerce/resources/customers/customer_address.rb
161
+ - lib/bigcommerce/resources/customers/customer_group.rb
162
+ - lib/bigcommerce/resources/geography/country.rb
163
+ - lib/bigcommerce/resources/geography/state.rb
164
+ - lib/bigcommerce/resources/marketing/coupon.rb
165
+ - lib/bigcommerce/resources/orders/order.rb
166
+ - lib/bigcommerce/resources/orders/order_coupon.rb
167
+ - lib/bigcommerce/resources/orders/order_message.rb
168
+ - lib/bigcommerce/resources/orders/order_product.rb
169
+ - lib/bigcommerce/resources/orders/order_shipping_address.rb
170
+ - lib/bigcommerce/resources/orders/order_status.rb
171
+ - lib/bigcommerce/resources/orders/order_tax.rb
172
+ - lib/bigcommerce/resources/orders/shipment.rb
173
+ - lib/bigcommerce/resources/payments/payment_method.rb
174
+ - lib/bigcommerce/resources/products/brand.rb
175
+ - lib/bigcommerce/resources/products/bulk_pricing_rule.rb
176
+ - lib/bigcommerce/resources/products/category.rb
177
+ - lib/bigcommerce/resources/products/configurable_field.rb
178
+ - lib/bigcommerce/resources/products/custom_field.rb
179
+ - lib/bigcommerce/resources/products/google_product_search_mapping.rb
180
+ - lib/bigcommerce/resources/products/option.rb
181
+ - lib/bigcommerce/resources/products/option_set.rb
182
+ - lib/bigcommerce/resources/products/option_set_option.rb
183
+ - lib/bigcommerce/resources/products/option_value.rb
184
+ - lib/bigcommerce/resources/products/product.rb
185
+ - lib/bigcommerce/resources/products/product_image.rb
186
+ - lib/bigcommerce/resources/products/product_option.rb
187
+ - lib/bigcommerce/resources/products/product_review.rb
188
+ - lib/bigcommerce/resources/products/product_rule.rb
189
+ - lib/bigcommerce/resources/products/product_video.rb
190
+ - lib/bigcommerce/resources/products/sku.rb
191
+ - lib/bigcommerce/resources/resource.rb
192
+ - lib/bigcommerce/resources/shipping/shipping_method.rb
193
+ - lib/bigcommerce/resources/store/store_information.rb
194
+ - lib/bigcommerce/resources/system/time.rb
195
+ - lib/bigcommerce/resources/tax/tax_class.rb
196
+ - lib/bigcommerce/resources/webhooks/webhook.rb
197
+ - lib/bigcommerce/subresource_actions.rb
198
+ - lib/bigcommerce/version.rb
199
+ - spec/bigcommerce/bigcommerce_spec.rb
200
+ - spec/bigcommerce/unit/actions_spec.rb
201
+ - spec/bigcommerce/unit/exception_spec.rb
202
+ - spec/bigcommerce/unit/middleware/auth_spec.rb
203
+ - spec/bigcommerce/unit/middleware/http_exception_spec.rb
204
+ - spec/bigcommerce/unit/request_spec.rb
205
+ - spec/bigcommerce/unit/resources/content/blog_post_spec.rb
206
+ - spec/bigcommerce/unit/resources/content/blog_tag_spec.rb
207
+ - spec/bigcommerce/unit/resources/content/redirect_spec.rb
208
+ - spec/bigcommerce/unit/resources/customers/customer_address_spec.rb
209
+ - spec/bigcommerce/unit/resources/customers/customer_group_spec.rb
210
+ - spec/bigcommerce/unit/resources/customers/customer_spec.rb
211
+ - spec/bigcommerce/unit/resources/geography/country_spec.rb
212
+ - spec/bigcommerce/unit/resources/geography/state_spec.rb
213
+ - spec/bigcommerce/unit/resources/marketing/coupon_spec.rb
214
+ - spec/bigcommerce/unit/resources/orders/order_product_spec.rb
215
+ - spec/bigcommerce/unit/resources/orders/order_shipping_address_spec.rb
216
+ - spec/bigcommerce/unit/resources/orders/order_spec.rb
217
+ - spec/bigcommerce/unit/resources/orders/shipment_spec.rb
218
+ - spec/bigcommerce/unit/resources/payments/payment_method_spec.rb
219
+ - spec/bigcommerce/unit/resources/products/brand_spec.rb
220
+ - spec/bigcommerce/unit/resources/products/bulk_pricing_rule_spec.rb
221
+ - spec/bigcommerce/unit/resources/products/category_spec.rb
222
+ - spec/bigcommerce/unit/resources/products/configurable_field_spec.rb
223
+ - spec/bigcommerce/unit/resources/products/custom_field_spec.rb
224
+ - spec/bigcommerce/unit/resources/products/google_product_search_mapping_spec.rb
225
+ - spec/bigcommerce/unit/resources/products/option_set_spec.rb
226
+ - spec/bigcommerce/unit/resources/products/option_spec.rb
227
+ - spec/bigcommerce/unit/resources/products/product_image_spec.rb
228
+ - spec/bigcommerce/unit/resources/products/product_review_spec.rb
229
+ - spec/bigcommerce/unit/resources/products/product_rule_spec.rb
230
+ - spec/bigcommerce/unit/resources/products/product_spec.rb
231
+ - spec/bigcommerce/unit/resources/products/product_video_spec.rb
232
+ - spec/bigcommerce/unit/resources/products/sku_spec.rb
233
+ - spec/bigcommerce/unit/resources/resource_spec.rb
234
+ - spec/bigcommerce/unit/resources/store_info/store_information_spec.rb
235
+ - spec/bigcommerce/unit/resources/system/time_spec.rb
236
+ - spec/bigcommerce/unit/version_spec.rb
237
+ - spec/spec_helper.rb
238
+ homepage: https://github.com/bigcommerce/bigcommerce-api-ruby
195
239
  licenses:
196
240
  - MIT
197
241
  metadata: {}
@@ -203,23 +247,55 @@ required_ruby_version: !ruby/object:Gem::Requirement
203
247
  requirements:
204
248
  - - '>='
205
249
  - !ruby/object:Gem::Version
206
- version: '0'
250
+ version: 1.9.3
207
251
  required_rubygems_version: !ruby/object:Gem::Requirement
208
252
  requirements:
209
- - - '>='
253
+ - - '>'
210
254
  - !ruby/object:Gem::Version
211
- version: '0'
255
+ version: 1.3.1
212
256
  requirements: []
213
257
  rubyforge_project:
214
258
  rubygems_version: 2.0.14
215
259
  signing_key:
216
260
  specification_version: 4
217
- summary: Enables Ruby applications to communicate with the Bigcommerce API
261
+ summary: Ruby client library for the Bigcommerce v2 API
218
262
  test_files:
219
- - spec/big_commerce_spec.rb
220
- - spec/integration/orders_spec.rb
221
- - spec/unit/api_request_spec.rb
222
- - spec/unit/api_spec.rb
223
- - spec/unit/connection_spec.rb
224
- - spec/unit/date_time_spec.rb
225
- - spec/unit/version_spec.rb
263
+ - spec/bigcommerce/bigcommerce_spec.rb
264
+ - spec/bigcommerce/unit/actions_spec.rb
265
+ - spec/bigcommerce/unit/exception_spec.rb
266
+ - spec/bigcommerce/unit/middleware/auth_spec.rb
267
+ - spec/bigcommerce/unit/middleware/http_exception_spec.rb
268
+ - spec/bigcommerce/unit/request_spec.rb
269
+ - spec/bigcommerce/unit/resources/content/blog_post_spec.rb
270
+ - spec/bigcommerce/unit/resources/content/blog_tag_spec.rb
271
+ - spec/bigcommerce/unit/resources/content/redirect_spec.rb
272
+ - spec/bigcommerce/unit/resources/customers/customer_address_spec.rb
273
+ - spec/bigcommerce/unit/resources/customers/customer_group_spec.rb
274
+ - spec/bigcommerce/unit/resources/customers/customer_spec.rb
275
+ - spec/bigcommerce/unit/resources/geography/country_spec.rb
276
+ - spec/bigcommerce/unit/resources/geography/state_spec.rb
277
+ - spec/bigcommerce/unit/resources/marketing/coupon_spec.rb
278
+ - spec/bigcommerce/unit/resources/orders/order_product_spec.rb
279
+ - spec/bigcommerce/unit/resources/orders/order_shipping_address_spec.rb
280
+ - spec/bigcommerce/unit/resources/orders/order_spec.rb
281
+ - spec/bigcommerce/unit/resources/orders/shipment_spec.rb
282
+ - spec/bigcommerce/unit/resources/payments/payment_method_spec.rb
283
+ - spec/bigcommerce/unit/resources/products/brand_spec.rb
284
+ - spec/bigcommerce/unit/resources/products/bulk_pricing_rule_spec.rb
285
+ - spec/bigcommerce/unit/resources/products/category_spec.rb
286
+ - spec/bigcommerce/unit/resources/products/configurable_field_spec.rb
287
+ - spec/bigcommerce/unit/resources/products/custom_field_spec.rb
288
+ - spec/bigcommerce/unit/resources/products/google_product_search_mapping_spec.rb
289
+ - spec/bigcommerce/unit/resources/products/option_set_spec.rb
290
+ - spec/bigcommerce/unit/resources/products/option_spec.rb
291
+ - spec/bigcommerce/unit/resources/products/product_image_spec.rb
292
+ - spec/bigcommerce/unit/resources/products/product_review_spec.rb
293
+ - spec/bigcommerce/unit/resources/products/product_rule_spec.rb
294
+ - spec/bigcommerce/unit/resources/products/product_spec.rb
295
+ - spec/bigcommerce/unit/resources/products/product_video_spec.rb
296
+ - spec/bigcommerce/unit/resources/products/sku_spec.rb
297
+ - spec/bigcommerce/unit/resources/resource_spec.rb
298
+ - spec/bigcommerce/unit/resources/store_info/store_information_spec.rb
299
+ - spec/bigcommerce/unit/resources/system/time_spec.rb
300
+ - spec/bigcommerce/unit/version_spec.rb
301
+ - spec/spec_helper.rb