tw 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/History.txt +4 -0
  2. data/lib/tw.rb +1 -1
  3. data/lib/tw/app/main.rb +2 -0
  4. data/lib/tw/conf.rb +5 -1
  5. metadata +182 -204
@@ -1,3 +1,7 @@
1
+ === 0.3.7 2012-10-19
2
+
3
+ * use specify config file : --conf=FILEPATH
4
+
1
5
  === 0.3.6 2012-10-18
2
6
 
3
7
  * remove twitter-text gem
data/lib/tw.rb CHANGED
@@ -21,7 +21,7 @@ require 'tw/client/error'
21
21
  require 'tw/client/helper'
22
22
 
23
23
  module Tw
24
- VERSION = '0.3.6'
24
+ VERSION = '0.3.7'
25
25
  class Conf
26
26
  REQUIRE_VERSION = '0.1.0'
27
27
  end
@@ -54,6 +54,7 @@ module Tw::App
54
54
  arg :pipe, 'pipe tweet'
55
55
  arg :format, 'output format', :default => 'text'
56
56
  arg :silent, 'silent mode'
57
+ arg :conf, 'config file', :default => Tw::Conf.conf_file
57
58
  arg :version, 'show version', :alias => :v
58
59
  arg :help, 'show help', :alias => :h
59
60
 
@@ -91,6 +92,7 @@ module Tw::App
91
92
  end
92
93
 
93
94
  Render.silent = @parser[:silent]
95
+ Tw::Conf.conf_file = @parser[:conf]
94
96
 
95
97
  regist_cmds
96
98
 
@@ -21,7 +21,11 @@ module Tw
21
21
  end
22
22
 
23
23
  def self.conf_file
24
- "#{ENV['HOME']}/.tw.yml"
24
+ @@conf_file ||= "#{ENV['HOME']}/.tw.yml"
25
+ end
26
+
27
+ def self.conf_file=(fpath)
28
+ @@conf_file = fpath
25
29
  end
26
30
 
27
31
  def self.conf
metadata CHANGED
@@ -1,240 +1,223 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: tw
3
- version: !ruby/object:Gem::Version
4
- hash: 31
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.7
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 3
9
- - 6
10
- version: 0.3.6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Sho Hashimoto
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-10-18 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-10-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: oauth
16
+ requirement: !ruby/object:Gem::Requirement
22
17
  none: false
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- hash: 1
27
- segments:
28
- - 0
29
- - 4
30
- - 7
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
31
21
  version: 0.4.7
32
22
  - - <
33
- - !ruby/object:Gem::Version
34
- hash: 23
35
- segments:
36
- - 1
37
- - 0
38
- - 0
23
+ - !ruby/object:Gem::Version
39
24
  version: 1.0.0
40
- version_requirements: *id001
41
- name: oauth
42
- prerelease: false
43
25
  type: :runtime
44
- - !ruby/object:Gem::Dependency
45
- requirement: &id002 !ruby/object:Gem::Requirement
26
+ prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 0.4.7
33
+ - - <
34
+ - !ruby/object:Gem::Version
35
+ version: 1.0.0
36
+ - !ruby/object:Gem::Dependency
37
+ name: twitter
38
+ requirement: !ruby/object:Gem::Requirement
46
39
  none: false
47
- requirements:
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- hash: 63
51
- segments:
52
- - 4
53
- - 0
54
- - 0
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
55
43
  version: 4.0.0
56
44
  - - <
57
- - !ruby/object:Gem::Version
58
- hash: 55
59
- segments:
60
- - 5
61
- - 0
62
- - 0
45
+ - !ruby/object:Gem::Version
63
46
  version: 5.0.0
64
- version_requirements: *id002
65
- name: twitter
66
- prerelease: false
67
47
  type: :runtime
68
- - !ruby/object:Gem::Dependency
69
- requirement: &id003 !ruby/object:Gem::Requirement
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
70
50
  none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- hash: 31
75
- segments:
76
- - 1
77
- - 2
78
- - 0
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: 4.0.0
55
+ - - <
56
+ - !ruby/object:Gem::Version
57
+ version: 5.0.0
58
+ - !ruby/object:Gem::Dependency
59
+ name: userstream
60
+ requirement: !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
79
65
  version: 1.2.0
80
66
  - - <
81
- - !ruby/object:Gem::Version
82
- hash: 27
83
- segments:
84
- - 1
85
- - 3
86
- - 0
67
+ - !ruby/object:Gem::Version
87
68
  version: 1.3.0
88
- version_requirements: *id003
89
- name: userstream
90
- prerelease: false
91
69
  type: :runtime
