cli-weather 0.0.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.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/bin/cli-weather +5 -0
  3. data/lib/cli-weather.rb +11 -0
  4. metadata +47 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ace96013de5ac03e551a13f3908ce3432f4fe874
4
+ data.tar.gz: 506e25ef8df4304f0e57015ee98fc7a5114942c5
5
+ SHA512:
6
+ metadata.gz: a5c85711fa8dc57fd2da0083d698c4c37558730a6c75fc95aa1e0b54b10b4699db66be0673473c29e4b95aad897e5476656b4a868a82095a2bb12090842e4b49
7
+ data.tar.gz: fb175b469697754a3b0fdba77aa190dd5388a88beae948c19a9fa31dc1b9572f0560b3e836d9ba9d0bfc889ee8a521cff154fe0942aba623b44c74fc019760c3
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'cli-weather'
4
+
5
+ Fetcher.get(ARGV[0])
@@ -0,0 +1,11 @@
1
+ require 'uri'
2
+
3
+ class Fetcher
4
+
5
+ def self.get(input)
6
+ city = input.gsub(" ", "")
7
+ puts "Getting the weather now"
8
+ weather = `curl "0.0.0.0:3000/infos/#{city}"`
9
+ puts weather
10
+ end
11
+ end
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cli-weather
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Sam Barrientos
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-11-14 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Get the weather so you never have to leave the command line! Search for
14
+ weather by city and get the temperature and weather description.
15
+ email: stbarrientos@gmail.com
16
+ executables:
17
+ - cli-weather
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - bin/cli-weather
22
+ - lib/cli-weather.rb
23
+ homepage: ''
24
+ licenses:
25
+ - MIT
26
+ metadata: {}
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project:
43
+ rubygems_version: 2.2.2
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: Get weather on your command line!
47
+ test_files: []