shoestrap 1.1.0 → 1.1.1
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5aa2875d7d33e58917057444301c1a01e9ff0674
|
|
4
|
+
data.tar.gz: 7f24c9b25a5b49dd4c0c0aa4b40c5060cc11e84d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9d979439913bf8c99659d8b7aa0fc0a51bfe3b6aaf6ef1b10b9a68a9ad1ebb7fcc971b299eb487370cc002f9af105eab11c5206842356576a377b3e5a0e188e6
|
|
7
|
+
data.tar.gz: f80ac4517f85329668f0391fa45d208ce6863826d6db3c0eda9ff334f4352b6e0b7f0bf213e883395dcec8792c924f0645141ab6693dd660f1e9a844e1cb040d
|
data/CHANGELOG.md
CHANGED
|
@@ -50,8 +50,7 @@ describe 'application generated with shoestrap new <name> --kuhsaft true' do
|
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
it '
|
|
54
|
-
|
|
53
|
+
it 'makes the kuhsaft helpers available in the host app' do
|
|
54
|
+
expect(application_file('app/controllers/application_controller.rb')).to match("helper Kuhsaft::Engine.helpers")
|
|
55
55
|
end
|
|
56
|
-
|
|
57
56
|
end
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require 'rails/generators'
|
|
2
|
+
require_relative 'base_generator'
|
|
2
3
|
|
|
3
4
|
module Shoestrap
|
|
4
5
|
class KuhsaftGenerator < BaseGenerator
|
|
@@ -31,5 +32,10 @@ module Shoestrap
|
|
|
31
32
|
(I18n.available_locales - [:de, :en]).each {|l| generate "kuhsaft:translations:add #{l}" }
|
|
32
33
|
end
|
|
33
34
|
|
|
35
|
+
def add_kuhsaft_helper
|
|
36
|
+
inject_into_file 'app/controllers/application_controller.rb', :before => 'end' do
|
|
37
|
+
" helper Kuhsaft::Engine.helpers\n"
|
|
38
|
+
end
|
|
39
|
+
end
|
|
34
40
|
end
|
|
35
41
|
end
|
data/lib/shoestrap/version.rb
CHANGED