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 CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -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.1"
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-03}
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 = [
@@ -15,7 +15,7 @@ module Dawanda
15
15
  finder :one, '/pinboards/:id'
16
16
  finder :all, '/users/:user_id/pinboards'
17
17
 
18
- attributes :id, :name, :description
18
+ attributes :id, :name, :description, :user
19
19
 
20
20
  def products(params = {})
21
21
  Product.find_all_by_pinboard_id(id, params)
@@ -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, :images, :default_image, :user
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
- # The primary image for this product. See Dawanda::Image for more
65
- # information
66
- #
67
- def image_25x25
68
- images.first['image_25x25']
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
- - 1
9
- version: 0.2.1
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-03 00:00:00 +02:00
17
+ date: 2010-05-19 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency