bootstrap-honoka-rails 4.3.1 → 4.3.1.6

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.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +105 -19
  3. data/README_ja.md +140 -0
  4. data/Rakefile +41 -17
  5. data/VERSIONS.md +14 -0
  6. data/assets/stylesheets/_nico.scss +8 -0
  7. data/assets/stylesheets/nico/_honoka.scss +55 -0
  8. data/assets/stylesheets/nico/_mixins.scss +1 -0
  9. data/assets/stylesheets/nico/_override.scss +42 -0
  10. data/assets/stylesheets/nico/_override_nico.scss +47 -0
  11. data/assets/stylesheets/nico/_variables.scss +1193 -0
  12. data/assets/stylesheets/nico/_variables_nico.scss +95 -0
  13. data/lib/bootstrap/honoka/rails.rb +5 -0
  14. data/lib/bootstrap/honoka/rails/engine.rb +8 -5
  15. data/lib/bootstrap/honoka/rails/version.rb +8 -1
  16. data/test/dummy/app/assets/config/manifest.js +0 -1
  17. data/test/dummy/app/assets/javascripts/application.js +2 -1
  18. data/test/dummy/app/assets/stylesheets/application.css +0 -2
  19. data/test/dummy/app/assets/stylesheets/honoka.css +3 -0
  20. data/test/dummy/app/assets/stylesheets/nico.css +3 -0
  21. data/test/dummy/app/controllers/pages_controller.rb +4 -2
  22. data/test/dummy/app/views/layouts/application.html.erb +17 -14
  23. data/test/dummy/app/views/pages/honoka.html.erb +1703 -0
  24. data/test/dummy/app/views/pages/nico.html.erb +1865 -0
  25. data/test/dummy/bin/rails +4 -0
  26. data/test/dummy/config/application.rb +3 -4
  27. data/test/dummy/config/environments/development.rb +0 -24
  28. data/test/dummy/config/environments/production.rb +4 -8
  29. data/test/dummy/config/initializers/assets.rb +1 -0
  30. data/test/dummy/config/routes.rb +3 -1
  31. data/test/dummy/public/favicon.ico +0 -0
  32. data/test/honoka_test.rb +42 -3
  33. data/test/support/dummy_integration.rb +57 -0
  34. data/test/support/dummy_reporters.rb +61 -0
  35. data/test/test_helper.rb +49 -5
  36. metadata +143 -12
  37. data/test/dummy/app/views/pages/root.html.erb +0 -40
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  39. data/test/dummy/config/initializers/inflections.rb +0 -16
  40. data/test/dummy/config/initializers/mime_types.rb +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecbba12eff01fdcb043f82f21a62262b802360796bf115acbfc0f37693b416a6
4
- data.tar.gz: 87a900c09a05062a8d24874e996bdf3d32ff4c2bff2b7b012d342c9c3ad93508
3
+ metadata.gz: ec088fb004bd0b30777c8a7c4e9468fbe93af971ec3df66a9af4300ce744391d
4
+ data.tar.gz: cb0a966c97c2e864a5993f080b945b24a6d003f97d7a680e0ca346e089062da5
5
5
  SHA512:
6
- metadata.gz: ad2774b8ff33d31c79f173424a0b344a275dc5aa5ee9930f2d0ea23d389d8465aef38927ef30cec4a7553a58c8d48e87cd3aa0f9e3054bdeddc306170d6db2a5
7
- data.tar.gz: e9c9cd132492e5d08f578054c32b8b3dca007f7630270e0e275e0a788eac24e4f40c8acbb0ff8baba023353d1e478ead6d8c69654246bf6c4f8da1e54771fc15
6
+ metadata.gz: f02c0130533107ca9b4a2ab1e27a77ca1c08931c00e97a674097939cd8920bf9e44b47a9fe3e90e6284d35e80ba161438372d5b8dcd8cc0b2aba01451c0b448d
7
+ data.tar.gz: 675f11d8c8f7b8f2e72c656f73cfa9bc488878abfc03cb30aa97c056454a3e3ca4c4c9abb04ca1b9854e7f5278495ec6e40b6a98d072425000e47dd3acd4eae1
data/README.md CHANGED
@@ -1,17 +1,16 @@
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 on rails.
3
+ [engilish](README.md)/[japanese](README_ja.md)
5
4
 
