hubs3d 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b984a6af7ce4d5ac992157348261ed66441d5a1
4
- data.tar.gz: b203fda414d4590c8ff2c4cd847ce8e55020356f
3
+ metadata.gz: 76dc522244aaa8c93e15acf0b9751ebfd7ac8a3d
4
+ data.tar.gz: 3a9d47138db23fb0b2a84d30aab07bf6f9aaa8a1
5
5
  SHA512:
6
- metadata.gz: 11e09f5c6847ea09e86428b7345b736c8d20cfcc922e08c3d97a67308d508c918b884e5d0f263435dcdaa11283777c35d579d76a6eb711448b22fc72b5bb70e6
7
- data.tar.gz: 7a7abc828b13b019d04f7c95ea28378f65d16e38b8bb913b87083a9971f9c11fe41602abcc6f093e2cd65a7fc283ee0d3fea8eac5ec12371084276328474eda9
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 # => "http://3dhubs.com/…"
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
- $ bundle exec rspec
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
- require "rake/testtask"
6
- Rake::TestTask.new do |t|
7
- t.libs << "spec"
8
- t.test_files = Dir.glob("spec/**/*_spec.rb")
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: :test
11
+ task default: :spec
data/lib/hubs3d.rb CHANGED
@@ -1,3 +1,4 @@
1
1
  require "hubs3d/version"
2
2
  require "hubs3d/model"
3
3
  require "hubs3d/cart"
4
+ require "hubs3d/tip"
@@ -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 = "http://test.3dhubs.com"
12
+ @api_site = "https://www.3dhubs.com"
12
13
  @api_path = "/api/v1"
13
14
  end
14
15
  end
@@ -1,3 +1,3 @@
1
1
  module Hubs3D
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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, "http://test.3dhubs.com/api/v1/some/path")
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.0
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 00:00:00.000000000 Z
11
+ date: 2015-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client