spree_auth 1.0.0.rc1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of spree_auth might be problematic. Click here for more details.

data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2007-2011, Spree Commerce, Inc. and other contributors
1
+ Copyright (c) 2007-2012, Spree Commerce, Inc. and other contributors
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification,
@@ -35,11 +35,4 @@ class Spree::UserPasswordsController < Devise::PasswordsController
35
35
  super
36
36
  end
37
37
 
38
- private
39
-
40
- def associate_user
41
- return unless current_user and current_order
42
- current_order.associate_user!(current_user)
43
- session[:guest_token] = nil
44
- end
45
38
  end
@@ -55,9 +55,4 @@ class Spree::UserRegistrationsController < Devise::RegistrationsController
55
55
  authorize!(:create, resource)
56
56
  end
57
57
 
58
- def associate_user
59
- return unless current_user and current_order
60
- current_order.associate_user!(current_user)
61
- session[:guest_token] = nil
62
- end
63
58
  end
@@ -44,13 +44,7 @@ class Spree::UserSessionsController < Devise::SessionsController
44
44
  end
45
45
 
46
46
  private
47
- def associate_user
48
- return unless current_user and current_order
49
- current_order.associate_user!(current_user)
50
- session[:guest_token] = nil
51
- end
52
-
53
47
  def accurate_title
54
- t(:log_in)
48
+ t(:login)
55
49
  end
56
50
  end
@@ -8,7 +8,7 @@
8
8
  <div id="guest_checkout">
9
9
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @order } %>
10
10
  <h2><%= t(:guest_user_account) %></h2>
11
- <%= form_for @order, :url => spree.update_checkout_registration_path, :html => { :method => :put, :id => 'checkout_form_registration'} do |f| %>
11
+ <%= form_for @order, :url => spree.update_checkout_registration_path, :method => :put, :html => { :id => 'checkout_form_registration' } do |f| %>
12
12
  <p>
13
13
  <%= f.label :email, t(:email) %><br />
14
14
  <%= f.email_field :email, :class => 'title' %>
@@ -16,5 +16,5 @@
16
16
  </label>
17
17
  </p>
18
18
 
19
- <p><%= f.submit t(:log_in), :class => 'button primary' %></p>
19
+ <p><%= f.submit t(:login), :class => 'button primary' %></p>
20
20
  <% end %>
@@ -2,5 +2,5 @@
2
2
  <li><%= link_to t(:my_account), spree.account_path %></li>
3
3
  <li><%= link_to t(:logout), spree.destroy_user_session_path %></li>
4
4
  <% else %>
5
- <li><%= link_to t(:log_in), spree.login_path %></li>
5
+ <li><%= link_to t(:login), spree.login_path %></li>
6
6
  <% end %>
@@ -1,13 +1,13 @@
1
1
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @user } %>
2
2
  <h2><%= t(:change_my_password) %></h2>
3
3
 
4
- <%= form_for @user, :url => spree.user_password_path, :html => {:method => :put} do |f| %>
4
+ <%= form_for @user, :url => spree.user_password_path, :method => :put do |f| %>
5
5
  <p>
6
- <%= f.label :password %><br />
6
+ <%= f.label :password, t(:password) %><br />
7
7
  <%= f.password_field :password %><br />
8
8
  </p>
9
9
  <p>
10
- <%= f.label :password_confirmation %><br />
10
+ <%= f.label :password_confirmation, t(:password_confirmation) %><br />
11
11
  <%= f.password_field :password_confirmation %><br />
12
12
  </p>
13
13
  <%= f.hidden_field :reset_password_token %>
@@ -4,7 +4,7 @@
4
4
 
5
5
  <%= form_for Spree::User.new, :as => :user, :url => spree.user_password_path do |f| %>
6
6
  <p>
7
- <%= f.label :email, t(:email) %>:<br />
7
+ <%= f.label :email, t(:email) %><br />
8
8
  <%= f.email_field :email %>
9
9
  </p>
10
10
  <p>
@@ -2,7 +2,7 @@
2
2
 
3
3
  <h2><%= t(:editing_user) %></h2>
4
4
 
5
- <%= form_for @user, :url => spree.user_path(@user), :html => { :method => :put } do |f| %>
5
+ <%= form_for @user, :url => spree.user_path(@user), :method => :put do |f| %>
6
6
  <%= render :partial => 'spree/shared/user_form', :locals => { :f => f } %>
7
7
  <p>
8
8
  <%= f.submit t(:update) %>
data/db/default/users.rb CHANGED
@@ -2,7 +2,7 @@ require 'highline/import'
2
2
 
3
3
  # see last line where we create an admin if there is none, asking for email and password
4
4
  def prompt_for_admin_password
5
- password = ask('Password [spree123]: ', String) do |q|
5
+ password = ask('Password [spree123]: ') do |q|
6
6
  q.echo = false
7
7
  q.validate = /^(|.{5,40})$/
8
8
  q.responses[:not_valid] = 'Invalid password. Must be at least 5 characters long.'
@@ -13,7 +13,7 @@ def prompt_for_admin_password
13
13
  end
