makeprintable 1.0.0 → 1.0.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 +2 -7
- data/lib/makeprintable/client/jobs.rb +1 -1
- data/lib/makeprintable/version.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: 0edb4ffa7d7878660aaac9e4ed579af0807dca34
|
|
4
|
+
data.tar.gz: 07aeecde2fb4b11b07e3693feb8c9627d7a100ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ba5b2c0e0c073939c1f869871d8926c416c600e944a93eb7e17a61431787d9fd7a40b062186e0fa411632ed7503ebc36576083448297c6a2cc311328d2d5f61
|
|
7
|
+
data.tar.gz: 72affd6df0f3fa7b92a9ba43b7adf17cbfc3f2d79f8fd40ace94609c2d1d550abd8c38b82f90e8ab707a054f1b6c03b8a008ebe434fe8b581b2f0179f67f9a58
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Sign up for your api credentials at: https://makeprintable.com/site/login
|
|
|
7
7
|
|
|
8
8
|
Add this line to your application's Gemfile:
|
|
9
9
|
|
|
10
|
-
gem ‘makeprintable
|
|
10
|
+
gem ‘makeprintable’, '~> 1.0.1'
|
|
11
11
|
|
|
12
12
|
And then execute:
|
|
13
13
|
|
|
@@ -22,7 +22,6 @@ Create a new initializer: (config/initializers/makeprintable.rb)
|
|
|
22
22
|
|
|
23
23
|
MakePrintable.configure do |config|
|
|
24
24
|
config.api_key = ENV[‘makeprintable_api_key’]
|
|
25
|
-
config.api_secret = ENV[‘makeprintable_api_secret’]
|
|
26
25
|
end
|
|
27
26
|
|
|
28
27
|
|
|
@@ -46,13 +45,9 @@ For the official documentation please refer to: https://makeprintable.com/page/3
|
|
|
46
45
|
client = MakePrintable::Client.new
|
|
47
46
|
client.delete_item(item_id)
|
|
48
47
|
|
|
49
|
-
# Delete a specific item from server.
|
|
50
|
-
client = MakePrintable::Client.new
|
|
51
|
-
client.delete_item(item_id)
|
|
52
|
-
|
|
53
48
|
# Repair an uploaded item
|
|
54
49
|
client = MakePrintable::Client.new
|
|
55
|
-
client.repair(item_id: item_id, callback_url: ‘optional_url’, name: ‘model_name’, wall_thickness: 1, print_quality: [‘standard’, ‘prototype’, ‘high’], pre_optimize: [0,99], post_optimize: [0,99])
|
|
50
|
+
client.repair(item_id: item_id, callback_url: ‘optional_url’, name: ‘model_name’, wall_thickness: 1, print_quality: [‘standard’, ‘prototype’, ‘high’], pre_optimize: [0,99], post_optimize: [0,99], secure: [0|1])
|
|
56
51
|
|
|
57
52
|
# Returns repair information for a specific repair request, including status, progress and download links.
|
|
58
53
|
client = MakePrintable::Client.new
|
|
@@ -23,7 +23,7 @@ module MakePrintable
|
|
|
23
23
|
|
|
24
24
|
# Repairs an uploaded item
|
|
25
25
|
def repair(opts={})
|
|
26
|
-
opts.assert_valid_keys(:item_id, :callback_url, :name, :wall_thickness, :print_quality, :pre_optimize, :post_optimize)
|
|
26
|
+
opts.assert_valid_keys(:item_id, :callback_url, :name, :wall_thickness, :print_quality, :pre_optimize, :post_optimize, :secure)
|
|
27
27
|
post_request '/fixes', opts
|
|
28
28
|
end
|
|
29
29
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: makeprintable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dennis de Vulder
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-07-
|
|
11
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|