forecastr 0.1.0 → 0.1.1
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/README.md +23 -2
- data/forecastr.gemspec +1 -1
- data/lib/forecastr/version.rb +1 -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: 19b3daeb2131ae747681bd6459f950986e1fcecb
|
4
|
+
data.tar.gz: f8a45474d780e591b464387c96b89eee580542ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82d2f55f5eb6a61c580d74a9a97ccba64b2ec37907fc6853deee1eb67e37bc27c7d2787ce9e3547c3ef50f0ceb9c5ba36b6d74ea550688d2032e5ec37ca3e036
|
7
|
+
data.tar.gz: 68af5385b42dd7a6dc2971bb434df6b3cf6e653b0989aa0ac6fd5e538c60cf2a4fe7536d3f784edd912e170686072241b58f77afc0541576cacf0d0ccd6b501f
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Forecastr
|
2
2
|
|
3
|
-
A
|
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.
|
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)
|
data/forecastr.gemspec
CHANGED
@@ -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($/)
|
data/lib/forecastr/version.rb
CHANGED
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.
|
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-
|
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: {}
|