muck-users 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +1 -1
- data/README.rdoc +4 -4
- data/Rakefile +9 -4
- data/VERSION +1 -1
- data/config/locales/ca.yml +1 -1
- data/config/locales/id.yml +2 -2
- data/config/locales/vi.yml +1 -1
- data/lib/{muck_users → muck-users}/config.rb +0 -0
- data/lib/{muck_users → muck-users}/controllers/authentic_application.rb +0 -0
- data/lib/{muck_users → muck-users}/engine.rb +6 -13
- data/lib/{muck_users → muck-users}/exceptions.rb +0 -0
- data/lib/{muck_users → muck-users}/form_builder.rb +0 -0
- data/lib/{muck_users → muck-users}/mailers/user_mailer.rb +2 -1
- data/lib/{muck_users → muck-users}/models/access_code.rb +2 -1
- data/lib/{muck_users → muck-users}/models/access_code_request.rb +2 -1
- data/lib/{muck_users → muck-users}/models/user.rb +2 -1
- data/lib/{muck_users → muck-users}/secure_methods.rb +0 -0
- data/lib/muck-users.rb +10 -0
- data/muck-users.gemspec +17 -20
- data/test/rails_test/Gemfile +4 -10
- data/test/rails_test/Gemfile.lock +28 -39
- data/test/rails_test/app/mailers/user_mailer.rb +1 -1
- data/test/rails_test/app/models/access_code.rb +1 -1
- data/test/rails_test/app/models/access_code_request.rb +1 -1
- data/test/rails_test/app/models/country.rb +1 -1
- data/test/rails_test/app/models/language.rb +1 -1
- data/test/rails_test/app/models/state.rb +1 -1
- data/test/rails_test/app/models/user.rb +1 -1
- data/test/rails_test/config/environments/test.rb +1 -1
- data/test/rails_test/spec/{models → mailers}/user_mailer_spec.rb +0 -0
- data/test/rails_test/spec/models/access_code_request_spec.rb +1 -1
- data/test/rails_test/spec/models/user_spec.rb +7 -2
- data/test/rails_test/spec/spec_helper.rb +1 -25
- data/test/rails_test/test/fixtures/rails.png +0 -0
- metadata +21 -35
- data/lib/muck_users.rb +0 -10
- data/test/rails_test/script/rails +0 -6
data/MIT-LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
== Installation
|
4
4
|
|
5
|
-
The muck users engine is part of the muck framework and relies upon the
|
6
|
-
Both gems should be installed automatically when you install the
|
5
|
+
The muck users engine is part of the muck framework and relies upon the muck-engine as well as authlogic.
|
6
|
+
Both gems should be installed automatically when you install the muck-users engine.
|
7
7
|
|
8
8
|
Make sure that your 'Gemfile' contains the following:
|
9
9
|
|
@@ -15,7 +15,7 @@ secrets.yml file and then add the following to environment.rb right above Rails:
|
|
15
15
|
|
16
16
|
require 'ostruct'
|
17
17
|
require 'yaml'
|
18
|
-
::Secrets = OpenStruct.new(YAML.load_file(
|
18
|
+
::Secrets = OpenStruct.new(YAML.load_file(File.expand_path('../secrets.yml', __FILE__))[Rails.env])
|
19
19
|
|
20
20
|
Omit secrets.yml from your version control system and use it to keep sensitive data like email server credentials
|
21
21
|
|
@@ -142,7 +142,7 @@ After installing the engine just create a user model thus:
|
|
142
142
|
|
143
143
|
class User < ActiveRecord::Base
|
144
144
|
acts_as_authentic
|
145
|
-
include MuckUsers::Models::
|
145
|
+
include MuckUsers::Models::MuckUser
|
146
146
|
end
|
147
147
|
|
148
148
|
Then you will be able to go to:
|
data/Rakefile
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
require 'rake'
|
2
2
|
require 'rake/testtask'
|
3
3
|
require 'rake/rdoctask'
|
4
|
+
require 'rspec/core/rake_task'
|
5
|
+
|
6
|
+
desc 'Default: run specs.'
|
7
|
+
task :default => :spec
|
8
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
9
|
+
t.rspec_opts = ["--color", "-c", "-f progress", "-r test/rails_test/spec/spec_helper.rb"]
|
10
|
+
t.pattern = 'test/rails_test/spec/**/*_spec.rb'
|
11
|
+
end
|
4
12
|
|
5
13
|
desc 'Translate this gem'
|
6
14
|
task :translate do
|
@@ -21,7 +29,6 @@ begin
|
|
21
29
|
gem.authors = ["Justin Ball", "Joel Duffin"]
|
22
30
|
gem.rubyforge_project = "muck-users"
|
23
31
|
gem.add_dependency "authlogic"
|
24
|
-
gem.add_dependency "searchlogic"
|
25
32
|
gem.add_dependency "bcrypt-ruby"
|
26
33
|
gem.add_dependency "muck-engine"
|
27
34
|
gem.add_dependency "friendly_id"
|
@@ -50,8 +57,6 @@ rescue LoadError
|
|
50
57
|
end
|
51
58
|
end
|
52
59
|
|
53
|
-
task :default => :spec
|
54
|
-
|
55
60
|
require 'rake/rdoctask'
|
56
61
|
Rake::RDocTask.new do |rdoc|
|
57
62
|
if File.exist?('VERSION.yml')
|
@@ -62,7 +67,7 @@ Rake::RDocTask.new do |rdoc|
|
|
62
67
|
end
|
63
68
|
|
64
69
|
rdoc.rdoc_dir = 'rdoc'
|
65
|
-
rdoc.title = "
|
70
|
+
rdoc.title = "muck-users #{version}"
|
66
71
|
rdoc.rdoc_files.include('README*')
|
67
72
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
68
73
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1
|
data/config/locales/ca.yml
CHANGED
@@ -89,7 +89,7 @@ ca:
|
|
89
89
|
confirm_delete_account: "Esteu segur que voleu eliminar el seu compte? \\ NNo es pot desfer."
|
90
90
|
confirm_password: "Confirmar contrasenya"
|
91
91
|
confirm_select_new_password: "Confirmar canvi de contrasenya"
|
92
|
-
could_not_find_reset_code: "No s'ha
|
92
|
+
could_not_find_reset_code: "No s'ha pogut trobar un codi per restablir contrasenya. Si us plau, intenti restablir la contrasenya de nou."
|
93
93
|
could_not_find_user_with_email: "No s'ha trobat un usuari amb aquesta adreça de correu electrònic."
|
94
94
|
current_password: "Contrasenya actual"
|
95
95
|
delete: Eliminar
|
data/config/locales/id.yml
CHANGED
@@ -70,7 +70,7 @@ id:
|
|
70
70
|
bulk_access_code_message: Pesan
|
71
71
|
bulk_access_code_problem: "Masalah menambahkan kode akses"
|
72
72
|
bulk_access_code_subject: Subyek
|
73
|
-
bulk_access_code_tip: "Opsional. Jika kode
|
73
|
+
bulk_access_code_tip: "Opsional. Jika kode ditetapkan maka kode akan dikirimkan ke semua pengguna. Membiarkan field ini kosong untuk mengirim kode unik untuk tiap user."
|
74
74
|
bulk_access_codes: "Kode Akses Massal"
|
75
75
|
bulk_access_codes_created: "Bulk kode akses dibuat dan email ke email %{email_count}."
|
76
76
|
bulk_access_codes_description: "Ini akan menghasilkan kode, menggunakan akses tunggal yang unik untuk setiap email yang disediakan."
|
@@ -179,7 +179,7 @@ id:
|
|
179
179
|
terms_and_service_tip: "Untuk mendaftar Anda harus menyetujui persyaratan dan kondisi. Anda dapat meninjau kebijakan ini sebelum melanjutkan dengan mengklik pada link."
|
180
180
|
terms_of_service_required: "Anda harus menerima persyaratan layanan."
|
181
181
|
thanks_sign_up: "Terima kasih telah mendaftar!"
|
182
|
-
thanks_sign_up_check: "Akun Anda telah dibuat. Silakan cek e-mail Anda untuk
|
182
|
+
thanks_sign_up_check: "Akun Anda telah dibuat. Silakan cek e-mail Anda untuk mendapatkan petunjuk aktivasi account anda!"
|
183
183
|
thanks_sign_up_login: "Terima kasih telah mendaftar! Anda dapat login sekarang"
|
184
184
|
total_users: "Total Pengguna: %{total}"
|
185
185
|
unlimited: "Menggunakan Unlimited"
|
data/config/locales/vi.yml
CHANGED
@@ -207,7 +207,7 @@ vi:
|
|
207
207
|
username_help: "Bạn có thể sử dụng từ 6 đến 20 ký tự. Nếu tên bạn muốn không có thử thêm nhiều con số hay dấu chấm câu."
|
208
208
|
username_not_available: "Tên người dùng không có sẵn"
|
209
209
|
username_recover_prompt: "Hãy cung cấp email mà bạn sử dụng khi bạn tạo tài khoản, tên người dùng của bạn sẽ được gửi qua email cho bạn."
|
210
|
-
username_sent: "tên người dùng của bạn đã được gửi qua email cho bạn.
|
210
|
+
username_sent: "tên người dùng của bạn đã được gửi qua email cho bạn. Hãy kiểm tra email của bạn."
|
211
211
|
users_admin: "Người dùng"
|
212
212
|
users_in_role: "Người sử dụng trong vai trò: %{role}"
|
213
213
|
validation_are_required: "được yêu cầu."
|
File without changes
|
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'muck-users'
|
2
2
|
require 'rails'
|
3
3
|
|
4
4
|
module MuckUsers
|
@@ -8,13 +8,12 @@ module MuckUsers
|
|
8
8
|
'muck-users'
|
9
9
|
end
|
10
10
|
|
11
|
-
initializer '
|
11
|
+
initializer 'muck-users.filter_paramters' do |app|
|
12
12
|
app.config.filter_parameters << :password
|
13
13
|
app.config.filter_parameters << :password_confirmation
|
14
14
|
end
|
15
15
|
|
16
|
-
|
17
|
-
initializer 'muck_users.add_admin_ui_links', :after => 'muck_engine.add_admin_ui_links' do
|
16
|
+
initializer 'muck-users.add_admin_ui_links', :after => 'muck-engine.add_admin_ui_links' do
|
18
17
|
# Add users to the dashboard
|
19
18
|
MuckEngine.configuration.add_muck_dashboard_item('admin/users/dashboard_widget')
|
20
19
|
# Add admin link for users and roles
|
@@ -25,30 +24,24 @@ module MuckUsers
|
|
25
24
|
MuckEngine.configuration.add_muck_admin_nav_item(I18n.translate('muck.engine.admin_access_codes'), '/admin/access_codes')
|
26
25
|
end
|
27
26
|
|
28
|
-
initializer '
|
27
|
+
initializer 'muck-users.controllers' do
|
29
28
|
ActiveSupport.on_load(:action_controller) do
|
30
29
|
include MuckUsers::AuthenticApplication
|
31
30
|
end
|
32
31
|
end
|
33
32
|
|
34
|
-
initializer '
|
33
|
+
initializer 'muck-users.helpers' do
|
35
34
|
ActiveSupport.on_load(:action_view) do
|
36
35
|
include MuckUsersHelper
|
37
36
|
end
|
38
37
|
end
|
39
38
|
|
40
|
-
initializer '
|
39
|
+
initializer 'muck-users.models' do
|
41
40
|
ActiveSupport.on_load(:active_record) do
|
42
41
|
include MuckUsers::SecureMethods
|
43
42
|
include MuckUsers::Exceptions
|
44
43
|
end
|
45
44
|
end
|
46
|
-
|
47
|
-
initializer 'muck_engine.i18n' do
|
48
|
-
ActiveSupport.on_load(:i18n) do
|
49
|
-
I18n.load_path += Dir[ File.join(File.dirname(__FILE__), '..', '..', 'rails_i18n', '*.{rb,yml}') ]
|
50
|
-
end
|
51
|
-
end
|
52
45
|
|
53
46
|
end
|
54
47
|
end
|
File without changes
|
File without changes
|
File without changes
|
data/lib/muck-users.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'muck-users/exceptions'
|
2
|
+
require 'muck-users/secure_methods'
|
3
|
+
require 'muck-users/config'
|
4
|
+
require 'muck-users/form_builder'
|
5
|
+
require 'muck-users/models/access_code'
|
6
|
+
require 'muck-users/models/access_code_request'
|
7
|
+
require 'muck-users/models/user'
|
8
|
+
require 'muck-users/mailers/user_mailer'
|
9
|
+
require 'muck-users/controllers/authentic_application'
|
10
|
+
require 'muck-users/engine'
|
data/muck-users.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{muck-users}
|
8
|
-
s.version = "3.0.
|
8
|
+
s.version = "3.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball", "Joel Duffin"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-10-14}
|
13
13
|
s.description = %q{Easily add user signup, login and other features to your application}
|
14
14
|
s.email = %q{justin@tatemae.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -450,17 +450,17 @@ Gem::Specification.new do |s|
|
|
450
450
|
"db/migrate/20090327231918_create_users.rb",
|
451
451
|
"db/migrate/20100123035450_create_access_codes.rb",
|
452
452
|
"db/migrate/20100123233654_create_access_code_requests.rb",
|
453
|
-
"lib/
|
454
|
-
"lib/
|
455
|
-
"lib/
|
456
|
-
"lib/
|
457
|
-
"lib/
|
458
|
-
"lib/
|
459
|
-
"lib/
|
460
|
-
"lib/
|
461
|
-
"lib/
|
462
|
-
"lib/
|
463
|
-
"lib/
|
453
|
+
"lib/muck-users.rb",
|
454
|
+
"lib/muck-users/config.rb",
|
455
|
+
"lib/muck-users/controllers/authentic_application.rb",
|
456
|
+
"lib/muck-users/engine.rb",
|
457
|
+
"lib/muck-users/exceptions.rb",
|
458
|
+
"lib/muck-users/form_builder.rb",
|
459
|
+
"lib/muck-users/mailers/user_mailer.rb",
|
460
|
+
"lib/muck-users/models/access_code.rb",
|
461
|
+
"lib/muck-users/models/access_code_request.rb",
|
462
|
+
"lib/muck-users/models/user.rb",
|
463
|
+
"lib/muck-users/secure_methods.rb",
|
464
464
|
"lib/tasks/muck_users.rake",
|
465
465
|
"muck-users.gemspec",
|
466
466
|
"public/images/admin/roles.gif",
|
@@ -1100,7 +1100,6 @@ Gem::Specification.new do |s|
|
|
1100
1100
|
"test/rails_test/public/stylesheets/styles.css",
|
1101
1101
|
"test/rails_test/public/stylesheets/themes/blue/styles.css",
|
1102
1102
|
"test/rails_test/public/stylesheets/themes/red/styles.css",
|
1103
|
-
"test/rails_test/script/rails",
|
1104
1103
|
"test/rails_test/spec/controllers/access_code_requests_controller_spec.rb",
|
1105
1104
|
"test/rails_test/spec/controllers/activations_controller_spec.rb",
|
1106
1105
|
"test/rails_test/spec/controllers/admin/access_codes_controller_spec.rb",
|
@@ -1110,14 +1109,15 @@ Gem::Specification.new do |s|
|
|
1110
1109
|
"test/rails_test/spec/controllers/user_sessions_controller_spec.rb",
|
1111
1110
|
"test/rails_test/spec/controllers/username_request_controller_spec.rb",
|
1112
1111
|
"test/rails_test/spec/controllers/users_controller_spec.rb",
|
1112
|
+
"test/rails_test/spec/mailers/user_mailer_spec.rb",
|
1113
1113
|
"test/rails_test/spec/models/access_code_request_spec.rb",
|
1114
1114
|
"test/rails_test/spec/models/access_code_spec.rb",
|
1115
1115
|
"test/rails_test/spec/models/permission_spec.rb",
|
1116
1116
|
"test/rails_test/spec/models/role_spec.rb",
|
1117
1117
|
"test/rails_test/spec/models/secure_methods_spec.rb",
|
1118
|
-
"test/rails_test/spec/models/user_mailer_spec.rb",
|
1119
1118
|
"test/rails_test/spec/models/user_spec.rb",
|
1120
|
-
"test/rails_test/spec/spec_helper.rb"
|
1119
|
+
"test/rails_test/spec/spec_helper.rb",
|
1120
|
+
"test/rails_test/test/fixtures/rails.png"
|
1121
1121
|
]
|
1122
1122
|
s.homepage = %q{http://github.com/jbasdf/muck_users}
|
1123
1123
|
s.rdoc_options = ["--charset=UTF-8"]
|
@@ -1171,12 +1171,12 @@ Gem::Specification.new do |s|
|
|
1171
1171
|
"test/rails_test/spec/controllers/user_sessions_controller_spec.rb",
|
1172
1172
|
"test/rails_test/spec/controllers/username_request_controller_spec.rb",
|
1173
1173
|
"test/rails_test/spec/controllers/users_controller_spec.rb",
|
1174
|
+
"test/rails_test/spec/mailers/user_mailer_spec.rb",
|
1174
1175
|
"test/rails_test/spec/models/access_code_request_spec.rb",
|
1175
1176
|
"test/rails_test/spec/models/access_code_spec.rb",
|
1176
1177
|
"test/rails_test/spec/models/permission_spec.rb",
|
1177
1178
|
"test/rails_test/spec/models/role_spec.rb",
|
1178
1179
|
"test/rails_test/spec/models/secure_methods_spec.rb",
|
1179
|
-
"test/rails_test/spec/models/user_mailer_spec.rb",
|
1180
1180
|
"test/rails_test/spec/models/user_spec.rb",
|
1181
1181
|
"test/rails_test/spec/spec_helper.rb"
|
1182
1182
|
]
|
@@ -1187,20 +1187,17 @@ Gem::Specification.new do |s|
|
|
1187
1187
|
|
1188
1188
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
1189
1189
|
s.add_runtime_dependency(%q<authlogic>, [">= 0"])
|
1190
|
-
s.add_runtime_dependency(%q<searchlogic>, [">= 0"])
|
1191
1190
|
s.add_runtime_dependency(%q<bcrypt-ruby>, [">= 0"])
|
1192
1191
|
s.add_runtime_dependency(%q<muck-engine>, [">= 0"])
|
1193
1192
|
s.add_runtime_dependency(%q<friendly_id>, [">= 0"])
|
1194
1193
|
else
|
1195
1194
|
s.add_dependency(%q<authlogic>, [">= 0"])
|
1196
|
-
s.add_dependency(%q<searchlogic>, [">= 0"])
|
1197
1195
|
s.add_dependency(%q<bcrypt-ruby>, [">= 0"])
|
1198
1196
|
s.add_dependency(%q<muck-engine>, [">= 0"])
|
1199
1197
|
s.add_dependency(%q<friendly_id>, [">= 0"])
|
1200
1198
|
end
|
1201
1199
|
else
|
1202
1200
|
s.add_dependency(%q<authlogic>, [">= 0"])
|
1203
|
-
s.add_dependency(%q<searchlogic>, [">= 0"])
|
1204
1201
|
s.add_dependency(%q<bcrypt-ruby>, [">= 0"])
|
1205
1202
|
s.add_dependency(%q<muck-engine>, [">= 0"])
|
1206
1203
|
s.add_dependency(%q<friendly_id>, [">= 0"])
|
data/test/rails_test/Gemfile
CHANGED
@@ -6,23 +6,17 @@ gem 'mysql'
|
|
6
6
|
# gem 'authlogic'
|
7
7
|
# TODO this is temporary until the official authlogic gem is updated for rails 3
|
8
8
|
gem 'authlogic', :git => 'git://github.com/odorcicd/authlogic.git', :branch => 'rails3'
|
9
|
-
gem 'will_paginate', "~> 3.0.pre2"
|
10
|
-
|
11
|
-
# TODO Remove this once the validation_reflection gem is released for Rails 3 and the version has been updated in muck-engine
|
12
|
-
gem "validation_reflection", :git => "http://github.com/redinger/validation_reflection.git", :branch => "rails-3"
|
13
|
-
|
14
9
|
gem "bcrypt-ruby", :require => "bcrypt"
|
15
|
-
gem 'overlord'
|
16
10
|
|
17
|
-
gem 'muck-engine', :
|
18
|
-
gem 'muck-users', :
|
11
|
+
gem 'muck-engine', :path => "~/projects/muck-engine"
|
12
|
+
gem 'muck-users', :path => "~/projects/muck-users"
|
19
13
|
|
20
14
|
if RUBY_VERSION < '1.9'
|
21
15
|
gem "ruby-debug"
|
22
16
|
end
|
23
17
|
|
24
18
|
group :test, :development do
|
25
|
-
gem "rspec-rails", ">=2.0.0
|
19
|
+
gem "rspec-rails", ">=2.0.0"
|
26
20
|
gem "cucumber-rails"
|
27
21
|
end
|
28
22
|
|
@@ -34,7 +28,7 @@ group :test do
|
|
34
28
|
gem "factory_girl"
|
35
29
|
gem "cucumber"
|
36
30
|
gem "rcov"
|
37
|
-
gem "rspec", ">=2.0.0
|
31
|
+
gem "rspec", ">=2.0.0"
|
38
32
|
gem "database_cleaner"
|
39
33
|
gem "spork"
|
40
34
|
gem "launchy"
|
@@ -6,20 +6,13 @@ GIT
|
|
6
6
|
authlogic (2.1.3)
|
7
7
|
activesupport
|
8
8
|
|
9
|
-
GIT
|
10
|
-
remote: http://github.com/redinger/validation_reflection.git
|
11
|
-
revision: f0d81d3732304e2baa66e6caad1bb2ba09e9f293
|
12
|
-
branch: rails-3
|
13
|
-
specs:
|
14
|
-
validation_reflection (1.0.0.rc.1)
|
15
|
-
|
16
9
|
PATH
|
17
10
|
remote: /Users/jbasdf/projects/muck-engine
|
18
11
|
specs:
|
19
|
-
muck-engine (3.0.
|
12
|
+
muck-engine (3.0.2)
|
20
13
|
overlord
|
21
|
-
validation_reflection
|
22
|
-
will_paginate
|
14
|
+
validation_reflection
|
15
|
+
will_paginate (~> 3.0.beta)
|
23
16
|
|
24
17
|
PATH
|
25
18
|
remote: /Users/jbasdf/projects/muck-users
|
@@ -29,7 +22,6 @@ PATH
|
|
29
22
|
bcrypt-ruby
|
30
23
|
friendly_id
|
31
24
|
muck-engine
|
32
|
-
searchlogic
|
33
25
|
|
34
26
|
PATH
|
35
27
|
remote: /Users/jbasdf/projects/other_apps/shoulda
|
@@ -68,7 +60,7 @@ GEM
|
|
68
60
|
activesupport (3.0.0)
|
69
61
|
arel (1.0.1)
|
70
62
|
activesupport (~> 3.0.0)
|
71
|
-
autotest (4.4.
|
63
|
+
autotest (4.4.1)
|
72
64
|
babosa (0.2.0)
|
73
65
|
bcrypt-ruby (2.1.2)
|
74
66
|
builder (2.1.2)
|
@@ -79,13 +71,15 @@ GEM
|
|
79
71
|
rack (>= 1.0.0)
|
80
72
|
rack-test (>= 0.5.4)
|
81
73
|
selenium-webdriver (>= 0.0.3)
|
74
|
+
childprocess (0.0.7)
|
75
|
+
ffi (~> 0.6.3)
|
82
76
|
columnize (0.3.1)
|
83
77
|
configuration (1.1.0)
|
84
78
|
crack (0.1.8)
|
85
|
-
cucumber (0.9.
|
79
|
+
cucumber (0.9.2)
|
86
80
|
builder (~> 2.1.2)
|
87
81
|
diff-lcs (~> 1.1.2)
|
88
|
-
gherkin (~> 2.2.
|
82
|
+
gherkin (~> 2.2.5)
|
89
83
|
json (~> 1.4.6)
|
90
84
|
term-ansicolor (~> 1.0.5)
|
91
85
|
cucumber-rails (0.3.2)
|
@@ -100,10 +94,9 @@ GEM
|
|
100
94
|
rake (>= 0.8.7)
|
101
95
|
friendly_id (3.1.7)
|
102
96
|
babosa (~> 0.2.0)
|
103
|
-
gherkin (2.2.
|
97
|
+
gherkin (2.2.8)
|
104
98
|
json (~> 1.4.6)
|
105
99
|
term-ansicolor (~> 1.0.5)
|
106
|
-
trollop (~> 1.16.2)
|
107
100
|
httparty (0.6.1)
|
108
101
|
crack (= 0.1.8)
|
109
102
|
i18n (0.4.1)
|
@@ -113,7 +106,7 @@ GEM
|
|
113
106
|
configuration (>= 0.0.5)
|
114
107
|
rake (>= 0.8.1)
|
115
108
|
linecache (0.43)
|
116
|
-
mail (2.2.
|
109
|
+
mail (2.2.7)
|
117
110
|
activesupport (>= 2.3.6)
|
118
111
|
mime-types
|
119
112
|
treetop (>= 1.4.5)
|
@@ -143,37 +136,36 @@ GEM
|
|
143
136
|
thor (~> 0.14.0)
|
144
137
|
rake (0.8.7)
|
145
138
|
rcov (0.9.9)
|
146
|
-
rspec (2.0.0
|
147
|
-
rspec-core (= 2.0.0
|
148
|
-
rspec-expectations (= 2.0.0
|
149
|
-
rspec-mocks (= 2.0.0
|
150
|
-
rspec-core (2.0.0
|
151
|
-
rspec-expectations (2.0.0
|
139
|
+
rspec (2.0.0)
|
140
|
+
rspec-core (= 2.0.0)
|
141
|
+
rspec-expectations (= 2.0.0)
|
142
|
+
rspec-mocks (= 2.0.0)
|
143
|
+
rspec-core (2.0.0)
|
144
|
+
rspec-expectations (2.0.0)
|
152
145
|
diff-lcs (>= 1.1.2)
|
153
|
-
rspec-mocks (2.0.0
|
154
|
-
rspec-core (= 2.0.0
|
155
|
-
rspec-expectations (= 2.0.0
|
156
|
-
rspec-rails (2.0.0
|
157
|
-
rspec (= 2.0.0
|
146
|
+
rspec-mocks (2.0.0)
|
147
|
+
rspec-core (= 2.0.0)
|
148
|
+
rspec-expectations (= 2.0.0)
|
149
|
+
rspec-rails (2.0.0)
|
150
|
+
rspec (= 2.0.0)
|
158
151
|
ruby-debug (0.10.3)
|
159
152
|
columnize (>= 0.1)
|
160
153
|
ruby-debug-base (~> 0.10.3.0)
|
161
154
|
ruby-debug-base (0.10.3)
|
162
155
|
linecache (>= 0.3)
|
163
156
|
rubyzip (0.9.4)
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
ffi (>= 0.6.1)
|
157
|
+
selenium-webdriver (0.0.29)
|
158
|
+
childprocess (>= 0.0.7)
|
159
|
+
ffi (~> 0.6.3)
|
168
160
|
json_pure
|
169
161
|
rubyzip
|
170
162
|
spork (0.8.4)
|
171
163
|
term-ansicolor (1.0.5)
|
172
|
-
thor (0.14.
|
164
|
+
thor (0.14.3)
|
173
165
|
treetop (1.4.8)
|
174
166
|
polyglot (>= 0.3.1)
|
175
|
-
trollop (1.16.2)
|
176
167
|
tzinfo (0.3.23)
|
168
|
+
validation_reflection (1.0.0)
|
177
169
|
will_paginate (3.0.pre2)
|
178
170
|
|
179
171
|
PLATFORMS
|
@@ -192,13 +184,10 @@ DEPENDENCIES
|
|
192
184
|
muck-engine!
|
193
185
|
muck-users!
|
194
186
|
mysql
|
195
|
-
overlord
|
196
187
|
rails (= 3.0.0)
|
197
188
|
rcov
|
198
|
-
rspec (>= 2.0.0
|
199
|
-
rspec-rails (>= 2.0.0
|
189
|
+
rspec (>= 2.0.0)
|
190
|
+
rspec-rails (>= 2.0.0)
|
200
191
|
ruby-debug
|
201
192
|
shoulda!
|
202
193
|
spork
|
203
|
-
validation_reflection!
|
204
|
-
will_paginate (~> 3.0.pre2)
|
@@ -15,7 +15,7 @@ RailsTest::Application.configure do
|
|
15
15
|
config.action_controller.perform_caching = false
|
16
16
|
|
17
17
|
# Raise exceptions instead of rendering exception templates
|
18
|
-
config.action_dispatch.show_exceptions =
|
18
|
+
config.action_dispatch.show_exceptions = true
|
19
19
|
|
20
20
|
# Disable request forgery protection in test environment
|
21
21
|
config.action_controller.allow_forgery_protection = false
|
File without changes
|
@@ -274,8 +274,8 @@ describe User do
|
|
274
274
|
end
|
275
275
|
|
276
276
|
describe "emails" do
|
277
|
-
before(:
|
278
|
-
@email =
|
277
|
+
before(:each) do
|
278
|
+
@email = RSpec::Mocks::Mock.new('Email')
|
279
279
|
end
|
280
280
|
describe "deliver_welcome_email" do
|
281
281
|
before(:each) do
|
@@ -287,6 +287,7 @@ describe User do
|
|
287
287
|
MuckUsers.configuration.send_welcome = @send_welcome
|
288
288
|
end
|
289
289
|
it "should deliver activation instructions" do
|
290
|
+
@email.should_receive(:deliver)
|
290
291
|
UserMailer.should_receive(:welcome_notification).with(@user).and_return(@email)
|
291
292
|
@user.deliver_welcome_email
|
292
293
|
end
|
@@ -298,6 +299,7 @@ describe User do
|
|
298
299
|
end
|
299
300
|
it "should deliver activation instructions" do
|
300
301
|
@user.should_receive(:reset_perishable_token!)
|
302
|
+
@email.should_receive(:deliver)
|
301
303
|
UserMailer.should_receive(:activation_confirmation).with(@user).and_return(@email)
|
302
304
|
@user.deliver_activation_confirmation!
|
303
305
|
end
|
@@ -309,6 +311,7 @@ describe User do
|
|
309
311
|
end
|
310
312
|
it "should deliver activation instructions" do
|
311
313
|
@user.should_receive(:reset_perishable_token!)
|
314
|
+
@email.should_receive(:deliver)
|
312
315
|
UserMailer.should_receive(:activation_instructions).with(@user).and_return(@email)
|
313
316
|
@user.deliver_activation_instructions!
|
314
317
|
end
|
@@ -321,10 +324,12 @@ describe User do
|
|
321
324
|
end
|
322
325
|
it "should send password reset instructions" do
|
323
326
|
UserMailer.should_receive(:password_reset_instructions).and_return(@email)
|
327
|
+
@email.should_receive(:deliver)
|
324
328
|
@user_active.deliver_password_reset_instructions!
|
325
329
|
end
|
326
330
|
it "should send not active instructions" do
|
327
331
|
UserMailer.should_receive(:password_not_active_instructions).and_return(@email)
|
332
|
+
@email.should_receive(:deliver)
|
328
333
|
@user_inactive.deliver_password_reset_instructions!
|
329
334
|
end
|
330
335
|
end
|
@@ -1,29 +1,5 @@
|
|
1
1
|
$:.reject! { |e| e.include? 'TextMate' }
|
2
2
|
ENV["RAILS_ENV"] ||= 'test'
|
3
3
|
require File.expand_path("../../config/environment", __FILE__)
|
4
|
-
require 'rspec/rails'
|
5
|
-
require 'muck_test_helper'
|
6
|
-
|
7
|
-
# Requires supporting ruby files with custom matchers and macros, etc,
|
8
|
-
# in spec/support/ and its subdirectories.
|
9
|
-
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
10
|
-
|
11
|
-
RSpec.configure do |config|
|
12
|
-
# == Mock Framework
|
13
|
-
#
|
14
|
-
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
15
|
-
#
|
16
|
-
# config.mock_with :mocha
|
17
|
-
# config.mock_with :flexmock
|
18
|
-
# config.mock_with :rr
|
19
|
-
config.mock_with :rspec
|
20
4
|
|
21
|
-
|
22
|
-
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
23
|
-
|
24
|
-
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
25
|
-
# examples within a transaction, remove the following line or assign false
|
26
|
-
# instead of true.
|
27
|
-
config.use_transactional_fixtures = true
|
28
|
-
|
29
|
-
end
|
5
|
+
require 'muck_test_helper'
|
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-users
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 1
|
10
|
+
version: 3.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Ball
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-10-14 00:00:00 -06:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
type: :runtime
|
35
35
|
version_requirements: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
37
|
+
name: bcrypt-ruby
|
38
38
|
prerelease: false
|
39
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
@@ -48,7 +48,7 @@ dependencies:
|
|
48
48
|
type: :runtime
|
49
49
|
version_requirements: *id002
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
|
-
name:
|
51
|
+
name: muck-engine
|
52
52
|
prerelease: false
|
53
53
|
requirement: &id003 !ruby/object:Gem::Requirement
|
54
54
|
none: false
|
@@ -62,7 +62,7 @@ dependencies:
|
|
62
62
|
type: :runtime
|
63
63
|
version_requirements: *id003
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
|
-
name:
|
65
|
+
name: friendly_id
|
66
66
|
prerelease: false
|
67
67
|
requirement: &id004 !ruby/object:Gem::Requirement
|
68
68
|
none: false
|
@@ -75,20 +75,6 @@ dependencies:
|
|
75
75
|
version: "0"
|
76
76
|
type: :runtime
|
77
77
|
version_requirements: *id004
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: friendly_id
|
80
|
-
prerelease: false
|
81
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
|
-
requirements:
|
84
|
-
- - ">="
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
hash: 3
|
87
|
-
segments:
|
88
|
-
- 0
|
89
|
-
version: "0"
|
90
|
-
type: :runtime
|
91
|
-
version_requirements: *id005
|
92
78
|
description: Easily add user signup, login and other features to your application
|
93
79
|
email: justin@tatemae.com
|
94
80
|
executables: []
|
@@ -532,17 +518,17 @@ files:
|
|
532
518
|
- db/migrate/20090327231918_create_users.rb
|
533
519
|
- db/migrate/20100123035450_create_access_codes.rb
|
534
520
|
- db/migrate/20100123233654_create_access_code_requests.rb
|
535
|
-
- lib/
|
536
|
-
- lib/
|
537
|
-
- lib/
|
538
|
-
- lib/
|
539
|
-
- lib/
|
540
|
-
- lib/
|
541
|
-
- lib/
|
542
|
-
- lib/
|
543
|
-
- lib/
|
544
|
-
- lib/
|
545
|
-
- lib/
|
521
|
+
- lib/muck-users.rb
|
522
|
+
- lib/muck-users/config.rb
|
523
|
+
- lib/muck-users/controllers/authentic_application.rb
|
524
|
+
- lib/muck-users/engine.rb
|
525
|
+
- lib/muck-users/exceptions.rb
|
526
|
+
- lib/muck-users/form_builder.rb
|
527
|
+
- lib/muck-users/mailers/user_mailer.rb
|
528
|
+
- lib/muck-users/models/access_code.rb
|
529
|
+
- lib/muck-users/models/access_code_request.rb
|
530
|
+
- lib/muck-users/models/user.rb
|
531
|
+
- lib/muck-users/secure_methods.rb
|
546
532
|
- lib/tasks/muck_users.rake
|
547
533
|
- muck-users.gemspec
|
548
534
|
- public/images/admin/roles.gif
|
@@ -1182,7 +1168,6 @@ files:
|
|
1182
1168
|
- test/rails_test/public/stylesheets/styles.css
|
1183
1169
|
- test/rails_test/public/stylesheets/themes/blue/styles.css
|
1184
1170
|
- test/rails_test/public/stylesheets/themes/red/styles.css
|
1185
|
-
- test/rails_test/script/rails
|
1186
1171
|
- test/rails_test/spec/controllers/access_code_requests_controller_spec.rb
|
1187
1172
|
- test/rails_test/spec/controllers/activations_controller_spec.rb
|
1188
1173
|
- test/rails_test/spec/controllers/admin/access_codes_controller_spec.rb
|
@@ -1192,14 +1177,15 @@ files:
|
|
1192
1177
|
- test/rails_test/spec/controllers/user_sessions_controller_spec.rb
|
1193
1178
|
- test/rails_test/spec/controllers/username_request_controller_spec.rb
|
1194
1179
|
- test/rails_test/spec/controllers/users_controller_spec.rb
|
1180
|
+
- test/rails_test/spec/mailers/user_mailer_spec.rb
|
1195
1181
|
- test/rails_test/spec/models/access_code_request_spec.rb
|
1196
1182
|
- test/rails_test/spec/models/access_code_spec.rb
|
1197
1183
|
- test/rails_test/spec/models/permission_spec.rb
|
1198
1184
|
- test/rails_test/spec/models/role_spec.rb
|
1199
1185
|
- test/rails_test/spec/models/secure_methods_spec.rb
|
1200
|
-
- test/rails_test/spec/models/user_mailer_spec.rb
|
1201
1186
|
- test/rails_test/spec/models/user_spec.rb
|
1202
1187
|
- test/rails_test/spec/spec_helper.rb
|
1188
|
+
- test/rails_test/test/fixtures/rails.png
|
1203
1189
|
has_rdoc: true
|
1204
1190
|
homepage: http://github.com/jbasdf/muck_users
|
1205
1191
|
licenses: []
|
@@ -1280,11 +1266,11 @@ test_files:
|
|
1280
1266
|
- test/rails_test/spec/controllers/user_sessions_controller_spec.rb
|
1281
1267
|
- test/rails_test/spec/controllers/username_request_controller_spec.rb
|
1282
1268
|
- test/rails_test/spec/controllers/users_controller_spec.rb
|
1269
|
+
- test/rails_test/spec/mailers/user_mailer_spec.rb
|
1283
1270
|
- test/rails_test/spec/models/access_code_request_spec.rb
|
1284
1271
|
- test/rails_test/spec/models/access_code_spec.rb
|
1285
1272
|
- test/rails_test/spec/models/permission_spec.rb
|
1286
1273
|
- test/rails_test/spec/models/role_spec.rb
|
1287
1274
|
- test/rails_test/spec/models/secure_methods_spec.rb
|
1288
|
-
- test/rails_test/spec/models/user_mailer_spec.rb
|
1289
1275
|
- test/rails_test/spec/models/user_spec.rb
|
1290
1276
|
- test/rails_test/spec/spec_helper.rb
|
data/lib/muck_users.rb
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
require 'muck_users/exceptions'
|
2
|
-
require 'muck_users/secure_methods'
|
3
|
-
require 'muck_users/config'
|
4
|
-
require 'muck_users/form_builder'
|
5
|
-
require 'muck_users/models/access_code'
|
6
|
-
require 'muck_users/models/access_code_request'
|
7
|
-
require 'muck_users/models/user'
|
8
|
-
require 'muck_users/mailers/user_mailer'
|
9
|
-
require 'muck_users/controllers/authentic_application'
|
10
|
-
require 'muck_users/engine'
|
@@ -1,6 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
-
|
4
|
-
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
-
require File.expand_path('../../config/boot', __FILE__)
|
6
|
-
require 'rails/commands'
|