14
14
 
15
15
  def prompt_for_admin_email
16
- email = ask('Email [spree@example.com]: ', String) do |q|
16
+ email = ask('Email [spree@example.com]: ') do |q|
17
17
  q.echo = true
18
18
  q.whitespace = :strip
19
19
  end
data/lib/spree/auth.rb CHANGED
@@ -6,9 +6,9 @@ require 'spree/token_resource'
6
6
 
7
7
  module Spree
8
8
  module Auth
9
- def self.config(&block)
10
- yield(Spree::Auth::Config)
11
- end
9
+ def self.config(&block)
10
+ yield(Spree::Auth::Config)
11
+ end
12
12
  end
13
13
  end
14
14
 
metadata CHANGED
@@ -1,83 +1,55 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: spree_auth
3
- version: !ruby/object:Gem::Version
4
- hash: 15424055
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.rc2
5
5
  prerelease: 6
6
- segments:
7
- - 1
8
- - 0
9
- - 0
10
- - rc
11
- - 1
12
- version: 1.0.0.rc1
13
6
  platform: ruby
14
- authors:
7
+ authors:
15
8
  - Sean Schofield
16
9
  autorequire:
17
10
  bindir: bin
18
11
  cert_chain: []
19
-
20
- date: 2011-12-23 00:00:00 Z
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
23
- version_requirements: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-01-14 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: spree_core
16
+ requirement: &70296291622140 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - "="
27
- - !ruby/object:Gem::Version
28
- hash: 15424055
29
- segments:
30
- - 1
31
- - 0
32
- - 0
33
- - rc
34
- - 1
35
- version: 1.0.0.rc1
36
- requirement: *id001
18
+ requirements:
19
+ - - =
20
+ - !ruby/object:Gem::Version
21
+ version: 1.0.0.rc2
37
22
  type: :runtime
38
23
  prerelease: false
39
- name: spree_core
40
- - !ruby/object:Gem::Dependency
41
- version_requirements: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70296291622140
25
+ - !ruby/object:Gem::Dependency
26
+ name: devise
27
+ requirement: &70296291621540 !ruby/object:Gem::Requirement
42
28
  none: false
43
- requirements:
44
- - - "="
45
- - !ruby/object:Gem::Version
46
- hash: 23
47
- segments:
48
- - 1
49
- - 4
50
- - 8
29
+ requirements:
30
+ - - =
31
+ - !ruby/object:Gem::Version
51
32
  version: 1.4.8
52
- requirement: *id002
53
33
  type: :runtime
54
34
  prerelease: false
55
- name: devise
56
- - !ruby/object:Gem::Dependency
57
- version_requirements: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70296291621540
36
+ - !ruby/object:Gem::Dependency
37
+ name: cancan
38
+ requirement: &70296291621000 !ruby/object:Gem::Requirement
58
39
  none: false
59
- requirements:
60
- - - "="
61
- - !ruby/object:Gem::Version
62
- hash: 1
63
- segments:
64
- - 1
65
- - 6
66
- - 7
40
+ requirements:
41
+ - - =
42
+ - !ruby/object:Gem::Version
67
43
  version: 1.6.7
68
- requirement: *id003
69
44
  type: :runtime
70
45
  prerelease: false
71
- name: cancan
46
+ version_requirements: *70296291621000
72
47
  description: Required dependency for Spree
73
- email: sean@railsdog.com
48
+ email: sean@spreecommerce.com
74
49
  executables: []
75
-
76
50
  extensions: []
77
-
78
51
  extra_rdoc_files: []
79
-
80
- files:
52
+ files:
81
53
  - LICENSE
82
54
  - README.md
83
55
  - app/assets/javascripts/admin/spree_auth.js
@@ -138,35 +110,23 @@ files:
138
110
  - db/seeds.rb
139
111
  homepage: http://spreecommerce.com
140
112
  licenses: []
141
-
142
113
  post_install_message:
143
114
  rdoc_options: []
144
-
145
- require_paths:
115
+ require_paths:
146
116
  - lib
147
- required_ruby_version: !ruby/object:Gem::Requirement
117
+ required_ruby_version: !ruby/object:Gem::Requirement
148
118
  none: false
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- hash: 57
153
- segments:
154
- - 1
155
- - 8
156
- - 7
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
157
122
  version: 1.8.7
158
- required_rubygems_version: !ruby/object:Gem::Requirement
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
159
124
  none: false
160
- requirements:
161
- - - ">"
162
- - !ruby/object:Gem::Version
163
- hash: 25
164
- segments:
165
- - 1
166
- - 3
167
- - 1
125
+ requirements:
126
+ - - ! '>'
127
+ - !ruby/object:Gem::Version
168
128
  version: 1.3.1
169
- requirements:
129
+ requirements:
170
130
  - none
171
131
  rubyforge_project:
172
132
  rubygems_version: 1.8.10
@@ -174,4 +134,3 @@ signing_key:
174
134
  specification_version: 3
175
135
  summary: Provides authentication and authorization services for use with Spree.
176
136
  test_files: []
177
-