padrino-admin 0.10.1 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. data/README.rdoc +1 -1
  2. data/lib/padrino-admin/access_control.rb +7 -5
  3. data/lib/padrino-admin/generators/templates/account/activerecord.rb.tt +1 -1
  4. data/lib/padrino-admin/generators/templates/account/couchrest.rb.tt +1 -1
  5. data/lib/padrino-admin/generators/templates/account/datamapper.rb.tt +1 -1
  6. data/lib/padrino-admin/generators/templates/account/mongoid.rb.tt +1 -1
  7. data/lib/padrino-admin/generators/templates/account/mongomapper.rb.tt +1 -1
  8. data/lib/padrino-admin/generators/templates/account/seeds.rb.tt +1 -1
  9. data/lib/padrino-admin/generators/templates/account/sequel.rb.tt +1 -1
  10. data/lib/padrino-admin/generators/templates/app/controllers/base.rb +1 -1
  11. data/lib/padrino-admin/generators/templates/app/controllers/sessions.rb +2 -1
  12. data/lib/padrino-admin/generators/templates/assets/stylesheets/base.css +1 -1
  13. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/amro/style.css +1 -1
  14. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/blue/style.css +1 -1
  15. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/djime-cerulean/style.css +1 -1
  16. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/olive/style.css +1 -1
  17. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/orange/style.css +1 -1
  18. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/reidb-greenish/style.css +1 -1
  19. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/ruby/style.css +1 -1
  20. data/lib/padrino-admin/generators/templates/erb/app/base/_sidebar.erb.tt +1 -1
  21. data/lib/padrino-admin/generators/templates/erb/app/base/index.erb.tt +1 -1
  22. data/lib/padrino-admin/generators/templates/erb/app/layouts/application.erb.tt +1 -1
  23. data/lib/padrino-admin/generators/templates/erb/app/sessions/new.erb.tt +1 -1
  24. data/lib/padrino-admin/generators/templates/erb/page/_form.erb.tt +1 -1
  25. data/lib/padrino-admin/generators/templates/erb/page/edit.erb.tt +1 -1
  26. data/lib/padrino-admin/generators/templates/erb/page/index.erb.tt +1 -1
  27. data/lib/padrino-admin/generators/templates/erb/page/new.erb.tt +1 -1
  28. data/lib/padrino-admin/generators/templates/haml/app/base/_sidebar.haml.tt +1 -1
  29. data/lib/padrino-admin/generators/templates/haml/app/base/index.haml.tt +1 -1
  30. data/lib/padrino-admin/generators/templates/haml/app/layouts/application.haml.tt +1 -1
  31. data/lib/padrino-admin/generators/templates/haml/app/sessions/new.haml.tt +1 -1
  32. data/lib/padrino-admin/generators/templates/haml/page/_form.haml.tt +1 -1
  33. data/lib/padrino-admin/generators/templates/haml/page/edit.haml.tt +1 -1
  34. data/lib/padrino-admin/generators/templates/haml/page/index.haml.tt +1 -1
  35. data/lib/padrino-admin/generators/templates/haml/page/new.haml.tt +1 -1
  36. data/lib/padrino-admin/generators/templates/page/controller.rb.tt +1 -1
  37. data/lib/padrino-admin/helpers/authentication_helpers.rb +1 -1
  38. data/lib/padrino-admin/helpers/view_helpers.rb +1 -1
  39. data/lib/padrino-admin/locale/admin/da.yml +1 -1
  40. data/lib/padrino-admin/locale/admin/de.yml +1 -1
  41. data/lib/padrino-admin/locale/admin/en.yml +1 -1
  42. data/lib/padrino-admin/locale/admin/es.yml +1 -1
  43. data/lib/padrino-admin/locale/admin/fr.yml +1 -1
  44. data/lib/padrino-admin/locale/admin/hu.yml +1 -1
  45. data/lib/padrino-admin/locale/admin/it.yml +1 -1
  46. data/lib/padrino-admin/locale/admin/nl.yml +1 -1
  47. data/lib/padrino-admin/locale/admin/no.yml +1 -1
  48. data/lib/padrino-admin/locale/admin/pl.yml +1 -1
  49. data/lib/padrino-admin/locale/admin/pt_br.yml +1 -1
  50. data/lib/padrino-admin/locale/admin/ru.yml +1 -1
  51. data/lib/padrino-admin/locale/admin/tr.yml +1 -1
  52. data/lib/padrino-admin/locale/admin/uk.yml +1 -1
  53. data/lib/padrino-admin/locale/orm/da.yml +1 -1
  54. data/lib/padrino-admin/locale/orm/de.yml +1 -1
  55. data/lib/padrino-admin/locale/orm/en.yml +1 -1
  56. data/lib/padrino-admin/locale/orm/es.yml +1 -1
  57. data/lib/padrino-admin/locale/orm/fr.yml +1 -1
  58. data/lib/padrino-admin/locale/orm/hu.yml +1 -1
  59. data/lib/padrino-admin/locale/orm/it.yml +1 -1
  60. data/lib/padrino-admin/locale/orm/nl.yml +1 -1
  61. data/lib/padrino-admin/locale/orm/no.yml +1 -1
  62. data/lib/padrino-admin/locale/orm/pl.yml +1 -1
  63. data/lib/padrino-admin/locale/orm/pt_br.yml +1 -1
  64. data/lib/padrino-admin/locale/orm/ru.yml +1 -1
  65. data/lib/padrino-admin/locale/orm/tr.yml +1 -1
  66. data/lib/padrino-admin/locale/orm/uk.yml +1 -1
  67. data/lib/padrino-admin/utils/crypt.rb +2 -2
  68. data/padrino-admin.gemspec +1 -1
  69. data/test/fixtures/data_mapper.rb +1 -1
  70. data/test/generators/test_admin_page_generator.rb +1 -1
  71. data/test/helper.rb +1 -1
  72. metadata +27 -4
