dawanda_client 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/dawanda_client.gemspec +2 -2
- data/lib/dawanda/pinboard.rb +1 -1
- data/lib/dawanda/product.rb +12 -7
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/dawanda_client.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dawanda_client}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["DaWanda GmbH"]
|
12
|
-
s.date = %q{2010-05-
|
12
|
+
s.date = %q{2010-05-19}
|
13
13
|
s.description = %q{Provides a friendly ruby-like interface to the Dawanda API}
|
14
14
|
s.email = %q{api@dawanda.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/dawanda/pinboard.rb
CHANGED
data/lib/dawanda/product.rb
CHANGED
@@ -35,7 +35,7 @@ module Dawanda
|
|
35
35
|
attribute :user_id, [ :user => :id ]
|
36
36
|
|
37
37
|
attributes :id, :name, :description, :created_at, :view_count, :tags,
|
38
|
-
:ending, :quantity, :materials, :price, :restful_path, :product_url, :
|
38
|
+
:ending, :quantity, :materials, :price, :restful_path, :product_url, :default_image, :user
|
39
39
|
|
40
40
|
# Time that this product was created
|
41
41
|
#
|
@@ -60,12 +60,17 @@ module Dawanda
|
|
60
60
|
params.update(:keyword => keyword)
|
61
61
|
self.find_all_by_hex_search(color, params)
|
62
62
|
end
|
63
|
-
|
64
|
-
#
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
63
|
+
|
64
|
+
# backward compatability, remove at next major version bump
|
65
|
+
def images
|
66
|
+
warn 'Deprecation Warning: please use the new default_image()-method'
|
67
|
+
[
|
68
|
+
{
|
69
|
+
'image_80x80' => default_image['thumb'],
|
70
|
+
'image_160x120' => default_image['listview'],
|
71
|
+
'image_800x600' => default_image['big']
|
72
|
+
}
|
73
|
+
]
|
69
74
|
end
|
70
75
|
|
71
76
|
def category(params = {})
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 2
|
9
|
+
version: 0.2.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- DaWanda GmbH
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-19 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|