lockdown 0.5.6 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.5.7 2008-06-13
2
+ * Fixed: Change password template, removed ajax usage. Issue: http://stonean.com/issues/show/5
3
+
1
4
  == 0.5.6 2008-06-05
2
5
  * Fixed: Misspelling of respond_to?, for some reason I keep thinking responds_to?
3
6
 
data/Manifest.txt CHANGED
@@ -45,7 +45,6 @@ rails_generators/lockdown/templates/app/views/user_groups/new.html.erb
45
45
  rails_generators/lockdown/templates/app/views/user_groups/show.html.erb
46
46
  rails_generators/lockdown/templates/app/views/users/_data.html.erb
47
47
  rails_generators/lockdown/templates/app/views/users/_form.html.erb
48
- rails_generators/lockdown/templates/app/views/users/_password.html.erb
49
48
  rails_generators/lockdown/templates/app/views/users/edit.html.erb
50
49
  rails_generators/lockdown/templates/app/views/users/index.html.erb
51
50
  rails_generators/lockdown/templates/app/views/users/new.html.erb
@@ -2,7 +2,7 @@ module Lockdown #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- TINY = 6
5
+ TINY = 7
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -68,9 +68,6 @@ class LockdownGenerator < Rails::Generator::Base
68
68
 
69
69
  copy_views(m, "users")
70
70
 
71
- m.file "app/views/users/_password.html.erb",
72
- "app/views/users/_password.html.erb"
73
-
74
71
  copy_views(m, "user_groups")
75
72
 
76
73
  m.file "app/views/permissions/_data.html.erb",
