bootstrap-honoka-rails 4.0.0.1 → 4.0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 650f0519bbe3fe479974946ed51970e0c49bcd8c6f3a47f0ad864415275f7cbd
4
- data.tar.gz: 8a5d2ff89788a2126168c0ae778893d79c087f4c62287610cb47c93b07b5a45d
3
+ metadata.gz: a8e2c6460727e34ed97a890a5e5f4764f188a73d749c5016a8a3e8ce8543995d
4
+ data.tar.gz: 96501d76aee0d0376160aa5a0e70517cffb01ef852489e5f52cd776e545490ff
5
5
  SHA512:
6
- metadata.gz: 75be0018a766fda5250b2f3eddf11d0daf262a53097963feb6c37b378b5d8b72ef9b083394b3455d8ecaa059bd8360b85584308e35925f7000f5771179f4d40b
7
- data.tar.gz: 04e70756344e6426ab5cf1a649d2167ca79a45f56164001ebe29558880abaf7ccb2be2aa0e9da10a444ac59ff2b3434c0173a6c9a3bf90448264aedebaba1914
6
+ metadata.gz: 9c9c571cb44736a421eab9be937f1cf9f39a1029e917f154321474f57659e80a82ef2516424e02397298e16bfd0527a6c52210f92ddbf9c3d566948ad5fdb3f5
7
+ data.tar.gz: 82eac787c50247a9622c5dea6ba86fe1d81832ef09b0e25f4bd8f85ffb83e33d47324a7d67748dbd386e09ba6ee2a87bc388004c99466e6bcf074c151a85a28a
data/README.md CHANGED
@@ -1,17 +1,17 @@
1
1
  # Bootstrap-Honoka-Rails
2
2
 
