weibo 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -63
- data/VERSION +1 -1
- data/lib/weibo.rb +17 -2
- data/weibo.gemspec +4 -4
- metadata +13 -13
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,34 +1,6 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
abstract (1.0.0)
|
5
|
-
actionmailer (3.0.9)
|
6
|
-
actionpack (= 3.0.9)
|
7
|
-
mail (~> 2.2.19)
|
8
|
-
actionpack (3.0.9)
|
9
|
-
activemodel (= 3.0.9)
|
10
|
-
activesupport (= 3.0.9)
|
11
|
-
builder (~> 2.1.2)
|
12
|
-
erubis (~> 2.6.6)
|
13
|
-
i18n (~> 0.5.0)
|
14
|
-
rack (~> 1.2.1)
|
15
|
-
rack-mount (~> 0.6.14)
|
16
|
-
rack-test (~> 0.5.7)
|
17
|
-
tzinfo (~> 0.3.23)
|
18
|
-
activemodel (3.0.9)
|
19
|
-
activesupport (= 3.0.9)
|
20
|
-
builder (~> 2.1.2)
|
21
|
-
i18n (~> 0.5.0)
|
22
|
-
activerecord (3.0.9)
|
23
|
-
activemodel (= 3.0.9)
|
24
|
-
activesupport (= 3.0.9)
|
25
|
-
arel (~> 2.0.10)
|
26
|
-
tzinfo (~> 0.3.23)
|
27
|
-
activeresource (3.0.9)
|
28
|
-
activemodel (= 3.0.9)
|
29
|
-
activesupport (= 3.0.9)
|
30
|
-
activesupport (3.0.9)
|
31
|
-
arel (2.0.10)
|
32
4
|
aruba (0.4.6)
|
33
5
|
bcat (>= 0.6.1)
|
34
6
|
childprocess (>= 0.2.0)
|
@@ -37,7 +9,7 @@ GEM
|
|
37
9
|
rspec (>= 2.6.0)
|
38
10
|
bcat (0.6.1)
|
39
11
|
rack (~> 1.0)
|
40
|
-
builder (
|
12
|
+
builder (3.0.0)
|
41
13
|
childprocess (0.2.1)
|
42
14
|
ffi (~> 1.0.6)
|
43
15
|
crack (0.1.8)
|
@@ -48,8 +20,6 @@ GEM
|
|
48
20
|
json (>= 1.4.6)
|
49
21
|
term-ansicolor (>= 1.0.5)
|
50
22
|
diff-lcs (1.1.2)
|
51
|
-
erubis (2.6.6)
|
52
|
-
abstract (>= 1.0.0)
|
53
23
|
ffi (1.0.9)
|
54
24
|
gherkin (2.4.6)
|
55
25
|
json (>= 1.4.6)
|
@@ -66,44 +36,17 @@ GEM
|
|
66
36
|
hashie (1.1.0)
|
67
37
|
httparty (0.7.8)
|
68
38
|
crack (= 0.1.8)
|
69
|
-
i18n (0.5.0)
|
70
39
|
jeweler (1.6.4)
|
71
40
|
bundler (~> 1.0)
|
72
41
|
git (>= 1.2.5)
|
73
42
|
rake
|
74
43
|
json (1.5.3)
|
75
|
-
mail (2.2.19)
|
76
|
-
activesupport (>= 2.3.6)
|
77
|
-
i18n (>= 0.4.0)
|
78
|
-
mime-types (~> 1.16)
|
79
|
-
treetop (~> 1.4.8)
|
80
|
-
mime-types (1.16)
|
81
44
|
oauth (0.4.5)
|
82
|
-
polyglot (0.3.2)
|
83
45
|
rack (1.2.3)
|
84
|
-
rack-mount (0.6.14)
|
85
|
-
rack (>= 1.0.0)
|
86
|
-
rack-test (0.5.7)
|
87
|
-
rack (>= 1.0)
|
88
|
-
rails (3.0.9)
|
89
|
-
actionmailer (= 3.0.9)
|
90
|
-
actionpack (= 3.0.9)
|
91
|
-
activerecord (= 3.0.9)
|
92
|
-
activeresource (= 3.0.9)
|
93
|
-
activesupport (= 3.0.9)
|
94
|
-
bundler (~> 1.0)
|
95
|
-
railties (= 3.0.9)
|
96
|
-
railties (3.0.9)
|
97
|
-
actionpack (= 3.0.9)
|
98
|
-
activesupport (= 3.0.9)
|
99
|
-
rake (>= 0.8.7)
|
100
|
-
rdoc (~> 3.4)
|
101
|
-
thor (~> 0.14.4)
|
102
46
|
rake (0.9.2)
|
103
47
|
rb-appscript (0.6.1)
|
104
48
|
rb-fsevent (0.4.3)
|
105
49
|
rdiscount (1.6.8)
|
106
|
-
rdoc (3.9.2)
|
107
50
|
rspec (2.6.0)
|
108
51
|
rspec-core (~> 2.6.0)
|
109
52
|
rspec-expectations (~> 2.6.0)
|
@@ -114,16 +57,13 @@ GEM
|
|
114
57
|
rspec-mocks (2.6.0)
|
115
58
|
term-ansicolor (1.0.6)
|
116
59
|
thor (0.14.6)
|
117
|
-
treetop (1.4.10)
|
118
|
-
polyglot
|
119
|
-
polyglot (>= 0.3.1)
|
120
|
-
tzinfo (0.3.29)
|
121
60
|
|
122
61
|
PLATFORMS
|
123
62
|
ruby
|
124
63
|
|
125
64
|
DEPENDENCIES
|
126
65
|
aruba
|
66
|
+
builder (= 3.0.0)
|
127
67
|
cucumber
|
128
68
|
growl_notify
|
129
69
|
guard-cucumber
|
@@ -132,7 +72,6 @@ DEPENDENCIES
|
|
132
72
|
httparty
|
133
73
|
jeweler
|
134
74
|
oauth
|
135
|
-
rails (= 3.0.9)
|
136
75
|
rake
|
137
76
|
rb-fsevent
|
138
77
|
rspec (~> 2.0)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/lib/weibo.rb
CHANGED
@@ -9,7 +9,7 @@ require 'rubygems'
|
|
9
9
|
require 'oauth'
|
10
10
|
require 'hashie'
|
11
11
|
require 'httparty'
|
12
|
-
|
12
|
+
|
13
13
|
|
14
14
|
require 'weibo/oauth'
|
15
15
|
require 'weibo/oauth_hack'
|
@@ -17,7 +17,7 @@ require 'weibo/httpauth'
|
|
17
17
|
require 'weibo/request'
|
18
18
|
require 'weibo/config'
|
19
19
|
require 'weibo/base'
|
20
|
-
|
20
|
+
|
21
21
|
|
22
22
|
module Weibo
|
23
23
|
class WeiboError < StandardError
|
@@ -53,3 +53,18 @@ module Hashie
|
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
if File.exists?('config/weibo.yml')
|
60
|
+
weibo_oauth = YAML.load_file('config/weibo.yml')[Rails.env || env || 'development']
|
61
|
+
Weibo::Config.api_key = weibo_oauth["api_key"]
|
62
|
+
Weibo::Config.api_secret = weibo_oauth["api_secret"]
|
63
|
+
end
|
64
|
+
|
65
|
+
begin
|
66
|
+
if Rails
|
67
|
+
require 'weibo/railtie'
|
68
|
+
end
|
69
|
+
rescue
|
70
|
+
end
|
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.6"
|
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"]
|
@@ -59,8 +59,8 @@ Gem::Specification.new do |s|
|
|
59
59
|
s.add_runtime_dependency(%q<rake>, [">= 0"])
|
60
60
|
s.add_runtime_dependency(%q<rspec>, ["~> 2.0"])
|
61
61
|
s.add_runtime_dependency(%q<cucumber>, [">= 0"])
|
62
|
+
s.add_runtime_dependency(%q<builder>, ["= 3.0.0"])
|
62
63
|
s.add_runtime_dependency(%q<aruba>, [">= 0"])
|
63
|
-
s.add_runtime_dependency(%q<rails>, ["= 3.0.9"])
|
64
64
|
s.add_runtime_dependency(%q<jeweler>, [">= 0"])
|
65
65
|
s.add_runtime_dependency(%q<rb-fsevent>, [">= 0"])
|
66
66
|
s.add_runtime_dependency(%q<growl_notify>, [">= 0"])
|
@@ -77,8 +77,8 @@ Gem::Specification.new do |s|
|
|
77
77
|
s.add_dependency(%q<rake>, [">= 0"])
|
78
78
|
s.add_dependency(%q<rspec>, ["~> 2.0"])
|
79
79
|
s.add_dependency(%q<cucumber>, [">= 0"])
|
80
|
+
s.add_dependency(%q<builder>, ["= 3.0.0"])
|
80
81
|
s.add_dependency(%q<aruba>, [">= 0"])
|
81
|
-
s.add_dependency(%q<rails>, ["= 3.0.9"])
|
82
82
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
83
83
|
s.add_dependency(%q<rb-fsevent>, [">= 0"])
|
84
84
|
s.add_dependency(%q<growl_notify>, [">= 0"])
|
@@ -96,8 +96,8 @@ Gem::Specification.new do |s|
|
|
96
96
|
s.add_dependency(%q<rake>, [">= 0"])
|
97
97
|
s.add_dependency(%q<rspec>, ["~> 2.0"])
|
98
98
|
s.add_dependency(%q<cucumber>, [">= 0"])
|
99
|
+
s.add_dependency(%q<builder>, ["= 3.0.0"])
|
99
100
|
s.add_dependency(%q<aruba>, [">= 0"])
|
100
|
-
s.add_dependency(%q<rails>, ["= 3.0.9"])
|
101
101
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
102
102
|
s.add_dependency(%q<rb-fsevent>, [">= 0"])
|
103
103
|
s.add_dependency(%q<growl_notify>, [">= 0"])
|
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: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Ballantyne
|
@@ -106,32 +106,32 @@ dependencies:
|
|
106
106
|
- !ruby/object:Gem::Dependency
|
107
107
|
type: :runtime
|
108
108
|
prerelease: false
|
109
|
-
name:
|
109
|
+
name: builder
|
110
110
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
111
111
|
none: false
|
112
112
|
requirements:
|
113
|
-
- - "
|
113
|
+
- - "="
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
hash:
|
115
|
+
hash: 7
|
116
116
|
segments:
|
117
|
+
- 3
|
117
118
|
- 0
|
118
|
-
|
119
|
+
- 0
|
120
|
+
version: 3.0.0
|
119
121
|
requirement: *id007
|
120
122
|
- !ruby/object:Gem::Dependency
|
121
123
|
type: :runtime
|
122
124
|
prerelease: false
|
123
|
-
name:
|
125
|
+
name: aruba
|
124
126
|
version_requirements: &id008 !ruby/object:Gem::Requirement
|
125
127
|
none: false
|
126
128
|
requirements:
|
127
|
-
- - "
|
129
|
+
- - ">="
|
128
130
|
- !ruby/object:Gem::Version
|
129
|
-
hash:
|
131
|
+
hash: 3
|
130
132
|
segments:
|
131
|
-
- 3
|
132
133
|
- 0
|
133
|
-
|
134
|
-
version: 3.0.9
|
134
|
+
version: "0"
|
135
135
|
requirement: *id008
|
136
136
|
- !ruby/object:Gem::Dependency
|
137
137
|
type: :runtime
|