versacommerce_api 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/.gitignore +10 -16
  2. data/bin/versacommerce +1 -0
  3. data/lib/active_resource/base_ext.rb +2 -1
  4. data/lib/active_resource/connection_ext.rb +1 -0
  5. data/lib/active_resource/detailed_log_subscriber.rb +1 -0
  6. data/lib/active_resource/disable_prefix_check.rb +1 -0
  7. data/lib/active_resource/json_errors.rb +1 -0
  8. data/lib/versacommerce_api/associatable.rb +1 -0
  9. data/lib/versacommerce_api/cli.rb +1 -0
  10. data/lib/versacommerce_api/countable.rb +1 -0
  11. data/lib/versacommerce_api/resources/base.rb +1 -0
  12. data/lib/versacommerce_api/resources/billing_addres.rb +1 -0
  13. data/lib/versacommerce_api/resources/collection.rb +1 -0
  14. data/lib/versacommerce_api/resources/customer.rb +1 -0
  15. data/lib/versacommerce_api/resources/item.rb +1 -0
  16. data/lib/versacommerce_api/resources/link.rb +1 -0
  17. data/lib/versacommerce_api/resources/linklist.rb +1 -0
  18. data/lib/versacommerce_api/resources/order.rb +1 -0
  19. data/lib/versacommerce_api/resources/page.rb +1 -0
  20. data/lib/versacommerce_api/resources/payment.rb +1 -0
  21. data/lib/versacommerce_api/resources/product.rb +1 -0
  22. data/lib/versacommerce_api/resources/product_image.rb +1 -0
  23. data/lib/versacommerce_api/resources/property.rb +1 -0
  24. data/lib/versacommerce_api/resources/shipment.rb +1 -0
  25. data/lib/versacommerce_api/resources/shipping_addres.rb +1 -0
  26. data/lib/versacommerce_api/resources/shop.rb +1 -0
  27. data/lib/versacommerce_api/resources/variant.rb +1 -0
  28. data/lib/versacommerce_api/resources.rb +1 -0
  29. data/lib/versacommerce_api/session.rb +1 -0
  30. data/lib/versacommerce_api/version.rb +2 -1
  31. data/lib/versacommerce_api.rb +1 -0
  32. data/spec/resources/order_spec.rb +4 -0
  33. data/spec/resources/product_spec.rb +1 -0
  34. data/spec/spec_helper.rb +1 -0
  35. data/versacommerce_api.gemspec +1 -0
  36. metadata +2 -2
data/.gitignore CHANGED
@@ -1,18 +1,12 @@
1
- *.rbc
2
- *.sassc
3
- .sass-cache
4
- capybara-*.html
5
- .rspec
6
- /.bundle
7
- /vendor/bundle
8
- /log/*
9
- /tmp/*
10
- /db/*.sqlite3
11
- /public/system/*
12
- /coverage/
13
- /spec/tmp/*
14
- **.orig
15
- rerun.txt
16
- pickle-email-*.html
1
+ *.gem
2
+ *.swp
3
+ .bundle
17
4
  .DS_Store
5
+ <<<<<<< HEAD
6
+ .rvmrc
7
+ /coverage
8
+ Gemfile.lock
9
+ scratchpad
10
+ =======
18
11
  /scratchpads
12
+ >>>>>>> 14896020a14ac84df4a9646d0aff9843c5ca25a0
data/bin/versacommerce CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # -*- encoding : utf-8 -*-
2
3
  require File.expand_path('../../lib/versacommerce_api',__FILE__)
3
4
  require File.expand_path('../../lib/versacommerce_api/cli',__FILE__)
4
5
  VersacommerceAPI::Cli.start(ARGV)
@@ -1,6 +1,7 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module ActiveResource
2
3
  class Base
3
- # Backported from ActiveResource master branch
4
+ # BACKPORTED FROM ACTIVERESOURCE MASTER BRANCH
4
5
  def self.headers
5
6
  @headers ||= {}
6
7
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'active_support/core_ext/module/aliasing'
2
3
 
3
4
  module ActiveResource
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module ActiveResource
2
3
  class DetailedLogSubscriber < ActiveSupport::LogSubscriber
3
4
  def request(event)
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module DisablePrefixCheck
2
3
  extend ActiveSupport::Concern
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'active_resource/base'
2
3
 
3
4
  module ActiveResource
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  module Associatable
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'thor'
2
3
  require 'abbrev'
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  module Countable
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class Base < ActiveResource::Base
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class BillingAddres < Base
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class Collection < Base
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class Customer < Base
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class Item < Base
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class Link < Base
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class Linklist < Base
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  # An order comes by default with three associations: shipping_address, billing_address and customer.
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class Page < Base
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class Payment < Base
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class Product < Base
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class ProductImage < Base
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class Property < Base
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class Shipment < Base
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class ShippingAddres < Base
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  # Shop object. Use Shop.current to receive the shop.
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class Variant < Base
@@ -1,2 +1,3 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'versacommerce_api/resources/base'
2
3
  Dir.glob "#{File.dirname(__FILE__)}/resources/*", &method(:require)
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
3
 
3
4
  class Session
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module VersacommerceAPI
2
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
3
4
  end
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  $:.unshift File.dirname(__FILE__)
2
3
 
3
4
  require 'active_resource'
@@ -1,3 +1,7 @@
1
+ <<<<<<< HEAD
2
+ # -*- encoding : utf-8 -*-
3
+ =======
4
+ >>>>>>> 14896020a14ac84df4a9646d0aff9843c5ca25a0
1
5
  require 'spec_helper'
2
6
 
3
7
  describe VersacommerceAPI::Order do
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'spec_helper'
2
3
 
3
4
  describe VersacommerceAPI::Product do
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'rubygems'
2
3
  require 'bundler/setup'
3
4
  require 'rspec'
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  # coding: utf-8
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: versacommerce_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-02 00:00:00.000000000 Z
12
+ date: 2013-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler