authpwn_rails 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
data/.project CHANGED
@@ -5,6 +5,11 @@
5
5
  <projects>
6
6
  </projects>
7
7
  <buildSpec>
8
+ <buildCommand>
9
+ <name>com.aptana.ide.core.unifiedBuilder</name>
10
+ <arguments>
11
+ </arguments>
12
+ </buildCommand>
8
13
  <buildCommand>
9
14
  <name>org.rubypeople.rdt.core.rubybuilder</name>
10
15
  <arguments>
@@ -12,6 +17,7 @@
12
17
  </buildCommand>
13
18
  </buildSpec>
14
19
  <natures>
20
+ <nature>com.aptana.ruby.core.rubynature</nature>
15
21
  <nature>org.rubypeople.rdt.core.rubynature</nature>
16
22
  </natures>
17
23
  </projectDescription>
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source "http://rubygems.org"
2
+ gem "fbgraph_rails", ">= 0.1.7"
3
+ gem "rails", ">= 3.0.0"
4
+
5
+ group :development do
6
+ gem "bundler", "~> 1.0.0"
7
+ gem "jeweler", "~> 1.6.0"
8
+ gem "rcov", ">= 0"
9
+ gem "sqlite3", ">= 1.3.3"
10
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,120 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ abstract (1.0.0)
5
+ actionmailer (3.0.7)
6
+ actionpack (= 3.0.7)
7
+ mail (~> 2.2.15)
8
+ actionpack (3.0.7)
9
+ activemodel (= 3.0.7)
10
+ activesupport (= 3.0.7)
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.7)
19
+ activesupport (= 3.0.7)
20
+ builder (~> 2.1.2)
21
+ i18n (~> 0.5.0)
22
+ activerecord (3.0.7)
23
+ activemodel (= 3.0.7)
24
+ activesupport (= 3.0.7)
25
+ arel (~> 2.0.2)
26
+ tzinfo (~> 0.3.23)
27
+ activeresource (3.0.7)
28
+ activemodel (= 3.0.7)
29
+ activesupport (= 3.0.7)
30
+ activesupport (3.0.7)
31
+ addressable (2.2.6)
32
+ arel (2.0.9)
33
+ builder (2.1.2)
34
+ erubis (2.6.6)
35
+ abstract (>= 1.0.0)
36
+ faraday (0.6.1)
37
+ addressable (~> 2.2.4)
38
+ multipart-post (~> 1.1.0)
39
+ rack (>= 1.1.0, < 2)
40
+ fbgraph (1.8.0)
41
+ activesupport
42
+ activesupport
43
+ hashie
44
+ hashie
45
+ i18n
46
+ i18n
47
+ json
48
+ json
49
+ oauth2
50
+ oauth2
51
+ rest-client
52
+ rest-client
53
+ typhoeus
54
+ typhoeus
55
+ fbgraph_rails (0.1.7)
56
+ erubis (>= 2.3.5)
57
+ fbgraph (>= 0.0.5)
58
+ json (>= 1.4.2)
59
+ oauth2 (>= 0.0.8)
60
+ git (1.2.5)
61
+ hashie (1.0.0)
62
+ i18n (0.5.0)
63
+ jeweler (1.6.0)
64
+ bundler (~> 1.0.0)
65
+ git (>= 1.2.5)
66
+ rake
67
+ json (1.5.1)
68
+ mail (2.2.19)
69
+ activesupport (>= 2.3.6)
70
+ i18n (>= 0.4.0)
71
+ mime-types (~> 1.16)
72
+ treetop (~> 1.4.8)
73
+ mime-types (1.16)
74
+ multi_json (1.0.2)
75
+ multipart-post (1.1.1)
76
+ oauth2 (0.4.1)
77
+ faraday (~> 0.6.1)
78
+ multi_json (>= 0.0.5)
79
+ polyglot (0.3.1)
80
+ rack (1.2.2)
81
+ rack-mount (0.6.14)
82
+ rack (>= 1.0.0)
83
+ rack-test (0.5.7)
84
+ rack (>= 1.0)
85
+ rails (3.0.7)
86
+ actionmailer (= 3.0.7)
87
+ actionpack (= 3.0.7)
88
+ activerecord (= 3.0.7)
89
+ activeresource (= 3.0.7)
90
+ activesupport (= 3.0.7)
91
+ bundler (~> 1.0)
92
+ railties (= 3.0.7)
93
+ railties (3.0.7)
94
+ actionpack (= 3.0.7)
95
+ activesupport (= 3.0.7)
96
+ rake (>= 0.8.7)
97
+ thor (~> 0.14.4)
98
+ rake (0.8.7)
99
+ rcov (0.9.9)
100
+ rest-client (1.6.1)
101
+ mime-types (>= 1.16)
102
+ sqlite3 (1.3.3)
103
+ thor (0.14.6)
104
+ treetop (1.4.9)
105
+ polyglot (>= 0.3.1)
106
+ typhoeus (0.2.4)
107
+ mime-types
108
+ mime-types
109
+ tzinfo (0.3.27)
110
+
111
+ PLATFORMS
112
+ ruby
113
+
114
+ DEPENDENCIES
115
+ bundler (~> 1.0.0)
116
+ fbgraph_rails (>= 0.1.7)
117
+ jeweler (~> 1.6.0)
118
+ rails (>= 3.0.0)
119
+ rcov
120
+ sqlite3 (>= 1.3.3)
data/README.rdoc CHANGED
@@ -5,9 +5,9 @@ User authentication for a Ruby on Rails 3 application. Works with Facebook.
5
5
  == Integration
