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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 69dfdf3059feab937de8f420053ac72cf730cfcf
4
- data.tar.gz: 012f93db1404ed307ca2e7c9371b24261a8ec0da
2
+ SHA256:
3
+ metadata.gz: 8523c1ffbe5823397ae3f2079b31af45c4e512ca67486c9256a7338d48f78e7c
4
+ data.tar.gz: cd6354a4c2b41f2524c849fe8fcbebfb5105eea50536411e2c7ac30bf17552ec
5
5
  SHA512:
6
- metadata.gz: 91b92560d2cf42d6d2f051337a1cbd2461d5512e67a12cbb6251568dab92fce58466863925af597dd43f984230bdf23c2e7f7935ef3ec991799f6b48c02eab3b
7
- data.tar.gz: 69c9a7348291626b74042532e404e8600ca59af6c2276731b2b7ac637bf5b716a803b656e296ca9ff8ee6e4708cd1deca8aecbaa4587b5dfa13bfa2ddce67d4f
6
+ metadata.gz: 56b40e380e01373e6f0acb79b1f0570d554aa9b2c1145560b5ed640aa446a8fec4ac6b1a24d2d8a9328247fb4af4a7d6b4f8a09b53f34e17fb739625da207fa6
7
+ data.tar.gz: 0574e1d44692642d157b02c7176ad93c140fb7466a7675666fd86c4f03d0c0dffce6b0817f2151e875097b90fecc13a68def166613d35b248b5794d1a26e1d92
@@ -1,5 +1,5 @@
1
1
  = Next-L Enju Leaf
2
- {<img src="https://travis-ci.org/next-l/enju_leaf.svg?branch=1.3" alt="Build Status" />}[https://travis-ci.org/next-l/enju_leaf]
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
 
@@ -4,7 +4,7 @@ body{
4
4
  text-align: left;
5
5
  }
6
6
 
7
- a.hover{:background-color: transparent}
7
+ a.hover{background-color: transparent}
8
8
 
9
9
  strong{
10
10
  font-weight: bold;
@@ -6,16 +6,16 @@
6
6
  <%= devise_error_messages! %>
7
7
 
8
8
  <div class="field">
9
- <%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
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 %> <i>(leave blank if you don't want to change it)</i><br />
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 %> characters minimum</em>
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: "ログアウトしました。"
@@ -1,3 +1,3 @@
1
1
  module EnjuLeaf
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
@@ -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
- sqlite: &sqlite
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
- database: db/<%= Rails.env %>.sqlite3
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
- <<: *defaults
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
- <<: *defaults
20
+ <<: *default
21
+ database: db/test.sqlite3
28
22
 
29
23
  production:
30
- <<: *defaults
24
+ <<: *default
25
+ database: db/production.sqlite3
@@ -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: 20180102162311) do
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.1
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: 2018-11-21 00:00:00.000000000 Z
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.1
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.1
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.1
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.1
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.1
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.1
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.7'
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.7'
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
- rubyforge_project:
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