@@ -45,14 +45,15 @@ li.odd_checked{
45
45
  <%= user_login_value %>
46
46
  </p>
47
47
 
48
- <% unless @action_name == "show" -%>
49
- <p id="password">
50
- <% if @user.new_record? %>
51
- <%= render :partial => "password" %>
52
- <% else %>
53
- <a href="#" onclick="change_password()">Change Password</a><br/>
54
- <% end %>
55
- </p>
48
+ <% unless action_name == "show" -%>
49
+ <p>
50
+ <b><span>P</span>assword</b><br />
51
+ <%= user_password_value %>
52
+ </p>
53
+ <p>
54
+ <b><span>P</span>assword confirmation</b><br />
55
+ <%= user_password_confirmation_value %>
56
+ </p>
56
57
  <% end -%>
57
58
 
58
59
  <p>
@@ -3,12 +3,6 @@
3
3
  submit_label = "Create" if @user.new_record?
4
4
  -%>
5
5
 
6
- <script type="text/javascript">
7
- function change_password()
8
- {
9
- new Ajax.Request("/users/change_password", {asynchronous: true, postBody: 'authenticity_token=<%= form_authenticity_token %>'});
10
- }
11
- </script>
12
6
  <%= error_messages_for :profile %>
13
7
  <%= error_messages_for :user %>
14
8
 
@@ -33,7 +33,7 @@
33
33
  <h1>Lockdown</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/lockdown"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/lockdown" class="numbers">0.5.6</a>
36
+ <a href="http://rubyforge.org/projects/lockdown" class="numbers">0.5.7</a>
37
37
  </div>
38
38
  <h2>What</h2>
39
39
 
@@ -221,12 +221,33 @@ $ ./script/server
221
221
  <p>For simplicity sake, I would like the documentation for init.rb contained within that file.</p>
222
222
 
223
223
 
224
+ <h2>Github</h2>
225
+
226
+
227
+ <p>The Clone <span class="caps">URL</span>: git://github.com/stonean/lockdown.git</p>
228
+
229
+
230
+ <p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people&#8217;s code</a>.</p>
231
+
232
+
233
+ <p>I&#8217;m new to git and this whole opensource project admin gig, so please be patient with my stumbling around.</p>
234
+
235
+
224
236
  <h2>Contact</h2>
225
237
 
226
238
 
227
- <p>Comments and suggestions are welcome via the <a href="http://groups.google.com/group/stonean_lockdown?hl=en">forum</a></p>
239
+ <p>Please use the <a href="http://stonean.com/projects/lockdown/boards">forum</a> to ask questions and the <a href="http://stonean.com/projects/lockdown/issues">issue tracker</a> to report problems or submit a pull request.</p>
240
+
241
+
242
+ <h2>License</h2>
243
+
244
+
245
+ <p>This code is free to use under the terms of the <span class="caps">MIT</span> license.</p>
246
+
247
+
248
+ <p>Copyright&#169; 2008 Andrew Stone</p>
228
249
  <p class="coda">
229
- 22nd May 2008<br/>
250
+ 11th June 2008<br/>
230
251
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
231
252
  </p>
232
253
  </div>
@@ -168,7 +168,21 @@ I guess that wasn't sufficient? If you don't understand how to use init.rb, plea
168
168
 
169
169
  For simplicity sake, I would like the documentation for init.rb contained within that file.
170
170
 
171
+ h2. Github
172
+
173
+ The Clone URL: git://github.com/stonean/lockdown.git
174
+
175
+ Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/.
176
+
177
+ I'm new to git and this whole opensource project admin gig, so please be patient with my stumbling around.
178
+
171
179
  h2. Contact
172
180
 
173
- Comments and suggestions are welcome via the "forum":http://groups.google.com/group/stonean_lockdown?hl=en
181
+ Please use the "forum":http://stonean.com/projects/lockdown/boards to ask questions and the "issue tracker":http://stonean.com/projects/lockdown/issues to report problems or submit a pull request.
182
+
183
+ h2. License
184
+
185
+ This code is free to use under the terms of the MIT license.
186
+
187
+ Copyright (c) 2008 Andrew Stone
174
188
 
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>Lockdown</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/lockdown"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/lockdown" class="numbers">0.5.6</a>
36
+ <a href="http://rubyforge.org/projects/lockdown" class="numbers">0.5.7</a>
37
37
  </div>
38
38
  <h2>What</h2>
39
39
 
@@ -289,42 +289,33 @@ When referring to access rights: if you have a standard <span class="caps">REST<
289
289
  <li><strong>1.0.0: </strong>Model level security</li>
290
290
  </ul>
291
291
 
292
- <h2>Google Group</h2>
293
-
294
-
295
- <p>If you are having a problem understanding how to use Lockdown, please post your question on the lockdown group. If it&#8217;s documentation related, I will keep this page updated to help everyone.</p>
296
-
297
-
298
- <p><a href="http://groups.google.com/group/stonean_lockdown?hl=en">http://groups.google.com/group/stonean_lockdown?hl=en</a></p>
299
-
300
-
301
- <h2>How to submit patches</h2>
292
+ <h2>Github</h2>
302
293
 
303
294
 
304
295
  <p>The Clone <span class="caps">URL</span>: git://github.com/stonean/lockdown.git</p>
305
296
 
306
297
 
307
- <p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people&#8217;s code</a> and for section <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups">8b: Submit patch to Google Groups</a>, use the Google Group above.</p>
298
+ <p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people&#8217;s code</a>.</p>
308
299
 
309
300
 
310
301
  <p>I&#8217;m new to git and this whole opensource project admin gig, so please be patient with my stumbling around.</p>
311
302
 
312
303
 
313
- <h2>License</h2>
304
+ <h2>Contact</h2>
314
305
 
315
306
 
316
- <p>This code is free to use under the terms of the <span class="caps">MIT</span> license.</p>
307
+ <p>Please use the <a href="http://stonean.com/projects/lockdown/boards">forum</a> to ask questions and the <a href="http://stonean.com/projects/lockdown/issues">issue tracker</a> to report problems or submit a pull request.</p>
317
308
 
318
309
 
319
- <h2>Contact</h2>
310
+ <h2>License</h2>
320
311
 
321
312
 
322
- <p>Comments and suggestions are welcome via the <a href="http://groups.google.com/group/stonean_lockdown?hl=en">google group</a></p>
313
+ <p>This code is free to use under the terms of the <span class="caps">MIT</span> license.</p>
323
314
 
324
315
 
325
- <p><a href="http://blog.stonean.com">Andrew Stone</a></p>
316
+ <p>Copyright&#169; 2008 Andrew Stone</p>
326
317
  <p class="coda">
327
- 2nd June 2008<br/>
318
+ 11th June 2008<br/>
328
319
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
329
320
  </p>
330
321
  </div>
data/website/index.txt CHANGED
@@ -238,29 +238,21 @@ h2. Roadmap to 1.0
238
238
  <li><strong>1.0.0: </strong>Model level security</li>
239
239
  </ul>
240
240
 
241
- h2. Google Group
242
-
243
- If you are having a problem understanding how to use Lockdown, please post your question on the lockdown group. If it's documentation related, I will keep this page updated to help everyone.
244
-
245
- "http://groups.google.com/group/stonean_lockdown?hl=en":http://groups.google.com/group/stonean_lockdown?hl=en
246
-
247
-
248
- h2. How to submit patches
241
+ h2. Github
249
242
 
250
243
  The Clone URL: git://github.com/stonean/lockdown.git
251
244
 
252
- Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/ and for section "8b: Submit patch to Google Groups":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups, use the Google Group above.
245
+ Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/.
253
246
 
254
247
  I'm new to git and this whole opensource project admin gig, so please be patient with my stumbling around.
255
248
 
256
- h2. License
257
-
258
- This code is free to use under the terms of the MIT license.
249
+ h2. Contact
259
250
 
251
+ Please use the "forum":http://stonean.com/projects/lockdown/boards to ask questions and the "issue tracker":http://stonean.com/projects/lockdown/issues to report problems or submit a pull request.
260
252
 
261
- h2. Contact
253
+ h2. License
262
254
 
263
- Comments and suggestions are welcome via the "google group":http://groups.google.com/group/stonean_lockdown?hl=en
255
+ This code is free to use under the terms of the MIT license.
264
256
 
265
- <a href="http://blog.stonean.com">Andrew Stone</a>
257
+ Copyright (c) 2008 Andrew Stone
266
258
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stone
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-05 00:00:00 -04:00
12
+ date: 2008-06-13 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -84,7 +84,6 @@ files:
84
84
  - rails_generators/lockdown/templates/app/views/user_groups/show.html.erb
85
85
  - rails_generators/lockdown/templates/app/views/users/_data.html.erb
86
86
  - rails_generators/lockdown/templates/app/views/users/_form.html.erb
87
- - rails_generators/lockdown/templates/app/views/users/_password.html.erb
88
87
  - rails_generators/lockdown/templates/app/views/users/edit.html.erb
89
88
  - rails_generators/lockdown/templates/app/views/users/index.html.erb
90
89
  - rails_generators/lockdown/templates/app/views/users/new.html.erb
@@ -1,5 +0,0 @@
1
- <b><span>P</span>assword</b><br />
2
- <%= user_password_value %>
3
- <br/><br/>
4
- <b><span>P</span>assword confirmation</b><br />
5
- <%= user_password_confirmation_value %>