enju_leaf 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.rdoc +1 -1
- data/app/assets/stylesheets/enju.css +1 -1
- data/app/views/devise/registrations/edit.html.erb +3 -3
- data/config/locales/devise.en.yml +3 -0
- data/config/locales/devise.ja.yml +3 -0
- data/lib/enju_leaf/version.rb +1 -1
- data/lib/generators/enju_leaf/setup/setup_generator.rb +10 -10
- data/spec/dummy/config/database.yml +17 -22
- data/spec/dummy/db/schema.rb +1 -1
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8523c1ffbe5823397ae3f2079b31af45c4e512ca67486c9256a7338d48f78e7c
|
4
|
+
data.tar.gz: cd6354a4c2b41f2524c849fe8fcbebfb5105eea50536411e2c7ac30bf17552ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56b40e380e01373e6f0acb79b1f0570d554aa9b2c1145560b5ed640aa446a8fec4ac6b1a24d2d8a9328247fb4af4a7d6b4f8a09b53f34e17fb739625da207fa6
|
7
|
+
data.tar.gz: 0574e1d44692642d157b02c7176ad93c140fb7466a7675666fd86c4f03d0c0dffce6b0817f2151e875097b90fecc13a68def166613d35b248b5794d1a26e1d92
|
data/README.rdoc
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
= Next-L Enju Leaf
|
2
|
-
{<img src="https://travis-ci.
|
2
|
+
{<img src="https://travis-ci.com/next-l/enju_leaf.svg?branch=1.3" alt="Build Status" />}[https://travis-ci.com/next-l/enju_leaf]
|
3
3
|
{<img src="https://coveralls.io/repos/next-l/enju_leaf/badge.svg?branch=1.3&service=github" alt="Coverage Status" />}[https://coveralls.io/github/next-l/enju_leaf?branch=1.3]
|
4
4
|
{<img src="https://hakiri.io/github/next-l/enju_leaf/1.3.svg" alt="security" />}[https://hakiri.io/github/next-l/enju_leaf/1.3]
|
5
5
|
|
@@ -6,16 +6,16 @@
|
|
6
6
|
<%= devise_error_messages! %>
|
7
7
|
|
8
8
|
<div class="field">
|
9
|
-
<%= f.label :current_password
|
9
|
+
<%= f.label :current_password %><br />
|
10
10
|
<%= f.password_field :current_password, autocomplete: "off" %>
|
11
11
|
</div>
|
12
12
|
|
13
13
|
<div class="field">
|
14
|
-
<%= f.label :password
|
14
|
+
<%= f.label :password %><br />
|
15
15
|
<%= f.password_field :password, autocomplete: "off" %>
|
16
16
|
<% if @minimum_password_length %>
|
17
17
|
<br />
|
18
|
-
<em><%= @minimum_password_length %>
|
18
|
+
<em><%= @minimum_password_length %> <%= t('devise.registration.minimum_password_length', count: @minimum_password_length) %></em>
|
19
19
|
<% end %>
|
20
20
|
</div>
|
21
21
|
|
@@ -40,6 +40,9 @@ en:
|
|
40
40
|
signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
|
41
41
|
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
|
42
42
|
updated: "Your account has been updated successfully."
|
43
|
+
minimum_password_length:
|
44
|
+
one: "%{count} character minimum"
|
45
|
+
other: "%{count} characters minimum"
|
43
46
|
sessions:
|
44
47
|
signed_in: "Signed in successfully."
|
45
48
|
signed_out: "Signed out successfully."
|
@@ -38,6 +38,9 @@ ja:
|
|
38
38
|
signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
|
39
39
|
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
|
40
40
|
updated: "アカウントは正常に更新されました。"
|
41
|
+
minimum_password_length:
|
42
|
+
one: "%{count}文字以上"
|
43
|
+
other: "%{count}文字以上"
|
41
44
|
sessions:
|
42
45
|
signed_in: "ログインしました。"
|
43
46
|
signed_out: "ログアウトしました。"
|
data/lib/enju_leaf/version.rb
CHANGED
@@ -29,6 +29,16 @@ EOS
|
|
29
29
|
application(nil, env: "production") do
|
30
30
|
"config.action_mailer.default_url_options = {host: 'localhost:3000'}\n"
|
31
31
|
end
|
32
|
+
inject_into_class "app/controllers/application_controller.rb", ApplicationController do
|
33
|
+
<<"EOS"
|
34
|
+
include EnjuLibrary::Controller
|
35
|
+
include EnjuBiblio::Controller
|
36
|
+
|
37
|
+
include Pundit
|
38
|
+
before_action :set_paper_trail_whodunnit
|
39
|
+
after_action :verify_authorized, unless: :devise_controller?
|
40
|
+
EOS
|
41
|
+
end
|
32
42
|
generate("devise:install")
|
33
43
|
generate("devise", "User")
|
34
44
|
gsub_file 'app/models/user.rb', /, :validatable$/, <<EOS
|
@@ -68,16 +78,6 @@ EOS
|
|
68
78
|
gsub_file 'config/initializers/devise.rb', '# config.secret_key', 'config.secret_key'
|
69
79
|
|
70
80
|
gsub_file 'app/controllers/application_controller.rb', /protect_from_forgery with: :exception$/, 'protect_from_forgery with: :exception, prepend: true'
|
71
|
-
inject_into_class "app/controllers/application_controller.rb", ApplicationController do
|
72
|
-
<<"EOS"
|
73
|
-
include EnjuLibrary::Controller
|
74
|
-
include EnjuBiblio::Controller
|
75
|
-
|
76
|
-
include Pundit
|
77
|
-
before_action :set_paper_trail_whodunnit
|
78
|
-
after_action :verify_authorized, unless: :devise_controller?
|
79
|
-
EOS
|
80
|
-
end
|
81
81
|
|
82
82
|
inject_into_file "app/helpers/application_helper.rb", after: /module ApplicationHelper$\n/ do
|
83
83
|
<<"EOS"
|
@@ -1,30 +1,25 @@
|
|
1
|
-
|
1
|
+
# SQLite version 3.x
|
2
|
+
# gem install sqlite3
|
3
|
+
#
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
+
# gem 'sqlite3'
|
6
|
+
#
|
7
|
+
default: &default
|
2
8
|
adapter: sqlite3
|
3
|
-
|
4
|
-
|
5
|
-
mysql: &mysql
|
6
|
-
adapter: mysql2
|
7
|
-
username: root
|
8
|
-
password:
|
9
|
-
database: enju_<%= Rails.env %>
|
10
|
-
|
11
|
-
postgresql: &postgresql
|
12
|
-
adapter: postgresql
|
13
|
-
username: postgres
|
14
|
-
password:
|
15
|
-
database: enju_<%= Rails.env %>
|
16
|
-
|
17
|
-
defaults: &defaults
|
18
|
-
pool: 5
|
9
|
+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
19
10
|
timeout: 5000
|
20
|
-
host: localhost
|
21
|
-
<<: *<%= ENV['DB'] || "sqlite" %>
|
22
11
|
|
23
12
|
development:
|
24
|
-
<<: *
|
13
|
+
<<: *default
|
14
|
+
database: db/development.sqlite3
|
25
15
|
|
16
|
+
# Warning: The database defined as "test" will be erased and
|
17
|
+
# re-generated from your development database when you run "rake".
|
18
|
+
# Do not set this db to the same as development or production.
|
26
19
|
test:
|
27
|
-
<<: *
|
20
|
+
<<: *default
|
21
|
+
database: db/test.sqlite3
|
28
22
|
|
29
23
|
production:
|
30
|
-
<<: *
|
24
|
+
<<: *default
|
25
|
+
database: db/production.sqlite3
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
14
14
|
|
15
15
|
create_table "accepts", force: :cascade do |t|
|
16
16
|
t.integer "basket_id"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_leaf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosuke Tanabe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.3.
|
33
|
+
version: 0.3.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.3.
|
40
|
+
version: 0.3.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: enju_biblio
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.3.
|
47
|
+
version: 0.3.2
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.3.
|
54
|
+
version: 0.3.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: jquery-ui-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.3.
|
75
|
+
version: 0.3.2
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.3.
|
82
|
+
version: 0.3.2
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: sqlite3
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '3.
|
131
|
+
version: '3.8'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '3.
|
138
|
+
version: '3.8'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: vcr
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -918,8 +918,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
918
918
|
- !ruby/object:Gem::Version
|
919
919
|
version: '0'
|
920
920
|
requirements: []
|
921
|
-
|
922
|
-
rubygems_version: 2.6.14.3
|
921
|
+
rubygems_version: 3.0.3
|
923
922
|
signing_key:
|
924
923
|
specification_version: 4
|
925
924
|
summary: Next-L Enju Leaf
|