oauth_china 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  #简介
2
2
 
3
- OAuth gem for rails,支持豆瓣,新浪微薄,腾讯微博,搜狐微博,网易微博。
3
+ 通过OAuth方式同步用户消息到微博平台(支持豆瓣,新浪微薄,腾讯微博,搜狐微博,网易微博)
4
+ 和omini-auth的区别:omini-auth是专门提供oauth授权和获取用户信息的gem(比如用新浪微博帐号登陆这种需求)
5
+ oauth_china是一个方便的同步信息到其他微博平台的gem(用来做像follow5.com或http://fanfou.com/settings/sync这样需求)
6
+
7
+
4
8
 
5
9
  #安装
6
10
 
@@ -1,3 +1,3 @@
1
1
  module OauthChina
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
data/lib/oauth_china.rb CHANGED
@@ -4,6 +4,7 @@ require 'mime/types'
4
4
  require 'net/http'
5
5
  require 'cgi'
6
6
  require 'json'
7
+ require 'active_support/core_ext'
7
8
 
8
9
  require File.expand_path(File.join(File.dirname(__FILE__), "oauth_china/multipart"))
9
10
  require File.expand_path(File.join(File.dirname(__FILE__), "oauth_china/upload"))
data/oauth_china.gemspec CHANGED
@@ -18,5 +18,6 @@ Gem::Specification.new do |s|
18
18
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
+ s.add_development_dependency "active_support"
21
22
  s.add_development_dependency "oauth"
22
23
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oauth_china
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
- - 3
7
+ - 4
9
8
  - 0
10
- version: 0.3.0
9
+ version: 0.4.0
11
10
  platform: ruby
12
11
  authors:
13
12
  - Hooopo
@@ -15,27 +14,36 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-05-18 00:00:00 +08:00
17
+ date: 2011-08-01 00:00:00 +08:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- name: oauth
21
+ name: active_support
23
22
  prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 3
30
28
  segments:
31
29
  - 0
32
30
  version: "0"
33
31
  type: :development
34
32
  version_requirements: *id001
35
- description: !binary |
36
- 5paw5rWq77yM6LGG55Oj77yM6IW+6K6v562J5Zu95YaF5b6u6JaET0F1dGjo
37
- rqTor4E=
38
-
33
+ - !ruby/object:Gem::Dependency
34
+ name: oauth
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ version: "0"
44
+ type: :development
45
+ version_requirements: *id002
46
+ description: "\xE6\x96\xB0\xE6\xB5\xAA\xEF\xBC\x8C\xE8\xB1\x86\xE7\x93\xA3\xEF\xBC\x8C\xE8\x85\xBE\xE8\xAE\xAF\xE7\xAD\x89\xE5\x9B\xBD\xE5\x86\x85\xE5\xBE\xAE\xE8\x96\x84OAuth\xE8\xAE\xA4\xE8\xAF\x81"
39
47
  email:
40
48
  - hoooopo@gmail.com
41
49
  executables: []
@@ -73,7 +81,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
73
81
  requirements:
74
82
  - - ">="
75
83
  - !ruby/object:Gem::Version
76
- hash: 3
77
84
  segments:
78
85
  - 0
79
86
  version: "0"
@@ -82,7 +89,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
89
  requirements:
83
90
  - - ">="
84
91
  - !ruby/object:Gem::Version
85
- hash: 3
86
92
  segments:
87
93
  - 0
88
94
  version: "0"
@@ -92,9 +98,6 @@ rubyforge_project: oauth_china
92
98
  rubygems_version: 1.3.7
93
99
  signing_key:
94
100
  specification_version: 3
95
- summary: !binary |
96
- 5paw5rWq77yM6LGG55Oj77yM6IW+6K6v562J5Zu95YaF5b6u6JaET0F1dGjo
97
- rqTor4E=
98
-
101
+ summary: "\xE6\x96\xB0\xE6\xB5\xAA\xEF\xBC\x8C\xE8\xB1\x86\xE7\x93\xA3\xEF\xBC\x8C\xE8\x85\xBE\xE8\xAE\xAF\xE7\xAD\x89\xE5\x9B\xBD\xE5\x86\x85\xE5\xBE\xAE\xE8\x96\x84OAuth\xE8\xAE\xA4\xE8\xAF\x81"
99
102
  test_files: []
100
103