Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: dave5/ponoko
base: 94a6300cd3
...
head fork: dave5/ponoko
compare: 82b16e5800
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Commits on Mar 27, 2012
@hmaddocks hmaddocks Merge pull request #2 from dave5/master
Fixed handling of materials
10df544
Commits on Mar 28, 2012
@dave5 added :units, :bounding_box, :volume to Design to match API v 2.2 and…
… v 2.3 data
82b16e5
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/ponoko/ponoko.rb
  2. +1 −1  lib/ponoko/ponoko_api.rb
View
4 lib/ponoko/ponoko.rb
@@ -64,7 +64,7 @@ def self.with_handle_error
class Product < Base
attr_accessor :name, :description, :materials_available, :locked, :total_make_cost,
- :node_key, :hardware
+ :node_key, :hardware, :urls
attr_reader :designs, :design_images, :hardware, :assembly_instructions
private :total_make_cost, :locked
@@ -201,7 +201,7 @@ def total_cost
end
class Design < Base
- attr_accessor :make_cost, :material_key, :design_file, :filename, :size, :quantity
+ attr_accessor :make_cost, :material_key, :design_file, :filename, :size, :quantity, :units, :bounding_box, :volume
attr_accessor :content_type
attr_reader :material
View
2  lib/ponoko/ponoko_api.rb
@@ -269,9 +269,9 @@ def post path, params, multipart = false
http = Net::HTTP.new(@base_uri.host, @base_uri.port)
- http.use_ssl = true if @base_uri.port == 443
request = Net::HTTP::Post.new(command)
+ http.use_ssl = true if @base_uri.port == 443
http.read_timeout = 3600
http.open_timeout = 3600

No commit comments for this range

Something went wrong with that request. Please try again.