3
- [honoka](https://github.com/windyakin/Honoka) is a Bootstrap theme that can display Japanese beautifully.
4
- bootstrap-honoka-rails can easily install [honoka](https://github.com/windyakin/Honoka),[Umi](https://ysakasin.github.io/Umi/) and [Nico](https://nico.kubosho.com/) on rails.
3
+ [Honoka](https://github.com/windyakin/Honoka) is a Bootstrap theme that can display Japanese beautifully.
4
+ bootstrap-honoka-rails can easily install [Honoka](https://github.com/windyakin/Honoka),[Umi](https://ysakasin.github.io/Umi/) , [Nico](https://nico.kubosho.com/) and [Rin](https://rinhoshizo.la/) on Rails.
5
5
 
6
- [honoka](https://github.com/windyakin/Honoka) は日本語も美しく表示できる Bootstrap テーマです。
7
- bootstrap-honoka-rails は [honoka](https://github.com/windyakin/Honoka) や [Umi](https://ysakasin.github.io/Umi/) や [Nico](https://nico.kubosho.com/) を rails 上に簡単にインストールできます。
6
+ [Honoka](https://github.com/windyakin/Honoka) は日本語も美しく表示できる Bootstrap テーマです。
7
+ bootstrap-honoka-rails は [Honoka](https://github.com/windyakin/Honoka) や [Umi](https://ysakasin.github.io/Umi/) や [Nico](https://nico.kubosho.com/) や [Rin](https://rinhoshizo.la/) Rails 上に簡単にインストールできます。
8
8
 
9
9
  ## Installation
10
10
 
11
11
  Add this line to your application's Gemfile:
12
12
 
13
13
  ```ruby
14
- gem 'bootstrap-honoka-rails' , '~>4.3.1'
14
+ gem 'bootstrap-honoka-rails' , '~>4.3.1' # or '~> 3.3.7'
15
15
  ```
16
16
 
17
17
  And then execute:
@@ -26,62 +26,128 @@ Or install it yourself as:
26
26
  gemfile にこれ書いておけばいいと思います。
27
27
 
28
28
  ```ruby
29
- gem 'bootstrap-honoka-rails' , '~>4.3.1'
29
+ gem 'bootstrap-honoka-rails' , '~>4.3.1' # or '~> 3.3.7'
30
30
  ```
31
31
 
32
32
  ## Usage
33
33
 
34
- Add to application.css [ *= require _honoka ]
34
+ Add to application.css `*= require _honoka` <br>
35
+ For bootstrap ver3 you need `*= _bootstrap-sprockets`.
35
36
 
36
- ```app/assets/stylesheets/application.css
37
+ ```css app/assets/stylesheets/application.css
38
+ /*
39
+ *= require _bootstrap-sprockets # Add line ※ v3 only
37
40
  *= require _honoka # Add line
38
41
  *= require_self
42
+ */
39
43
  ```
40
44
 
41
- and add to application.js [ //= require popper, //= require bootstrap-sprockets , //= require bootstrap.min]
45
+ and add to application.js <br>
46
+ `//= require popper` (bootstrap ver4 later), <br>
47
+ `//= require bootstrap-sprockets` , <br>
48
+ `//= require bootstrap.min`
42
49
 
43
- ```app/assets/javascripts/application.js
50
+ ```js app/assets/javascripts/application.js
51
+ //= require jquery2
44
52
  //= require rails-ujs
45
53
  //= require activestorage
46
- //= require turbolinks
47
- //= require popper # add line
54
+ //= require popper # add line ※ v4 later
48
55
  //= require bootstrap-sprockets # add line
49
- //= require bootstrap.min # add line
56
+ //= require turbolinks
50
57
  //= require_tree .
51
58
  ```
52
59
 
60
+ If you loaded `bootstrap-sprockets`, you do not need to load `bootstrap.min` .<br>
61
+ Because Dropdown features may not work properly.<br>
62
+ Please check [here](https://github.com/twbs/bootstrap-sass/issues/714) for more details.<br>
63
+ (It has been tested on production environment. The sample app is in the 'test/dummy' directory. )
64
+
53
65
  [日本語訳]
54
- とりあえずインストール後、上記を application.css と application.js に追加すれば OK です。
66
+ とりあえずインストール後、上記を application.css と application.js に追加すれば OK です。<br>
67
+ 注意点として `bootstrap-sprockets` を読み込むと思いますが、その場合 `bootstrap.min` は読み込む必要がありません。<br>
68
+ 何故なら Dropdown が正しく動作しない可能性があります。 <br>
69
+ 詳細は[こちら](https://github.com/twbs/bootstrap-sass/issues/714)をご確認ください。
70
+ ※production 環境で動作することを確認済み。 サンプルアプリは 'test/dummy' ディレクトリ内 にあります。
55
71
 
56
72
  ---
57
73
 
58
- Certain [versions](VERSIONS.md) also support nico and umi.
74
+ Certain [versions](VERSIONS.md) also support Nico , Umi and Rin.
59
75
 
60
- ```app/assets/stylesheets/application.css
76
+ ```css app/assets/stylesheets/application.css
61
77
  *= require _umi # Add line
62
78
  *= require_self
63
79
  ```
64
80
 
65
81
  or
66
82
 
67
- ```app/assets/stylesheets/application.css
83
+ ```css app/assets/stylesheets/application.css
68
84
  *= require _nico # Add line
69
85
  *= require_self
70
86
  ```
71
87
 
72
- Please check [VERSIONS.md](VERSIONS.md) for honoka nico umi compatible Ver.
88
+ or
89
+
90
+ ```css app/assets/stylesheets/application.css
91
+ *= require _rin # Add line
92
+ *= require_self
93
+ ```
73
94
 
74
- [日本語訳][特定のバージョン](VERSIONS.md)では "nico"と "umi"も対応しています。
75
- `honoka` の代わりに `*= require _nico` と書けば nico になりますし、 `umi` と書けば umi デザインになります。
76
- honoka nico umi の対応 Ver は[VERSIONS.md](VERSIONS.md)をご確認ください。
95
+ Please check [VERSIONS.md](VERSIONS.md) for Honoka Nico Umi Rin compatible Ver.
96
+
97
+ [日本語訳][特定のバージョン](VERSIONS.md)では "Nico"と "Umi" と "Rin" も対応しています。
98
+ `_honoka` の代わりに `*= require _nico` と書けば Nico になりますし、 `_umi` と書けば Umi デザインになります。
99
+ Rin も Ver によっては `_rin` と書けば対応出来ます。<br>
100
+ Honoka Nico Umi Rin の対応 Ver は[VERSIONS.md](VERSIONS.md)をご確認ください。
77
101
 
78
102
  ## Notice
79
103
 
80
- bootstrap-honoka-rails uses bootstrap internally.
104
+ bootstrap-honoka-rails uses bootstrap or bootstrap-sass internally.
81
105
 
82
106
  [日本語訳]
83
- bootstrap-honoka-rails は bootstrap を内部的に使っています。
107
+ bootstrap-honoka-rails は bootstrap 又は bootstrap-sass を内部的に使っています。
84
108
 
85
109
  ## License
86
110
 
87
111
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
112
+
113
+ ## Use Bootstrap Theme
114
+
115
+ #### [Honoka](https://github.com/windyakin/Honoka)
116
+
117
+ Source Url ... [https://github.com/windyakin/Honoka](https://github.com/windyakin/Honoka)
118
+
119
+ > The MIT License (MIT)
120
+ >
121
+ > Copyright (c) 2015 windyakin
122
+
123
+ [License View All](https://github.com/windyakin/Honoka/blob/master/LICENSE)
124
+
125
+ #### [Umi](https://ysakasin.github.io/Umi/)
126
+
127
+ Source Url ... [https://github.com/ysakasin/Umi](https://github.com/ysakasin/Umi)
128
+
129
+ > The MIT License (MIT)
130
+ >
131
+ > Copyright (c) 2015 ysakasin
132
+
133
+ [License View All](https://github.com/ysakasin/Umi/blob/master/LICENSE)
134
+
135
+ #### [Nico](https://nico.kubosho.com/)
136
+
137
+ Source Url ... [https://github.com/kubosho/Nico](https://github.com/kubosho/Nico)
138
+
139
+ > The MIT License (MIT)
140
+ >
141
+ > Copyright (c) 2015 windyakin, kubosho
142
+
143
+ [License View All](https://github.com/kubosho/Nico/blob/master/LICENSE)
144
+
145
+ #### [Rin](https://rinhoshizo.la/)
146
+
147
+ Source Url ... [https://github.com/raryosu/Rin](https://github.com/raryosu/Rin)
148
+
149
+ > The MIT License (MIT)
150
+ >
151
+ > Copyright (c) 2016 Hagihara Ryosuke
152
+
153
+ [License View All](https://github.com/raryosu/Rin/blob/master/LICENSE)
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ require 'rdoc/task'
8
8
 
9
9
  RDoc::Task.new(:rdoc) do |rdoc|
10
10
  rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'Bootstrap::Honoka4'
11
+ rdoc.title = 'Bootstrap::Honoka::Rails'
12
12
  rdoc.options << '--line-numbers'
13
13
  rdoc.rdoc_files.include('README.md')
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
data/VERSIONS.md ADDED
@@ -0,0 +1,10 @@
1
+ # Support Version
2
+
3
+ - O ... Supported and test completed(使用可能)
4
+ - X ... Not supported(使用不可)
5
+
6
+ | Gem | Honoka | Nico | Umi | Rin |
7
+ | ----- | ------ | ---- | --- | --- |
8
+ | 4.3.1 | O | X | X | X |
9
+ | 4.0.0 | O | O | O | X |
10
+ | 3.3.7 | O | O | O | O |
@@ -1,7 +1,7 @@
1
1
  module Bootstrap
2
2
  module Honoka
3
3
  module Rails
4
- VERSION = '4.0.0.1'.freeze
4
+ VERSION = '4.0.0.2'.freeze
5
5
  def self.major_ver
6
6
  VERSION.split('.').first.to_i
7
7
  end
@@ -10,8 +10,9 @@
10
10
  // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
11
  // about supported directives.
12
12
  //
13
+ //= require jquery2
13
14
  //= require rails-ujs
14
- //= require jquery
15
+ //= require popper
15
16
  //= require bootstrap-sprockets
16
- //= require bootstrap.min
17
+ //= require turbolinks
17
18
  //= require_tree .
@@ -10,6 +10,5 @@
10
10
  * files in this directory. Styles in this file should be added after the last require_* statement.
11
11
  * It is generally better to create a new file per style scope.
12
12
  *
13
- *= require_tree .
14
13
  *= require_self
15
- */
14
+ */
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../config/application', __dir__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -3,6 +3,7 @@ require_relative 'boot'
3
3
  require 'rails/all'
4
4
  require 'jquery-rails'
5
5
  require 'sprockets'
6
+ require 'turbolinks'
6
7
 
7
8
  Bundler.require(*Rails.groups)
8
9
 
@@ -27,23 +27,6 @@ Rails.application.configure do
27
27
  config.cache_store = :null_store
28
28
  end
29
29
 
30
- # Store uploaded files on the local file system (see config/storage.yml for options)
31
- config.active_storage.service = :local
32
-
33
- # Don't care if the mailer can't send.
34
- config.action_mailer.raise_delivery_errors = false
35
-
36
- config.action_mailer.perform_caching = false
37
-
38
- # Print deprecation notices to the Rails logger.
39
- config.active_support.deprecation = :log
40
-
41
- # Raise an error on page load if there are pending migrations.
42
- config.active_record.migration_error = :page_load
43
-
44
- # Highlight code that triggered database queries in logs.
45
- config.active_record.verbose_query_logs = true
46
-
47
30
  # Debug mode disables concatenation and preprocessing of assets.
48
31
  # This option may cause significant delays in view rendering with a large
49
32
  # number of complex assets.
@@ -51,11 +34,4 @@ Rails.application.configure do
51
34
 
52
35
  # Suppress logger output for asset requests.
53
36
  config.assets.quiet = true
54
-
55
- # Raises error for missing translations
56
- # config.action_view.raise_on_missing_translations = true
57
-
58
- # Use an evented file watcher to asynchronously detect changes in source code,
59
- # routes, locales, etc. This feature depends on the listen gem.
60
- # config.file_watcher = ActiveSupport::EventedFileUpdateChecker
61
37
  end
@@ -24,10 +24,10 @@ Rails.application.configure do
24
24
 
25
25
  # Compress JavaScripts and CSS.
26
26
  config.assets.js_compressor = :uglifier
27
- # config.assets.css_compressor = :sass
27
+ config.assets.css_compressor = :sass
28
28
 
29
29
  # Do not fallback to assets pipeline if a precompiled asset is missed.
30
- config.assets.compile = false
30
+ # config.assets.compile = false
31
31
 
32
32
  # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
33
33
 
@@ -39,7 +39,6 @@ Rails.application.configure do
39
39
  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
40
40
 
41
41
  # Store uploaded files on the local file system (see config/storage.yml for options)
42
- config.active_storage.service = :local
43
42
 
44
43
  # Mount Action Cable outside main process or domain
45
44
  # config.action_cable.mount_path = nil
@@ -54,7 +53,7 @@ Rails.application.configure do
54
53
  config.log_level = :debug
55
54
 
56
55
  # Prepend all log lines with the following tags.
57
- config.log_tags = [ :request_id ]
56
+ config.log_tags = [:request_id]
58
57
 
59
58
  # Use a different cache store in production.
60
59
  # config.cache_store = :mem_cache_store
@@ -63,8 +62,6 @@ Rails.application.configure do
63
62
  # config.active_job.queue_adapter = :resque
64
63
  # config.active_job.queue_name_prefix = "dummy_#{Rails.env}"
65
64
 
66
- config.action_mailer.perform_caching = false
67
-
68
65
  # Ignore bad email addresses and do not raise email delivery errors.
69
66
  # Set this to true and configure the email server for immediate delivery to raise delivery errors.
70
67
  # config.action_mailer.raise_delivery_errors = false
@@ -83,12 +80,11 @@ Rails.application.configure do
83
80
  # require 'syslog/logger'
84
81
  # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
85
82
 
86
- if ENV["RAILS_LOG_TO_STDOUT"].present?
83
+ if ENV['RAILS_LOG_TO_STDOUT'].present?
87
84
  logger = ActiveSupport::Logger.new(STDOUT)
88
85
  logger.formatter = config.log_formatter
89
86
  config.logger = ActiveSupport::TaggedLogging.new(logger)
90
87
  end
91
88
 
92
89
  # Do not dump schema after migrations.
93
- config.active_record.dump_schema_after_migration = false
94
90
  end
@@ -0,0 +1,4 @@
1
+ #!/bin/sh
2
+
3
+ EDITOR=vim bundle exec rails credentials:edit
4
+ export SECRET_KEY_BASE=`bundle exec rake secret`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-honoka-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.1
4
+ version: 4.0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takmg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-25 00:00:00.000000000 Z
11
+ date: 2019-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap
@@ -70,16 +70,44 @@ dependencies:
70
70
  name: sprockets-rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 3.2.1
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 3.2.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: turbolinks
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 5.2.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 5.2.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: uglifier
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 4.1.20
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
81
109
  - !ruby/object:Gem::Version
82
- version: '0'
110
+ version: 4.1.20
83
111
  description: Gem to handle -Bootstrap honoka- easily
84
112
  email:
85
113
  - Takmg@example.com
@@ -90,6 +118,7 @@ files:
90
118
  - MIT-LICENSE
91
119
  - README.md
92
120
  - Rakefile
121
+ - VERSIONS.md
93
122
  - assets/stylesheets/_honoka.scss
94
123
  - assets/stylesheets/_nico.scss
95
124
  - assets/stylesheets/_umi.scss
@@ -124,6 +153,7 @@ files:
124
153
  - test/dummy/app/views/pages/honoka.html.erb
125
154
  - test/dummy/app/views/pages/nico.html.erb
126
155
  - test/dummy/app/views/pages/umi.html.erb
156
+ - test/dummy/bin/rails
127
157
  - test/dummy/config.ru
128
158
  - test/dummy/config/application.rb
129
159
  - test/dummy/config/boot.rb
@@ -140,6 +170,7 @@ files:
140
170
  - test/dummy/config/locales/en.yml
141
171
  - test/dummy/config/routes.rb
142
172
  - test/dummy/package.json
173
+ - test/dummy/production_key_generate.sh
143
174
  - test/honoka_test.rb
144
175
  - test/test_helper.rb
145
176
  homepage: https://github.com/Takmg/bootstrap-honoka-rails
@@ -181,6 +212,7 @@ test_files:
181
212
  - test/dummy/app/views/pages/honoka.html.erb
182
213
  - test/dummy/app/views/pages/nico.html.erb
183
214
  - test/dummy/app/views/pages/umi.html.erb
215
+ - test/dummy/bin/rails
184
216
  - test/dummy/config.ru
185
217
  - test/dummy/config/application.rb
186
218
  - test/dummy/config/boot.rb
@@ -197,5 +229,6 @@ test_files:
197
229
  - test/dummy/config/locales/en.yml
198
230
  - test/dummy/config/routes.rb
199
231
  - test/dummy/package.json
232
+ - test/dummy/production_key_generate.sh
200
233
  - test/honoka_test.rb
201
234
  - test/test_helper.rb