versacommerce_api 1.0.4 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,2 +1,2 @@
1
-
1
+ 1.0.6 - Added Account resource
2
2
  1.0.1 - First public release
data/Gemfile.lock CHANGED
@@ -1,38 +1,38 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- versacommerce_api (1.0.3)
4
+ versacommerce_api (1.0.6)
5
5
  activeresource (>= 3.2.14)
6
6
  thor (>= 0.14.4)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (4.0.0)
12
- activesupport (= 4.0.0)
11
+ activemodel (4.0.4)
12
+ activesupport (= 4.0.4)
13
13
  builder (~> 3.1.0)
14
14
  activeresource (4.0.0)
15
15
  activemodel (~> 4.0)
16
16
  activesupport (~> 4.0)
17
17
  rails-observers (~> 0.1.1)
18
- activesupport (4.0.0)
19
- i18n (~> 0.6, >= 0.6.4)
18
+ activesupport (4.0.4)
19
+ i18n (~> 0.6, >= 0.6.9)
20
20
  minitest (~> 4.2)
21
21
  multi_json (~> 1.3)
22
22
  thread_safe (~> 0.1)
23
23
  tzinfo (~> 0.3.37)
24
- atomic (1.1.14)
24
+ atomic (1.1.16)
25
25
  builder (3.1.4)
26
26
  coderay (1.0.9)
27
27
  diff-lcs (1.2.4)
28
28
  fakeweb (1.3.0)
29
- i18n (0.6.5)
29
+ i18n (0.6.9)
30
30
  metaclass (0.0.1)
31
31
  method_source (0.8.2)
32
32
  minitest (4.7.5)
33
33
  mocha (0.14.0)
34
34
  metaclass (~> 0.0.1)
35
- multi_json (1.8.2)
35
+ multi_json (1.9.2)
36
36
  pry (0.9.12.2)
37
37
  coderay (~> 1.0.5)
38
38
  method_source (~> 0.8)
@@ -51,10 +51,10 @@ GEM
51
51
  diff-lcs (>= 1.1.3, < 2.0)
52
52
  rspec-mocks (2.14.3)
53
53
  slop (3.4.6)
54
- thor (0.18.1)
55
- thread_safe (0.1.3)
56
- atomic
57
- tzinfo (0.3.38)
54
+ thor (0.19.1)
55
+ thread_safe (0.3.1)
56
+ atomic (>= 1.1.7, < 2)
57
+ tzinfo (0.3.39)
58
58
 
59
59
  PLATFORMS
60
60
  ruby
@@ -0,0 +1,11 @@
1
+ # -*- encoding : utf-8 -*-
2
+ module VersacommerceAPI
3
+
4
+ # Account object. Use Account.current to receive the account details.
5
+ class Account < Base
6
+ def self.current
7
+ find(:one, :from => "/api/account.xml")
8
+ end
9
+ end
10
+
11
+ end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module VersacommerceAPI
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.6"
4
4
  end
@@ -1,7 +1,4 @@
1
- <<<<<<< HEAD
2
1
  # -*- encoding : utf-8 -*-
3
- =======
4
- >>>>>>> 14896020a14ac84df4a9646d0aff9843c5ca25a0
5
2
  require 'spec_helper'
6
3
 
7
4
  describe VersacommerceAPI::Order do
data/spec/spec_helper.rb CHANGED
@@ -12,8 +12,8 @@ end
12
12
 
13
13
 
14
14
  def initialize_session
15
- VersacommerceAPI::Session.setup(api_key: "4e6d0a2be244cff731f88caaff45e6ea3d2f9221", secret: "afe883e32194fc464c029e73fe9f3674b6e4996e")
16
- token = "c26a0c74" #VersacommerceAPI::Session.request_token("test-produkte.versacommerce.de")
17
- session = VersacommerceAPI::Session.new("test-produkte.versacommerce.de", token)
15
+ VersacommerceAPI::Session.setup(api_key: "xxxxx", secret: "xxxxx")
16
+ token = "xxxxx" #VersacommerceAPI::Session.request_token("test-produkte.versacommerce.de")
17
+ session = VersacommerceAPI::Session.new("xxxxx.versacommerce.de", token)
18
18
  VersacommerceAPI::Base.activate_session(session)
19
19
  end
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.4
4
+ version: 1.0.6
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-17 00:00:00.000000000 Z
12
+ date: 2014-05-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -186,6 +186,7 @@ files:
186
186
  - lib/versacommerce_api/cli.rb
187
187
  - lib/versacommerce_api/countable.rb
188
188
  - lib/versacommerce_api/resources.rb
189
+ - lib/versacommerce_api/resources/account.rb
189
190
  - lib/versacommerce_api/resources/base.rb
190
191
  - lib/versacommerce_api/resources/billing_addres.rb
191
192
  - lib/versacommerce_api/resources/collection.rb
@@ -230,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
231
  version: '0'
231
232
  requirements: []
232
233
  rubyforge_project:
233
- rubygems_version: 1.8.23
234
+ rubygems_version: 1.8.25
234
235
  signing_key:
235
236
  specification_version: 3
236
237
  summary: The VersaCommerce API gem is a lightweight gem for accessing the VersaCommerce
@@ -239,4 +240,3 @@ test_files:
239
240
  - spec/resources/order_spec.rb
240
241
  - spec/resources/product_spec.rb
241
242
  - spec/spec_helper.rb
242
- has_rdoc: