hatena-bookmark-cli 0.0.0 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c692e103878405689c5a0210ff8bb653ad97506a
4
- data.tar.gz: e6416cc87af3d6025a980fad0a47a453be7dcc1e
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NTI2MWUyZThmM2JmYTUwZGRmYmY2YzlkYjhhZTUzMjlkYzIzZjFiMw==
5
+ data.tar.gz: !binary |-
6
+ OWFlMmI2MjZjZmE2MTk4MjI3Y2QyMjExYmI3NjliYjk3YzIwOWE3Zg==
5
7
  SHA512:
6
- metadata.gz: 575b13d82c9ffaf342ad2ddbd72be5ee9356e794f6c8b41004a569b579e2c817548df5888f49e42da9b2a981551ccd5fc1ec708757aa842a962d371efcf78691
7
- data.tar.gz: 7354edd773eae1d50d7efe0193efdab301857b1a79de33a6a43e2eef36f08c1b75f5a4ed9f30cc979a4aba6ebfd1a6563b94c22c381718826d31e6ad00a620a3
8
+ metadata.gz: !binary |-
9
+ YjNhODM1YTlhNDI4ZjUyMzk4ZDg4OTZlOTNkYTRhZjM1MTRiMDM1YTFmZWRm
10
+ ODA4YTI0YzIyNjk3N2FkMWVhYTIxYjM4ZTdiNDRjYjkzMzE1ZDc2ODgxYmMw
11
+ YzJiZDgwNDBiNmExMGEwMGRlY2U4NTc0ZTMwODQ4NTcwODk3ZjQ=
12
+ data.tar.gz: !binary |-
13
+ MzEzOTQyNDQzZjc5NzFjNTM0NmIwMTFmZWRjM2MxMjMzOGY0ZjFjY2U2YTEz
14
+ NDJmODJjMDMwMGI0N2E5M2M0NGY1ZmU4OGZhMTVhODU5MGIwYjk2YWFhMDM0
15
+ NGU3NDhmYzE1ZDZjODc1OGQ2NDQ4ZWUyNDM5MmJkYTg4OTJjZmE=
@@ -0,0 +1,17 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.0
4
+ install:
5
+ - bundle install
6
+ - bundle exec rake install
7
+ script:
8
+ - bundle exec rake spec
9
+ gemfile:
10
+ - Gemfile
11
+ deploy:
12
+ provider: rubygems
13
+ api_key:
14
+ secure: "d0r7NFWksgSLGtLVCVkMgXA1bJz3sf/1ZIHWEzaI/pI0adAgRfJGfuwC32bUIqhIvWu2PUKciIi98vOcaSGqhSCj9COgRT/ldhICO/v0JXNk3k2pMwVdU7y9PllHwRcPSLGYFMsU/5WCHB+DCdMtVQqJY0AlMItSkhOWQluYQUs="
15
+ gem:
16
+ master:
17
+ secure: "qwC315ppgWGsaJ/WrAoebyn+UHAFT+4bJxJAmXuDZFB2OxhS2tidNdOjPeofZRlylHi8eWfbYNYH2Eh4ofEaCAraOjohv3YG3NaXpJ/di1RyAd8+Q+ZjO2cyH/Z8SGJWnJfIZkU4osEYc1EfwO3KI0BRqmpDqES+vpYhIeG/PrM="
data/README.md CHANGED
@@ -1,24 +1,39 @@
1
- # Hatena::Bookmark::Cli
1
+ # hatena-bookmark-cli
2
2
 
3
- TODO: Write a gem description
3
+ はてなブックマークをコマンドライン(w3mなど)から利用するためのツールです。
4
4
 
5
- ## Installation
5
+ ## インストール方法
6
6
 
7
- Add this line to your application's Gemfile:
7
+ $ gem install hatena-bookmark-cli
8
8
 
9
- gem 'hatena-bookmark-cli'
9
+ ## 使い方
10
10
 
11
- And then execute:
11
+ ### 基本設定
12
12
 
13
- $ bundle
13
+ * `hatena-bookmark-auth`を実行して、認証用サーバーを起動
14
+ * `~/.hatena-bookmark/config.yml`にConsumer KeyとConsumer Secretを記述
15
+ * ブラウザから `http://localhost:48080` にアクセス
16
+ * [ログイン]ボタンを押す
17
+ * 補完が必要な場合は「更新」ボタンを押す
18
+ * `hatena-bookmark {url}`を実行するとブックマークのタグやコメントを設定するためのプロンプトが表示される
14
19
 
15
- Or install it yourself as:
20
+ #### config.yml
16
21
 
17
- $ gem install hatena-bookmark-cli
22
+ ```yaml
23
+ :consumer_key: Consumer Key
24
+ :consumer_secret: Consumer Secret
25
+
26
+ ```
27
+
28
+ ### w3mから利用する場合
18
29
 
19
- ## Usage
30
+ #### ~/.w3m/keymap
20
31
 
21
- TODO: Write usage instructions here
32
+ ```
33
+ keymap m EXTERN "hatena-bookmark '%s'"
34
+ ```
35
+
36
+ `m`キーを押すと、表示しているページのURLをはてなブックマークに登録することができます。
22
37
 
23
38
  ## Contributing
24
39
 
@@ -27,3 +42,9 @@ TODO: Write usage instructions here
27
42
  3. Commit your changes (`git commit -am 'Add some feature'`)
28
43
  4. Push to the branch (`git push origin my-new-feature`)
29
44
  5. Create new Pull Request
45
+
46
+ ### リンク集
47
+
48
+ * http://b.hatena.ne.jp/
49
+ * http://mattn.kaoriya.net/software/w3m/20090801214718.htm
50
+
data/config.ru CHANGED
@@ -1,4 +1,6 @@
1
- require_relative 'lib/hatena-bookmark-cli/server'
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'hatena-bookmark-cli/server'
2
4
 
3
5
  run HatenaBookmarkCLI::Server
4
6
 
@@ -1,6 +1,8 @@
1
1
  # coding: utf-8
2
2
 
3
- require_relative 'lib/hatena-bookmark-cli/version'
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'hatena-bookmark-cli/version'
4
6
 
5
7
  Gem::Specification.new do |spec|
6
8
  spec.name = "hatena-bookmark-cli"
@@ -23,6 +25,7 @@ Gem::Specification.new do |spec|
23
25
  spec.add_dependency "sinatra-contrib"
24
26
  spec.add_dependency "haml"
25
27
  spec.add_dependency "oauth"
28
+ spec.add_dependency "bigdecimal"
26
29
  spec.add_dependency "activesupport"
27
30
  spec.add_dependency "ratom"
28
31
  spec.add_dependency "highline"
@@ -1,3 +1,3 @@
1
1
  module HatenaBookmarkCLI
2
- VERSION = "0.0.0"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hatena-bookmark-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroyuki Sano
@@ -14,154 +14,168 @@ dependencies:
14
14
  name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack_csrf
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sinatra
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sinatra-contrib
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: haml
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: oauth
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: bigdecimal
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ! '>='
95
109
  - !ruby/object:Gem::Version
96
110
  version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: activesupport
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - ">="
115
+ - - ! '>='
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - ">="
122
+ - - ! '>='
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: ratom
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
- - - ">="
129
+ - - ! '>='
116
130
  - !ruby/object:Gem::Version
117
131
  version: '0'
118
132
  type: :runtime
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
- - - ">="
136
+ - - ! '>='
123
137
  - !ruby/object:Gem::Version
124
138
  version: '0'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: highline
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
- - - ">="
143
+ - - ! '>='
130
144
  - !ruby/object:Gem::Version
131
145
  version: '0'
132
146
  type: :runtime
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
- - - ">="
150
+ - - ! '>='
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: bundler
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
- - - "~>"
157
+ - - ~>
144
158
  - !ruby/object:Gem::Version
145
159
  version: '1.5'
146
160
  type: :development
147
161
  prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
- - - "~>"
164
+ - - ~>
151
165
  - !ruby/object:Gem::Version
152
166
  version: '1.5'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: rake
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
- - - ">="
171
+ - - ! '>='
158
172
  - !ruby/object:Gem::Version
159
173
  version: '0'
160
174
  type: :development
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
- - - ">="
178
+ - - ! '>='
165
179
  - !ruby/object:Gem::Version
166
180
  version: '0'
167
181
  description: Hatena Bookmark CLI
@@ -173,7 +187,8 @@ executables:
173
187
  extensions: []
174
188
  extra_rdoc_files: []
175
189
  files:
176
- - ".gitignore"
190
+ - .gitignore
191
+ - .travis.yml
177
192
  - Gemfile
178
193
  - LICENSE.txt
179
194
  - README.md
@@ -204,17 +219,17 @@ require_paths:
204
219
  - lib
205
220
  required_ruby_version: !ruby/object:Gem::Requirement
206
221
  requirements:
207
- - - ">="
222
+ - - ! '>='
208
223
  - !ruby/object:Gem::Version
209
224
  version: '0'
210
225
  required_rubygems_version: !ruby/object:Gem::Requirement
211
226
  requirements:
212
- - - ">="
227
+ - - ! '>='
213
228
  - !ruby/object:Gem::Version
214
229
  version: '0'
215
230
  requirements: []
216
231
  rubyforge_project:
217
- rubygems_version: 2.2.0
232
+ rubygems_version: 2.2.2
218
233
  signing_key:
219
234
  specification_version: 4
220
235
  summary: Hatena Bookmark CLI