data/README.rdoc CHANGED
@@ -67,4 +67,4 @@ For a more complete look at using the Admin panel functionality and access featu
67
67
 
68
68
  == Copyright
69
69
 
70
- Copyright (c) 2011 Padrino. See LICENSE for details.
70
+ Copyright (c) 2011 Padrino. See LICENSE for details.
@@ -1,6 +1,8 @@
1
+ require 'active_support/core_ext/class/attribute_accessors'
2
+
1
3
  module Padrino
2
4
  module Admin
3
- class AccessControlError < StandardError #:nodoc:
5
+ class AccessControlError < StandardError # @private
4
6
  end
5
7
  ##
6
8
  # This module give to a padrino application an access control functionality
@@ -22,7 +24,7 @@ module Padrino
22
24
  end
23
25
 
24
26
  class Base
25
- def initialize #:nodoc:
27
+ def initialize # @private
26
28
  @roles, @authorizations, @project_modules = [], [], []
27
29
  end
28
30
 
@@ -80,7 +82,7 @@ module Padrino
80
82
  class Authorization
81
83
  attr_reader :allowed, :denied, :project_modules, :roles
82
84
 
83
- def initialize(*roles, &block) #:nodoc:
85
+ def initialize(*roles, &block) # @private
84
86
  @roles = roles
85
87
  @allowed = []
86
88
  @denied = []
@@ -117,7 +119,7 @@ module Padrino
117
119
  class ProjectModule
118
120
  attr_reader :name
119
121
 
120
- def initialize(name, path) #:nodoc:
122
+ def initialize(name, path) # @private
121
123
  @name, @path = name, path
122
124
  end
123
125
 
@@ -146,4 +148,4 @@ module Padrino
146
148
  end # ProjectModule
147
149
  end # AccessControl
148
150
  end # Admin
149
- end # Padrino
151
+ end # Padrino
@@ -35,4 +35,4 @@ class Account < ActiveRecord::Base
35
35
  def password_required
36
36
  crypted_password.blank? || password.present?
37
37
  end
38
- end
38
+ end
@@ -63,4 +63,4 @@ class Account < CouchRest::Model::Base
63
63
 
64
64
  errors.add(:email, "is not unique")
65
65
  end
66
- end
66
+ end
@@ -52,4 +52,4 @@ class Account
52
52
  def encrypt_password
53
53
  self.crypted_password = ::BCrypt::Password.create(password) if password.present?
54
54
  end
55
- end
55
+ end
@@ -50,4 +50,4 @@ class Account
50
50
  def password_required
51
51
  crypted_password.blank? || self.password.present?
52
52
  end
53
- end
53
+ end
@@ -43,4 +43,4 @@ class Account
43
43
  def password_required
44
44
  crypted_password.blank? || password.present?
45
45
  end
46
- end
46
+ end
@@ -25,4 +25,4 @@ else
25
25
  account.errors.full_messages.each { |m| shell.say " - #{m}" }
26
26
  end
27
27
 
28
- shell.say ""
28
+ shell.say ""
@@ -49,4 +49,4 @@ class Account < ::Sequel::Model
49
49
  def password_required
50
50
  crypted_password.blank? || password.present?
51
51
  end
52
- end
52
+ end
@@ -3,4 +3,4 @@ Admin.controllers :base do
3
3
  get :index, :map => "/" do
4
4
  render "base/index"
5
5
  end
6
- end
6
+ end
@@ -13,6 +13,7 @@ Admin.controllers :sessions do
13
13
  set_current_account(account)
14
14
  redirect url(:base, :index)
15
15
  else
16
+ params[:email], params[:password] = h(params[:email]), h(params[:password])
16
17
  flash[:warning] = "Login or password wrong."
17
18
  redirect url(:sessions, :new)
18
19
  end
@@ -22,4 +23,4 @@ Admin.controllers :sessions do
22
23
  set_current_account(nil)
23
24
  redirect url(:sessions, :new)
24
25
  end
25
- end
26
+ end
@@ -92,4 +92,4 @@ ul.list li .item .avatar{float:left;margin:0 5px 5px 0;width:30px;height:30px;}
92
92
  #box .block h2{padding:10px 15px;margin:0;}
93
93
  #box .block .content{padding:10px 20px;}
94
94
  /* custom */
95
- .code{font-family: Courier, 'Courier New', monospace;color:#36393D;}
95
+ .code{font-family: Courier, 'Courier New', monospace;color:#36393D;}
@@ -361,4 +361,4 @@ ul.list li .item .avatar {
361
361
  -webkit-border-bottom-left-radius: 4px;
362
362
  -moz-border-radius-bottomright: 4px;
363
363
  -webkit-border-bottom-right-radius: 4px;
364
- }
364
+ }
@@ -284,4 +284,4 @@ ul.list li .item .avatar {
284
284
  -webkit-border-bottom-left-radius: 4px;
285
285
  -moz-border-radius-bottomright: 4px;
286
286
  -webkit-border-bottom-right-radius: 4px;
287
- }
287
+ }
@@ -302,4 +302,4 @@ ul.list li .item .avatar {
302
302
  -webkit-border-bottom-left-radius: 4px;
303
303
  -moz-border-radius-bottomright: 4px;
304
304
  -webkit-border-bottom-right-radius: 4px;
305
- }
305
+ }
@@ -342,4 +342,4 @@ ul.list li .item .avatar {
342
342
  -webkit-border-bottom-left-radius: 4px;
343
343
  -moz-border-radius-bottomright: 4px;
344
344
  -webkit-border-bottom-right-radius: 4px;
345
- }
345
+ }
@@ -266,4 +266,4 @@ ul.list li .item .avatar {
266
266
  -webkit-border-bottom-left-radius: 4px;
267
267
  -moz-border-radius-bottomright: 4px;
268
268
  -webkit-border-bottom-right-radius: 4px;
269
- }
269
+ }
@@ -299,4 +299,4 @@ ul.list li .item .avatar {
299
299
  -webkit-border-bottom-left-radius: 4px;
300
300
  -moz-border-radius-bottomright: 4px;
301
301
  -webkit-border-bottom-right-radius: 4px;
302
- }
302
+ }
@@ -278,4 +278,4 @@ ul.list li .item .avatar {
278
278
  -webkit-border-bottom-left-radius: 4px;
279
279
  -moz-border-radius-bottomright: 4px;
280
280
  -webkit-border-bottom-right-radius: 4px;
281
- }
281
+ }
@@ -10,4 +10,4 @@
10
10
  <li><%%= link_to "Link 1" %></li>
