dawanda_client 0.1.6 → 0.1.7
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.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/dawanda_client.gemspec +2 -2
- data/lib/dawanda/channel.rb +5 -0
- data/lib/dawanda/shop.rb +4 -0
- metadata +2 -2
data/Rakefile
CHANGED
@@ -35,7 +35,7 @@ begin
|
|
35
35
|
Jeweler::Tasks.new do |gemspec|
|
36
36
|
gemspec.name = "dawanda_client"
|
37
37
|
gemspec.summary = "Provides a friendly ruby-like interface to the Dawanda API"
|
38
|
-
gemspec.description = "
|
38
|
+
gemspec.description = "Provides a friendly ruby-like interface to the Dawanda API"
|
39
39
|
gemspec.email = 'info@christophbuente.de'
|
40
40
|
gemspec.homepage = "http://github.com/dawanda/dawanda_client"
|
41
41
|
gemspec.authors = ['Christoph Bünte']
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.7
|
data/dawanda_client.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dawanda_client}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Christoph B\303\274nte"]
|
12
12
|
s.date = %q{2009-10-13}
|
13
|
-
s.description = %q{
|
13
|
+
s.description = %q{Provides a friendly ruby-like interface to the Dawanda API}
|
14
14
|
s.email = %q{info@christophbuente.de}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
data/lib/dawanda/channel.rb
CHANGED
@@ -14,6 +14,7 @@ module Dawanda
|
|
14
14
|
|
15
15
|
include Dawanda::Model
|
16
16
|
|
17
|
+
finder :all, '/:method'
|
17
18
|
finder :one, '/channels/:channel_id'
|
18
19
|
|
19
20
|
attributes :id, :name
|
@@ -22,5 +23,9 @@ module Dawanda
|
|
22
23
|
def categories(params = {})
|
23
24
|
@categories ||= Category.find_all_by_channel_id(id, params)
|
24
25
|
end
|
26
|
+
|
27
|
+
def self.all(params = {})
|
28
|
+
find_all_by_method('channels')
|
29
|
+
end
|
25
30
|
end
|
26
31
|
end
|
data/lib/dawanda/shop.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dawanda_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Christoph B\xC3\xBCnte"
|
@@ -13,7 +13,7 @@ date: 2009-10-13 00:00:00 +02:00
|
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description:
|
16
|
+
description: Provides a friendly ruby-like interface to the Dawanda API
|
17
17
|
email: info@christophbuente.de
|
18
18
|
executables: []
|
19
19
|
|