forecastr 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c466cf08d42456dbf4d89ee4ab831dac22b417b
4
- data.tar.gz: 00fbd6506159bf305cdbbaaaf0795bf3f229874c
3
+ metadata.gz: 19b3daeb2131ae747681bd6459f950986e1fcecb
4
+ data.tar.gz: f8a45474d780e591b464387c96b89eee580542ad
5
5
  SHA512:
6
- metadata.gz: 3988f786efee10f8bd984ac0155d65a3ee84648734a10117644e068237f94efd422f7eb9cf7fc464cd144bd8d3001c20b91d28ee4758642fa1ab305df7af1698
7
- data.tar.gz: 0a6afd306904c55c941829865e80f0415829fdd85d455b6af3e89133ae240e37d6572ec5d226e7ee6c022d1dfd2ca0ff7ad2364c6638d23d898a77e1c9661abf
6
+ metadata.gz: 82d2f55f5eb6a61c580d74a9a97ccba64b2ec37907fc6853deee1eb67e37bc27c7d2787ce9e3547c3ef50f0ceb9c5ba36b6d74ea550688d2032e5ec37ca3e036
7
+ data.tar.gz: 68af5385b42dd7a6dc2971bb434df6b3cf6e653b0989aa0ac6fd5e538c60cf2a4fe7536d3f784edd912e170686072241b58f77afc0541576cacf0d0ccd6b501f
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Forecastr
2
2
 
3
- A simple gem for openweathermap.org API.
3
+ A VERY minimal gem for openweathermap.org's API. Currently supports only current forecast - temperature, pressure, humidity, min/max temperatures and wind (speed and direction).
4
4
 
5
5
  ## Installation
6
6
 
@@ -27,11 +27,29 @@ You can search for forecast by city:
27
27
 
28
28
  Or, you can search for forecast by coordinates:
29
29
  ```ruby
30
- london = Forecastr::Radar.find_by_city(51.5072, 0.1275)
30
+ london = Forecastr::Radar.find_by_coordinates(51.5072, 0.1275)
31
31
  london.temperature.to_celsius
32
32
  # => 18
33
33
  ```
34
34
 
35
+ Some methods:
36
+ ```ruby
37
+ skopje = Forecastr::Radar.find_by_coordinates(42.00, 21.4333)
38
+
39
+ skopje.temperature.to_celsius
40
+ # => 10
41
+ skopje.temperature.to_farenheit
42
+ # => 50
43
+ skopje.humidity
44
+ # => 45
45
+ skopje.pressure
46
+ # => 1002
47
+ skopje.wind.direction
48
+ # => NE
49
+ skopje.wind.speed
50
+ # => 3.2 m/s
51
+ ```
52
+
35
53
  ## Contributing
36
54
 
37
55
  1. Fork it
@@ -39,3 +57,6 @@ Or, you can search for forecast by coordinates:
39
57
  3. Commit your changes (`git commit -am 'Add some feature'`)
40
58
  4. Push to the branch (`git push origin my-new-feature`)
41
59
  5. Create new Pull Request
60
+
61
+ ## Author
62
+ Ile Eftimov <br> [website](http://eftimov.net) [twitter](http://twitter.com/fteem)
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["ileeftimov@gmail.com"]
11
11
  spec.description = %q{Simple gem to use with openweathermap.org API}
12
12
  spec.summary = %q{Simple gem to use with openweathermap.org API}
13
- spec.homepage = ""
13
+ spec.homepage = "http://github.com/fteem/forecastr"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
@@ -1,3 +1,3 @@
1
1
  module Forecastr
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forecastr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ile Eftimov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-21 00:00:00.000000000 Z
11
+ date: 2014-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -93,7 +93,7 @@ files:
93
93
  - spec/forecastr/temperature_spec.rb
94
94
  - spec/forecastr/wind_spec.rb
95
95
  - spec/spec_helper.rb
96
- homepage: ''
96
+ homepage: http://github.com/fteem/forecastr
97
97
  licenses:
98
98
  - MIT
99
99
  metadata: {}