11
11
  <li><%%= link_to "Link 1" %></li>
12
12
  </ul>
13
- </div>
13
+ </div>
@@ -14,4 +14,4 @@
14
14
  </div>
15
15
  </div>
16
16
  </div>
17
- <%% content_for :sidebar, partial("base/sidebar") %>
17
+ <%% content_for :sidebar, partial("base/sidebar") %>
@@ -41,4 +41,4 @@
41
41
  </div>
42
42
  </div>
43
43
  </body>
44
- </html>
44
+ </html>
@@ -53,4 +53,4 @@
53
53
  </div>
54
54
  </div>
55
55
  </body>
56
- </html>
56
+ </html>
@@ -8,4 +8,4 @@
8
8
  <div class="group navform wat-cf">
9
9
  <%%= f.submit pat(:save), :class => :button %>
10
10
  <%%= f.submit pat(:cancel), :onclick => "window.location='#{url(:<%= @orm.name_plural %>, :index)}';return false", :class => :button %>
11
- </div>
11
+ </div>
@@ -15,4 +15,4 @@
15
15
  </div>
16
16
  </div>
17
17
  </div>
18
- <%% content_for :sidebar, partial("base/sidebar") %>
18
+ <%% content_for :sidebar, partial("base/sidebar") %>
@@ -33,4 +33,4 @@
33
33
  </div>
34
34
  </div>
35
35
  </div>
36
- <%% content_for :sidebar, partial("base/sidebar") %>
36
+ <%% content_for :sidebar, partial("base/sidebar") %>
@@ -14,4 +14,4 @@
14
14
  </div>
15
15
  </div>
16
16
  </div>
17
- <%% content_for :sidebar, partial("base/sidebar") %>
17
+ <%% content_for :sidebar, partial("base/sidebar") %>
@@ -8,4 +8,4 @@
8
8
  %h3 Links
9
9
  %ul.navigation
10
10
  %li=link_to "Link 1"
11
- %li=link_to "Link 2"
11
+ %li=link_to "Link 2"
@@ -22,4 +22,4 @@
22
22
  %span.hightlight
23
23
  Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
24
24
 
25
- -content_for :sidebar, partial("base/sidebar")
25
+ -content_for :sidebar, partial("base/sidebar")
@@ -28,4 +28,4 @@
28
28
  =Time.now.year
29
29
  Your Site - Powered by
30
30
  =link_to "Padrino v.#{Padrino.version}", "http://padrino.github.com", :target => :_blank
31
- #sidebar=yield_content :sidebar
31
+ #sidebar=yield_content :sidebar
@@ -27,4 +27,4 @@
27
27
  %label.label.right Bypass login?
28
28
  .right=check_box_tag :bypass
29
29
  .group.navform.wat-cf
30
- .right=submit_tag('Sign In', :class => :button)
30
+ .right=submit_tag('Sign In', :class => :button)
@@ -9,4 +9,4 @@
9
9
 
10
10
  .group.navform.wat-cf
11
11
  =f.submit pat(:save), :class => :button
12
- =f.submit pat(:cancel), :onclick => "window.location='#{url(:<%= @orm.name_plural %>, :index)}';return false", :class => :button
12
+ =f.submit pat(:cancel), :onclick => "window.location='#{url(:<%= @orm.name_plural %>, :index)}';return false", :class => :button
@@ -12,4 +12,4 @@
12
12
  -form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :update, :id => @<%= @orm.name_singular %>.id), :method => :put, :class => :form do |f|
13
13
  =partial "<%= @orm.name_plural %>/form", :locals => { :f => f }
14
14
 