6
6
 
7
7
  Scaffold user accounts, session controller views, and Facebook extensions.
8
- rails g authpwn_rails:users
9
- rails g authpwn_rails:session
10
- rails g authpwn_rails:facebook
8
+ rails g authpwn:users
9
+ rails g authpwn:session
10
+ rails g authpwn:facebook
11
11
 
12
12
  Wire authentication into your ApplicationController.
13
13
  authenticates_using_session
data/Rakefile CHANGED
@@ -1,24 +1,26 @@
1
1
  require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
2
10
  require 'rake'
3
11
 
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "authpwn_rails"
8
- gem.summary = %Q{User authentication for Rails 3 applications.}
9
- gem.description = %Q{Works with Facebook.}
10
- gem.email = "victor@costan.us"
11
- gem.homepage = "http://github.com/pwnall/authpwn_rails"
12
- gem.authors = ["Victor Costan"]
13
- gem.add_runtime_dependency "fbgraph_rails", ">= 0.1.3"
14
- gem.add_runtime_dependency "rails", ">= 3.0.0"
15
- gem.add_development_dependency "sqlite3-ruby", ">= 1.3.0"
16
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
17
- end
18
- Jeweler::GemcutterTasks.new
19
- rescue LoadError
20
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
12
+ require 'jeweler'
13
+ Jeweler::Tasks.new do |gem|
14
+ gem.name = "authpwn_rails"
15
+ gem.homepage = "http://github.com/pwnall/authpwn_rails"
16
+ gem.license = "MIT"
17
+ gem.summary = %Q{User authentication for Rails 3 applications.}
18
+ gem.description = %Q{Works with Facebook.}
19
+ gem.email = "victor@costan.us"
20
+ gem.authors = ["Victor Costan"]
21
+ # Dependencies in Gemfile.
21
22
  end
23
+ Jeweler::RubygemsDotOrgTasks.new
22
24
 
23
25
  require 'rake/testtask'
24
26
  Rake::TestTask.new(:test) do |test|
@@ -27,21 +29,6 @@ Rake::TestTask.new(:test) do |test|
27
29
  test.verbose = true
28
30
  end
29
31
 
30
- begin
31
- require 'rcov/rcovtask'
32
- Rcov::RcovTask.new do |test|
33
- test.libs << 'test'
34
- test.pattern = 'test/**/*_test.rb'
35
- test.verbose = true
36
- end
37
- rescue LoadError
38
- task :rcov do
39
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
40
- end
41
- end
42
-
43
- task :test => :check_dependencies
44
-
45
32
  task :default => :test
46
33
 
47
34
  require 'rake/rdoctask'
@@ -51,6 +38,5 @@ Rake::RDocTask.new do |rdoc|
51
38
  rdoc.rdoc_dir = 'rdoc'