6
- [honoka](https://github.com/windyakin/Honoka) は日本語も美しく表示できる Bootstrap テーマです。
7
- bootstrap-honoka-rails honoka rails 上に簡単にインストールできます。
5
+ [Honoka](https://github.com/windyakin/Honoka) is a Bootstrap theme that can display Japanese beautifully.
6
+ 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.
8
7
 
9
8
  ## Installation
10
9
 
11
10
  Add this line to your application's Gemfile:
12
11
 
13
12
  ```ruby
14
- gem 'bootstrap-honoka-rails' , '~>4.3.1'
13
+ gem 'bootstrap-honoka-rails' , '~>4.3.1' # or '~> 3.3.7'
15
14
  ```
16
15
 
17
16
  And then execute:
@@ -22,32 +21,119 @@ Or install it yourself as:
22
21
 
23
22
  $ gem install bootstrap-honoka-rails
24
23
 
25
- [日本語訳]
26
- gemfile にこれ書いておけばいいと思います。
24
+ ## Usage
27
25
 
28
- ```ruby
29
- gem 'bootstrap-honoka-rails' , '~>4.3.1'
26
+ Add to application.css `*= require _honoka` <br>
27
+ For bootstrap ver3 you need `*= _bootstrap-sprockets`.
28
+
29
+ app/assets/stylesheets/application.css
30
+
31
+ ```css
32
+ /*
33
+ *= require _bootstrap-sprockets # Add line * v3 only
34
+ *= require _honoka # Add line
35
+ *= require_self
36
+ */
30
37
  ```
31
38
 
32
- ## Usage
39
+ and add to application.js <br>
33
40
 
34
- Add to application.css [ *= require _honoka ]
41
+ ```js
42
+ `//= require popper` // * bootstrap ver4 later
43
+ `//= require bootstrap-sprockets`
44
+ ```
35
45
 
36
- ```app/assets/stylesheets/application.css
37
- *= require _honoka # Add line
46
+ app/assets/javascripts/application.js
47
+
48
+ ```js
49
+ //= require jquery2
50
+ //= require rails-ujs
51
+ //= require activestorage
52
+ //= require popper # add line * v4 later
53
+ //= require bootstrap-sprockets # add line
54
+ //= require turbolinks
55
+ //= require_tree .
56
+ ```
57
+
58
+ If you loaded `bootstrap-sprockets`, you do not need to load `bootstrap.min` .<br>
59
+ Because Dropdown features may not work properly.<br>
60
+ Please check [here](https://github.com/twbs/bootstrap-sass/issues/714) for more details.<br>
61
+ (It has been tested on production environment. The sample app is in the 'test/dummy' directory. )
62
+
63
+
64
+ ---
65
+
66
+ Certain [versions](VERSIONS.md) also support Nico , Umi and Rin.
67
+
68
+ app/assets/stylesheets/application.css
69
+
70
+ ```css
71
+ *= require _umi # Add line
38
72
  *= require_self
39
73
  ```
40
74
 
41
- [日本語訳]
42
- とりあえずインストール後、上記を application.css に追加すれば OK です。
75
+ or
43
76
 
44
- ## Notice
77
+ ```css
78
+ *= require _nico # Add line
79
+ *= require_self
80
+ ```
45
81
 
46
- bootstrap-honoka-rails uses bootstrap internally.
82
+ or
47
83
 
48
- [日本語訳]
49
- bootstrap-honoka-rails bootstrap を内部的に使っています。
84
+ ```css
85
+ *= require _rin # Add line
86
+ *= require_self
87
+ ```
88
+
89
+ Please check [VERSIONS.md](VERSIONS.md) for Honoka Nico Umi Rin compatible Ver.
90
+
91
+ ## Notice
92
+
93
+ bootstrap-honoka-rails uses bootstrap or bootstrap-sass internally.
50
94
 
51
95
  ## License
52
96
 
53
97
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
98
+
99
+ ## Supported bootstrap themes
100
+
101
+ #### [Honoka](http://honokak.osaka/)
102
+
103
+ Source URL ... [https://github.com/windyakin/Honoka](https://github.com/windyakin/Honoka)
104
+
105
+ > The MIT License (MIT)
106
+ >
107
+ > Copyright (c) 2015 windyakin
108
+
109
+ [License View All](https://github.com/windyakin/Honoka/blob/master/LICENSE)
110
+
111
+ #### [Umi](https://ysakasin.github.io/Umi/)
112
+
113
+ Source URL ... [https://github.com/ysakasin/Umi](https://github.com/ysakasin/Umi)
114
+
115
+ > The MIT License (MIT)
116
+ >
117
+ > Copyright (c) 2015 ysakasin
118
+
119
+ [License View All](https://github.com/ysakasin/Umi/blob/master/LICENSE)
120
+
121
+ #### [Nico](https://nico.kubosho.com/)
122
+
123
+ Source URL ... [https://github.com/kubosho/Nico](https://github.com/kubosho/Nico)
124
+
125
+ > The MIT License (MIT)
126
+ >
127
+ > Copyright (c) 2015 windyakin, kubosho
128
+
129
+ [License View All](https://github.com/kubosho/Nico/blob/master/LICENSE)
130
+
131
+ #### [Rin](https://rinhoshizo.la/)
132
+
133
+ Source URL ... [https://github.com/raryosu/Rin](https://github.com/raryosu/Rin)
134
+
135
+ > The MIT License (MIT)
136
+ >
137
+ > Copyright (c) 2016 Hagihara Ryosuke
138
+
139
+ [License View All](https://github.com/raryosu/Rin/blob/master/LICENSE)
@@ -0,0 +1,140 @@
1
+ # Bootstrap-Honoka-Rails
2
+
3
+ [engilish](README.md)/[japanese](README_ja.md)
4
+
5
+ [Honoka](https://github.com/windyakin/Honoka) は日本語も美しく表示できる Bootstrap テーマです。
6
+ 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 上に簡単にインストールできます。
7
+
8
+ ## Installation
9
+
10
+ gemfile に下記記載します。
11
+
12
+ ```ruby
13
+ gem 'bootstrap-honoka-rails' , '~>4.3.1' # or '~> 3.3.7'
14
+ ```
15
+
16
+ そして下記コマンドでインストール :
17
+
18
+ $ bundle
19
+
20
+ 又は gemに直接インストールします:
21
+
22
+ $ gem install bootstrap-honoka-rails
23
+
24
+ ## Usage
25
+
26
+ application.cssに `*= require _honoka` を追加します。<br>
27
+ bootstrap3の場合は `*= _bootstrap-sprockets`. も追加します。
28
+
29
+ app/assets/stylesheets/application.css
30
+
31
+ ```css
32
+ /*
33
+ *= require _bootstrap-sprockets # 追加行 ※ v3 のみ
34
+ *= require _honoka # 追加行
35
+ *= require_self
36
+ */
37
+ ```
38
+
39
+
40
+ 次にapplication.jsに下記を追加しましょう。 <br>
41
+
42
+ ```js
43
+ `//= require popper` // * bootstrap ver4 以降
44
+ `//= require bootstrap-sprockets`
45
+ ```
46
+
47
+ app/assets/javascripts/application.js
48
+
49
+ ```js
50
+ //= require jquery2
51
+ //= require rails-ujs
52
+ //= require activestorage
53
+ //= require popper # add line ※ ver4 以降
54
+ //= require bootstrap-sprockets # 追加行
55
+ //= require turbolinks
56
+ //= require_tree .
57
+ ```
58
+
59
+ インストール後、上記を application.css と application.js に追加すれば OK です。<br>
60
+ 注意点として `bootstrap-sprockets` を読み込むと思いますが、その場合 `bootstrap.min` は読み込む必要がありません。<br>
61
+ 何故なら Dropdown が正しく動作しない可能性がある為です。 <br>
62
+ 詳細は[こちら](https://github.com/twbs/bootstrap-sass/issues/714)をご確認ください。<br>
63
+ ※production 環境で動作することを確認済み。 サンプルアプリは 'test/dummy' ディレクトリ内 にあります。
64
+
65
+ ---
66
+
67
+ [特定のバージョン](VERSIONS.md)では "Nico"と "Umi" と "Rin" も対応しています。
68
+
69
+ app/assets/stylesheets/application.css
70
+
71
+ ```css
72
+ *= require _umi # 追加行
73
+ *= require_self
74
+ ```
75
+
76
+ or
77
+
78
+ ```css
79
+ *= require _nico # 追加行
80
+ *= require_self
81
+ ```
82
+
83
+ or
84
+
85
+ ```css
86
+ *= require _rin # 追加行
87
+ *= require_self
88
+ ```
89
+
90
+ Honoka Nico Umi Rin の対応 Ver は[VERSIONS.md](VERSIONS.md)をご確認ください。
91
+
92
+ ## Notice
93
+
94
+ bootstrap-honoka-rails は bootstrap 又は bootstrap-sass を内部的に使っています。
95
+
96
+ ## License
97
+
98
+ 本gemは[MITライセンス]((https://opensource.org/licenses/MIT))の条件の下でオープンソースとして利用可能です。
99
+
100
+ ## Supported bootstrap themes
101
+
102
+ #### [Honoka](http://honokak.osaka/)
103
+
104
+ Source URL ... [https://github.com/windyakin/Honoka](https://github.com/windyakin/Honoka)
105
+
106
+ > The MIT License (MIT)
107
+ >
108
+ > Copyright (c) 2015 windyakin
109
+
110
+ [License View All](https://github.com/windyakin/Honoka/blob/master/LICENSE)
111
+
112
+ #### [Umi](https://ysakasin.github.io/Umi/)
113
+
114
+ Source URL ... [https://github.com/ysakasin/Umi](https://github.com/ysakasin/Umi)
115
+
116
+ > The MIT License (MIT)
117
+ >
118
+ > Copyright (c) 2015 ysakasin
119
+
120
+ [License View All](https://github.com/ysakasin/Umi/blob/master/LICENSE)
121
+
122
+ #### [Nico](https://nico.kubosho.com/)
123
+
124
+ Source URL ... [https://github.com/kubosho/Nico](https://github.com/kubosho/Nico)
125
+
126
+ > The MIT License (MIT)
127
+ >
128
+ > Copyright (c) 2015 windyakin, kubosho
129
+
130
+ [License View All](https://github.com/kubosho/Nico/blob/master/LICENSE)
131
+
132
+ #### [Rin](https://rinhoshizo.la/)
133
+
134
+ Source URL ... [https://github.com/raryosu/Rin](https://github.com/raryosu/Rin)
135
+
136
+ > The MIT License (MIT)
137
+ >
138
+ > Copyright (c) 2016 Hagihara Ryosuke
139
+
140
+ [License View All](https://github.com/raryosu/Rin/blob/master/LICENSE)
data/Rakefile CHANGED
@@ -1,33 +1,57 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
4
+ # bundlerでインストールしたgemをrequireで読み取り可能とする。
2
5
  require 'bundler/setup'
3
6
  rescue LoadError
4
7
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
8
  end
6
9
 
7
- require 'rdoc/task'
10
+ # requires
11
+ require 'bundler/gem_tasks' # build, clobber, release などのコマンドを使用可能とする。
12
+ require 'rdoc/task' # RDoc::Taskクラスのrequireを行う。
13
+ require 'rake/testtask' # Rake::TestTaskクラスのrequireを行う。
14
+ require 'rake/file_utils_ext' # rake用file_utilsの拡張
8
15
 
16
+ # rdoc, clobber_rdoc コマンド定義
9
17
  RDoc::Task.new(:rdoc) do |rdoc|
10
18
  rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'Bootstrap::Honoka4'
19
+ rdoc.title = 'Bootstrap::Honoka::Rails'
12
20
  rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.md')
14
- rdoc.rdoc_files.include('lib/**/*.rb')
21
+ rdoc.rdoc_files.include('README.md', 'VERSIONS.md', 'lib/**/*.rb')
15
22
  end
16
23
 
17
- APP_RAKEFILE = File.expand_path('test/dummy/Rakefile', __dir__)
18
- load 'rails/tasks/engine.rake'
19
-
20
- load 'rails/tasks/statistics.rake'
21
-
22
- require 'bundler/gem_tasks'
23
-
24
- require 'rake/testtask'
25
-
24
+ # test コマンド定義
26
25
  Rake::TestTask.new(:test) do |t|
27
- t.libs << 'test'
28
- t.pattern = 'test/**/*_test.rb'
29
- t.verbose = false
30
- t.warning = false
26
+ t.libs << 'test' # require pathの追加
27
+ t.pattern = 'test/**/*_test.rb' # 実行するテストコマンド
28
+ t.verbose = false # 詳細なテキストを非表示化
29
+ t.warning = false # 警告を非表示
30
+ end
31
+
32
+ # test clobberコマンド定義
33
+ desc 'Remove files generated during test'
34
+ task :clobber_test do
35
+ # 下記 rm_rf を使用するとbegin rescueで囲む必要もないが、
36
+ # あえて rm_r を使用している理由は下記の通り。
37
+ #
38
+ # - 本処理は主にシステムのデフォルトで用意されているrdocに倣っている。
39
+ # ※rdocの削除処理に対して [secure属性] だけは追加している。
40
+ # - rdocの削除である `rake clobber_rdoc` コマンドを使用すると
41
+ # ::Rake::Fileutils::rm_r が使用されている。
42
+ # - その rm_r コマンドでは `rm_r @rdoc_dir rescue nil` というように
43
+ # no such file or directoryエラーが発生する事も考慮して、
44
+ # rescueを行う処理となっていた。
45
+ #
46
+ # 以上の事から、rm_rf ではなく rm_r を使用している。
47
+ begin
48
+ ::Rake::FileUtilsExt.rm_r('tmp', secure: true)
49
+ rescue StandardError
50
+ end
31
51
  end
32
52
 
53
+ # clobberコマンドで clobber_testが動作するようにする。
54
+ task clobber: [:clobber_test]
55
+
56
+ # test コマンドをrakeのデフォルト動作とする。
33
57
  task default: :test
@@ -0,0 +1,14 @@
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 | O(*1) | X | X |
9
+ | 4.0.0 | O | O | O | X |
10
+ | 3.3.7 | O | O | O | O |
11
+
12
+ #### notice
13
+ *1 The nico of version 4.3.1 is actually using [nico theme 4.3.2](https://github.com/kubosho/Nico/releases/tag/v4.3.2).
14
+
@@ -0,0 +1,8 @@
1
+ @charset "UTF-8";
2
+
3
+ // [!] Please do *NOT* remove the banner space at below this
4
+ // This will be automatically replaced by gulp build tasks
5
+
6
+ /*! [<<original banner space>>] */
7
+
8
+ @import "nico/honoka";
@@ -0,0 +1,55 @@
1
+ @charset "UTF-8";
2
+
3
+ // Core functions
4
+ @import 'bootstrap/functions';
5
+
6
+ // Honoka variables
7
+ @import './variables';
8
+ // Nico variables
9
+ @import './variables_nico';
10
+
11
+ @import 'bootstrap/variables';
12
+ @import 'bootstrap/mixins';
13
+ @import 'bootstrap/root';
14
+
15
+ // Core CSS
16
+ @import 'bootstrap/reboot';
17
+ @import 'bootstrap/type';
18
+ @import 'bootstrap/images';
19
+ @import 'bootstrap/code';
20
+ @import 'bootstrap/grid';
21
+ @import 'bootstrap/tables';
22
+ @import 'bootstrap/forms';
23
+ @import 'bootstrap/buttons';
24
+
25
+ // Components
26
+ @import 'bootstrap/transitions';
27
+ @import 'bootstrap/dropdown';
28
+ @import 'bootstrap/button-group';
29
+ @import 'bootstrap/input-group';
30
+ @import 'bootstrap/custom-forms';
31
+ @import 'bootstrap/nav';
32
+ @import 'bootstrap/navbar';
33
+ @import 'bootstrap/card';
34
+ @import 'bootstrap/breadcrumb';
35
+ @import 'bootstrap/pagination';
36
+ @import 'bootstrap/badge';
37
+ @import 'bootstrap/jumbotron';
38
+ @import 'bootstrap/alert';
39
+ @import 'bootstrap/progress';
40
+ @import 'bootstrap/media';
41
+ @import 'bootstrap/list-group';
42
+ @import 'bootstrap/close';
43
+ @import 'bootstrap/toasts';
44
+ @import 'bootstrap/modal';
45
+ @import 'bootstrap/tooltip';
46
+ @import 'bootstrap/popover';
47
+ @import 'bootstrap/carousel';
48
+ @import 'bootstrap/spinners';
49
+ @import 'bootstrap/utilities';
50
+ @import 'bootstrap/print';
51
+
52
+ // Honoka original setting
53
+ @import './override';
54
+ // Nico original setting
55
+ @import './override_nico';