15
- -content_for :sidebar, partial("base/sidebar")
15
+ -content_for :sidebar, partial("base/sidebar")
@@ -26,4 +26,4 @@
26
26
  .actions-bar.wat-cf
27
27
  .actions="&nbsp;"
28
28
 
29
- -content_for :sidebar, partial("base/sidebar")
29
+ -content_for :sidebar, partial("base/sidebar")
@@ -11,4 +11,4 @@
11
11
  -form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :create), :class => :form do |f|
12
12
  =partial "<%= @orm.name_plural %>/form", :locals => { :f => f }
13
13
 
14
- -content_for :sidebar, partial("base/sidebar")
14
+ -content_for :sidebar, partial("base/sidebar")
@@ -44,4 +44,4 @@ Admin.controllers :<%= @orm.name_plural %> do
44
44
  end
45
45
  redirect url(:<%= @orm.name_plural %>, :index)
46
46
  end
47
- end
47
+ end
@@ -99,4 +99,4 @@ module Padrino
99
99
  end # AuthenticationHelpers
100
100
  end # Helpers
101
101
  end # Admin
102
- end # Padrino
102
+ end # Padrino
@@ -46,4 +46,4 @@ module Padrino
46
46
  end # ViewHelpers
47
47
  end # Helpers
48
48
  end # Admin
49
- end # Padrino
49
+ end # Padrino
@@ -13,4 +13,4 @@ da:
13
13
  all: Alle
14
14
  profile: Profil
15
15
  settings: Indstillinger
16
- logout: Log ud
16
+ logout: Log ud
@@ -13,4 +13,4 @@ de:
13
13
  all: Alle
14
14
  profile: Benutzerkonto
15
15
  settings: Einstellungen
16
- logout: Abmelden
16
+ logout: Abmelden
@@ -13,4 +13,4 @@ en:
13
13
  all: All
14
14
  profile: Profile
15
15
  settings: Settings
16
- logout: Logout
16
+ logout: Logout
@@ -13,4 +13,4 @@ es:
13
13
  all: Todos
14
14
  profile: Perfil
15
15
  settings: Configuración
16
- logout: Cerrar sesión
16
+ logout: Cerrar sesión
@@ -13,4 +13,4 @@ fr:
13
13
  all: Tous
14
14
  profile: Profile
15
15
  settings: Paramètres
16
- logout: Déconnexion
16
+ logout: Déconnexion
@@ -13,4 +13,4 @@ hu:
13
13
  all: mind
14
14
  profile: adatlap
15
15
  settings: beállítások
16
- logout: kilépés
16
+ logout: kilépés
@@ -13,4 +13,4 @@ it:
13
13
  all: Tutti
14
14
  profile: Profilo
15
15
  settings: Impostazioni
16
- logout: Esci
16
+ logout: Esci
@@ -13,4 +13,4 @@ nl:
13
13
  all: Alle
14
14
  profile: Profiel
15
15
  settings: Voorkeuren
16
- logout: Afmelden
16
+ logout: Afmelden
@@ -13,4 +13,4 @@
13
13
  all: Alle
14
14
  profile: Profil
15
15
  settings: Instillinger
16
- logout: Logg ut
16
+ logout: Logg ut
@@ -13,4 +13,4 @@ pl:
13
13
  all: Wszystkie
14
14
  profile: Profil
15
15
  settings: Ustawienia
16
- logout: Wyloguj
16
+ logout: Wyloguj
@@ -13,4 +13,4 @@ pt_br:
13
13
  all: Todos
14
14
  profile: Perfil
15
15
  settings: Preferências
16
- logout: Sair
16
+ logout: Sair
@@ -13,4 +13,4 @@ ru:
13
13
  all: Все
14
14
  profile: Профиль
15
15
  settings: Настройки
16
- logout: Выход
16
+ logout: Выход
@@ -13,4 +13,4 @@ tr:
13
13
  all: Hepsi
14
14
  profile: Profil
15
15
  settings: Ayarlar
16
- logout: Çıkış
16
+ logout: Çıkış
@@ -13,4 +13,4 @@ uk:
13
13
  all: Всі