92
- - !ruby/object:Gem::Dependency
93
- requirement: &id004 !ruby/object:Gem::Requirement
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
94
72
  none: false
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- hash: 1
99
- segments:
100
- - 1
101
- - 7
102
- - 5
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: 1.2.0
77
+ - - <
78
+ - !ruby/object:Gem::Version
79
+ version: 1.3.0
80
+ - !ruby/object:Gem::Dependency
81
+ name: json
82
+ requirement: !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
103
87
  version: 1.7.5
104
88
  - - <
105
- - !ruby/object:Gem::Version
106
- hash: 55
107
- segments:
108
- - 1
109
- - 8
110
- - 0
89
+ - !ruby/object:Gem::Version
111
90
  version: 1.8.0
112
- version_requirements: *id004
113
- name: json
114
- prerelease: false
115
91
  type: :runtime
116
- - !ruby/object:Gem::Dependency
117
- requirement: &id005 !ruby/object:Gem::Requirement
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
118
94
  none: false
119
- requirements:
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- hash: 31
123
- segments:
124
- - 0
125
- - 1
126
- - 2
127
- version: 0.1.2
128
- version_requirements: *id005
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: 1.7.5
99
+ - - <
100
+ - !ruby/object:Gem::Version
101
+ version: 1.8.0
102
+ - !ruby/object:Gem::Dependency
129
103
  name: args_parser
130
- prerelease: false
104
+ requirement: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: 0.1.2
131
110
  type: :runtime
132
- - !ruby/object:Gem::Dependency
133
- requirement: &id006 !ruby/object:Gem::Requirement
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
134
113
  none: false
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- hash: 27
139
- segments:
140
- - 1
141
- - 1
142
- - 4
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: 0.1.2
118
+ - !ruby/object:Gem::Dependency
119
+ name: rainbow
120
+ requirement: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
143
125
  version: 1.1.4
144
126
  - - <
145
- - !ruby/object:Gem::Version
146
- hash: 15
147
- segments:
148
- - 2
149
- - 0
150
- - 0
127
+ - !ruby/object:Gem::Version
151
128
  version: 2.0.0
152
- version_requirements: *id006
153
- name: rainbow
154
- prerelease: false
155
129
  type: :runtime
156
- - !ruby/object:Gem::Dependency
157
- requirement: &id007 !ruby/object:Gem::Requirement
130
+ prerelease: false
131
+ version_requirements: !ruby/object:Gem::Requirement
132
+ none: false
133
+ requirements:
134
+ - - ! '>='
135
+ - !ruby/object:Gem::Version
136
+ version: 1.1.4
137
+ - - <
138
+ - !ruby/object:Gem::Version
139
+ version: 2.0.0
140
+ - !ruby/object:Gem::Dependency
141
+ name: parallel
142
+ requirement: !ruby/object:Gem::Requirement
158
143
  none: false
159
- requirements:
160
- - - ">="
161
- - !ruby/object:Gem::Version
162
- hash: 47
163
- segments:
164
- - 0
165
- - 5
166
- - 18
144
+ requirements:
145
+ - - ! '>='
146
+ - !ruby/object:Gem::Version
167
147
  version: 0.5.18
168
148
  - - <
169
- - !ruby/object:Gem::Version
170
- hash: 23
171
- segments:
172
- - 1
173
- - 0
174
- - 0
149
+ - !ruby/object:Gem::Version
175
150
  version: 1.0.0
176
- version_requirements: *id007
177
- name: parallel
178
- prerelease: false
179
151
  type: :runtime
180
- - !ruby/object:Gem::Dependency
181
- requirement: &id008 !ruby/object:Gem::Requirement
152
+ prerelease: false
153
+ version_requirements: !ruby/object:Gem::Requirement
182
154
  none: false
183
- requirements:
184
- - - ~>
185
- - !ruby/object:Gem::Version
186
- hash: 19
187
- segments:
188
- - 3
189
- - 10
190
- version: "3.10"
191
- version_requirements: *id008
155
+ requirements:
156
+ - - ! '>='
157
+ - !ruby/object:Gem::Version
158
+ version: 0.5.18
159
+ - - <
160
+ - !ruby/object:Gem::Version
161
+ version: 1.0.0
162
+ - !ruby/object:Gem::Dependency
192
163
  name: rdoc
193
- prerelease: false
164
+ requirement: !ruby/object:Gem::Requirement
165
+ none: false
166
+ requirements:
167
+ - - ~>
168
+ - !ruby/object:Gem::Version
169
+ version: '3.10'
194
170
  type: :development
195
- - !ruby/object:Gem::Dependency
196
- requirement: &id009 !ruby/object:Gem::Requirement
171
+ prerelease: false
172
+ version_requirements: !ruby/object:Gem::Requirement
197
173
  none: false
198
- requirements:
199
- - - ">="
200
- - !ruby/object:Gem::Version
201
- hash: 5
202
- segments:
203
- - 1
204
- - 5
205
- - 3
206
- version: 1.5.3
207
- version_requirements: *id009
174
+ requirements:
175
+ - - ~>
176
+ - !ruby/object:Gem::Version
177
+ version: '3.10'
178
+ - !ruby/object:Gem::Dependency
208
179
  name: newgem
209
- prerelease: false
180
+ requirement: !ruby/object:Gem::Requirement
181
+ none: false
182
+ requirements:
183
+ - - ! '>='
184
+ - !ruby/object:Gem::Version
185
+ version: 1.5.3
210
186
  type: :development
211
- - !ruby/object:Gem::Dependency
212
- requirement: &id010 !ruby/object:Gem::Requirement
187
+ prerelease: false
188
+ version_requirements: !ruby/object:Gem::Requirement
213
189
  none: false
214
- requirements:
215
- - - ~>
216
- - !ruby/object:Gem::Version
217
- hash: 5
218
- segments:
219
- - 3
220
- - 1
221
- version: "3.1"
222
- version_requirements: *id010
190
+ requirements:
191
+ - - ! '>='
192
+ - !ruby/object:Gem::Version
193
+ version: 1.5.3
194
+ - !ruby/object:Gem::Dependency
223
195
  name: hoe
224
- prerelease: false
196
+ requirement: !ruby/object:Gem::Requirement
197
+ none: false
198
+ requirements:
199
+ - - ~>
200
+ - !ruby/object:Gem::Version
201
+ version: '3.1'
225
202
  type: :development
226
- description: "* twitter client."
227
- email:
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ none: false
206
+ requirements:
207
+ - - ~>
208
+ - !ruby/object:Gem::Version
209
+ version: '3.1'
210
+ description: ! '* twitter client.'
211
+ email:
228
212
  - hashimoto@shokai.org
229
- executables:
213
+ executables:
230
214
  - tw
231
215
  extensions: []
232
-
233
- extra_rdoc_files:
216
+ extra_rdoc_files:
234
217
  - History.txt
235
218
  - Manifest.txt
236
219
  - README.rdoc
237
- files:
220
+ files:
238
221
  - Gemfile
239
222
  - Gemfile.lock
240
223
  - History.txt
@@ -268,39 +251,34 @@ files:
268
251
  - .gemtest
269
252
  homepage: http://shokai.github.com/tw
270
253
  licenses: []
271
-
272
- post_install_message: "!! Installed \"tw\" command. => http://shokai.github.com/tw"
273
- rdoc_options:
254
+ post_install_message: ! '!! Installed "tw" command. => http://shokai.github.com/tw'
255
+ rdoc_options:
274
256
  - --main
275
257
  - README.rdoc
276
- require_paths:
258
+ require_paths:
277
259
  - lib
278
- required_ruby_version: !ruby/object:Gem::Requirement
260
+ required_ruby_version: !ruby/object:Gem::Requirement
279
261
  none: false
280
- requirements:
281
- - - ">="
282
- - !ruby/object:Gem::Version
283
- hash: 3
284
- segments:
262
+ requirements:
263
+ - - ! '>='
264
+ - !ruby/object:Gem::Version
265
+ version: '0'
266
+ segments:
285
267
  - 0
286
- version: "0"
287
- required_rubygems_version: !ruby/object:Gem::Requirement
268
+ hash: -3801106054667103642
269
+ required_rubygems_version: !ruby/object:Gem::Requirement
288
270
  none: false
289
- requirements:
290
- - - ">="
291
- - !ruby/object:Gem::Version
292
- hash: 3
293
- segments:
294
- - 0
295
- version: "0"
271
+ requirements:
272
+ - - ! '>='
273
+ - !ruby/object:Gem::Version
274
+ version: '0'
296
275
  requirements: []
297
-
298
276
  rubyforge_project: tw
299
277
  rubygems_version: 1.8.24
300
278
  signing_key:
301
279
  specification_version: 3
302
- summary: "* twitter client."
303
- test_files:
280
+ summary: ! '* twitter client.'
281
+ test_files:
304
282
  - test/test_helper.rb
305
283
  - test/test_t_co.rb
306
284
  - test/test_tw.rb