giddy 0.1.8 → 0.1.9

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- giddy (0.1.8)
4
+ giddy (0.1.9)
5
5
  httparty (>= 0.11.0)
6
6
  json (>= 1.8.0)
7
7
  mechanize (= 2.7.2)
@@ -35,9 +35,8 @@ module Giddy
35
35
  end
36
36
 
37
37
  a.get('http://www.gettyimages.com/account/MediaBin/Default.aspx?ViewBy=0') do |page|
38
- return page.links_with(:id => 'hypMediaBinName').map { |l|
39
- CGI::parse(l.href.split('?')[1])['Id'][0]
40
- }
38
+ links = page.links.map(&:href).select { |href| href.start_with? "/Account/MediaBin/LightboxDetail.aspx" }
39
+ return links.map { |h| CGI::parse(h.split('?')[1])['Id'][0] }
41
40
  end
42
41
  end
43
42
 
@@ -1,3 +1,3 @@
1
1
  module Giddy
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
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.8
4
+ version: 0.1.9
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: 347596975003510370
136
+ hash: -1914547593439743617
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: 347596975003510370
145
+ hash: -1914547593439743617
146
146
  requirements: []
147
147
  rubyforge_project: giddy
148
148
  rubygems_version: 1.8.25