14
14
  profile: Профіль
15
15
  settings: Налаштування
16
- logout: Вихід
16
+ logout: Вихід
@@ -23,4 +23,4 @@ da:
23
23
  even: "skal være lige"
24
24
  record_invalid: "Valideringsfejl: %{errors}"
25
25
  content_type: "fileformatet er ikke understøttet"
26
- activerecord: *activemodel
26
+ activerecord: *activemodel
@@ -23,4 +23,4 @@ de:
23
23
  even: "muss gerade sein"
24
24
  record_invalid: "Validierung schlug fehl: %{errors}"
25
25
  content_type: "Datei-Format wird nicht unterstützt"
26
- activerecord: *activemodel
26
+ activerecord: *activemodel
@@ -23,4 +23,4 @@ en:
23
23
  even: "must be even"
24
24
  record_invalid: "Validation failed: %{errors}"
25
25
  content_type: "file format not supported"
26
- activerecord: *activemodel
26
+ activerecord: *activemodel
@@ -23,4 +23,4 @@ es:
23
23
  even: "debe ser par"
24
24
  record_invalid: "Fallo la validación: %{errors}"
25
25
  content_type: "formato de archivo no soportado"
26
- activerecord: *activemodel
26
+ activerecord: *activemodel
@@ -23,4 +23,4 @@ fr:
23
23
  even: "doit être pair"
24
24
  record_invalid: "La validation a échoué: %{errors}"
25
25
  content_type: "format de fichier non pris en charge"
26
- activerecord: *activemodel
26
+ activerecord: *activemodel
@@ -23,4 +23,4 @@ hu:
23
23
  even: ": párosnak kell lennie"
24
24
  record_invalid: "Érvénytelen: %{errors}"
25
25
  content_type: ": a fájl formátuma nem támogatott"
26
- activerecord: *activemodel
26
+ activerecord: *activemodel
@@ -23,4 +23,4 @@ it:
23
23
  even: "deve essere pari"
24
24
  record_invalid: "Validazione fallita: %{errors}"
25
25
  content_type: "il seguente tipo di file non è supportato"
26
- activerecord: *activemodel
26
+ activerecord: *activemodel
@@ -23,4 +23,4 @@ nl:
23
23
  even: "moet even zijn"
24
24
  record_invalid: "Validatie mislukt: %{errors}"
25
25
  content_type: "bestandsformaat niet ondersteund"
26
- activerecord: *activemodel
26
+ activerecord: *activemodel
@@ -23,4 +23,4 @@
23
23
  even: "skal være lik"
24
24
  record_invalid: "Valideringsfeil: %{errors}"
25
25
  content_type: "fileformatet er ikke støttet"
26
- activerecord: *activemodel
26
+ activerecord: *activemodel
@@ -24,4 +24,4 @@ pl:
24
24
  even: "musi być parzyste"
25
25
  record_invalid: "Negatywne sprawdzenie poprawności: %{errors}"
26
26
  content_type: "nieodozwolony format pliku"
27
- activerecord: *activemodel
27
+ activerecord: *activemodel
@@ -23,4 +23,4 @@ pt_br:
23
23
  even: "deve ser par"
24
24
  record_invalid: "Falha na validação: %{errors}"
25
25
  content_type: "o seguinte tipo de arquivo não é suportado"
26
- activerecord: *activemodel
26
+ activerecord: *activemodel
@@ -23,4 +23,4 @@ ru:
23
23
  even: "должно быть четным"
24
24
  record_invalid: "Проверка не удалась: %{errors}"
25
25
  content_type: "формат файла не поддерживается"
26
- activerecord: *activemodel
26
+ activerecord: *activemodel
@@ -23,4 +23,4 @@ tr:
23
23
  even: "çift olmalı"
24
24
  record_invalid: "Doğrulama gerçekleşmedi: %{errors}"
25
25
  content_type: "Dosya biçimi desteklenmiyor"
26
- activerecord: *activemodel
26
+ activerecord: *activemodel
@@ -23,4 +23,4 @@ uk:
23
23
  even: "повинно бути парним"
