thunderwear 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/bin/thunderwear +15 -11
- data/lib/thunderwear/version.rb +1 -1
- data/thunderwear.gemspec +2 -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: 5002294a30a2420626ff53c27091bcf3b9815975
|
4
|
+
data.tar.gz: 96c145e7719cc4fef70e7ec2a4d8a9ae7a3228f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: baf720ecd2084c6d971436bc45f789c611832bf567a9c0c0937c6b85798c02b0a651bc83cd9ef1f9ced60dd276d19b15bf45a0e552d69ab38fe4445cd35f7822
|
7
|
+
data.tar.gz: b2aaceed3a5d492b99632530cf042bea926c4ec4623c02e1b83fefd0cbc94644f11f8ebf408c88450c388bc5fcad73b64984e8fabaf10d3db51cbf90bd51ba16
|
data/README.md
CHANGED
@@ -17,10 +17,10 @@ Run the gem:
|
|
17
17
|
$ thunderwear
|
18
18
|
|
19
19
|
If this is your first time running the gem, you'll be prompted to enter your zip
|
20
|
-
code. This is saved to
|
20
|
+
code. This is saved to ~/.thunderwear_zip. If you want to change your zip, delete
|
21
21
|
.thunderwear_zip
|
22
22
|
|
23
|
-
$ rm
|
23
|
+
$ rm ~/.thunderwear_zip
|
24
24
|
|
25
25
|
## Contributing
|
26
26
|
|
data/bin/thunderwear
CHANGED
@@ -2,15 +2,19 @@
|
|
2
2
|
|
3
3
|
require 'thunderwear'
|
4
4
|
|
5
|
-
if
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
if ARGV.empty?
|
6
|
+
if File.exist?("#{Dir.home}/.thunderwear_zip")
|
7
|
+
zip = File.read("#{Dir.home}/.thunderwear_zip")
|
8
|
+
else
|
9
|
+
puts "what's your zip code?"
|
10
|
+
zip = gets.chomp
|
11
|
+
zip_file = File.open("#{Dir.home}/.thunderwear_zip", "w")
|
12
|
+
zip_file.write zip
|
13
|
+
zip_file.close
|
14
|
+
end
|
15
|
+
weatherer = Thunderwear::GetWeather.new(zip)
|
16
|
+
weatherer.weather_me
|
17
|
+
else ARGV.first.capitalize == "Alexa"
|
18
|
+
puts "😎 🌞 " * 8
|
19
|
+
%x( say 'Alexa, whats the weather today?' )
|
13
20
|
end
|
14
|
-
|
15
|
-
weatherer = Thunderwear::GetWeather.new(zip)
|
16
|
-
weatherer.weather_me
|
data/lib/thunderwear/version.rb
CHANGED
data/thunderwear.gemspec
CHANGED
@@ -18,8 +18,9 @@ Gem::Specification.new do |spec|
|
|
18
18
|
f.match(%r{^(test|spec|features)/})
|
19
19
|
end
|
20
20
|
spec.bindir = "bin"
|
21
|
-
spec.executables = ["thunderwear"]
|
21
|
+
spec.executables = ["thunderwear"]
|
22
22
|
spec.require_paths = ["lib"]
|
23
|
+
spec.required_ruby_version = '~> 2.0'
|
23
24
|
|
24
25
|
spec.add_dependency "bundler", "~> 1.14"
|
25
26
|
spec.add_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thunderwear
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Ricker
|
@@ -111,9 +111,9 @@ require_paths:
|
|
111
111
|
- lib
|
112
112
|
required_ruby_version: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
|
-
- - "
|
114
|
+
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '0'
|
116
|
+
version: '2.0'
|
117
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
118
|
requirements:
|
119
119
|
- - ">="
|