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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '091b80a5b396ad4c2a4db6df9aa3bd4032d246356e8cc4fc89fe553b1bbb5499'
|
4
|
+
data.tar.gz: f152b70d90427955153e45a668b89b466f642a4b88445a62e9d43b071a869e62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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')
|
data/padrino-admin.gemspec
CHANGED
@@ -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"
|
data/test/fixtures/sequel.rb
CHANGED
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.
|
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:
|
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.
|
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.
|
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.
|
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.
|
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
|
-
|
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
|