kisyo 0.0.3 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +8 -1
- data/kisyo.gemspec +13 -12
- data/lib/kisyo/blocks.rb +1669 -0
- data/lib/kisyo/cache.rb +13 -6
- data/lib/kisyo/daily.rb +11 -10
- data/lib/kisyo/location.rb +25 -0
- data/lib/kisyo/version.rb +1 -1
- data/lib/kisyo.rb +7 -6
- data/spec/kisyo/daily_spec.rb +17 -30
- data/spec/kisyo/location_spec.rb +13 -0
- metadata +16 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 437e48e2b0859349f65822a202276820bc3e97be217808ce36aa5dc35d9d5b17
|
4
|
+
data.tar.gz: 0c8250fda2a2a60fc65d9b9a5ab3258968f13b8dd171a66fad41a7654a993f49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 830858390cc2c0a760360989210c360b0326e27501818549c6f8ea4ff67ffad6ba284c4e7e0f80b2850bf15677a02b056fea013cb3dcf40e50d47561728735eb
|
7
|
+
data.tar.gz: 6f5783b829d13847d08ef5525340b7111597013f98a7894174829cf91eaa5efd96632646dfde278586c97fa1f0febe68d908bde472f2f8c1862147406c82db05
|
data/README.md
CHANGED
@@ -20,7 +20,14 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
```ruby
|
24
|
+
require 'kisyo'
|
25
|
+
|
26
|
+
location = Kisyo::location.nearest(35.6809591, 139.7673068)
|
27
|
+
daily = Kisyo::Daily.new(location)
|
28
|
+
date = Date.parse('2016-11-02')
|
29
|
+
daily.at(date)
|
30
|
+
```
|
24
31
|
|
25
32
|
## Contributing
|
26
33
|
|
data/kisyo.gemspec
CHANGED
@@ -4,22 +4,23 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'kisyo/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name
|
8
|
-
spec.version
|
9
|
-
spec.authors
|
10
|
-
spec.email
|
11
|
-
spec.summary
|
12
|
-
|
13
|
-
spec.
|
7
|
+
spec.name = 'kisyo'
|
8
|
+
spec.version = Kisyo::VERSION
|
9
|
+
spec.authors = ['youpy']
|
10
|
+
spec.email = ['youpy@buycheapviagraonlinenow.com']
|
11
|
+
spec.summary =
|
12
|
+
'A ruby tool for getting weather information from www.data.jma.go.jp'
|
13
|
+
spec.homepage = ''
|
14
|
+
spec.license = 'MIT'
|
14
15
|
|
15
|
-
spec.files
|
16
|
-
spec.executables
|
17
|
-
spec.test_files
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
19
|
spec.require_paths = ['lib']
|
19
20
|
|
20
21
|
spec.add_dependency 'nokogiri'
|
21
|
-
spec.
|
22
|
-
spec.add_development_dependency 'rake', '
|
22
|
+
spec.add_dependency 'geocoder'
|
23
|
+
spec.add_development_dependency 'rake', '>= 12.3.3'
|
23
24
|
spec.add_development_dependency 'rspec', '~> 3'
|
24
25
|
spec.add_development_dependency 'webmock'
|
25
26
|
end
|