swiss_knife 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/swiss_knife/helpers.rb +6 -5
- data/lib/swiss_knife/railtie.rb +6 -4
- data/lib/swiss_knife/version.rb +1 -1
- data/swiss_knife.gemspec +2 -2
- metadata +3 -3
data/lib/swiss_knife/helpers.rb
CHANGED
@@ -132,16 +132,17 @@ module SwissKnife
|
|
132
132
|
bundle = SwissKnife::Assets.config["javascripts"][name.to_s] rescue nil
|
133
133
|
|
134
134
|
if SwissKnife::Assets.merge? && bundle
|
135
|
-
html << javascript_include_tag("#{name}_packaged", options)
|
135
|
+
html << javascript_include_tag("#{name}_packaged".html_safe, options)
|
136
136
|
elsif bundle
|
137
137
|
bundle.each do |file|
|
138
|
-
html << javascript_include_tag(
|
138
|
+
html << javascript_include_tag(file.to_s.html_safe, options)
|
139
139
|
end
|
140
140
|
else
|
141
|
-
html << javascript_include_tag(
|
141
|
+
html << javascript_include_tag(name.to_s.html_safe, options)
|
142
142
|
end
|
143
143
|
end
|
144
|
-
|
144
|
+
|
145
|
+
html.html_safe
|
145
146
|
end
|
146
147
|
|
147
148
|
def stylesheet_includes(*args)
|
@@ -162,7 +163,7 @@ module SwissKnife
|
|
162
163
|
end
|
163
164
|
end
|
164
165
|
|
165
|
-
html
|
166
|
+
html.html_safe
|
166
167
|
end
|
167
168
|
|
168
169
|
def fieldset(legend, options = {}, &block)
|
data/lib/swiss_knife/railtie.rb
CHANGED
@@ -10,10 +10,12 @@ module SwissKnife
|
|
10
10
|
require "swiss_knife/rake_tasks"
|
11
11
|
end
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
config.after_initialize do
|
14
|
+
ActiveSupport.on_load(:action_controller) do
|
15
|
+
include SwissKnife::ActionController
|
16
|
+
helper SwissKnife::Helpers
|
17
|
+
helper_method :page_title
|
18
|
+
end
|
17
19
|
end
|
18
20
|
end
|
19
21
|
end
|
data/lib/swiss_knife/version.rb
CHANGED
data/swiss_knife.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{swiss_knife}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Nando Vieira"]
|
12
|
-
s.date = %q{2010-10-
|
12
|
+
s.date = %q{2010-10-12}
|
13
13
|
s.description = %q{Several helpers for Rails 3}
|
14
14
|
s.email = %q{fnando.vieira@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Nando Vieira
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-10-
|
17
|
+
date: 2010-10-12 00:00:00 -03:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|