snapshot 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.
- checksums.yaml +4 -4
 - data/lib/assets/SnapfileTemplate +7 -7
 - data/lib/snapshot/detect_values.rb +1 -0
 - data/lib/snapshot/runner.rb +8 -0
 - data/lib/snapshot/setup.rb +1 -1
 - data/lib/snapshot/version.rb +1 -1
 - metadata +3 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 2d38ba8def56c2d0272eef7ffd15ed6209dd4061
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 03d5d875a7535932521ce752e08c6aa0d9491a29
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: c5e9e2424878e6db5285889ef765ac22ecb9fb27425a31d13fc403300965239a89dbb44e6811b9641766c95ef10e003c5efe5272db2686dd361fb6cf7bc5d0b8
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 9da196a3b7dcac8f2ca1c99203c8f81f569f962b2b5955cb6a4864a0c7c5b1004f550bb3a6aca50e55442cde2a72cd2b31d64d8791016e9df501e7e3b9c62d36
         
     | 
    
        data/lib/assets/SnapfileTemplate
    CHANGED
    
    | 
         @@ -1,13 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Uncomment the lines below you want to change by removing the # in the beginning
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            # A list of devices you want to take the screenshots from
         
     | 
| 
       4 
     | 
    
         
            -
            devices([
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
            ])
         
     | 
| 
      
 4 
     | 
    
         
            +
            # devices([
         
     | 
| 
      
 5 
     | 
    
         
            +
            #   "iPhone 6",
         
     | 
| 
      
 6 
     | 
    
         
            +
            #   "iPhone 6 Plus",
         
     | 
| 
      
 7 
     | 
    
         
            +
            #   "iPhone 5",
         
     | 
| 
      
 8 
     | 
    
         
            +
            #   "iPhone 4s",
         
     | 
| 
      
 9 
     | 
    
         
            +
            #   "iPad Retina"
         
     | 
| 
      
 10 
     | 
    
         
            +
            # ])
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
            languages([
         
     | 
| 
       13 
13 
     | 
    
         
             
              "en-US",
         
     | 
| 
         @@ -24,6 +24,7 @@ module Snapshot 
     | 
|
| 
       24 
24 
     | 
    
         
             
                      next if sim.name.include?("iPad") and !sim.name.include?("Retina") # we only need one iPad
         
     | 
| 
       25 
25 
     | 
    
         
             
                      next if sim.name.include?("6s") # same screen resolution
         
     | 
| 
       26 
26 
     | 
    
         
             
                      next if sim.name.include?("5s") # same screen resolution
         
     | 
| 
      
 27 
     | 
    
         
            +
                      next if sim.name.include?("Apple TV")
         
     | 
| 
       27 
28 
     | 
    
         | 
| 
       28 
29 
     | 
    
         
             
                      config[:devices] << sim.name
         
     | 
| 
       29 
30 
     | 
    
         
             
                    end
         
     | 
    
        data/lib/snapshot/runner.rb
    CHANGED
    
    | 
         @@ -6,6 +6,14 @@ module Snapshot 
     | 
|
| 
       6 
6 
     | 
    
         
             
                attr_accessor :number_of_retries
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
                def work
         
     | 
| 
      
 9 
     | 
    
         
            +
                  if File.exist?("./fastlane/snapshot.js") or File.exist?("./snapshot.js")
         
     | 
| 
      
 10 
     | 
    
         
            +
                    Helper.log.warn "Found old snapshot configuration file 'snapshot.js'".red
         
     | 
| 
      
 11 
     | 
    
         
            +
                    Helper.log.warn "You updated to snapshot 1.0 which now uses UI Automation".red
         
     | 
| 
      
 12 
     | 
    
         
            +
                    Helper.log.warn "Please follow the migration guide: https://github.com/KrauseFx/snapshot/blob/master/MigrationGuide.md".red
         
     | 
| 
      
 13 
     | 
    
         
            +
                    Helper.log.warn "And read the updated documentation: https://github.com/KrauseFx/snapshot".red
         
     | 
| 
      
 14 
     | 
    
         
            +
                    sleep 3 # to be sure the user sees this, as compiling clears the screen
         
     | 
| 
      
 15 
     | 
    
         
            +
                  end
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
       9 
17 
     | 
    
         
             
                  FastlaneCore::PrintTable.print_values(config: Snapshot.config, hide_keys: [], title: "Summary")
         
     | 
| 
       10 
18 
     | 
    
         | 
| 
       11 
19 
     | 
    
         
             
                  clear_previous_screenshots if Snapshot.config[:clear_previous_screenshots]
         
     | 
    
        data/lib/snapshot/setup.rb
    CHANGED
    
    | 
         @@ -25,7 +25,7 @@ module Snapshot 
     | 
|
| 
       25 
25 
     | 
    
         
             
                  puts "  setLanguage(app)"
         
     | 
| 
       26 
26 
     | 
    
         
             
                  puts "  app.launch()"
         
     | 
| 
       27 
27 
     | 
    
         
             
                  puts ""
         
     | 
| 
       28 
     | 
    
         
            -
                  puts "3) Add `snapshot(\"0Launch\")` to wherever you want to create the  
     | 
| 
      
 28 
     | 
    
         
            +
                  puts "3) Add `snapshot(\"0Launch\")` to wherever you want to create the screenshots".yellow
         
     | 
| 
       29 
29 
     | 
    
         
             
                  puts ""
         
     | 
| 
       30 
30 
     | 
    
         
             
                  puts "More information on GitHub: https://github.com/krausefx/snapshot".green
         
     | 
| 
       31 
31 
     | 
    
         
             
                end
         
     | 
    
        data/lib/snapshot/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: snapshot
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.3
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Felix Krause
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2015-10- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2015-10-25 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: fastimage
         
     | 
| 
         @@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       247 
247 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       248 
248 
     | 
    
         
             
            requirements: []
         
     | 
| 
       249 
249 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       250 
     | 
    
         
            -
            rubygems_version: 2.4. 
     | 
| 
      
 250 
     | 
    
         
            +
            rubygems_version: 2.4.6
         
     | 
| 
       251 
251 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       252 
252 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       253 
253 
     | 
    
         
             
            summary: Automate taking localized screenshots of your iOS app on every device
         
     |