weatheruby 0.4.1 → 0.4.2
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/CHANGELOG.md +3 -0
- data/bin/weatheruby +7 -4
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: f0283bd7d80946986810371b2c1741cf1b3f1aae
         | 
| 4 | 
            +
              data.tar.gz: f585d3e0608e1570ccb6a6a860dd28bc743bf3bd
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 58e8d51797597fed248965638dabae7ca2c7fadbab3b9165bc32fb640b4ecda62d03acfd791ed8a7be45f1ce744e1358fb1c4d52483921e80a95a6e5ae2131e0
         | 
| 7 | 
            +
              data.tar.gz: bf73efcea967133048b018e1210592030144c4db4033ff4a5d02869410a4ff63959fa05dd34fb53e7adc586d412983388d7ccc3ec5eb908fa082fbe1558b61fb
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/bin/weatheruby
    CHANGED
    
    | @@ -8,8 +8,6 @@ require 'rainbow' | |
| 8 8 | 
             
            require 'string-utility'
         | 
| 9 9 | 
             
            require_relative '../lib/weatheruby'
         | 
| 10 10 |  | 
| 11 | 
            -
            fail ArgumentError if ARGV.empty?
         | 
| 12 | 
            -
             | 
| 13 11 | 
             
            @args = {
         | 
| 14 12 | 
             
              help: false,
         | 
| 15 13 | 
             
              verbose: false,
         | 
| @@ -35,6 +33,11 @@ ARGV.each do |arg| | |
| 35 33 | 
             
              end
         | 
| 36 34 | 
             
            end
         | 
| 37 35 |  | 
| 36 | 
            +
            if ARGV.empty?
         | 
| 37 | 
            +
              puts usage
         | 
| 38 | 
            +
              exit
         | 
| 39 | 
            +
            end
         | 
| 40 | 
            +
             | 
| 38 41 | 
             
            if @args[:help]
         | 
| 39 42 | 
             
              puts usage
         | 
| 40 43 | 
             
              puts help
         | 
| @@ -70,8 +73,8 @@ illum = Rainbow("#{moon[:illumination]} %").white | |
| 70 73 | 
             
            puts "Getting weather data for #{location}"
         | 
| 71 74 | 
             
            puts updated
         | 
| 72 75 | 
             
            puts weather
         | 
| 73 | 
            -
            puts temp
         | 
| 74 | 
            -
            puts feels
         | 
| 76 | 
            +
            puts "Curent weather: #{temp}"
         | 
| 77 | 
            +
            puts "Feels like: #{feels}"
         | 
| 75 78 | 
             
            puts "Humidity: #{humidity} %"
         | 
| 76 79 | 
             
            puts wind
         | 
| 77 80 | 
             
            alerts.each do |a|
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: weatheruby
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.4. | 
| 4 | 
            +
              version: 0.4.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Eli Foster
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2015-11- | 
| 11 | 
            +
            date: 2015-11-18 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: httpclient
         |