padrino-admin 0.14.1.1 → 0.15.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MWY2NTMxZGY4NTUwNDRhNDE5Y2ViYWZkOWFjNWEwMDQ3OThkMTJkNA==
5
- data.tar.gz: !binary |-
6
- MjAwNjVmZmE0ODFlNzU1MjA0NmNhOGU1YzQyNjMxMzI4NjgyNTJmYQ==
2
+ SHA256:
3
+ metadata.gz: 277580c762ad90cb4ba6a24a85515b78fb21ff69853a3abf73f0ba75f64a6fd8
4
+ data.tar.gz: 7c39f89d9bbf639eb05f6e47df46d4bb55643a08b45e9d7274dcffdd5a49d1a0
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NzczNDk1OGUxMzRkMzliZmM5NjBjNTk3NWU2NTQzZDM2ZTU3OWZiNmNhYTdm
10
- OGY0ZTZmMWVmZGQ2ZjVmNWU2Mjg4NGRkYzE2MWJhNWM0NmJlNjEyYjRkMDU2
11
- NjY3NmFmMjlmNzgwZGIzN2JmMzc1MzViMWUwNmFhNjc4ZTAwMGQ=
12
- data.tar.gz: !binary |-
13
- NWMzNDMzNzYyYThkZDRiOTg3YTg1MjkyNWRhMTZlZjhkN2FkZDY5Mjk0ZjQ4
14
- YWIxOGZmYWY2OTUzYzk1NGJjNGNkOGJmNDdjOGU4ODRmNmVmYTliMzkxNDM1
15
- NDhlYmY1ZGEwZTUwYjBmY2Q5ZmRhMmY3ODRlYWI4NDRiNmIwMTQ=
6
+ metadata.gz: 9c531bb730d7d8e7a31d9b05bc119b568032a75ca6a411f420f3494718f20aa0318433d83561442cd52625d8bc2edb283bacad1ae9648009596f3b9276fb80e5
7
+ data.tar.gz: 2a74dffaf7953a31ec4dd78a6edde86d9024f74cd1ba6d0ba18d727c0596808776435f5e16f8b9d64bb7b08a2d03413ebf4cd95e494374b1e1adf8cd2629cd61
@@ -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')
@@ -3,54 +3,54 @@ pl:
3
3
  admin:
4
4
  login:
5
5
  title: "Login"
6
- email: "Email"
7
- password: "hasło"
8
- bypass: "Obwodnica login?"
6
+ email: "E-mail"
7
+ password: "Hasło"
8
+ bypass: "Pominąć logowanie?"
9
9
  sign_in: "Zaloguj się"
10
10
  error: "E-mail lub hasło złe."
11
11
  save: "Zapisz"
12
12
  save_and_continue: "Zapisz i kontynuuj"
13
13
  cancel: "Anuluj"
14
- list: "List"
15
- edit: "Edit"
14
+ list: "Lista"
15
+ edit: "Edycja"
16
16
  new: "Nowy"
17
- show: "Show"
17
+ show: "Pokaż"
18
18
  delete: "Usuń"
19
19
  confirm: "Czy na pewno?"
20
20
  created_at: "Utworzono"
21
- all: "All"
21
+ all: "Wszystkie"
22
22
  profile: "Edytuj swój profil"
23
23
  settings: "Ustawienia"
24
- logout: "Wyjdź z administratorem"
24
+ logout: "Wyloguj"
25
25
  select_all: "Zaznacz wszystko"
26
26
  deselect_all: "Odznacz wszystko"
27
27
  delete_selected: "Usuń zaznaczone"
28
28
  delete_selected_title: "Czy na pewno chcesz usunąć wszystkie zaznaczone pozycje?"
29
- example: "Ex: prosty tekst"
30
- new_title: "New %{model}"
31
- create_title: "% Editing {model}"
29
+ example: "Np. prosty tekst"
30
+ new_title: "Nowy %{model}"
31
+ create_title: "Utwórz %{model}"
32
32
  create_success: "%{model} został utworzony."
33
33
  create_error: "Nie można utworzyć %{model}"
34
- edit_title: "% Editing {model}"
34
+ edit_title: "Edytuj %{model}"
35
35
  edit_warning: "Nie można znaleźć %{model} z ID %{id}."