52
39
  rdoc.title = "authpwn_rails #{version}"
53
40
  rdoc.rdoc_files.include('README*')
54
- rdoc.rdoc_files.include('app/**/*.rb')
55
41
  rdoc.rdoc_files.include('lib/**/*.rb')
56
42
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.0
1
+ 0.8.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{authpwn_rails}
8
- s.version = "0.8.0"
8
+ s.version = "0.8.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Victor Costan"]
12
- s.date = %q{2011-04-01}
11
+ s.authors = [%q{Victor Costan}]
12
+ s.date = %q{2011-05-15}
13
13
  s.description = %q{Works with Facebook.}
14
14
  s.email = %q{victor@costan.us}
15
15
  s.extra_rdoc_files = [
@@ -19,6 +19,8 @@ Gem::Specification.new do |s|
19
19
  s.files = [
20
20
  ".document",
21
21
  ".project",
22
+ "Gemfile",
23
+ "Gemfile.lock",
22
24
  "LICENSE",
23
25
  "README.rdoc",
24
26
  "Rakefile",
@@ -42,7 +44,7 @@ Gem::Specification.new do |s|
42
44
  "lib/authpwn_rails/generators/templates/session_controller_test.rb",
43
45
  "lib/authpwn_rails/generators/templates/user.rb",
44
46
  "lib/authpwn_rails/generators/templates/users.yml",
45
- "lib/authpwn_rails/generators/user_generator.rb",
47
+ "lib/authpwn_rails/generators/users_generator.rb",
46
48
  "lib/authpwn_rails/session.rb",
47
49
  "lib/authpwn_rails/user_model.rb",
48
50
  "test/cookie_controller_test.rb",
@@ -58,39 +60,36 @@ Gem::Specification.new do |s|
58
60
  "test/user_test.rb"
59
61
  ]
60
62
  s.homepage = %q{http://github.com/pwnall/authpwn_rails}
61
- s.require_paths = ["lib"]
62
- s.rubygems_version = %q{1.5.3}
63
+ s.licenses = [%q{MIT}]
64
+ s.require_paths = [%q{lib}]
65
+ s.rubygems_version = %q{1.8.2}
63
66
  s.summary = %q{User authentication for Rails 3 applications.}
64
- s.test_files = [
65
- "test/cookie_controller_test.rb",
66
- "test/facebook_controller_test.rb",
67
- "test/facebook_token_test.rb",
68
- "test/helpers/application_controller.rb",
69
- "test/helpers/db_setup.rb",
70
- "test/helpers/fbgraph.rb",
71
- "test/helpers/routes.rb",
72
- "test/helpers/view_helpers.rb",
73
- "test/session_controller_api_test.rb",
74
- "test/test_helper.rb",
75
- "test/user_test.rb"
76
- ]
77
67
 
78
68
  if s.respond_to? :specification_version then
79
69
  s.specification_version = 3
80
70
 
81
71
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
82
- s.add_runtime_dependency(%q<fbgraph_rails>, [">= 0.1.3"])
72
+ s.add_runtime_dependency(%q<fbgraph_rails>, [">= 0.1.7"])
83
73
  s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
84
- s.add_development_dependency(%q<sqlite3-ruby>, [">= 1.3.0"])
74
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
75
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.0"])
76
+ s.add_development_dependency(%q<rcov>, [">= 0"])
77
+ s.add_development_dependency(%q<sqlite3>, [">= 1.3.3"])
85
78
  else
86
- s.add_dependency(%q<fbgraph_rails>, [">= 0.1.3"])
79
+ s.add_dependency(%q<fbgraph_rails>, [">= 0.1.7"])
87
80
  s.add_dependency(%q<rails>, [">= 3.0.0"])
88
- s.add_dependency(%q<sqlite3-ruby>, [">= 1.3.0"])
81
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
82
+ s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
83
+ s.add_dependency(%q<rcov>, [">= 0"])
84
+ s.add_dependency(%q<sqlite3>, [">= 1.3.3"])
89
85
  end
90
86
  else
91
- s.add_dependency(%q<fbgraph_rails>, [">= 0.1.3"])
87
+ s.add_dependency(%q<fbgraph_rails>, [">= 0.1.7"])
92
88
  s.add_dependency(%q<rails>, [">= 3.0.0"])
93
- s.add_dependency(%q<sqlite3-ruby>, [">= 1.3.0"])
89
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
90
+ s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
91
+ s.add_dependency(%q<rcov>, [">= 0"])
92
+ s.add_dependency(%q<sqlite3>, [">= 1.3.3"])
94
93
  end
95
94
  end
96
95
 
@@ -20,7 +20,7 @@ class Engine < Rails::Engine
20
20
  generators do
21
21
  require 'authpwn_rails/generators/facebook_generator.rb'
22
22
  require 'authpwn_rails/generators/session_generator.rb'
23
- require 'authpwn_rails/generators/user_generator.rb'
23
+ require 'authpwn_rails/generators/users_generator.rb'
24
24
  end
25
25
  end # class AuthpwnRails::Engine
26
26
 
@@ -1,7 +1,7 @@
1
1
  # :nodoc: namespace
2
- module AuthpwnRails
3
-
2
+ module Authpwn
4
3
 
4
+ # rails g authpwn:facebook
5
5
  class FacebookGenerator < Rails::Generators::Base
6
6
  source_root File.expand_path("../templates", __FILE__)
7
7
 
@@ -13,6 +13,6 @@ class FacebookGenerator < Rails::Generators::Base
13
13
  copy_file 'facebook_tokens.yml',
14
14
  File.join('test', 'fixtures', 'facebook_tokens.yml')
15
15
  end
16
- end # class AuthpwnRails::FacebookGenerator
16
+ end # class Authpwn::FacebookGenerator
17
17
 
18
- end # namespace AuthpwnRails
18
+ end # namespace Authpwn
@@ -1,7 +1,7 @@
1
1
  # :nodoc: namespace
2
- module AuthpwnRails
3
-
2
+ module Authpwn
4
3
 
4
+ # rails g authpwn:session
5
5
  class SessionGenerator < Rails::Generators::Base
6
6
  source_root File.expand_path("../templates", __FILE__)
7
7
 
@@ -21,6 +21,6 @@ class SessionGenerator < Rails::Generators::Base
21
21
 
22
22
  route "resource :session, :controller => 'session'"
23
23
  end
24
- end # class AuthpwnRails::SessionViewsGenerator
24
+ end # class Authpwn::SessionViewsGenerator
25
25
 
26
- end # namespace AuthpwnRails
26
+ end # namespace Authpwn
@@ -1,8 +1,8 @@
1
1
  # :nodoc: namespace
2
- module AuthpwnRails
2
+ module Authpwn
3
3
 
4
-
5
- class UserGenerator < Rails::Generators::Base
4
+ # rails g authpwn:users
5
+ class UsersGenerator < Rails::Generators::Base
6
6
  source_root File.expand_path("../templates", __FILE__)
7
7
 
8
8
  def create_user_model
@@ -11,6 +11,6 @@ class UserGenerator < Rails::Generators::Base
11
11
  File.join('db', 'migrate', '20100725000001_create_users.rb')
12
12
  copy_file 'users.yml', File.join('test', 'fixtures', 'users.yml')
13
13
  end
14
- end # class AuthpwnRails::UserGenerator
14
+ end # class Authpwn::UserGenerator
15
15
 
16
- end # namespace AuthpwnRails
16
+ end # namespace Authpwn
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authpwn_rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 0
10
- version: 0.8.0
9
+ - 1
10
+ version: 0.8.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Costan
@@ -15,29 +15,26 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-01 00:00:00 -04:00
19
- default_executable:
18
+ date: 2011-05-15 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- name: fbgraph_rails
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
22
  none: false
26
23
  requirements:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
- hash: 29
26
+ hash: 21
30
27
  segments:
31
28
  - 0
32
29
  - 1
33
- - 3
34
- version: 0.1.3
30
+ - 7
31
+ version: 0.1.7
35
32
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: rails
33
+ requirement: *id001
39
34
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
35
+ name: fbgraph_rails
36
+ - !ruby/object:Gem::Dependency
37
+ version_requirements: &id002 !ruby/object:Gem::Requirement
41
38
  none: false
42
39
  requirements:
43
40
  - - ">="
@@ -49,23 +46,71 @@ dependencies:
49
46
  - 0
50
47
  version: 3.0.0
51
48
  type: :runtime
52
- version_requirements: *id002
49
+ requirement: *id002
50
+ prerelease: false
51
+ name: rails
53
52
  - !ruby/object:Gem::Dependency
54
- name: sqlite3-ruby
53
+ version_requirements: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ~>
57
+ - !ruby/object:Gem::Version
58
+ hash: 23
59
+ segments:
60
+ - 1
61
+ - 0
62
+ - 0
63
+ version: 1.0.0
64
+ type: :development
65
+ requirement: *id003
55
66
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
67
+ name: bundler
68
+ - !ruby/object:Gem::Dependency
69
+ version_requirements: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ~>
73
+ - !ruby/object:Gem::Version
74
+ hash: 15
75
+ segments:
76
+ - 1
77
+ - 6
78
+ - 0
79
+ version: 1.6.0
80
+ type: :development
81
+ requirement: *id004
82
+ prerelease: false
83
+ name: jeweler
84
+ - !ruby/object:Gem::Dependency
85
+ version_requirements: &id005 !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ hash: 3
91
+ segments:
92
+ - 0
93
+ version: "0"
94
+ type: :development
95
+ requirement: *id005
96
+ prerelease: false
97
+ name: rcov
98
+ - !ruby/object:Gem::Dependency
99
+ version_requirements: &id006 !ruby/object:Gem::Requirement
57
100
  none: false
58
101
  requirements:
59
102
  - - ">="
60
103
  - !ruby/object:Gem::Version
61
- hash: 27
104
+ hash: 29
62
105
  segments:
63
106
  - 1
64
107
  - 3
65
- - 0
66
- version: 1.3.0
108
+ - 3
109
+ version: 1.3.3
67
110
  type: :development
68
- version_requirements: *id003
111
+ requirement: *id006
112
+ prerelease: false
113
+ name: sqlite3
69
114
  description: Works with Facebook.
70
115
  email: victor@costan.us
71
116
  executables: []
@@ -78,6 +123,8 @@ extra_rdoc_files:
78
123
  files:
79
124
  - .document
80
125
  - .project
126
+ - Gemfile
127
+ - Gemfile.lock
81
128
  - LICENSE
82
129
  - README.rdoc
83
130
  - Rakefile
@@ -101,7 +148,7 @@ files:
101
148
  - lib/authpwn_rails/generators/templates/session_controller_test.rb
102
149
  - lib/authpwn_rails/generators/templates/user.rb
103
150
  - lib/authpwn_rails/generators/templates/users.yml
104
- - lib/authpwn_rails/generators/user_generator.rb
151
+ - lib/authpwn_rails/generators/users_generator.rb
105
152
  - lib/authpwn_rails/session.rb
106
153
  - lib/authpwn_rails/user_model.rb
107
154
  - test/cookie_controller_test.rb
@@ -115,10 +162,9 @@ files:
115
162
  - test/session_controller_api_test.rb
116
163
  - test/test_helper.rb
117
164
  - test/user_test.rb
118
- has_rdoc: true
119
165
  homepage: http://github.com/pwnall/authpwn_rails
120
- licenses: []
121
-
166
+ licenses:
167
+ - MIT
122
168
  post_install_message:
123
169
  rdoc_options: []
124
170
 
@@ -145,19 +191,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
191
  requirements: []
146
192
 
147
193
  rubyforge_project:
148
- rubygems_version: 1.5.3
194
+ rubygems_version: 1.8.2
149
195
  signing_key:
150
196
  specification_version: 3
151
197
  summary: User authentication for Rails 3 applications.
152
- test_files:
153
- - test/cookie_controller_test.rb
154
- - test/facebook_controller_test.rb
155
- - test/facebook_token_test.rb
156
- - test/helpers/application_controller.rb
157
- - test/helpers/db_setup.rb
158
- - test/helpers/fbgraph.rb
159
- - test/helpers/routes.rb
160
- - test/helpers/view_helpers.rb
161
- - test/session_controller_api_test.rb
162
- - test/test_helper.rb
163
- - test/user_test.rb
198
+ test_files: []
199
+