sist02-cli 0.1.1 → 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: d0a1a330331ab6c608aab7ba3c41331caff49133
4
- data.tar.gz: b6fedcc9ed5916ea67cb585291f035df25ce3b53
3
+ metadata.gz: 9bd7f5f7795ebc09127deac02a2ed4b9040da403
4
+ data.tar.gz: 7b0f2d77e0ff10c79e6088515a457e82997dc7c4
5
5
  SHA512:
6
- metadata.gz: d6d110071c30df89a4f17ae35de6a38596f088998774a0af0325ab17ad12905dd73c1b72193532638d2443fd17f7358bae797106127ed5380357ccb8af9466a4
7
- data.tar.gz: 9c8cee845b397bf6113e16343add53af1fa41c5bac5d7c0d0675ec7e282a4fd3f50f4f3e9c3de861eb2c6bbc05ba6b819c94bf081efc660af599ff1a61bb0a10
6
+ metadata.gz: 9722216f4174ea5283ed258cdb85d737be5411c2a6dab4b517f8373731e115e11bd189b0dd37f18caf242ba0f5fd4a11ca73ea9199164a5fdca7474cd74329b2
7
+ data.tar.gz: 444eb12d0fc01788789cd354eaf4800d81df5a6eebe7a469f76f6cd116c60b8a7cb0272c38e272d0c69393945b2431cc2589f6aff453f962eb6a58805ed1b81a
data/README.md CHANGED
@@ -1,27 +1,92 @@
1
1
  # Sist02::Cli
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/sist02/cli`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ 大学のレポート、参考文献を書かなければいけない...
4
+
5
+ そんなとき、SIST02を自動的に出力するツールがあったら便利なのでは?
6
+
7
+ sist02-cliは、文献情報を自動的にSIST02形式にして出力するサービスです。
4
8
 
5
- TODO: Delete this and the text above, and describe your gem
6
9
 
7
10
  ## Installation
8
11
 
9
- Add this line to your application's Gemfile:
12
+ インストールは簡単です。
13
+
14
+ Rubyがインストールされていることが条件です。
15
+
16
+ ターミナルを開いて、
10
17
 
11
18
  ```ruby
12
- gem 'sist02-cli'
19
+ gem install sist02-cli
13
20
  ```
14
21
 
15
- And then execute:
22
+ と入力してsist02-cliをインストールします。
23
+
24
+ インストールが完了したらターミナルを再起動してください。
16
25
 
17
- $ bundle
26
+ ターミナルで
18
27
 
19
- Or install it yourself as:
28
+ ```shell
29
+ sist02
30
+ ```
31
+
32
+ と入力して
33
+
34
+ ```shell
35
+ Commands:
36
+ sist02 cinii_articles NAID # get cinii articles bibliography
37
+ sist02 cinii_books NAID # get cinii books bibliography
38
+ sist02 help [COMMAND] # Describe available commands or one specific command
39
+ ```
20
40
 
21
- $ gem install sist02-cli
41
+ と出力されればインストール成功です。インストールに失敗した場合はお手数ですが[松之木](https://twitter.com/himkt)までご連絡ください。
22
42
 
23
43
  ## Usage
24
44
 
45
+ 現在はCiNii articles(論文)とCiNii books(図書)に対応しています。
46
+
47
+ ### CiNii articles
48
+
49
+ 例えば[こちらの論文](http://ci.nii.ac.jp/naid/40020423125)を引用したいとします。
50
+
51
+ この論文のNAIDは40020423125です。
52
+
53
+ 従って、ターミナルに
54
+
55
+ ```shell
56
+ sist02 cinii_articles 40020423125
57
+ ```
58
+
59
+ と入力してください。
60
+
61
+ ```shell
62
+ 森田 倫子. 食料自給率と新たな指標 : 平成19年以降の動向と食料自給力の指標化. 調査と情報. 2015, vol. , no. 864, p. 巻頭1p,1-14.
63
+ ```
64
+
65
+ と出力されれば成功です。
66
+
67
+
68
+ ### CiNii books
69
+
70
+ 例えば[こちらの図書](http://ci.nii.ac.jp/ncid/BB18507477)を引用したいとします。
71
+
72
+ この論文のNCIDはBB18507477です。
73
+
74
+ 従って、ターミナルに
75
+
76
+ ```shell
77
+ sist02 cinii_books BB18507477
78
+ ```
79
+
80
+ と入力してください。
81
+
82
+ ```shell
83
+ まちライブラリー, マイクロ・ライブラリーサミット実行委員会, 礒井純充. マイクロ・ライブラリー : 人とまちをつなぐ小さな図書館. 学芸出版社, 2015, 238p.
84
+ ```
85
+
86
+ と出力されれば成功です。
87
+
88
+
89
+
25
90
  TODO: Write usage instructions here
26
91
 
27
92
  ## Development
@@ -33,7 +33,7 @@ module Sist02
33
33
  return result
34
34
  end
35
35
 
36
- desc "cinii_books NAID", "get cinii books bibliography"
36
+ desc "cinii_books NCID", "get cinii books bibliography"
37
37
  def cinii_books(ncid)
38
38
  begin
39
39
  html = open("http://ci.nii.ac.jp/ncid/#{ncid}.json").read
@@ -1,5 +1,5 @@
1
1
  module Sist02
2
2
  module Cli
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sist02-cli
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
  - himkt
@@ -67,8 +67,6 @@ files:
67
67
  - lib/sist02/cli.rb
68
68
  - lib/sist02/cli/cinii.rb
69
69
  - lib/sist02/cli/version.rb
70
- - spec/sist02/cli_spec.rb
71
- - spec/spec_helper.rb
72
70
  homepage: https://github.com/himkt/sist02-cli
73
71
  licenses: []
74
72
  metadata: {}
@@ -1,11 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Sist02::Cli do
4
- it 'has a version number' do
5
- expect(Sist02::Cli::VERSION).not_to be nil
6
- end
7
-
8
- it 'does something useful' do
9
- expect(false).to eq(true)
10
- end
11
- end
data/spec/spec_helper.rb DELETED
@@ -1,2 +0,0 @@
1
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
- require 'sist02/cli'