apple_epf 1.0.2 → 1.0.3

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.
@@ -6,7 +6,7 @@ require 'digest/md5'
6
6
  module AppleEpf
7
7
  class Downloader
8
8
  include AppleEpf::Logging
9
- ITUNES_FLAT_FEED_URL = 'http://feeds.itunes.apple.com/feeds/epf/v3/full'.freeze
9
+ ITUNES_FLAT_FEED_URL = 'https://feeds.itunes.apple.com/feeds/epf/v3/full'.freeze
10
10
 
11
11
  attr_accessor :type, :filename, :filedate
12
12
 
@@ -96,7 +96,7 @@ module AppleEpf
96
96
  end
97
97
 
98
98
  def self.current_url
99
- 'http://feeds.itunes.apple.com/feeds/epf/v3/full/current/incremental/current'
99
+ 'https://feeds.itunes.apple.com/feeds/epf/v3/full/current/incremental/current'
100
100
  end
101
101
  end
102
102
 
@@ -108,7 +108,7 @@ module AppleEpf
108
108
  end
109
109
 
110
110
  def self.current_url
111
- 'http://feeds.itunes.apple.com/feeds/epf/v3/full/current'
111
+ 'https://feeds.itunes.apple.com/feeds/epf/v3/full/current'
112
112
  end
113
113
  end
114
114
 
@@ -1,3 +1,3 @@
1
1
  module AppleEpf
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -142,7 +142,7 @@ describe AppleEpf::Downloader do
142
142
  downloader.stub(:file_exists?){ file_exists }
143
143
  downloader.stub(:start_download)
144
144
  downloader.download
145
- downloader.apple_filename_full.should eq("http://feeds.itunes.apple.com/feeds/epf/v3/full/20130116/incremental/20130121/popularity20130121.tbz")
145
+ downloader.apple_filename_full.should eq("https://feeds.itunes.apple.com/feeds/epf/v3/full/20130116/incremental/20130121/popularity20130121.tbz")
146
146
  end
147
147
 
148
148
  it "should properly set local file to store file in" do
@@ -153,7 +153,7 @@ describe AppleEpf::Downloader do
153
153
  end
154
154
 
155
155
  it "should download and save file" do
156
- stub_request(:get, "http://test:test@feeds.itunes.apple.com/feeds/epf/v3/full/20130123/popularity20130123.tbz").
156
+ stub_request(:get, "https://test:test@feeds.itunes.apple.com/feeds/epf/v3/full/20130123/popularity20130123.tbz").
157
157
  to_return(:status => 200, :body => "Test\nWow", :headers => {})
158
158
 
159
159
  downloader = AppleEpf::Downloader.new('full', file, filedate)
@@ -185,10 +185,10 @@ describe AppleEpf::Downloader do
185
185
  downloader.unstub(:download_and_compare_md5_checksum)
186
186
  end
187
187
  it "should raise exception if md5 file does not match real md5 checksum of file" do
188
- stub_request(:get, "http://test:test@feeds.itunes.apple.com/feeds/epf/v3/full/20130116/incremental/20130121/popularity20130121.tbz").
188
+ stub_request(:get, "https://test:test@feeds.itunes.apple.com/feeds/epf/v3/full/20130116/incremental/20130121/popularity20130121.tbz").
189
189
  to_return(:status => 200, :body => "Test\nWow", :headers => {})
190
190
 
191
- stub_request(:get, "http://test:test@feeds.itunes.apple.com/feeds/epf/v3/full/20130116/incremental/20130121/popularity20130121.tbz.md5").
191
+ stub_request(:get, "https://test:test@feeds.itunes.apple.com/feeds/epf/v3/full/20130116/incremental/20130121/popularity20130121.tbz.md5").
192
192
  to_return(:status => 200, :body => "tupo", :headers => {})
193
193
 
194
194
  downloader.stub(:file_exists?){ file_exists }
@@ -200,10 +200,10 @@ describe AppleEpf::Downloader do
200
200
  end
201
201
 
202
202
  it "should not raise exception if md5 is ok" do
203
- stub_request(:get, "http://test:test@feeds.itunes.apple.com/feeds/epf/v3/full/20130116/incremental/20130121/popularity20130121.tbz").
203
+ stub_request(:get, "https://test:test@feeds.itunes.apple.com/feeds/epf/v3/full/20130116/incremental/20130121/popularity20130121.tbz").
204
204
  to_return(:status => 200, :body => "Test\nWow", :headers => {})
205
205
 
206
- stub_request(:get, "http://test:test@feeds.itunes.apple.com/feeds/epf/v3/full/20130116/incremental/20130121/popularity20130121.tbz.md5").
206
+ stub_request(:get, "https://test:test@feeds.itunes.apple.com/feeds/epf/v3/full/20130116/incremental/20130121/popularity20130121.tbz.md5").
207
207
  to_return(:status => 200, :body => "MD5 (popularity20130116.tbz) = 0371a79664856494e840af9e1e6c0152\n", :headers => {})
208
208
 
209
209
 
@@ -156,7 +156,7 @@ describe AppleEpf::Main do
156
156
  let(:filename) { apple_epf_filename('current_full_list.html') }
157
157
 
158
158
  it "should return hash of avaliable files" do
159
- stub_request(:get, "http://test:test@feeds.itunes.apple.com/feeds/epf/v3/full/current").
159
+ stub_request(:get, "https://test:test@feeds.itunes.apple.com/feeds/epf/v3/full/current").
160
160
  to_return(:status => 200, :body => File.read(filename), :headers => {})
161
161
 
162
162
  list = {
@@ -174,7 +174,7 @@ describe AppleEpf::Main do
174
174
  let(:filename) { apple_epf_filename('current_inc_list.html') }
175
175
 
176
176
  it "should return hash of avaliable files" do
177
- stub_request(:get, "http://test:test@feeds.itunes.apple.com/feeds/epf/v3/full/current/incremental/current").
177
+ stub_request(:get, "https://test:test@feeds.itunes.apple.com/feeds/epf/v3/full/current/incremental/current").
178
178
  to_return(:status => 200, :body => File.read(filename), :headers => {})
179
179
 
180
180
  list = {"itunes"=>"20130205", "match"=>"20130205", "popularity"=>"20130205", "pricing"=>"20130205"}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apple_epf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -221,7 +221,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
221
221
  version: '0'
222
222
  segments:
223
223
  - 0
224
- hash: 388738391219487740
224
+ hash: 1456211595176392472
225
225
  required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  none: false
227
227
  requirements:
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  version: '0'
231
231
  segments:
232
232
  - 0
233
- hash: 388738391219487740
233
+ hash: 1456211595176392472
234
234
  requirements: []
235
235
  rubyforge_project:
236
236
  rubygems_version: 1.8.23