36
- update_title: "% Editing {model}"
36
+ update_title: "Edytuj %{model}"
37
37
  update_success: "%{model} z ID %{id} został zaktualizowany."
38
- update_error: "Nie można zaktualizować %{wzór}."
39
- update_warning: "Nie można znaleźć %{wzór} z ID %{id}"
40
- delete_title: "% Usuń {model}?"
38
+ update_error: "Nie można zaktualizować %{model}."
39
+ update_warning: "Nie można znaleźć %{model} z ID %{id}"
40
+ delete_title: "Usunąć %{model}?"
41
41
  delete_success: "%{model} z ID %{id} został pomyślnie usunięty."
42
42
  delete_error: "Nie można usunąć %{model}!"
43
43
  delete_warning: "Nie można znaleźć %{model} z ID %{id}."
44
- destroy_many_error: "Musisz wybrać przynajmniej jedną %{model} do usunięcia."
44
+ destroy_many_error: "Musisz wybrać przynajmniej jeden %{model} do usunięcia."
45
45
  destroy_many_success: "%{model} %{ids} zostały usunięte."
46
46
  custom_errors:
47
- title: "błąd"
47
+ title: "Błąd"
48
48
  '403':
49
- title: "błąd 403"
50
- description: "zabroniony"
49
+ title: "Błąd 403"
50
+ description: "Zabroniono"
51
51
  '404':
52
- title: "błąd 404"
53
- description: "Not Found"
52
+ title: "Błąd 404"
53
+ description: "Nie znaleziono"
54
54
  '500':
55
- title: "błąd 500"
55
+ title: "Błąd 500"
56
56
  description: "Błąd serwera"
@@ -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,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1.1
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
8
8
  - Nathan Esquenazi
9
9
  - Davide D'Agostino
10
10
  - Arthur Chiu
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-05-16 00:00:00.000000000 Z
14
+ date: 2021-04-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: padrino-core
@@ -19,54 +19,54 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.14.1.1
22
+ version: 0.15.1
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.1
29
+ version: 0.15.1
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.1
36
+ version: 0.15.1
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.1
43
+ version: 0.15.1
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: therubyracer
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - ~>
48
+ - - "~>"
49
49
  - !ruby/object:Gem::Version
50
50
  version: 0.11.1
51
51
  type: :development
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - ~>
55
+ - - "~>"
56
56
  - !ruby/object:Gem::Version
57
57
  version: 0.11.1
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: less
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - ~>
62
+ - - "~>"
63
63
  - !ruby/object:Gem::Version
64
64
  version: 2.2.2
65
65
  type: :development
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - ~>
69
+ - - "~>"
70
70
  - !ruby/object:Gem::Version
71
71
  version: 2.2.2
72
72
  description: Admin View for Padrino applications
@@ -76,9 +76,9 @@ extensions: []
76
76
  extra_rdoc_files:
77
77
  - README.rdoc
78
78
  files:
79
- - .document
80
- - .gitignore
81
- - .yardopts
79
+ - ".document"
80
+ - ".gitignore"
81
+ - ".yardopts"
82
82
  - LICENSE.txt
83
83
  - README.rdoc
84
84
  - Rakefile
@@ -274,25 +274,31 @@ homepage: http://www.padrinorb.com
274
274
  licenses:
275
275
  - MIT
276
276
  metadata: {}
277
- post_install_message:
277
+ post_install_message:
278
278
  rdoc_options:
279
- - --charset=UTF-8
279
+ - "--charset=UTF-8"
280
280
  require_paths:
281
281
  - lib
282
282
  required_ruby_version: !ruby/object:Gem::Requirement
283
283
  requirements:
284
- - - ! '>='
284
+ - - ">="
285
285
  - !ruby/object:Gem::Version
286
286
  version: '0'
287
287
  required_rubygems_version: !ruby/object:Gem::Requirement
288
288
  requirements:
289
- - - ! '>='
289
+ - - ">="
290
290
  - !ruby/object:Gem::Version
291
291
  version: 1.3.6
292
292
  requirements: []
293
- rubyforge_project: padrino-admin
294
- rubygems_version: 2.4.3
295
- signing_key:
293
+ rubygems_version: 3.0.8
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