giddy 0.1.7 → 0.1.8

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.7)
4
+ giddy (0.1.8)
5
5
  httparty (>= 0.11.0)
6
6
  json (>= 1.8.0)
7
7
  mechanize (= 2.7.2)
@@ -11,6 +11,8 @@ module Giddy
11
11
  def search(attrs)
12
12
  if attrs.has_key?(:image_id) and attrs.keys.length == 1
13
13
  return Search.new(@mediator).get_image_details(attrs[:image_id]).first
14
+ elsif attrs.has_key?(:image_ids) and attrs.keys.length == 1
15
+ return Search.new(@mediator).get_image_details(attrs[:image_ids])
14
16
  end
15
17
 
16
18
  attrs = {
@@ -6,7 +6,8 @@ module Giddy
6
6
  end
7
7
 
8
8
  def images
9
- lightbox_items
9
+ image_ids = lightbox_items.map { |img| img[:asset_id] }
10
+ Search.new(@mediator).get_image_details(image_ids)
10
11
  end
11
12
 
12
13
  def method_missing(method, *args, &block)
@@ -1,3 +1,3 @@
1
1
  module Giddy
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
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.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -133,7 +133,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
133
  version: '0'
134
134
  segments:
135
135
  - 0
136
- hash: 89806422720793203
136
+ hash: 347596975003510370
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: 89806422720793203
145
+ hash: 347596975003510370
146
146
  requirements: []
147
147
  rubyforge_project: giddy
148
148
  rubygems_version: 1.8.25