order_cloud 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -0
- data/Gemfile.lock +34 -0
- data/README.md +3 -3
- data/git_push.sh +1 -1
- data/lib/order_cloud/configuration.rb +0 -1
- data/lib/order_cloud/version.rb +1 -1
- data/order_cloud-0.0.2.gem +0 -0
- data/spec/configuration_spec.rb +3 -3
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 250f74731c2d25ffcecea2f0abbe0ec24f5595a8
|
4
|
+
data.tar.gz: 5a09a7e6c7c4923dd9260adb008d21331fb7e5b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4013ace0f650a42cc554889601b42ffbf16ca11898894866e76bb082a9ea776c66a292342302d2e6008f2a63dd2a0891a96e9c7ca9e63577806ab0f487028f5
|
7
|
+
data.tar.gz: f999c9f19d5f8bff2e34951da562dcdb9732febebe3eba1a0389ac75e91c31a58713ef068b2b12c6869cf7d9aefc9eaf02d6256e8046c52350be9fdd1c1bc791
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
diff-lcs (1.2.5)
|
5
|
+
ethon (0.9.0)
|
6
|
+
ffi (>= 1.3.0)
|
7
|
+
ffi (1.9.14)
|
8
|
+
rake (11.2.2)
|
9
|
+
rspec (3.5.0)
|
10
|
+
rspec-core (~> 3.5.0)
|
11
|
+
rspec-expectations (~> 3.5.0)
|
12
|
+
rspec-mocks (~> 3.5.0)
|
13
|
+
rspec-core (3.5.3)
|
14
|
+
rspec-support (~> 3.5.0)
|
15
|
+
rspec-expectations (3.5.0)
|
16
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
17
|
+
rspec-support (~> 3.5.0)
|
18
|
+
rspec-mocks (3.5.0)
|
19
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
20
|
+
rspec-support (~> 3.5.0)
|
21
|
+
rspec-support (3.5.0)
|
22
|
+
typhoeus (1.1.0)
|
23
|
+
ethon (>= 0.9.0)
|
24
|
+
|
25
|
+
PLATFORMS
|
26
|
+
ruby
|
27
|
+
|
28
|
+
DEPENDENCIES
|
29
|
+
rake
|
30
|
+
rspec
|
31
|
+
typhoeus
|
32
|
+
|
33
|
+
BUNDLED WITH
|
34
|
+
1.13.1
|
data/README.md
CHANGED
@@ -9,8 +9,8 @@ OrderCloud - the Ruby gem for the OrderCloud
|
|
9
9
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
10
10
|
|
11
11
|
- API version: 1.0
|
12
|
-
- Package version: 0.0.
|
13
|
-
- Build date: 2016-09-
|
12
|
+
- Package version: 0.0.3
|
13
|
+
- Build date: 2016-09-14T14:59:22.725-05:00
|
14
14
|
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
|
15
15
|
|
16
16
|
For more information, please visit [http://public.four51.com/](http://public.four51.com/)
|
@@ -22,7 +22,7 @@ For more information, please visit [http://public.four51.com/](http://public.fou
|
|
22
22
|
|
23
23
|
Add this line to your `Gemfile`:
|
24
24
|
|
25
|
-
gem 'order_cloud', '~> 0.0.
|
25
|
+
gem 'order_cloud', '~> 0.0.3'
|
26
26
|
|
27
27
|
Or run this in your terminal:
|
28
28
|
```shell
|
data/git_push.sh
CHANGED
@@ -33,7 +33,7 @@ if [ "$git_repo_id" = "" ]; then
|
|
33
33
|
fi
|
34
34
|
|
35
35
|
if [ "$release_note" = "" ]; then
|
36
|
-
release_note="
|
36
|
+
release_note="Bumped gem version to 0.0.3"
|
37
37
|
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
38
38
|
fi
|
39
39
|
|
@@ -35,7 +35,6 @@ module OrderCloud
|
|
35
35
|
def impersonating?
|
36
36
|
!@impersonation_token.empty?
|
37
37
|
end
|
38
|
-
u will need to provide the ClientID which identifies the Organization or Buyer Company you will be interacting with. The ClientID can be found in the application tab of your Dashboard. Check out this guide for more information. Once you have the ClientID you can configure it with the following function.
|
39
38
|
|
40
39
|
# Returns the appropriate token
|
41
40
|
def get_access_token
|
data/lib/order_cloud/version.rb
CHANGED
Binary file
|
data/spec/configuration_spec.rb
CHANGED
@@ -27,10 +27,10 @@ describe OrderCloud::Configuration do
|
|
27
27
|
let(:config) { OrderCloud::Configuration.default }
|
28
28
|
let(:impersonation_token) { 'sI3PGLztu7HXfLoHobb9' }
|
29
29
|
let(:access_token) { 'HteOBUPWe7ccTSpQKLVC' }
|
30
|
-
|
30
|
+
|
31
31
|
before(:each) do
|
32
32
|
OrderCloud::Configuration.reset
|
33
|
-
require '
|
33
|
+
require 'uri'
|
34
34
|
uri = URI.parse("https://api.ordercloud.io/v1")
|
35
35
|
OrderCloud.configure do |c|
|
36
36
|
c.host = uri.host
|
@@ -52,7 +52,7 @@ describe OrderCloud::Configuration do
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
end
|
55
|
-
|
55
|
+
|
56
56
|
describe '#get_access_token' do
|
57
57
|
it 'returns the access_token if not impersonating' do
|
58
58
|
config.access_token = access_token
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: order_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Le Cam
|
@@ -211,6 +211,8 @@ executables: []
|
|
211
211
|
extensions: []
|
212
212
|
extra_rdoc_files: []
|
213
213
|
files:
|
214
|
+
- Gemfile
|
215
|
+
- Gemfile.lock
|
214
216
|
- LICENSE
|
215
217
|
- README.md
|
216
218
|
- Rakefile
|
@@ -471,6 +473,7 @@ files:
|
|
471
473
|
- lib/order_cloud/models/web_hook_route.rb
|
472
474
|
- lib/order_cloud/models/xp_index.rb
|
473
475
|
- lib/order_cloud/version.rb
|
476
|
+
- order_cloud-0.0.2.gem
|
474
477
|
- order_cloud.gemspec
|
475
478
|
- spec/api/address_api_spec.rb
|
476
479
|
- spec/api/admin_address_api_spec.rb
|