aralyne_owm 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec_status +4 -2
- data/Gemfile.lock +1 -1
- data/aralyne_owm-0.1.1.gem +0 -0
- data/lib/aralyne_owm.rb +1 -0
- data/lib/aralyne_owm/current.rb +18 -0
- data/lib/aralyne_owm/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20e31be0235f46687a01030c661e29cafc2d83aa74ce15a1530d043393dd3dc5
|
4
|
+
data.tar.gz: dd28c8fa9decf7309376dfa676a71985cb2ae99412cb41e8fb2cc576d787ce00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b06cdc252fad12d89ce03bd7cabbeb53e16981275ec10fbf402af2b7f28f90493a9403b89f17457fa0547d6095f5a22ec0bf89a0a70f4fbfa5c8839d58837540
|
7
|
+
data.tar.gz: 668ce14c04059f57a3384c08f549d62774c8ac8e904115f143f235a96bb1438b0a9e6585884099720bdff0f7472b16488d59896d7c617168facd01045220e8c1
|
data/.rspec_status
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
example_id | status | run_time |
|
2
2
|
-------------------------------------------- | ------ | --------------- |
|
3
|
-
./spec/aralyne_owm/
|
4
|
-
./spec/aralyne_owm/
|
3
|
+
./spec/aralyne_owm/current_spec.rb[1:1:1:1] | passed | 0.00677 seconds |
|
4
|
+
./spec/aralyne_owm/current_spec.rb[1:1:2:1] | passed | 0.00345 seconds |
|
5
|
+
./spec/aralyne_owm/forecast_spec.rb[1:1:1:1] | passed | 0.0088 seconds |
|
6
|
+
./spec/aralyne_owm/forecast_spec.rb[1:1:2:1] | passed | 0.00347 seconds |
|
data/Gemfile.lock
CHANGED
Binary file
|
data/lib/aralyne_owm.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
require "aralyne_owm/config"
|
2
|
+
|
3
|
+
class AralyneOwm::Current
|
4
|
+
def initialize(city_id)
|
5
|
+
@city_id = city_id
|
6
|
+
@api = AralyneOwm::Config.new(@city_id, endpoint).call
|
7
|
+
end
|
8
|
+
|
9
|
+
def call
|
10
|
+
@api
|
11
|
+
end
|
12
|
+
|
13
|
+
private
|
14
|
+
|
15
|
+
def endpoint
|
16
|
+
'weather'
|
17
|
+
end
|
18
|
+
end
|
data/lib/aralyne_owm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aralyne_owm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aralyne Gonçalves
|
@@ -138,11 +138,13 @@ files:
|
|
138
138
|
- README.md
|
139
139
|
- Rakefile
|
140
140
|
- aralyne_owm-0.1.0.gem
|
141
|
+
- aralyne_owm-0.1.1.gem
|
141
142
|
- aralyne_owm.gemspec
|
142
143
|
- bin/console
|
143
144
|
- bin/setup
|
144
145
|
- lib/aralyne_owm.rb
|
145
146
|
- lib/aralyne_owm/config.rb
|
147
|
+
- lib/aralyne_owm/current.rb
|
146
148
|
- lib/aralyne_owm/forecast.rb
|
147
149
|
- lib/aralyne_owm/version.rb
|
148
150
|
homepage: https://github.com/aralyne/aralyne_owm
|