giddy 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/giddy/client.rb +5 -3
- data/lib/giddy/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/lib/giddy/client.rb
CHANGED
@@ -30,15 +30,17 @@ module Giddy
|
|
30
30
|
Search.new(@mediator).search_for_images(attrs)
|
31
31
|
end
|
32
32
|
|
33
|
-
def lightboxes(count=
|
33
|
+
def lightboxes(count=20, start=1)
|
34
34
|
attrs = {
|
35
35
|
:ResultsViewOptions => { :ItemCount => count, :ItemStartNumber => start }
|
36
36
|
}
|
37
37
|
LightboxHeaders.new(@mediator).get_lightbox_headers(attrs)
|
38
38
|
end
|
39
39
|
|
40
|
-
def get_lightbox(id)
|
41
|
-
|
40
|
+
def get_lightbox(id, count=20, start=1)
|
41
|
+
# Yes, this just returns info for a lightbox, but you can control the list of images
|
42
|
+
# in this lightbox with the pagination parameters
|
43
|
+
attrs = { :LightboxId => id, :LightboxItemsViewOptions => { :ItemCount => count, :ItemStartNumber => start } }
|
42
44
|
LightboxHeaders.new(@mediator).get_lightbox(attrs)
|
43
45
|
end
|
44
46
|
|
data/lib/giddy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: giddy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
@@ -133,7 +133,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: '0'
|
134
134
|
segments:
|
135
135
|
- 0
|
136
|
-
hash:
|
136
|
+
hash: 1191882070586325070
|
137
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
segments:
|
144
144
|
- 0
|
145
|
-
hash:
|
145
|
+
hash: 1191882070586325070
|
146
146
|
requirements: []
|
147
147
|
rubyforge_project: giddy
|
148
148
|
rubygems_version: 1.8.25
|