giddy 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- giddy (0.1.9)
4
+ giddy (0.1.10)
5
5
  httparty (>= 0.11.0)
6
6
  json (>= 1.8.0)
7
7
  mechanize (= 2.7.2)
@@ -30,15 +30,17 @@ module Giddy
30
30
  Search.new(@mediator).search_for_images(attrs)
31
31
  end
32
32
 
33
- def lightboxes(count=1, start=1)
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
- attrs = { :LightboxId => id, :LightboxItemsViewOptions => { :ItemCount => 100, :ItemStartNumber => 1 } }
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
 
@@ -1,3 +1,3 @@
1
1
  module Giddy
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
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.9
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-09 00:00:00.000000000 Z
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: -1914547593439743617
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: -1914547593439743617
145
+ hash: 1191882070586325070
146
146
  requirements: []
147
147
  rubyforge_project: giddy
148
148
  rubygems_version: 1.8.25