24
24
  record_invalid: "Перевірка не вдалася: %{errors}"
25
25
  content_type: "формат файлу не підтримується"
26
- activerecord: *activemodel
26
+ activerecord: *activemodel
@@ -26,7 +26,7 @@ module Padrino
26
26
  end
27
27
 
28
28
  private
29
- def build_cipher(type, password) #:nodoc:
29
+ def build_cipher(type, password) # @private
30
30
  cipher = OpenSSL::Cipher::Cipher.new("DES-EDE3-CBC").send(type)
31
31
  cipher.pkcs5_keyivgen(password)
32
32
  cipher
@@ -34,4 +34,4 @@ module Padrino
34
34
  end # Crypt
35
35
  end # Utils
36
36
  end # Admin
37
- end # Padrino
37
+ end # Padrino
@@ -24,4 +24,4 @@ Gem::Specification.new do |s|
24
24
 
25
25
  s.add_dependency("padrino-core", Padrino.version)
26
26
  s.add_dependency("padrino-helpers", Padrino.version)
27
- end
27
+ end
@@ -92,4 +92,4 @@ editor = Account.create(:name => "Dexter", :role => "editor", :email => "editor@
92
92
  %w(News Press HowTo).each do |c|
93
93
  admin.categories.create(:name => c)
94
94
  editor.categories.create(:name => c)
95
- end
95
+ end
@@ -129,4 +129,4 @@ class TestAdminPageGenerator < Test::Unit::TestCase
129
129
  assert_match_in_file 'role.project_module :pages, "/pages"', "#{@apptmp}/sample_project/admin/app.rb"
130
130
  end
131
131
  end
132
- end
132
+ end
data/test/helper.rb CHANGED
@@ -89,4 +89,4 @@ class Test::Unit::TestCase
89
89
  end
90
90
 
91
91
  alias :response :last_response
92
- end
92
+ end
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-admin
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 51
4
5
  prerelease:
5
- version: 0.10.1
6
+ segments:
7
+ - 0
8
+ - 10
9
+ - 2
10
+ version: 0.10.2
6
11
  platform: ruby
7
12
  authors:
8
13
  - Padrino Team
@@ -13,7 +18,7 @@ autorequire:
13
18
  bindir: bin
14
19
  cert_chain: []
15
20
 
16
- date: 2011-08-01 00:00:00 -07:00
21
+ date: 2011-08-31 00:00:00 -07:00
17
22
  default_executable:
18
23
  dependencies:
19
24
  - !ruby/object:Gem::Dependency
@@ -24,7 +29,12 @@ dependencies:
24
29
  requirements:
25
30
  - - "="
26
31
  - !ruby/object:Gem::Version
27
- version: 0.10.1
32
+ hash: 51
33
+ segments:
34
+ - 0
35
+ - 10
36
+ - 2
37
+ version: 0.10.2
28
38
  type: :runtime
29
39
  version_requirements: *id001
30
40
  - !ruby/object:Gem::Dependency
@@ -35,7 +45,12 @@ dependencies:
35
45
  requirements:
36
46
  - - "="
37
47
  - !ruby/object:Gem::Version
38
- version: 0.10.1
48
+ hash: 51
49
+ segments:
50
+ - 0
51
+ - 10
52
+ - 2
53
+ version: 0.10.2
39
54
  type: :runtime
40
55
  version_requirements: *id002
41
56
  description: Admin View for Padrino applications
@@ -167,12 +182,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
167
182
  requirements:
168
183
  - - ">="
169
184
  - !ruby/object:Gem::Version
185
+ hash: 3
186
+ segments:
187
+ - 0
170
188
  version: "0"
171
189
  required_rubygems_version: !ruby/object:Gem::Requirement
172
190
  none: false
173
191
  requirements:
174
192
  - - ">="
175
193
  - !ruby/object:Gem::Version
194
+ hash: 23
195
+ segments:
196
+ - 1
197
+ - 3
198
+ - 6
176
199
  version: 1.3.6
177
200
  requirements: []
178
201