padrino-admin 0.14.1 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 646b6c94025a387135baa0058511a76f4479e606
4
- data.tar.gz: 34b543570ea8614e9641b5fd3ac98b25fae05ad4
2
+ SHA256:
3
+ metadata.gz: '091b80a5b396ad4c2a4db6df9aa3bd4032d246356e8cc4fc89fe553b1bbb5499'
4
+ data.tar.gz: f152b70d90427955153e45a668b89b466f642a4b88445a62e9d43b071a869e62
5
5
  SHA512:
6
- metadata.gz: e41a7109628530d5e6084d1c6f3eb44f635cd0ed1104ba9f3cba2914ec78b466552924368409d1819323b7ac78a7856d5e9cbf78147d078802b4f501c7a3edab
7
- data.tar.gz: e6811d8d47b1d90351aa5ab0c5d53b88dcaceca721368ba94508afb7ec61c5d85108352773728252f03b9255bc43468e3963d88de03c7015337b8b88d2a4c393
6
+ metadata.gz: ff6423e19ea6b8b99ec232b05d8d2879f08bbf54f796f8dcf09b03966f484d69ed5feb3380738b8f2776cf84434bff7ea10c1ba050eba22ffa7ae5da9257f340
7
+ data.tar.gz: 86a9ea48069a249095c7a94bb0e7b51f9a9553c298ae6e309c4dfe44e6ed315220a05b3c9f3d6fe87a7f13ead78565850ea1895a0b636ddb8fccd82a36558a61
@@ -27,7 +27,7 @@ class <%= @model_name %>
27
27
  # This method is for authentication purpose.
28
28
  #
29
29
  def self.authenticate(email, password)
30
- account = where(:email => /#{Regexp.escape(email)}/i).first if email.present?
30
+ account = where(:email => /#{Object::Regexp.escape(email)}/i).first if email.present?
31
31
  account && account.has_password?(password) ? account : nil
32
32
  end
33
33
 
@@ -18,7 +18,7 @@
18
18
  .container
19
19
  =link_to 'Padrino', url(:base, :index), :class => 'navbar-brand', :title => 'Padrino Admin'
20
20
  %ul.nav.navbar-nav.pull-right
21
- %li.navbar-edit-account=link_to tag_icon(:user), url(:accounts, :edit, :id => current_account.id), :title => pat(:profile), :class => 'navbar-nav-link'
21
+ %li.navbar-edit-account=link_to tag_icon(:user), url(:<%= @model_plural %>, :edit, :id => current_account.id), :title => pat(:profile), :class => 'navbar-nav-link'
22
22
  %li.navbar-logout
23
23
  = button_to :logout, url(:sessions, :destroy), :method => :delete, :class => 'navbar-nav-form', :submit_options => { :type => :submit, :title => pat(:logout), :class => 'navbar-nav-form-link' } do
24
24
  = tag_icon('power-off')
@@ -5,7 +5,6 @@ require File.expand_path("../../padrino-core/lib/padrino-core/version.rb", __FIL
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "padrino-admin"
8
- s.rubyforge_project = "padrino-admin"
9
8
  s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
10
9
  s.email = "padrinorb@gmail.com"
11
10
  s.summary = "Admin Dashboard for Padrino"
@@ -2,8 +2,6 @@ require 'digest/sha1'
2
2
  require 'sequel'
3
3
  require 'sequel/extensions/migration'
4
4
 
5
- Sequel::Model.plugin(:schema)
6
-
7
5
  Sequel::Model.db =
8
6
  if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
9
7
  require 'jdbc/sqlite3'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-05-16 00:00:00.000000000 Z
14
+ date: 2020-05-14 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: padrino-core
@@ -19,28 +19,28 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.14.1
22
+ version: 0.15.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.1
29
+ version: 0.15.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: padrino-helpers
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
34
  - - '='
35
35
  - !ruby/object:Gem::Version
36
- version: 0.14.1
36
+ version: 0.15.0
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - '='
42
42
  - !ruby/object:Gem::Version
43
- version: 0.14.1
43
+ version: 0.15.0
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: therubyracer
46
46
  requirement: !ruby/object:Gem::Requirement
@@ -290,9 +290,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
290
290
  - !ruby/object:Gem::Version
291
291
  version: 1.3.6
292
292
  requirements: []
293
- rubyforge_project: padrino-admin
294
- rubygems_version: 2.6.11
293
+ rubygems_version: 3.0.6
295
294
  signing_key:
296
295
  specification_version: 4
297
296
  summary: Admin Dashboard for Padrino
298
- test_files: []
297
+ test_files:
298
+ - test/fixtures/sequel.rb
299
+ - test/generators/test_account_model_generator.rb
300
+ - test/generators/test_admin_app_generator.rb
301
+ - test/generators/test_admin_page_generator.rb
302
+ - test/helper.rb
303
+ - test/test_admin_application.rb
304
+ - test/test_locale.rb