flickr_airlift 0.5.1 → 0.6.0
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.
- checksums.yaml +8 -8
 - data/flickr_airlift.gemspec +1 -0
 - data/lib/flickr_airlift/downloader.rb +3 -2
 - data/lib/flickr_airlift/version.rb +1 -1
 - metadata +17 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,15 +1,15 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            !binary "U0hBMQ==":
         
     | 
| 
       3 
3 
     | 
    
         
             
              metadata.gz: !binary |-
         
     | 
| 
       4 
     | 
    
         
            -
                 
     | 
| 
      
 4 
     | 
    
         
            +
                NjFlZjNkOTAyNGZmNTk5NGM3MTkzZGM3MzcyZWRjMGVhZGZhY2I4NA==
         
     | 
| 
       5 
5 
     | 
    
         
             
              data.tar.gz: !binary |-
         
     | 
| 
       6 
     | 
    
         
            -
                 
     | 
| 
      
 6 
     | 
    
         
            +
                ODlhOTgwOTZiMTU4NjA2OTk5MWQ0YmIyZGU2MmUwMGIwMTRlNmQzNA==
         
     | 
| 
       7 
7 
     | 
    
         
             
            SHA512:
         
     | 
| 
       8 
8 
     | 
    
         
             
              metadata.gz: !binary |-
         
     | 
| 
       9 
     | 
    
         
            -
                 
     | 
| 
       10 
     | 
    
         
            -
                 
     | 
| 
       11 
     | 
    
         
            -
                 
     | 
| 
      
 9 
     | 
    
         
            +
                NWRlZmY2YmI0MDYwOTdkMWJmN2RhMDlmYjU1NzdhZjc5NzI0N2U5YTVjNzcy
         
     | 
| 
      
 10 
     | 
    
         
            +
                NGE4NjJlYjQwMWMyNjc3YTRkOGUwOWFhMjdhNTc1ODU2ZGQzNDBkZWExYWVl
         
     | 
| 
      
 11 
     | 
    
         
            +
                YTdjNWExNjQyMmRiZDZjYmVlYzc3ZWY4ZmUyZWY1ZGEyODRkZGI=
         
     | 
| 
       12 
12 
     | 
    
         
             
              data.tar.gz: !binary |-
         
     | 
| 
       13 
     | 
    
         
            -
                 
     | 
| 
       14 
     | 
    
         
            -
                 
     | 
| 
       15 
     | 
    
         
            -
                 
     | 
| 
      
 13 
     | 
    
         
            +
                NGUzZjVlNGUwNTQ2ZjZmMzE2OTAzNWQ0MzgyYzAzZTMxNTc0ODljYjczY2Qx
         
     | 
| 
      
 14 
     | 
    
         
            +
                MmQyMGVhNzc3NjBhZjFlNTA2Nzk2ZjM3NDUwZDc4MWE0OTE2Y2QzNDEzM2Ex
         
     | 
| 
      
 15 
     | 
    
         
            +
                ZDI4NjQzN2RiNGM3MzJhZGExODcyNjk1MjM3MzA4OTBjMDk3MGY=
         
     | 
    
        data/flickr_airlift.gemspec
    CHANGED
    
    
| 
         @@ -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  
     | 
| 
      
 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
         
     | 
    
        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. 
     | 
| 
      
 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:  
     | 
| 
      
 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. 
     | 
| 
      
 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.
         
     |