docodoco_jp 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/README.md +20 -11
- data/lib/docodoco_jp/cli.rb +1 -1
- data/lib/docodoco_jp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47e45cbac5876cf397761efc602cd30e02fd62b9
|
4
|
+
data.tar.gz: a8361be0e40bc0888c620c3ebeaf91bc38fd0e4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f73dcf1b0f539b945c1ff515904c3f14280e44e065bc6db7275980c4d57364370bda3b7ffe37882281bfc119147eaad1035d8c2b7b429800ce0c5926d2294b0
|
7
|
+
data.tar.gz: c5355741732078a3b1cb1e79a896360f11074236fd3096d80c6f48d6c78420b2ac0ea48eaf810af73562d525ab75aedf139b9eadf1888f855157cdd9a6bc063b
|
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/docodoco_jp.svg)](http://badge.fury.io/rb/docodoco_jp)
|
2
|
+
|
1
3
|
# DocodocoJp
|
2
4
|
|
3
5
|
[www.docodoco.jp](http://www.docodoco.jp) api client library.
|
@@ -31,19 +33,26 @@ Or install it yourself as:
|
|
31
33
|
|
32
34
|
#### * ruby script
|
33
35
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
}
|
36
|
+
```ruby
|
37
|
+
require 'docodoco_jp'
|
38
|
+
|
39
|
+
apikey1 = "YOURAPIKEY1"
|
40
|
+
apikey2 = "YOURAPIKEY2"
|
40
41
|
|
41
|
-
|
42
|
+
options = {
|
43
|
+
ssl: false, # => default: true
|
44
|
+
faraday_log: true, # => default: false
|
45
|
+
charset: "euc_jp", # => default: utf-8
|
46
|
+
response_type: :json # => default: hashie
|
47
|
+
}
|
42
48
|
|
43
|
-
|
44
|
-
docodoco_jp.check_user # valid user, apikeys
|
49
|
+
ipv4addr = "210.251.250.30"
|
45
50
|
|
46
|
-
|
51
|
+
docodoco_jp = DocodocoJp.new(apikey1, apikey2, options)
|
52
|
+
docodoco_jp.check_user # valid user, apikeys
|
53
|
+
|
54
|
+
result = docodoco_jp.search(ipv4addr)
|
55
|
+
```
|
47
56
|
|
48
57
|
### enjoy!
|
49
58
|
|
@@ -55,7 +64,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
55
64
|
|
56
65
|
## Contributing
|
57
66
|
|
58
|
-
1. Fork it ( https://github.com/
|
67
|
+
1. Fork it ( https://github.com/magicdrive/docodoco_jp/fork )
|
59
68
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
60
69
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
61
70
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/docodoco_jp/cli.rb
CHANGED
@@ -21,7 +21,7 @@ class DocodocoJp
|
|
21
21
|
FileUtils.mkdir_p(File.expand_path("~/.docodoco_jp/"))
|
22
22
|
File.open(File.expand_path("~/.docodoco_jp/apikey.yml"), "w") { |f| f.print(buf) }
|
23
23
|
$stdout.puts "config ok."
|
24
|
-
self.invoke(:
|
24
|
+
self.invoke(:show_key, [], {})
|
25
25
|
end
|
26
26
|
|
27
27
|
desc "show_key", "Show configred API key"
|
data/lib/docodoco_jp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docodoco_jp
|
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
|
- Hiroshi IKEGAMI
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|