twitter_connect 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/README_rails3.md +1 -1
- data/VERSION +1 -1
- data/init.rb +0 -3
- data/lib/twitter_connect.rb +17 -3
- data/twitter_connect.gemspec +62 -0
- metadata +3 -2
data/README.md
CHANGED
data/README_rails3.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/init.rb
CHANGED
data/lib/twitter_connect.rb
CHANGED
@@ -11,6 +11,14 @@ module TwitterConnect
|
|
11
11
|
def configuration
|
12
12
|
@configuration
|
13
13
|
end
|
14
|
+
|
15
|
+
def init
|
16
|
+
unless File.exist?(File.join(Rails.root, "/public/javascripts/twitter_connect.js"))
|
17
|
+
File.copy(File.join(File.dirname(__FILE__), "/public/javascripts/twitter_connect.js"), File.join(Rails.root, "/public/javascripts/twitter_connect.js"))
|
18
|
+
end
|
19
|
+
|
20
|
+
load_configuration("#{Rails.root}/config/twitter.yml")
|
21
|
+
end
|
14
22
|
end
|
15
23
|
end
|
16
24
|
|
@@ -36,7 +44,13 @@ module ActionController
|
|
36
44
|
end
|
37
45
|
|
38
46
|
require 'ftools'
|
39
|
-
|
40
|
-
|
41
|
-
|
47
|
+
if defined? Rails::Railtie
|
48
|
+
class TwitterRailtie < Rails::Railtie
|
49
|
+
initializer "twitter_connect.init_task" do |app|
|
50
|
+
TwitterConnect.init
|
51
|
+
end
|
52
|
+
end
|
53
|
+
else
|
54
|
+
TwitterConnect.init
|
42
55
|
end
|
56
|
+
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{twitter_connect}
|
8
|
+
s.version = "0.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Richard Huang"]
|
12
|
+
s.date = %q{2010-03-31}
|
13
|
+
s.description = %q{facebook connect style twitter oauth}
|
14
|
+
s.email = %q{flyerhzm@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.md",
|
17
|
+
"README_rails3.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
"MIT-LICENSE",
|
21
|
+
"README.md",
|
22
|
+
"README_rails3.md",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"init.rb",
|
26
|
+
"install.rb",
|
27
|
+
"lib/app/controllers/twitter_connects_controller.rb",
|
28
|
+
"lib/app/helpers/twitter_connects_helper.rb",
|
29
|
+
"lib/app/views/twitter_connects/callback.html.erb",
|
30
|
+
"lib/public/javascripts/twitter_connect.js",
|
31
|
+
"lib/twitter_connect.rb",
|
32
|
+
"rails/init.rb",
|
33
|
+
"tasks/twitter_connect_tasks.rake",
|
34
|
+
"test/test_helper.rb",
|
35
|
+
"test/twitter_connect_test.rb",
|
36
|
+
"twitter_connect.gemspec",
|
37
|
+
"uninstall.rb"
|
38
|
+
]
|
39
|
+
s.homepage = %q{http://github.com/flyerhzm/twitter_connect}
|
40
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
41
|
+
s.require_paths = ["lib"]
|
42
|
+
s.rubygems_version = %q{1.3.6}
|
43
|
+
s.summary = %q{facebook connect style twitter oauth}
|
44
|
+
s.test_files = [
|
45
|
+
"test/test_helper.rb",
|
46
|
+
"test/twitter_connect_test.rb"
|
47
|
+
]
|
48
|
+
|
49
|
+
if s.respond_to? :specification_version then
|
50
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
51
|
+
s.specification_version = 3
|
52
|
+
|
53
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
54
|
+
s.add_runtime_dependency(%q<twitter>, [">= 0"])
|
55
|
+
else
|
56
|
+
s.add_dependency(%q<twitter>, [">= 0"])
|
57
|
+
end
|
58
|
+
else
|
59
|
+
s.add_dependency(%q<twitter>, [">= 0"])
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Richard Huang
|
@@ -55,6 +55,7 @@ files:
|
|
55
55
|
- tasks/twitter_connect_tasks.rake
|
56
56
|
- test/test_helper.rb
|
57
57
|
- test/twitter_connect_test.rb
|
58
|
+
- twitter_connect.gemspec
|
58
59
|
- uninstall.rb
|
59
60
|
has_rdoc: true
|
60
61
|
homepage: http://github.com/flyerhzm/twitter_connect
|