weibo 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/lib/weibo/railtie.rb +5 -3
- data/weibo.gemspec +1 -4
- metadata +3 -17
data/Rakefile
CHANGED
@@ -32,7 +32,6 @@ begin
|
|
32
32
|
gem.add_dependency "oauth", "~> 0.4.1"
|
33
33
|
gem.add_dependency "hashie"
|
34
34
|
gem.add_dependency "httparty", ">= 0.5.2"
|
35
|
-
gem.add_dependency "railties"
|
36
35
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
37
36
|
end
|
38
37
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
data/lib/weibo/railtie.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
module Weibo
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
config.after_initialize do
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
if File.exists?('config/weibo.yml')
|
5
|
+
weibo_oauth = YAML.load_file(File.join(Rails.root.to_s, 'config', 'weibo.yml'))[Rails.env || "development"]
|
6
|
+
Weibo::Config.api_key = weibo_oauth["api_key"]
|
7
|
+
Weibo::Config.api_secret = weibo_oauth["api_secret"]
|
8
|
+
end
|
7
9
|
end
|
8
10
|
rake_tasks do
|
9
11
|
load "weibo/tasks/weibo.rake"
|
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.8"
|
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"]
|
@@ -68,7 +68,6 @@ Gem::Specification.new do |s|
|
|
68
68
|
s.add_runtime_dependency(%q<oauth>, ["~> 0.4.1"])
|
69
69
|
s.add_runtime_dependency(%q<hashie>, [">= 0"])
|
70
70
|
s.add_runtime_dependency(%q<httparty>, [">= 0.5.2"])
|
71
|
-
s.add_runtime_dependency(%q<railties>, [">= 0"])
|
72
71
|
else
|
73
72
|
s.add_dependency(%q<oauth>, [">= 0"])
|
74
73
|
s.add_dependency(%q<hashie>, [">= 0"])
|
@@ -85,7 +84,6 @@ Gem::Specification.new do |s|
|
|
85
84
|
s.add_dependency(%q<oauth>, ["~> 0.4.1"])
|
86
85
|
s.add_dependency(%q<hashie>, [">= 0"])
|
87
86
|
s.add_dependency(%q<httparty>, [">= 0.5.2"])
|
88
|
-
s.add_dependency(%q<railties>, [">= 0"])
|
89
87
|
end
|
90
88
|
else
|
91
89
|
s.add_dependency(%q<oauth>, [">= 0"])
|
@@ -103,7 +101,6 @@ Gem::Specification.new do |s|
|
|
103
101
|
s.add_dependency(%q<oauth>, ["~> 0.4.1"])
|
104
102
|
s.add_dependency(%q<hashie>, [">= 0"])
|
105
103
|
s.add_dependency(%q<httparty>, [">= 0.5.2"])
|
106
|
-
s.add_dependency(%q<railties>, [">= 0"])
|
107
104
|
end
|
108
105
|
end
|
109
106
|
|
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: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Ballantyne
|
@@ -233,20 +233,6 @@ dependencies:
|
|
233
233
|
- 2
|
234
234
|
version: 0.5.2
|
235
235
|
requirement: *id015
|
236
|
-
- !ruby/object:Gem::Dependency
|
237
|
-
type: :runtime
|
238
|
-
prerelease: false
|
239
|
-
name: railties
|
240
|
-
version_requirements: &id016 !ruby/object:Gem::Requirement
|
241
|
-
none: false
|
242
|
-
requirements:
|
243
|
-
- - ">="
|
244
|
-
- !ruby/object:Gem::Version
|
245
|
-
hash: 3
|
246
|
-
segments:
|
247
|
-
- 0
|
248
|
-
version: "0"
|
249
|
-
requirement: *id016
|
250
236
|
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
237
|
email: ussballantyne@gmail.com
|
252
238
|
executables: []
|