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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82afce23e76299aab716e43af06229c7f29512b3
4
- data.tar.gz: cc614ab43b7ab0e8889c105faf1f89724fd325d1
3
+ metadata.gz: 47e45cbac5876cf397761efc602cd30e02fd62b9
4
+ data.tar.gz: a8361be0e40bc0888c620c3ebeaf91bc38fd0e4f
5
5
  SHA512:
6
- metadata.gz: 518ed2cbce62a0e64ca0648b12b653fe8e334dc358a053ed5dcea032338c9a91c6524834387d23c637d26a0c9e8211095c8a0ccfa1f6d9d6e93715ffd5f58897
7
- data.tar.gz: 5ef463b8285f573f9bd7349a1d67f65b4ab3ec3520831a8b280290c1f1fb60f3a1799641b7dddda9919b7fb0d9f4fc43d2ab301607155acb5387fddd1f0f22d7
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
- options = {
35
- ssl: false, # => default: true
36
- faraday_log: true, # => default: false
37
- charset: "euc_jp", # => default: utf-8
38
- response_type: :json # => default: hashie
39
- }
36
+ ```ruby
37
+ require 'docodoco_jp'
38
+
39
+ apikey1 = "YOURAPIKEY1"
40
+ apikey2 = "YOURAPIKEY2"
40
41
 
41
- ipv4addr = "210.251.250.30"
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
- docodoco_jp = DocodocoJp.new(apikey1, apikey2, options)
44
- docodoco_jp.check_user # valid user, apikeys
49
+ ipv4addr = "210.251.250.30"
45
50
 
46
- result = docodoco_jp.search(ipv4addr)
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/[my-github-username]/docodoco_jp/fork )
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`)
@@ -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(:show_keys, [], {})
24
+ self.invoke(:show_key, [], {})
25
25
  end
26
26
 
27
27
  desc "show_key", "Show configred API key"
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
3
  class DocodocoJp
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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.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-26 00:00:00.000000000 Z
11
+ date: 2015-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor