muck-users 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -9,8 +9,6 @@
9
9
  :tip => t('muck.users.email_help') } -%>
10
10
  <%= f.text_field :first_name, { :label => t('muck.users.first_name') } %>
11
11
  <%= f.text_field :last_name, { :label => t('muck.users.last_name') } %>
12
- <%= image_tag @user.photo.url(:thumb) %>
13
- <%= f.file_field :photo, { :label => t('muck.users.upload_photo') } %>
14
12
  <div class="button form-row">
15
13
  <%= f.submit t('muck.general.save') %>
16
14
  </div>
@@ -17,7 +17,6 @@
17
17
  :tip => t('muck.users.password_help')} -%>
18
18
  <%= f.password_field :password_confirmation, { :label => t('muck.users.confirm_password'),
19
19
  :tip => t('muck.users.password_confirmation_help') } -%>
20
- <%= f.file_field :photo, { :label => t('muck.users.upload_photo') } %>
21
20
  <% if GlobalConfig.use_recaptcha -%>
22
21
  <div class="recaptcha">
23
22
  <%= recaptcha_tags %>
@@ -21,13 +21,7 @@ module ActiveRecord
21
21
  domain_head_regex = '(?:[A-Z0-9\-]+\.)+'.freeze
22
22
  domain_tld_regex = '(?:[A-Z]{2}|com|org|net|edu|gov|mil|biz|info|mobi|name|aero|jobs|museum)'.freeze
23
23
  email_regex = /\A#{email_name_regex}@#{domain_head_regex}#{domain_tld_regex}\z/i
24
-
25
- has_attached_file :photo,
26
- :styles => { :medium => "300x300>",
27
- :thumb => "100x100>",
28
- :icon => "50x50>" },
29
- :default_url => "/images/profile_default.jpg"
30
-
24
+
31
25
  class_eval <<-EOV
32
26
  validates_format_of :login, :with => /^[a-z0-9-]+$/i, :message => 'may only contain letters, numbers or a hyphen.'
33
27
  validates_format_of :email, :with => email_regex, :message => 'does not look like a valid email address.'
@@ -35,8 +29,7 @@ module ActiveRecord
35
29
  # prevents a user from submitting a crafted form that bypasses activation
36
30
  attr_protected :crypted_password, :password_salt, :persistence_token, :single_access_token, :perishable_token, :login_count,
37
31
  :failed_login_count, :last_request_at, :last_login_at, :current_login_at, :current_login_ip, :last_login_ip,
38
- :terms_of_service, :time_zone, :disabled_at, :activated_at, :created_at, :updated_at, :photo_file_name,
39
- :photo_content_type, :photo_file_size
32
+ :terms_of_service, :time_zone, :disabled_at, :activated_at, :created_at, :updated_at
40
33
  EOV
41
34
 
42
35
  include ActiveRecord::Acts::MuckUser::InstanceMethods
data/locales/en.yml CHANGED
@@ -106,7 +106,6 @@ en:
106
106
  welcome_email_subject: "Welcome to {{application_name}}"
107
107
  admin_users_title: "User Administration"
108
108
  delete_this_user: "Delete this user."
109
- upload_photo: "Upload a photo:"
110
109
  sign_up: Sign up
111
110
  email_recover_prompt: "Please provide the email you signed up with to recover your password."
112
111
  admin:
data/muck-users.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{muck-users}
5
- s.version = "0.1.4"
5
+ s.version = "0.1.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Justin Ball"]
9
- s.date = %q{2009-06-16}
9
+ s.date = %q{2009-06-18}
10
10
  s.description = %q{Easily add user signup, login and other features to your application}
11
11
  s.email = %q{justinball@gmail.com}
12
12
  s.extra_rdoc_files = [
@@ -107,8 +107,6 @@ Gem::Specification.new do |s|
107
107
  "config/muck_users_routes.rb",
108
108
  "db/migrate/20090320174818_create_muck_permissions_and_roles.rb",
109
109
  "db/migrate/20090320174818_create_muck_permissions_and_roles.rb",
110
- "db/migrate/20090512013727_add_photo_to_user.rb",
111
- "db/migrate/20090512013727_add_photo_to_user.rb",
112
110
  "install.rb",
113
111
  "lib/action_controller/authentic_application.rb",
114
112
  "lib/action_controller/authentic_application.rb",
@@ -189,7 +187,6 @@ Gem::Specification.new do |s|
189
187
  "locales/zh.yml",
190
188
  "locales/zh.yml",
191
189
  "muck-users.gemspec",
192
- "pkg/muck-users-0.1.4.gem",
193
190
  "public/images/profile_default.jpg",
194
191
  "rails/init.rb",
195
192
  "rails/init.rb",
data/rdoc/created.rid CHANGED
@@ -1 +1 @@
1
- Sat, 13 Jun 2009 22:08:57 -0600
1
+ Tue, 16 Jun 2009 23:12:42 -0600
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Thu Jun 11 21:11:00 -0600 2009</td>
59
+ <td>Tue Jun 16 01:05:09 -0600 2009</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -69,14 +69,25 @@
69
69
  <div id="contextContent">
70
70
 
71
71
  <div id="description">
72
- <p>
73
- RestfulAuthenticationEngine
74
- </p>
75
- <h6>==============</h6>
72
+ <h1>Muck Users</h1>
73
+ <h2>Installation</h2>
76
74
  <p>
77
75
  The muck users engine is part of the muck framework and relies upon the
78
- muck_engine.
76
+ muck_engine as well as authlogic. Both gems should be installed
77
+ automatically when you install the muck_users engine.
79
78
  </p>
79
+ <pre>
80
+ sudo gem install muck_users
81
+ </pre>
82
+ <p>
83
+ In addition, you will need to install the ssl_requirement plugin (<a
84
+ href="http://github.com/rails/ssl_requirement/tree/master">github.com/rails/ssl_requirement/tree/master</a>)
85
+ into your Rails project:
86
+ </p>
87
+ <pre>
88
+ ruby script/plugin install ssl_requirement
89
+ </pre>
90
+ <h2>General information</h2>
80
91
  <p>
81
92
  This engine implements authlogic. Some of the code contained was taken from
82
93
  here: <a
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muck-users
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Ball
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-16 00:00:00 -06:00
12
+ date: 2009-06-18 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -100,7 +100,6 @@ files:
100
100
  - app/views/users/welcome.html.erb
101
101
  - config/muck_users_routes.rb
102
102
  - db/migrate/20090320174818_create_muck_permissions_and_roles.rb
103
- - db/migrate/20090512013727_add_photo_to_user.rb
104
103
  - install.rb
105
104
  - lib/action_controller/authentic_application.rb
106
105
  - lib/active_record/acts/muck_user.rb
@@ -142,7 +141,6 @@ files:
142
141
  - locales/zh-TW.yml
143
142
  - locales/zh.yml
144
143
  - muck-users.gemspec
145
- - pkg/muck-users-0.1.4.gem
146
144
  - public/images/profile_default.jpg
147
145
  - rails/init.rb
148
146
  - rdoc/classes/ActionController.html
@@ -1,13 +0,0 @@
1
- class AddPhotoToUser < ActiveRecord::Migration
2
- def self.up
3
- add_column :users, :photo_file_name, :string
4
- add_column :users, :photo_content_type, :string
5
- add_column :users, :photo_file_size, :integer
6
- end
7
-
8
- def self.down
9
- remove_column :users, :photo_file_name
10
- remove_column :users, :photo_content_type
11
- remove_column :users, :photo_file_size
12
- end
13
- end
Binary file