find-a-book 0.1.0 → 0.1.2

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
  SHA1:
3
- metadata.gz: 24e9d748f80661631d6007104eedf53d267621e9
4
- data.tar.gz: 772db90ff6ff3ec556f2c848830478f98993bb39
3
+ metadata.gz: 9b2f0f10be6caddd4ac3e0654281fa28127d517f
4
+ data.tar.gz: 07815deacf53afb122fc6b83b2cd759cf9edd1c8
5
5
  SHA512:
6
- metadata.gz: a45c726fd78eb781836327e6e0a932f44942361de7620ca8598029d98acb81206dae9568ebd6bff6aaa85523f7cb38d62244aab239a3e1607e68116fac11f46a
7
- data.tar.gz: 5992a645235303cb02a3b4367cbbfb5e1b6fa372140516b1912245ed8b8032fab68462020f2f1921c78dc624b77d383c9fa3c282649d1f7f3d5dbb3f0c31ee84
6
+ metadata.gz: 72eb33779e753b36dc5b6aac23b0cdb001ff44846a483e871c2de8f05fe9f699865cd5b8fe2fb93640b802c57f28f42b31a7569fca61c13cab7e2e30d07c52f5
7
+ data.tar.gz: 2a27b4853584895f1b57a41f58e33d946731930e8b13e6418b03273ccdd1c2a1717ca1f2853dc618cdb368771790756f4e7dc87116a3b86064abda04ef430621
data/Gemfile CHANGED
@@ -2,5 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
  gem 'thor', '~>0.19.1'
5
- gem 'json'
6
- gem 'activesupport'
5
+ gem 'json', '~>1.8.3'
6
+ gem 'activesupport','~>4.2.4'
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Fab
1
+ # find-a-book
2
2
 
3
3
  Japan only.
4
4
  Your looking book.
@@ -9,9 +9,7 @@ This command is easy Your looking book.
9
9
 
10
10
  ```
11
11
  ruby
12
- gem 'fab'
13
- or
14
- gem 'fab', github:"https://github.com/kodaitakahashi/fab"
12
+ gem 'find-a-book'
15
13
  ```
16
14
 
17
15
  And then execute:
@@ -23,16 +21,20 @@ Or install it yourself as:
23
21
  $ gem install fab
24
22
 
25
23
  ## Usage
24
+ add PATH
25
+
26
+ $ln -s /path/to/find-a-book/bin/fab /usr/bin
27
+
26
28
  Get APIKey in Kariru
27
29
  [カーリル](https://calil.jp/"calil")
28
30
 
29
- $fab registratin { -a , --apikey} [Your APIkey]
31
+ $fab registratin { -a , --apikey}=[Your APIkey]
30
32
  APIkey add to apikey.rb
31
33
  [option]
32
34
  {-a , --apikey} add apikey.rb
33
35
  {-r , --remake} remake apikey.rb
34
36
 
35
- $fab find {-i , --isbn} {-p , --pref} {-c , --city}
37
+ $fab find {-i , --isbn}=[ISBN] {-p , --pref}=[pref] {-c , --city}=[city]
36
38
  search your looking book
37
39
  [option]
38
40
  {-i , --isbn} Your looking book isbn.
@@ -41,3 +43,7 @@ search your looking book
41
43
 
42
44
  $fab delete
43
45
  delete apikey.rb
46
+
47
+
48
+ ## License
49
+ MIT
data/bin/fab CHANGED
@@ -1,5 +1,28 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- coding: utf-8-*-
3
+ =begin
4
+ The MIT License (MIT)
5
+
6
+ Copyright (c) 2015 Kodai Takahashi.
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in
16
+ all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
+ THE SOFTWARE.
25
+ =end
3
26
 
4
27
  require 'fab/version'
5
28
  require 'fab'
@@ -8,6 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Fab::VERSION
9
9
  spec.authors = ["kodaitakahashi"]
10
10
  spec.email = ["kodaitakahashi.kt@gmail.com"]
11
+ spec.licenses = ['MIT']
11
12
 
12
13
  spec.summary = %q{Japan only. Your looking book. This command is easy Your looking book.}
13
14
  spec.description = %q{This command is easy Your looking book.}
@@ -19,8 +20,8 @@ Gem::Specification.new do |spec|
19
20
  spec.require_paths = ["lib"]
20
21
 
21
22
  spec.add_development_dependency "thor", "~> 0.19.1"
22
- spec.add_development_dependency "json"
23
- spec.add_development_dependency "activesupport"
23
+ spec.add_development_dependency "json", "~>1.8.3"
24
+ spec.add_development_dependency "activesupport", "~>4.2.4"
24
25
  spec.add_development_dependency "bundler", "~> 1.10"
25
26
  spec.add_development_dependency "rake", "~> 10.0"
26
27
  spec.add_development_dependency "rspec"
data/lib/fab.rb CHANGED
@@ -1,5 +1,30 @@
1
1
  #!/usr/local/env ruby
2
2
  #coding:utf-8
3
+
4
+ =begin
5
+ The MIT License (MIT)
6
+
7
+ Copyright (c) 2015 Kodai Takahashi.
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in
17
+ all copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
+ THE SOFTWARE.
26
+ =end
27
+
3
28
  require "apikey"
4
29
  require "json"
5
30
  require "open-uri"
@@ -1,3 +1,3 @@
1
1
  module Fab
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -1,6 +1,30 @@
1
1
  #/usr/local/env ruby
2
2
  #coding:utf-8
3
3
 
4
+ =begin
5
+ The MIT License (MIT)
6
+
7
+ Copyright (c) 2015 Kodai Takahashi.
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in
17
+ all copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
+ THE SOFTWARE.
26
+ =end
27
+
4
28
  module Fab
5
29
  class Api
6
30
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: find-a-book
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kodaitakahashi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-02 00:00:00.000000000 Z
11
+ date: 2015-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -28,30 +28,30 @@ dependencies:
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 1.8.3
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 1.8.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 4.2.4
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 4.2.4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -116,7 +116,8 @@ files:
116
116
  - lib/fab/version.rb
117
117
  - lib/generate.rb
118
118
  homepage: https://github.com/kodaitakahashi/fab
119
- licenses: []
119
+ licenses:
120
+ - MIT
120
121
  metadata: {}
121
122
  post_install_message:
122
123
  rdoc_options: []