hubs3d 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/Rakefile +5 -5
- data/lib/hubs3d.rb +1 -0
- data/lib/hubs3d/configuration.rb +2 -1
- data/lib/hubs3d/version.rb +1 -1
- data/spec/api_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76dc522244aaa8c93e15acf0b9751ebfd7ac8a3d
|
4
|
+
data.tar.gz: 3a9d47138db23fb0b2a84d30aab07bf6f9aaa8a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d5b0196bbf9d80265ccc044c82dcaf28d0bccbae780f165b2bdea6a84aa50cc7fc60fa1b38709040ecb50563d1b2ae3ecc033d5ee4dcf06da6e1ce8025d89a0
|
7
|
+
data.tar.gz: 09ef4512c515cb38f6af80bbfe6ee324bd31ca51fbd07d73dba1d5bb44232f471de2e3aa23732532d6d0bbecb6a0b70f0b56176f8660f82a66d8581a0728b3ab
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ model.id # => 42
|
|
18
18
|
# Create a cart and get its url
|
19
19
|
cart = Hubs3D::Cart.new
|
20
20
|
cart << model
|
21
|
-
cart.url # => "
|
21
|
+
cart.url # => "https://www.3dhubs.com/…"
|
22
22
|
```
|
23
23
|
|
24
24
|
Install
|
@@ -37,7 +37,7 @@ Development
|
|
37
37
|
To launch specs:
|
38
38
|
|
39
39
|
```sh
|
40
|
-
$
|
40
|
+
$ rake
|
41
41
|
```
|
42
42
|
|
43
43
|
|
@@ -51,4 +51,5 @@ licensed under the MIT License.
|
|
51
51
|
See also
|
52
52
|
--------
|
53
53
|
|
54
|
+
- http://docs.3dhubs.apiary.io/
|
54
55
|
- https://bitbucket.org/bram_rongen/hubs3d_api_example
|
data/Rakefile
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
require "bundler/gem_tasks"
|
3
3
|
|
4
4
|
# Specs
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
begin
|
6
|
+
require "rspec/core/rake_task"
|
7
|
+
RSpec::Core::RakeTask.new(:spec)
|
8
|
+
rescue LoadError
|
9
9
|
end
|
10
10
|
|
11
|
-
task default: :
|
11
|
+
task default: :spec
|
data/lib/hubs3d.rb
CHANGED
data/lib/hubs3d/configuration.rb
CHANGED
@@ -4,11 +4,12 @@ module Hubs3D
|
|
4
4
|
class Configuration
|
5
5
|
attr_accessor :oauth_key
|
6
6
|
attr_accessor :oauth_secret
|
7
|
+
|
7
8
|
attr_accessor :api_site
|
8
9
|
attr_accessor :api_path
|
9
10
|
|
10
11
|
def initialize
|
11
|
-
@api_site = "
|
12
|
+
@api_site = "https://www.3dhubs.com"
|
12
13
|
@api_path = "/api/v1"
|
13
14
|
end
|
14
15
|
end
|
data/lib/hubs3d/version.rb
CHANGED
data/spec/api_spec.rb
CHANGED
@@ -3,7 +3,7 @@ require "spec_helper"
|
|
3
3
|
describe Hubs3D::API do
|
4
4
|
describe ".post" do
|
5
5
|
it "posts" do
|
6
|
-
stub_request(:post, "
|
6
|
+
stub_request(:post, "https://www.3dhubs.com/api/v1/some/path")
|
7
7
|
.with(body: { "foo" => "bar" },
|
8
8
|
headers: {
|
9
9
|
'Accept' => 'application/json',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hubs3d
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sunny Ripert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|