ngpod_scraper 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OThlODA2OWE5NzRmMzczZjJlZmZkMWIxMjM0ZDE2NTEyMjg0MzNlMw==
5
+ data.tar.gz: !binary |-
6
+ NzhhYTU1NGQxYWM5YjM5NWY2MTAzYmE5OTM1ODQxMDMyNTk1MjIwNg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ OTdjOGEyOWVhYTBiNWQyOWFkOWY4ZDM3YjBiMWY0MTMzYzAxODBiOGEyMzYw
10
+ ZGU0NWQ2ZDk1NjY3ZTEwNWI2NWY3NTc2YmZhZDNiOTUwNDZhMjc5MzM5OWFl
11
+ ZGQ0MjBiMzgxNDgxNDhiNGM5MTVjODJjOTExNTJjM2EyMzI3NzE=
12
+ data.tar.gz: !binary |-
13
+ NjI0NjQ5MGVkMDY0YzA1NzM4ZDk1MGM3NjA3N2JkMDU1OTMzMzkyNzcwNGQ0
14
+ MWYyNTk1M2UxMTg2MjYwMmQ1Y2QyMDdiM2EyYmRmNDYwOTg3Y2FmZmQyZTYx
15
+ MzY2NmRkMGIzNDQ2YjQ4MWEzOTk5OGY1YTUwMWExNjQ0OGU1NTM=
@@ -16,7 +16,7 @@ module NgpodScraper
16
16
  def photo_url
17
17
  page = Nokogiri::HTML(open(url))
18
18
  begin
19
- page.search(".primary_photo img").attr('src').value
19
+ "http:#{page.search(".primary_photo img").attr('src').value}"
20
20
  rescue Exception => e
21
21
  raise MissingPhotoUrl, "Cannot find the photo url: #{e.message}"
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module NgpodScraper
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
 
21
21
  # specify any dependencies here; for example:
22
22
  s.add_development_dependency "fakeweb", "~> 1.2.8"
23
- s.add_development_dependency "rspec", "~> 1.3.0"
23
+ s.add_development_dependency "rspec", "~> 2.14.1"
24
24
 
25
25
  s.add_runtime_dependency "nokogiri", ">= 1.4.2"
26
26
  s.add_runtime_dependency "pow", ">= 0.2.3"
@@ -705,7 +705,7 @@
705
705
  <a href="/photography/photo-of-the-day/hong-kong-cityscape/" title="Go to the previous Photo of the Day">
706
706
 
707
707
 
708
- <img src="http://s.ngeo.com/wpf/media-live/photos/000/210/cache/istiqlal-mosque-jakarta_21078_990x742.jpg" width="989" height="742" alt="Photo: Muslims praying in a temple" />
708
+ <img src="//s.ngeo.com/wpf/media-live/photos/000/210/cache/istiqlal-mosque-jakarta_21078_990x742.jpg" width="989" height="742" alt="Photo: Muslims praying in a temple" />
709
709
 
710
710
 
711
711
  </a>
metadata CHANGED
@@ -1,134 +1,112 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ngpod_scraper
3
- version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - George Mendoza
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-12-04 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2014-02-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: fakeweb
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
26
17
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 15
29
- segments:
30
- - 1
31
- - 2
32
- - 8
18
+ - !ruby/object:Gem::Version
33
19
  version: 1.2.8
34
20
  type: :development
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: rspec
38
21
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 1.2.8
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
42
31
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 27
45
- segments:
46
- - 1
47
- - 3
48
- - 0
49
- version: 1.3.0
32
+ - !ruby/object:Gem::Version
33
+ version: 2.14.1
50
34
  type: :development
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: nokogiri
54
35
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 3
61
- segments:
62
- - 1
63
- - 4
64
- - 2
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 2.14.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: nokogiri
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
65
47
  version: 1.4.2
66
48
  type: :runtime
67
- version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: pow
70
49
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- hash: 17
77
- segments:
78
- - 0
79
- - 2
80
- - 3
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: 1.4.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: pow
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
81
61
  version: 0.2.3
82
62
  type: :runtime
83
- version_requirements: *id004
84
- - !ruby/object:Gem::Dependency
85
- name: rmagick
86
63
  prerelease: false
87
- requirement: &id005 !ruby/object:Gem::Requirement
88
- none: false
89
- requirements:
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- hash: 57
93
- segments:
94
- - 2
95
- - 13
96
- - 1
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: 0.2.3
69
+ - !ruby/object:Gem::Dependency
70
+ name: rmagick
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
97
75
  version: 2.13.1
98
76
  type: :runtime
99
- version_requirements: *id005
100
- - !ruby/object:Gem::Dependency
101
- name: valuable
102
77
  prerelease: false
103
- requirement: &id006 !ruby/object:Gem::Requirement
104
- none: false
105
- requirements:
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- hash: 59
109
- segments:
110
- - 0
111
- - 8
112
- - 2
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: 2.13.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: valuable
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
113
89
  version: 0.8.2
114
90
  type: :runtime
115
- version_requirements: *id006
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: 0.8.2
116
97
  description: A tool for scraping National Geographic's Photo of the Day
117
- email:
98
+ email:
118
99
  - gsmendoza@gmail.com
119
- executables:
100
+ executables:
120
101
  - ngpod_scraper
121
102
  extensions: []
122
-
123
103
  extra_rdoc_files: []
124
-
125
- files:
104
+ files:
126
105
  - .gitignore
127
106
  - Gemfile
128
107
  - LICENSE
129
108
  - README.markdown
130
109
  - Rakefile
131
- - VERSION
132
110
  - bin/ngpod_scraper
133
111
  - lib/ngpod_scraper.rb
134
112
  - lib/ngpod_scraper/client.rb
@@ -148,36 +126,26 @@ files:
148
126
  - spec/spec_helper.rb
149
127
  homepage: http://github.com/gsmendoza/ngpod_scraper
150
128
  licenses: []
151
-
129
+ metadata: {}
152
130
  post_install_message:
153
131
  rdoc_options: []
154
-
155
- require_paths:
132
+ require_paths:
156
133
  - lib
157
- required_ruby_version: !ruby/object:Gem::Requirement
158
- none: false
159
- requirements:
160
- - - ">="
161
- - !ruby/object:Gem::Version
162
- hash: 3
163
- segments:
164
- - 0
165
- version: "0"
166
- required_rubygems_version: !ruby/object:Gem::Requirement
167
- none: false
168
- requirements:
169
- - - ">="
170
- - !ruby/object:Gem::Version
171
- hash: 3
172
- segments:
173
- - 0
174
- version: "0"
134
+ required_ruby_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ! '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ! '>='
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
175
144
  requirements: []
176
-
177
145
  rubyforge_project: ngpod_scraper
178
- rubygems_version: 1.8.10
146
+ rubygems_version: 2.1.11
179
147
  signing_key:
180
- specification_version: 3
148
+ specification_version: 4
181
149
  summary: National Geographic Photo of the Day Screen Scraper
182
150
  test_files: []
183
-
151
+ has_rdoc:
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.1.0