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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/bin/weatheruby +7 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: baa8437d2c006154a45cada91b3a10ec57f31b2c
4
- data.tar.gz: 1d95315f8d7f997a9899b42a69c2423c6c4611f3
3
+ metadata.gz: f0283bd7d80946986810371b2c1741cf1b3f1aae
4
+ data.tar.gz: f585d3e0608e1570ccb6a6a860dd28bc743bf3bd
5
5
  SHA512:
6
- metadata.gz: 5259121157813245b11f45d73933696833de2ef2c696e42a7981e13c839502ebf43f554a4abe16ba71b1ce503cfcdcde88ab499874e7eb30b37c4c1910e1095b
7
- data.tar.gz: 97e0361aeeecf3f694d3fe8bc0ff36094f26ee6b864ebf193965861243afcb24c757250f99fbbd618a6b53ceb7bab86b0f634a973ce348211311480f69991045
6
+ metadata.gz: 58e8d51797597fed248965638dabae7ca2c7fadbab3b9165bc32fb640b4ecda62d03acfd791ed8a7be45f1ce744e1358fb1c4d52483921e80a95a6e5ae2131e0
7
+ data.tar.gz: bf73efcea967133048b018e1210592030144c4db4033ff4a5d02869410a4ff63959fa05dd34fb53e7adc586d412983388d7ccc3ec5eb908fa082fbe1558b61fb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
  ## Version 0
3
+ ### Version 0.4.2
4
+ * No longer fails with an ArgumentError if the CLI is passed no arguments. Instead it outputs the usage information, so that it is actually a useful thing.
5
+
3
6
  ### Version 0.4.1
4
7
  * Fix NameError
5
8
 
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.1
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-16 00:00:00.000000000 Z
11
+ date: 2015-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient