weibo 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -15
- data/Gemfile.lock +0 -53
- data/Rakefile +35 -19
- data/VERSION +1 -1
- data/weibo.gemspec +4 -25
- metadata +13 -112
data/Gemfile
CHANGED
@@ -3,18 +3,4 @@ gem "oauth"
|
|
3
3
|
gem "hashie"
|
4
4
|
gem "httparty"
|
5
5
|
gem 'crack'
|
6
|
-
|
7
|
-
# For Development
|
8
|
-
gem "rake"
|
9
|
-
gem "rspec", "~> 2.0"
|
10
|
-
gem "cucumber"
|
11
|
-
gem "aruba"
|
12
|
-
|
13
|
-
# For Gem release
|
14
|
-
gem "jeweler"
|
15
|
-
|
16
|
-
# For Guard
|
17
|
-
gem "rb-fsevent"
|
18
|
-
gem "growl_notify"
|
19
|
-
gem "guard-rspec"
|
20
|
-
gem "guard-cucumber"
|
6
|
+
gem "jeweler"
|
data/Gemfile.lock
CHANGED
@@ -1,38 +1,8 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
aruba (0.4.6)
|
5
|
-
bcat (>= 0.6.1)
|
6
|
-
childprocess (>= 0.2.0)
|
7
|
-
cucumber (>= 1.0.2)
|
8
|
-
rdiscount (>= 1.6.8)
|
9
|
-
rspec (>= 2.6.0)
|
10
|
-
bcat (0.6.1)
|
11
|
-
rack (~> 1.0)
|
12
|
-
builder (3.0.0)
|
13
|
-
childprocess (0.2.1)
|
14
|
-
ffi (~> 1.0.6)
|
15
4
|
crack (0.1.8)
|
16
|
-
cucumber (1.0.2)
|
17
|
-
builder (>= 2.1.2)
|
18
|
-
diff-lcs (>= 1.1.2)
|
19
|
-
gherkin (~> 2.4.5)
|
20
|
-
json (>= 1.4.6)
|
21
|
-
term-ansicolor (>= 1.0.5)
|
22
|
-
diff-lcs (1.1.2)
|
23
|
-
ffi (1.0.9)
|
24
|
-
gherkin (2.4.6)
|
25
|
-
json (>= 1.4.6)
|
26
5
|
git (1.2.5)
|
27
|
-
growl_notify (0.0.1)
|
28
|
-
rb-appscript
|
29
|
-
guard (0.6.0)
|
30
|
-
thor (~> 0.14.6)
|
31
|
-
guard-cucumber (0.6.0)
|
32
|
-
cucumber (>= 0.10)
|
33
|
-
guard (>= 0.4.0)
|
34
|
-
guard-rspec (0.4.2)
|
35
|
-
guard (>= 0.4.0)
|
36
6
|
hashie (1.1.0)
|
37
7
|
httparty (0.7.8)
|
38
8
|
crack (= 0.1.8)
|
@@ -40,38 +10,15 @@ GEM
|
|
40
10
|
bundler (~> 1.0)
|
41
11
|
git (>= 1.2.5)
|
42
12
|
rake
|
43
|
-
json (1.5.3)
|
44
13
|
oauth (0.4.5)
|
45
|
-
rack (1.2.3)
|
46
14
|
rake (0.9.2)
|
47
|
-
rb-appscript (0.6.1)
|
48
|
-
rb-fsevent (0.4.3)
|
49
|
-
rdiscount (1.6.8)
|
50
|
-
rspec (2.6.0)
|
51
|
-
rspec-core (~> 2.6.0)
|
52
|
-
rspec-expectations (~> 2.6.0)
|
53
|
-
rspec-mocks (~> 2.6.0)
|
54
|
-
rspec-core (2.6.4)
|
55
|
-
rspec-expectations (2.6.0)
|
56
|
-
diff-lcs (~> 1.1.2)
|
57
|
-
rspec-mocks (2.6.0)
|
58
|
-
term-ansicolor (1.0.6)
|
59
|
-
thor (0.14.6)
|
60
15
|
|
61
16
|
PLATFORMS
|
62
17
|
ruby
|
63
18
|
|
64
19
|
DEPENDENCIES
|
65
|
-
aruba
|
66
20
|
crack
|
67
|
-
cucumber
|
68
|
-
growl_notify
|
69
|
-
guard-cucumber
|
70
|
-
guard-rspec
|
71
21
|
hashie
|
72
22
|
httparty
|
73
23
|
jeweler
|
74
24
|
oauth
|
75
|
-
rake
|
76
|
-
rb-fsevent
|
77
|
-
rspec (~> 2.0)
|
data/Rakefile
CHANGED
@@ -1,24 +1,5 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'bundler/setup'
|
3
2
|
require 'rake'
|
4
|
-
require 'rspec/core/rake_task'
|
5
|
-
require 'cucumber/rake/task'
|
6
|
-
|
7
|
-
desc 'Default: Run the specs'
|
8
|
-
task :default => ['spec:unit', 'cucumber']
|
9
|
-
|
10
|
-
namespace :spec do
|
11
|
-
desc 'Run unit specs'
|
12
|
-
RSpec::Core::RakeTask.new('unit') do |t|
|
13
|
-
t.pattern = 'spec/{*_spec.rb,weibo/**/*_spec.rb}'
|
14
|
-
end
|
15
|
-
end
|
16
|
-
task :spec => 'spec:unit'
|
17
|
-
|
18
|
-
desc 'Cucumber'
|
19
|
-
Cucumber::Rake::Task.new(:cucumber) do |t|
|
20
|
-
t.fork = true
|
21
|
-
end
|
22
3
|
|
23
4
|
begin
|
24
5
|
require 'jeweler'
|
@@ -29,6 +10,7 @@ begin
|
|
29
10
|
gem.email = "ussballantyne@gmail.com"
|
30
11
|
gem.homepage = "http://github.com/ballantyne/weibo"
|
31
12
|
gem.authors = ["Scott Ballantyne"]
|
13
|
+
gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
|
32
14
|
gem.add_dependency "oauth", "~> 0.4.1"
|
33
15
|
gem.add_dependency "hashie"
|
34
16
|
gem.add_dependency "httparty", ">= 0.5.2"
|
@@ -38,3 +20,37 @@ begin
|
|
38
20
|
rescue LoadError
|
39
21
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
40
22
|
end
|
23
|
+
|
24
|
+
require 'rake/testtask'
|
25
|
+
Rake::TestTask.new(:test) do |test|
|
26
|
+
test.libs << 'lib' << 'test'
|
27
|
+
test.pattern = 'test/**/test_*.rb'
|
28
|
+
test.verbose = true
|
29
|
+
end
|
30
|
+
|
31
|
+
begin
|
32
|
+
require 'rcov/rcovtask'
|
33
|
+
Rcov::RcovTask.new do |test|
|
34
|
+
test.libs << 'test'
|
35
|
+
test.pattern = 'test/**/test_*.rb'
|
36
|
+
test.verbose = true
|
37
|
+
end
|
38
|
+
rescue LoadError
|
39
|
+
task :rcov do
|
40
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
task :test => :check_dependencies
|
45
|
+
|
46
|
+
task :default => :test
|
47
|
+
|
48
|
+
require 'rake/rdoctask'
|
49
|
+
Rake::RDocTask.new do |rdoc|
|
50
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
51
|
+
|
52
|
+
rdoc.rdoc_dir = 'rdoc'
|
53
|
+
rdoc.title = "weibo #{version}"
|
54
|
+
rdoc.rdoc_files.include('README*')
|
55
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
56
|
+
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.11
|
data/weibo.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{weibo}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.11"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Scott Ballantyne"]
|
@@ -58,15 +58,8 @@ Gem::Specification.new do |s|
|
|
58
58
|
s.add_runtime_dependency(%q<hashie>, [">= 0"])
|
59
59
|
s.add_runtime_dependency(%q<httparty>, [">= 0"])
|
60
60
|
s.add_runtime_dependency(%q<crack>, [">= 0"])
|
61
|
-
s.add_runtime_dependency(%q<rake>, [">= 0"])
|
62
|
-
s.add_runtime_dependency(%q<rspec>, ["~> 2.0"])
|
63
|
-
s.add_runtime_dependency(%q<cucumber>, [">= 0"])
|
64
|
-
s.add_runtime_dependency(%q<aruba>, [">= 0"])
|
65
61
|
s.add_runtime_dependency(%q<jeweler>, [">= 0"])
|
66
|
-
s.
|
67
|
-
s.add_runtime_dependency(%q<growl_notify>, [">= 0"])
|
68
|
-
s.add_runtime_dependency(%q<guard-rspec>, [">= 0"])
|
69
|
-
s.add_runtime_dependency(%q<guard-cucumber>, [">= 0"])
|
62
|
+
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
70
63
|
s.add_runtime_dependency(%q<oauth>, ["~> 0.4.1"])
|
71
64
|
s.add_runtime_dependency(%q<hashie>, [">= 0"])
|
72
65
|
s.add_runtime_dependency(%q<httparty>, [">= 0.5.2"])
|
@@ -75,15 +68,8 @@ Gem::Specification.new do |s|
|
|
75
68
|
s.add_dependency(%q<hashie>, [">= 0"])
|
76
69
|
s.add_dependency(%q<httparty>, [">= 0"])
|
77
70
|
s.add_dependency(%q<crack>, [">= 0"])
|
78
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
79
|
-
s.add_dependency(%q<rspec>, ["~> 2.0"])
|
80
|
-
s.add_dependency(%q<cucumber>, [">= 0"])
|
81
|
-
s.add_dependency(%q<aruba>, [">= 0"])
|
82
71
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
83
|
-
s.add_dependency(%q<
|
84
|
-
s.add_dependency(%q<growl_notify>, [">= 0"])
|
85
|
-
s.add_dependency(%q<guard-rspec>, [">= 0"])
|
86
|
-
s.add_dependency(%q<guard-cucumber>, [">= 0"])
|
72
|
+
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
87
73
|
s.add_dependency(%q<oauth>, ["~> 0.4.1"])
|
88
74
|
s.add_dependency(%q<hashie>, [">= 0"])
|
89
75
|
s.add_dependency(%q<httparty>, [">= 0.5.2"])
|
@@ -93,15 +79,8 @@ Gem::Specification.new do |s|
|
|
93
79
|
s.add_dependency(%q<hashie>, [">= 0"])
|
94
80
|
s.add_dependency(%q<httparty>, [">= 0"])
|
95
81
|
s.add_dependency(%q<crack>, [">= 0"])
|
96
|
-
s.add_dependency(%q<rake>, [">= 0"])
|
97
|
-
s.add_dependency(%q<rspec>, ["~> 2.0"])
|
98
|
-
s.add_dependency(%q<cucumber>, [">= 0"])
|
99
|
-
s.add_dependency(%q<aruba>, [">= 0"])
|
100
82
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
101
|
-
s.add_dependency(%q<
|
102
|
-
s.add_dependency(%q<growl_notify>, [">= 0"])
|
103
|
-
s.add_dependency(%q<guard-rspec>, [">= 0"])
|
104
|
-
s.add_dependency(%q<guard-cucumber>, [">= 0"])
|
83
|
+
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
105
84
|
s.add_dependency(%q<oauth>, ["~> 0.4.1"])
|
106
85
|
s.add_dependency(%q<hashie>, [">= 0"])
|
107
86
|
s.add_dependency(%q<httparty>, [">= 0.5.2"])
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weibo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 11
|
10
|
+
version: 0.0.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Ballantyne
|
@@ -77,7 +77,7 @@ dependencies:
|
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
type: :runtime
|
79
79
|
prerelease: false
|
80
|
-
name:
|
80
|
+
name: jeweler
|
81
81
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
82
82
|
none: false
|
83
83
|
requirements:
|
@@ -89,81 +89,10 @@ dependencies:
|
|
89
89
|
version: "0"
|
90
90
|
requirement: *id005
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
|
-
type: :
|
92
|
+
type: :development
|
93
93
|
prerelease: false
|
94
|
-
name:
|
94
|
+
name: thoughtbot-shoulda
|
95
95
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
|
-
requirements:
|
98
|
-
- - ~>
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
hash: 3
|
101
|
-
segments:
|
102
|
-
- 2
|
103
|
-
- 0
|
104
|
-
version: "2.0"
|
105
|
-
requirement: *id006
|
106
|
-
- !ruby/object:Gem::Dependency
|
107
|
-
type: :runtime
|
108
|
-
prerelease: false
|
109
|
-
name: cucumber
|
110
|
-
version_requirements: &id007 !ruby/object:Gem::Requirement
|
111
|
-
none: false
|
112
|
-
requirements:
|
113
|
-
- - ">="
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
hash: 3
|
116
|
-
segments:
|
117
|
-
- 0
|
118
|
-
version: "0"
|
119
|
-
requirement: *id007
|
120
|
-
- !ruby/object:Gem::Dependency
|
121
|
-
type: :runtime
|
122
|
-
prerelease: false
|
123
|
-
name: aruba
|
124
|
-
version_requirements: &id008 !ruby/object:Gem::Requirement
|
125
|
-
none: false
|
126
|
-
requirements:
|
127
|
-
- - ">="
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
hash: 3
|
130
|
-
segments:
|
131
|
-
- 0
|
132
|
-
version: "0"
|
133
|
-
requirement: *id008
|
134
|
-
- !ruby/object:Gem::Dependency
|
135
|
-
type: :runtime
|
136
|
-
prerelease: false
|
137
|
-
name: jeweler
|
138
|
-
version_requirements: &id009 !ruby/object:Gem::Requirement
|
139
|
-
none: false
|
140
|
-
requirements:
|
141
|
-
- - ">="
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
hash: 3
|
144
|
-
segments:
|
145
|
-
- 0
|
146
|
-
version: "0"
|
147
|
-
requirement: *id009
|
148
|
-
- !ruby/object:Gem::Dependency
|
149
|
-
type: :runtime
|
150
|
-
prerelease: false
|
151
|
-
name: rb-fsevent
|
152
|
-
version_requirements: &id010 !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
|
-
requirements:
|
155
|
-
- - ">="
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
hash: 3
|
158
|
-
segments:
|
159
|
-
- 0
|
160
|
-
version: "0"
|
161
|
-
requirement: *id010
|
162
|
-
- !ruby/object:Gem::Dependency
|
163
|
-
type: :runtime
|
164
|
-
prerelease: false
|
165
|
-
name: growl_notify
|
166
|
-
version_requirements: &id011 !ruby/object:Gem::Requirement
|
167
96
|
none: false
|
168
97
|
requirements:
|
169
98
|
- - ">="
|
@@ -172,40 +101,12 @@ dependencies:
|
|
172
101
|
segments:
|
173
102
|
- 0
|
174
103
|
version: "0"
|
175
|
-
requirement: *
|
176
|
-
- !ruby/object:Gem::Dependency
|
177
|
-
type: :runtime
|
178
|
-
prerelease: false
|
179
|
-
name: guard-rspec
|
180
|
-
version_requirements: &id012 !ruby/object:Gem::Requirement
|
181
|
-
none: false
|
182
|
-
requirements:
|
183
|
-
- - ">="
|
184
|
-
- !ruby/object:Gem::Version
|
185
|
-
hash: 3
|
186
|
-
segments:
|
187
|
-
- 0
|
188
|
-
version: "0"
|
189
|
-
requirement: *id012
|
190
|
-
- !ruby/object:Gem::Dependency
|
191
|
-
type: :runtime
|
192
|
-
prerelease: false
|
193
|
-
name: guard-cucumber
|
194
|
-
version_requirements: &id013 !ruby/object:Gem::Requirement
|
195
|
-
none: false
|
196
|
-
requirements:
|
197
|
-
- - ">="
|
198
|
-
- !ruby/object:Gem::Version
|
199
|
-
hash: 3
|
200
|
-
segments:
|
201
|
-
- 0
|
202
|
-
version: "0"
|
203
|
-
requirement: *id013
|
104
|
+
requirement: *id006
|
204
105
|
- !ruby/object:Gem::Dependency
|
205
106
|
type: :runtime
|
206
107
|
prerelease: false
|
207
108
|
name: oauth
|
208
|
-
version_requirements: &
|
109
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
209
110
|
none: false
|
210
111
|
requirements:
|
211
112
|
- - ~>
|
@@ -216,12 +117,12 @@ dependencies:
|
|
216
117
|
- 4
|
217
118
|
- 1
|
218
119
|
version: 0.4.1
|
219
|
-
requirement: *
|
120
|
+
requirement: *id007
|
220
121
|
- !ruby/object:Gem::Dependency
|
221
122
|
type: :runtime
|
222
123
|
prerelease: false
|
223
124
|
name: hashie
|
224
|
-
version_requirements: &
|
125
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
225
126
|
none: false
|
226
127
|
requirements:
|
227
128
|
- - ">="
|
@@ -230,12 +131,12 @@ dependencies:
|
|
230
131
|
segments:
|
231
132
|
- 0
|
232
133
|
version: "0"
|
233
|
-
requirement: *
|
134
|
+
requirement: *id008
|
234
135
|
- !ruby/object:Gem::Dependency
|
235
136
|
type: :runtime
|
236
137
|
prerelease: false
|
237
138
|
name: httparty
|
238
|
-
version_requirements: &
|
139
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
239
140
|
none: false
|
240
141
|
requirements:
|
241
142
|
- - ">="
|
@@ -246,7 +147,7 @@ dependencies:
|
|
246
147
|
- 5
|
247
148
|
- 2
|
248
149
|
version: 0.5.2
|
249
|
-
requirement: *
|
150
|
+
requirement: *id009
|
250
151
|
description: "this gem is an adaptation of John Nunemaker's Twitter gem. I modified it to make api integration for \xE6\x96\xB0\xE6\xB5\xAA\xE5\xBE\xAE\xE5\x8D\x9A (t.sina.com.cn) easier."
|
251
152
|
email: ussballantyne@gmail.com
|
252
153
|
executables: []
|