aralyne_owm 0.1.2 → 0.1.4

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: 20e31be0235f46687a01030c661e29cafc2d83aa74ce15a1530d043393dd3dc5
4
- data.tar.gz: dd28c8fa9decf7309376dfa676a71985cb2ae99412cb41e8fb2cc576d787ce00
3
+ metadata.gz: 7f7b3535adeb2598ac35657392328ad0efcf7a5b445882f92bc73b0856f9468f
4
+ data.tar.gz: 4aa474096f68eff27e375723e079298e570a2cb0baa0ed56749879e31299f0c7
5
5
  SHA512:
6
- metadata.gz: b06cdc252fad12d89ce03bd7cabbeb53e16981275ec10fbf402af2b7f28f90493a9403b89f17457fa0547d6095f5a22ec0bf89a0a70f4fbfa5c8839d58837540
7
- data.tar.gz: 668ce14c04059f57a3384c08f549d62774c8ac8e904115f143f235a96bb1438b0a9e6585884099720bdff0f7472b16488d59896d7c617168facd01045220e8c1
6
+ metadata.gz: c58ad6368988b634f1f3c9b60845a65ace97b304d0e6ec3a23b27078e3b91289e35335e67eab35d99372e58e30f9440e5d75db3939d7b4d3321ffda90270863a
7
+ data.tar.gz: 3661e6172575f6f9c7acfa66487b9daaef177204de2531af823b7577c081cf600f7ac04dbf0408f23e0d6a6d3ed3ea0e16171c376e08f2a31207c8b62262ac32
data/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ .env
@@ -1,6 +1,6 @@
1
1
  example_id | status | run_time |
2
2
  -------------------------------------------- | ------ | --------------- |
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 |
3
+ ./spec/aralyne_owm/current_spec.rb[1:1:1:1] | passed | 0.00861 seconds |
4
+ ./spec/aralyne_owm/current_spec.rb[1:1:2:1] | passed | 0.00371 seconds |
5
+ ./spec/aralyne_owm/forecast_spec.rb[1:1:1:1] | passed | 0.00483 seconds |
6
+ ./spec/aralyne_owm/forecast_spec.rb[1:1:2:1] | passed | 0.00413 seconds |
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aralyne_owm (0.1.2)
4
+ aralyne_owm (0.1.3)
5
5
  httparty (>= 0.18.1)
6
6
  json (>= 1)
7
7
  pry (>= 0.13.1)
Binary file
Binary file
@@ -1,8 +1,8 @@
1
1
  require 'httparty'
2
2
 
3
3
  class AralyneOwm::Config
4
- def initialize(city_id, endpoint)
5
- @api_key = 'e88c1515be1de476a1469d4bdb9cb1eb'
4
+ def initialize(city_id, endpoint, api_key)
5
+ @api_key = api_key
6
6
  @city_id = city_id
7
7
  @endpoint = endpoint
8
8
  @api_response = HTTParty.get(uri)
@@ -3,7 +3,7 @@ require "aralyne_owm/config"
3
3
  class AralyneOwm::Current
4
4
  def initialize(city_id)
5
5
  @city_id = city_id
6
- @api = AralyneOwm::Config.new(@city_id, endpoint).call
6
+ @api = AralyneOwm::Config.new(@city_id, endpoint, '123456789').call
7
7
  end
8
8
 
9
9
  def call
@@ -3,7 +3,7 @@ require "aralyne_owm/config"
3
3
  class AralyneOwm::Forecast
4
4
  def initialize(city_id)
5
5
  @city_id = city_id
6
- @api = AralyneOwm::Config.new(@city_id, endpoint).call
6
+ @api = AralyneOwm::Config.new(@city_id, endpoint, '123456789').call
7
7
  end
8
8
 
9
9
  def call
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AralyneOwm
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aralyne_owm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aralyne Gonçalves
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-07 00:00:00.000000000 Z
11
+ date: 2021-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -139,6 +139,8 @@ files:
139
139
  - Rakefile
140
140
  - aralyne_owm-0.1.0.gem
141
141
  - aralyne_owm-0.1.1.gem
142
+ - aralyne_owm-0.1.2.gem
143
+ - aralyne_owm-0.1.3.gem
142
144
  - aralyne_owm.gemspec
143
145
  - bin/console
144
146
  - bin/setup