aralyne_owm 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1bdf9ae57f24e4a167998c10a7bcb8001c3724ca5f0d2c25e6028086bb2057a5
4
- data.tar.gz: 22ce438c95f1cc6d5375f96719573d0df324cdac5bbb96bd8af0827edd712eb4
3
+ metadata.gz: 20e31be0235f46687a01030c661e29cafc2d83aa74ce15a1530d043393dd3dc5
4
+ data.tar.gz: dd28c8fa9decf7309376dfa676a71985cb2ae99412cb41e8fb2cc576d787ce00
5
5
  SHA512:
6
- metadata.gz: bc647de5bb8524b7705a429a2e1c7510e2522870a8c9201045ef56c525a39d1a1567e9d81fc9ed080219c441e33b629912702e39e9f0ffad658509e4d8c2bd81
7
- data.tar.gz: 7939aa1df5c64305bd5421593a58ed97947b1541fe1bf51f55b1ac5296f2d54584ff3261225013961cfd5c08310800dc5a2ff1ece13d253b0c26da8de616db03
6
+ metadata.gz: b06cdc252fad12d89ce03bd7cabbeb53e16981275ec10fbf402af2b7f28f90493a9403b89f17457fa0547d6095f5a22ec0bf89a0a70f4fbfa5c8839d58837540
7
+ data.tar.gz: 668ce14c04059f57a3384c08f549d62774c8ac8e904115f143f235a96bb1438b0a9e6585884099720bdff0f7472b16488d59896d7c617168facd01045220e8c1
@@ -1,4 +1,6 @@
1
1
  example_id | status | run_time |
2
2
  -------------------------------------------- | ------ | --------------- |
3
- ./spec/aralyne_owm/forecast_spec.rb[1:1:1:1] | passed | 0.00941 seconds |
4
- ./spec/aralyne_owm/forecast_spec.rb[1:1:2:1] | passed | 0.00421 seconds |
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 |
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aralyne_owm (0.1.0)
4
+ aralyne_owm (0.1.2)
5
5
  httparty (>= 0.18.1)
6
6
  json (>= 1)
7
7
  pry (>= 0.13.1)
Binary file
@@ -2,6 +2,7 @@
2
2
 
3
3
  require_relative "aralyne_owm/version"
4
4
  require "aralyne_owm/forecast"
5
+ require "aralyne_owm/current"
5
6
 
6
7
  module AralyneOwm
7
8
  class Error < StandardError; end
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AralyneOwm
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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.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