flickr_airlift 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDI3NzFmMzg3YjUxNDEyNDQ1MmIzMjQ3M2Q2YjU0MGRkOWViYWY5ZA==
4
+ NjFlZjNkOTAyNGZmNTk5NGM3MTkzZGM3MzcyZWRjMGVhZGZhY2I4NA==
5
5
  data.tar.gz: !binary |-
6
- OGJiOGU3ZmM1ZWNjOGEwNzAxN2U0YTJkYzU4MGM1MTY1MDcwNWQzZg==
6
+ ODlhOTgwOTZiMTU4NjA2OTk5MWQ0YmIyZGU2MmUwMGIwMTRlNmQzNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjM5ZjFlYTM4MTQwZWNkNmNmMDBjYmM5YTQwYTY1YTczNjUwYmU3Y2UwZThm
10
- ODhkNTc3MDQwNWZjODdlMTBmNDQ1ZWRiMTE1ZjQwZmY1NWIzOGU3YzllNmI0
11
- YzI1NmZiMGRiN2M5ZWM5MjkwNGYxNTgzODI5M2JkMjE3MzNlNWI=
9
+ NWRlZmY2YmI0MDYwOTdkMWJmN2RhMDlmYjU1NzdhZjc5NzI0N2U5YTVjNzcy
10
+ NGE4NjJlYjQwMWMyNjc3YTRkOGUwOWFhMjdhNTc1ODU2ZGQzNDBkZWExYWVl
11
+ YTdjNWExNjQyMmRiZDZjYmVlYzc3ZWY4ZmUyZWY1ZGEyODRkZGI=
12
12
  data.tar.gz: !binary |-
13
- ODYzMWE1Njc3MTRjMDdjNzlkY2RkNThmNTRjOTMxN2ZmNzhiMTgwYmU1YTg0
14
- N2U4YTEwNzFkM2VmOGE0NjQ4YzE0ZjY1ZWMxNWM5N2RlMDgyMWEzNDY1NjA5
15
- ZjgwMWRjYWM1NDI0ZGFlNjVmNjQzYWNhOGFiODU1Y2RkNTMyZTg=
13
+ NGUzZjVlNGUwNTQ2ZjZmMzE2OTAzNWQ0MzgyYzAzZTMxNTc0ODljYjczY2Qx
14
+ MmQyMGVhNzc3NjBhZjFlNTA2Nzk2ZjM3NDUwZDc4MWE0OTE2Y2QzNDEzM2Ex
15
+ ZDI4NjQzN2RiNGM3MzJhZGExODcyNjk1MjM3MzA4OTBjMDk3MGY=
@@ -20,6 +20,7 @@ Gem::Specification.new do |gem|
20
20
 
21
21
  gem.add_dependency 'highline', '1.6.11'
22
22
  gem.add_dependency 'flickr_authentication', '0.0.3'
23
+ gem.add_dependency 'http', '>= 1.0.2'
23
24
 
24
25
  gem.rubyforge_project = 'nowarning'
25
26
 
@@ -1,4 +1,5 @@
1
1
  require 'fileutils'
2
+ require "http"
2
3
 
3
4
  module FlickrAirlift
4
5
  module Downloader
@@ -37,7 +38,7 @@ module FlickrAirlift
37
38
  puts "** SKIPPING #{file_to_write} because it has already been downloaded"
38
39
  else
39
40
  puts "** Downloading #{i+1}: #{photo.title} (#{size_name}) from #{download_url}"
40
- File.open(file_to_write, 'wb') { |file| file.puts Net::HTTP.get_response(URI.parse(download_url)).body }
41
+ file = File.open(file_to_write, 'wb') { |file| file.puts HTTP.get(download_url).to_s }
41
42
  end
42
43
  break
43
44
  end
@@ -47,4 +48,4 @@ module FlickrAirlift
47
48
  end
48
49
  end
49
50
 
50
- end
51
+ end
@@ -1,3 +1,3 @@
1
1
  module FlickrAirlift
2
- VERSION = "0.5.1"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flickr_airlift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - nodanaonlyzuul
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-18 00:00:00.000000000 Z
11
+ date: 2016-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.0.3
41
+ - !ruby/object:Gem::Dependency
42
+ name: http
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: 1.0.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: 1.0.2
41
55
  description: A Command-Line tool for scraping any user's original photos.
42
56
  email:
43
57
  - beholdthepanda@gmail.com
@@ -76,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
90
  version: '0'
77
91
  requirements: []
78
92
  rubyforge_project: nowarning
79
- rubygems_version: 2.2.2
93
+ rubygems_version: 2.4.5
80
94
  signing_key:
81
95
  specification_version: 4
82
96
  summary: A Command-Line tool for scraping any user's original photos.