shoestrap 1.1.0 → 1.1.1

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
2
  SHA1:
3
- metadata.gz: b5160f485c9d7e9e55efcb16dd0fb1d197fa9be3
4
- data.tar.gz: 57c03550346f52fa0794c28bd105b21c6b00c4d6
3
+ metadata.gz: 5aa2875d7d33e58917057444301c1a01e9ff0674
4
+ data.tar.gz: 7f24c9b25a5b49dd4c0c0aa4b40c5060cc11e84d
5
5
  SHA512:
6
- metadata.gz: c13e977d49958f335020cd0e5a37f5faf25e5e87ec8014bdc6f763c616ac0d2df9a610821b0ad300c840ba2d71b612263342af84802816223706e49127d9ea2d
7
- data.tar.gz: 90f4bc4bbc510478a72a7a8742a4f99e60638f0fe80e50ba4bc814806e519bf775cd6899867ec036ffda1162e154d824b67ebe01f24987a4018d26be7ebc3cb4
6
+ metadata.gz: 9d979439913bf8c99659d8b7aa0fc0a51bfe3b6aaf6ef1b10b9a68a9ad1ebb7fcc971b299eb487370cc002f9af105eab11c5206842356576a377b3e5a0e188e6
7
+ data.tar.gz: f80ac4517f85329668f0391fa45d208ce6863826d6db3c0eda9ff334f4352b6e0b7f0bf213e883395dcec8792c924f0645141ab6693dd660f1e9a844e1cb040d
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.1.1 - 2013-10-07
4
+
5
+ - Inject Kuhsaft Helper into ApplicationController so it is available in the host app
6
+
3
7
  ## 1.1.0 - 2013-10-07
4
8
 
5
9
  - add nicer method of defining attributes that are shown in index/edit views
@@ -50,8 +50,7 @@ describe 'application generated with shoestrap new <name> --kuhsaft true' do
50
50
  end
51
51
  end
52
52
 
53
- it 'sets up the base views for the cms backend' do
54
- pending 'which kind of base views do we want?'
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
@@ -1,3 +1,3 @@
1
1
  module Shoestrap
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoestrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felipe Kaufmann