weather_insight 0.0.2 → 0.0.3

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: dcae14538903d6ad6d453d4a5c71504368df0b3b
4
- data.tar.gz: 8c339780e1d3a26adbf965fcbbb6d386300957ce
3
+ metadata.gz: 0cd5389fbf00aad629cdb4a26138673ead3bc9e9
4
+ data.tar.gz: 42002db7ec4b9c9c7500ac5e55a47e60b4d7da69
5
5
  SHA512:
6
- metadata.gz: 4946322eb6f4d9bbd1c17d7543f029522038b2062251abfee45a71c67a8f30a6b81bc7f1d3f6ec5a46bb78b225bafd4bf8c9da00a5ff562206013e3ff719e37c
7
- data.tar.gz: 40996e45fcb1657a28a5b8e36d6cc407899ab85687e4ce2d5f8bdcef450e83ed23a5f2ed9c13e589bd62aeef2247a5145a8470eaffb6d506daee99d40f30794a
6
+ metadata.gz: 6ba92e2e7d147aadae1b87516fac5a251c65ca10f1898bbb991e4223e89acbeb93cf938ea6e2672d635ada944d08a02ef786fa4a5d71b5e88ae425de055c0c1d
7
+ data.tar.gz: 95bdff4a683f1c891c041738a1a67b9c48613e1d6ca12c3a6c92bce424826f62b6da6b7e7447475165ca726e2d5b995ae8f09d82be727d23343bb6f7756b1346
data/README.md CHANGED
@@ -1,11 +1,12 @@
1
1
  # WeatherInsight
2
2
 
3
3
  WeatherInsight acquire average data of past weather from goo.
4
+ Only Japan data.
4
5
 
5
6
  ## Notice
6
7
 
7
8
  WeatherInsight is used Web scraping. Therefore be careful about excessive access to a Web server.
8
- You can adjust time interval which requests to web server.
9
+ Please use weather data which is written by your program in a file.
9
10
 
10
11
  ## Installation
11
12
 
@@ -17,14 +17,13 @@ module WeatherInsight
17
17
  get_data url
18
18
  end
19
19
 
20
- def year_data spot, interval: 0.3
20
+ def year_data spot
21
21
  year_data = {}
22
22
 
23
23
  1.upto(12) do |month|
24
24
  url = UrlList.month_url spot, month
25
25
  month_data = get_data url
26
26
  year_data[month] = month_data
27
- sleep(interval)
28
27
  end
29
28
 
30
29
  year_data # year_data[:month][:day]
@@ -1,3 +1,3 @@
1
1
  module WeatherInsight
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weather_insight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - kozakana