swiss_knife 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +53 -55
- data/README.rdoc +9 -0
- data/Rakefile +3 -24
- data/lib/swiss_knife/helpers.rb +23 -0
- data/lib/swiss_knife/version.rb +1 -1
- data/locales/pt-BR.yml +4 -0
- data/spec/helpers/helpers_spec.rb +23 -0
- data/spec/spec_helper.rb +4 -7
- data/spec/support/public/javascripts/.gitkeep +0 -0
- data/spec/support/public/stylesheets/.gitkeep +0 -0
- data/spec/support/tmp/.gitkeep +0 -0
- data/swiss_knife.gemspec +16 -101
- metadata +32 -10
- data/locales/pt.yml +0 -8
data/.gitignore
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -2,48 +2,48 @@ GEM
|
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
4
|
abstract (1.0.0)
|
5
|
-
actionmailer (3.0.
|
6
|
-
actionpack (= 3.0.
|
7
|
-
mail (~> 2.2.
|
8
|
-
actionpack (3.0.
|
9
|
-
activemodel (= 3.0.
|
10
|
-
activesupport (= 3.0.
|
5
|
+
actionmailer (3.0.3)
|
6
|
+
actionpack (= 3.0.3)
|
7
|
+
mail (~> 2.2.9)
|
8
|
+
actionpack (3.0.3)
|
9
|
+
activemodel (= 3.0.3)
|
10
|
+
activesupport (= 3.0.3)
|
11
11
|
builder (~> 2.1.2)
|
12
12
|
erubis (~> 2.6.6)
|
13
|
-
i18n (~> 0.4
|
13
|
+
i18n (~> 0.4)
|
14
14
|
rack (~> 1.2.1)
|
15
|
-
rack-mount (~> 0.6.
|
16
|
-
rack-test (~> 0.5.
|
15
|
+
rack-mount (~> 0.6.13)
|
16
|
+
rack-test (~> 0.5.6)
|
17
17
|
tzinfo (~> 0.3.23)
|
18
|
-
activemodel (3.0.
|
19
|
-
activesupport (= 3.0.
|
18
|
+
activemodel (3.0.3)
|
19
|
+
activesupport (= 3.0.3)
|
20
20
|
builder (~> 2.1.2)
|
21
|
-
i18n (~> 0.4
|
22
|
-
activerecord (3.0.
|
23
|
-
activemodel (= 3.0.
|
24
|
-
activesupport (= 3.0.
|
25
|
-
arel (~>
|
21
|
+
i18n (~> 0.4)
|
22
|
+
activerecord (3.0.3)
|
23
|
+
activemodel (= 3.0.3)
|
24
|
+
activesupport (= 3.0.3)
|
25
|
+
arel (~> 2.0.2)
|
26
26
|
tzinfo (~> 0.3.23)
|
27
|
-
activeresource (3.0.
|
28
|
-
activemodel (= 3.0.
|
29
|
-
activesupport (= 3.0.
|
30
|
-
activesupport (3.0.
|
27
|
+
activeresource (3.0.3)
|
28
|
+
activemodel (= 3.0.3)
|
29
|
+
activesupport (= 3.0.3)
|
30
|
+
activesupport (3.0.3)
|
31
31
|
archive-tar-minitar (0.5.2)
|
32
|
-
arel (
|
33
|
-
activesupport (~> 3.0.0)
|
32
|
+
arel (2.0.4)
|
34
33
|
builder (2.1.2)
|
35
|
-
columnize (0.3.
|
34
|
+
columnize (0.3.2)
|
36
35
|
diff-lcs (1.1.2)
|
37
36
|
erubis (2.6.6)
|
38
37
|
abstract (>= 1.0.0)
|
39
38
|
fakeweb (1.3.0)
|
40
|
-
i18n (0.4.
|
39
|
+
i18n (0.4.2)
|
41
40
|
linecache19 (0.5.11)
|
42
41
|
ruby_core_source (>= 0.1.4)
|
43
|
-
mail (2.2.
|
42
|
+
mail (2.2.10)
|
44
43
|
activesupport (>= 2.3.6)
|
45
|
-
|
46
|
-
|
44
|
+
i18n (~> 0.4.1)
|
45
|
+
mime-types (~> 1.16)
|
46
|
+
treetop (~> 1.4.8)
|
47
47
|
mime-types (1.16)
|
48
48
|
nokogiri (1.4.3.1)
|
49
49
|
polyglot (0.3.1)
|
@@ -52,32 +52,30 @@ GEM
|
|
52
52
|
rack (>= 1.0.0)
|
53
53
|
rack-test (0.5.6)
|
54
54
|
rack (>= 1.0)
|
55
|
-
rails (3.0.
|
56
|
-
actionmailer (= 3.0.
|
57
|
-
actionpack (= 3.0.
|
58
|
-
activerecord (= 3.0.
|
59
|
-
activeresource (= 3.0.
|
60
|
-
activesupport (= 3.0.
|
61
|
-
bundler (~> 1.0
|
62
|
-
railties (= 3.0.
|
63
|
-
railties (3.0.
|
64
|
-
actionpack (= 3.0.
|
65
|
-
activesupport (= 3.0.
|
66
|
-
rake (>= 0.8.
|
67
|
-
thor (~> 0.14.
|
55
|
+
rails (3.0.3)
|
56
|
+
actionmailer (= 3.0.3)
|
57
|
+
actionpack (= 3.0.3)
|
58
|
+
activerecord (= 3.0.3)
|
59
|
+
activeresource (= 3.0.3)
|
60
|
+
activesupport (= 3.0.3)
|
61
|
+
bundler (~> 1.0)
|
62
|
+
railties (= 3.0.3)
|
63
|
+
railties (3.0.3)
|
64
|
+
actionpack (= 3.0.3)
|
65
|
+
activesupport (= 3.0.3)
|
66
|
+
rake (>= 0.8.7)
|
67
|
+
thor (~> 0.14.4)
|
68
68
|
rake (0.8.7)
|
69
|
-
rspec (2.
|
70
|
-
rspec-core (
|
71
|
-
rspec-expectations (
|
72
|
-
rspec-mocks (
|
73
|
-
rspec-core (2.
|
74
|
-
rspec-expectations (2.
|
75
|
-
diff-lcs (
|
76
|
-
rspec-mocks (2.
|
77
|
-
|
78
|
-
rspec
|
79
|
-
rspec-rails (2.0.0)
|
80
|
-
rspec (= 2.0.0)
|
69
|
+
rspec (2.1.0)
|
70
|
+
rspec-core (~> 2.1.0)
|
71
|
+
rspec-expectations (~> 2.1.0)
|
72
|
+
rspec-mocks (~> 2.1.0)
|
73
|
+
rspec-core (2.1.0)
|
74
|
+
rspec-expectations (2.1.0)
|
75
|
+
diff-lcs (~> 1.1.2)
|
76
|
+
rspec-mocks (2.1.0)
|
77
|
+
rspec-rails (2.1.0)
|
78
|
+
rspec (~> 2.1.0)
|
81
79
|
ruby-debug-base19 (0.11.24)
|
82
80
|
columnize (>= 0.3.1)
|
83
81
|
linecache19 (>= 0.5.11)
|
@@ -88,7 +86,7 @@ GEM
|
|
88
86
|
ruby-debug-base19 (>= 0.11.19)
|
89
87
|
ruby_core_source (0.1.4)
|
90
88
|
archive-tar-minitar (>= 0.5.2)
|
91
|
-
thor (0.14.
|
89
|
+
thor (0.14.6)
|
92
90
|
treetop (1.4.8)
|
93
91
|
polyglot (>= 0.3.1)
|
94
92
|
tzinfo (0.3.23)
|
@@ -99,6 +97,6 @@ PLATFORMS
|
|
99
97
|
DEPENDENCIES
|
100
98
|
fakeweb
|
101
99
|
nokogiri
|
102
|
-
rails (= 3.0.
|
103
|
-
rspec-rails (= 2.
|
100
|
+
rails (= 3.0.3)
|
101
|
+
rspec-rails (= 2.1.0)
|
104
102
|
ruby-debug19
|
data/README.rdoc
CHANGED
@@ -142,6 +142,15 @@ The are some action aliases:
|
|
142
142
|
submit_or_cancel root_path :cancel => "Go back"
|
143
143
|
submit_or_cancel root_path :cancel => :"some.scope.for.go_back"
|
144
144
|
|
145
|
+
=== jquery_script_tag
|
146
|
+
|
147
|
+
Load jQuery from Google's CDN, with fallback to a local version.
|
148
|
+
|
149
|
+
jquery_script_tag #=> Default to 1.4.4
|
150
|
+
jquery_script_tag("1.4.2")
|
151
|
+
|
152
|
+
The local version should be placed at <tt>public/javascripts/jquery-%{version}.min.js</tt>.
|
153
|
+
|
145
154
|
=== RSpec
|
146
155
|
|
147
156
|
Swiss Knife includes some RSpec matchers. To use them, add the following like to your <tt>spec_helper.rb</tt> file:
|
data/Rakefile
CHANGED
@@ -1,26 +1,5 @@
|
|
1
|
-
require "
|
2
|
-
|
1
|
+
require "bundler"
|
2
|
+
Bundler::GemHelper.install_tasks
|
3
3
|
|
4
|
+
require "rspec/core/rake_task"
|
4
5
|
RSpec::Core::RakeTask.new
|
5
|
-
|
6
|
-
begin
|
7
|
-
require "jeweler"
|
8
|
-
|
9
|
-
JEWEL = Jeweler::Tasks.new do |gem|
|
10
|
-
gem.name = "swiss_knife"
|
11
|
-
gem.version = SwissKnife::Version::STRING
|
12
|
-
gem.summary = "Several helpers for Rails 3"
|
13
|
-
gem.description = "Several helpers for Rails 3"
|
14
|
-
gem.authors = ["Nando Vieira"]
|
15
|
-
gem.email = "fnando.vieira@gmail.com"
|
16
|
-
gem.homepage = "http://github.com/fnando/swiss_knife"
|
17
|
-
gem.has_rdoc = true
|
18
|
-
gem.add_dependency "rails", ">= 3.0.0"
|
19
|
-
gem.add_development_dependency "rspec", ">= 2.0.0"
|
20
|
-
gem.files = FileList["{Gemfile,Gemfile.lock,Rakefile,README.*,swiss_knife.gemspec}", "{spec,lib,locales}/**/*"]
|
21
|
-
end
|
22
|
-
|
23
|
-
Jeweler::GemcutterTasks.new
|
24
|
-
rescue LoadError => e
|
25
|
-
puts "You don't Jeweler installed, so you won't be able to build gems."
|
26
|
-
end
|
data/lib/swiss_knife/helpers.rb
CHANGED
@@ -193,5 +193,28 @@ module SwissKnife
|
|
193
193
|
html << link_to(t(options[:cancel], :default => options[:cancel]), url, :class => "cancel")
|
194
194
|
end.html_safe
|
195
195
|
end
|
196
|
+
|
197
|
+
# Load jQuery from Google's CDN and if the world is collapsing and Google is down,
|
198
|
+
# load it locally.
|
199
|
+
#
|
200
|
+
# jquery_script_tag #=> Default to 1.4.4
|
201
|
+
# jquery_script_tag("1.4.2")
|
202
|
+
#
|
203
|
+
# The local version should be placed at <tt>public/javascripts/jquery-%{version}.min.js</tt>.
|
204
|
+
#
|
205
|
+
def jquery_script_tag(version = "1.4.4")
|
206
|
+
local_path = compute_public_path("jquery-#{version}.min.js", "javascripts")
|
207
|
+
remote_path = "#{request.protocol}ajax.googleapis.com/ajax/libs/jquery/#{version}/jquery.min.js"
|
208
|
+
html = <<-HTML
|
209
|
+
<script type="text/javascript" src="#{remote_path}"></script>
|
210
|
+
<script type="text/javascript">
|
211
|
+
if (typeof jQuery === "undefined") {
|
212
|
+
document.write(unescape("%3Cscript src='#{local_path}' type='text/javascript'%3E%3C/script%3E"));
|
213
|
+
};
|
214
|
+
</script>
|
215
|
+
HTML
|
216
|
+
|
217
|
+
html.html_safe
|
218
|
+
end
|
196
219
|
end
|
197
220
|
end
|
data/lib/swiss_knife/version.rb
CHANGED
data/locales/pt-BR.yml
ADDED
@@ -342,4 +342,27 @@ describe SwissKnife::Helpers do
|
|
342
342
|
html.should have_tag("input[type=submit][value=Send]")
|
343
343
|
end
|
344
344
|
end
|
345
|
+
|
346
|
+
describe "#jquery_script_tag" do
|
347
|
+
it "should default to version 1.4.4" do
|
348
|
+
html = helper.jquery_script_tag("1.4.4")
|
349
|
+
html.should have_tag("script[src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js']")
|
350
|
+
end
|
351
|
+
|
352
|
+
it "should use specified version" do
|
353
|
+
html = helper.jquery_script_tag("1.2.3")
|
354
|
+
html.should have_tag("script[src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.3/jquery.min.js']")
|
355
|
+
end
|
356
|
+
|
357
|
+
it "should use https protocol" do
|
358
|
+
helper.request.stub :protocol => "https://"
|
359
|
+
html = helper.jquery_script_tag
|
360
|
+
html.should have_tag("script[src='https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js']")
|
361
|
+
end
|
362
|
+
|
363
|
+
it "should set fallback path" do
|
364
|
+
html = helper.jquery_script_tag
|
365
|
+
html.should match(%r[src='http://example.com/javascripts/jquery-1.4.4.min.js'])
|
366
|
+
end
|
367
|
+
end
|
345
368
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
ENV["RAILS_ENV"] = "test"
|
2
2
|
require "rails"
|
3
|
+
require "ostruct"
|
3
4
|
require "swiss_knife"
|
4
5
|
require File.dirname(__FILE__) + "/support/config/boot"
|
5
6
|
require "rspec/rails"
|
@@ -12,14 +13,10 @@ Dir[File.dirname(__FILE__) + "/support/rspec/**/*.rb"].each {|file| require file
|
|
12
13
|
|
13
14
|
# Restore default configuration
|
14
15
|
RSpec.configure do |config|
|
15
|
-
remove_file = proc do |file|
|
16
|
-
File.unlink(file)
|
17
|
-
end
|
18
|
-
|
19
16
|
remote_static_files = proc do
|
20
|
-
Dir[Rails.root.join("public/javascripts/*.js")].each(
|
21
|
-
Dir[Rails.root.join("public/stylesheets/*.css")].each(
|
22
|
-
Dir[File.dirname(__FILE__) + "/resources/**/*_packaged.**"].each(
|
17
|
+
Dir[Rails.root.join("public/javascripts/*.js")].each {|file| File.unlink(file)}
|
18
|
+
Dir[Rails.root.join("public/stylesheets/*.css")].each {|file| File.unlink(file)}
|
19
|
+
Dir[File.dirname(__FILE__) + "/resources/**/*_packaged.**"].each {|file| File.unlink(file)}
|
23
20
|
end
|
24
21
|
|
25
22
|
config.before(&remote_static_files)
|
File without changes
|
File without changes
|
File without changes
|
data/swiss_knife.gemspec
CHANGED
@@ -1,108 +1,23 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "swiss_knife/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
6
|
+
s.name = "swiss_knife"
|
7
|
+
s.version = SwissKnife::Version::STRING
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Nando Vieira"]
|
10
|
+
s.email = ["fnando.vieira@gmail.com"]
|
11
|
+
s.homepage = "http://rubygems.org/gems/swiss_knife"
|
12
|
+
s.summary = "Several helpers for Rails 3"
|
13
|
+
s.description = s.summary
|
14
|
+
s.has_rdoc = true
|
9
15
|
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
s.description = %q{Several helpers for Rails 3}
|
14
|
-
s.email = %q{fnando.vieira@gmail.com}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"README.rdoc"
|
17
|
-
]
|
18
|
-
s.files = [
|
19
|
-
"Gemfile",
|
20
|
-
"Gemfile.lock",
|
21
|
-
"README.rdoc",
|
22
|
-
"Rakefile",
|
23
|
-
"lib/swiss_knife.rb",
|
24
|
-
"lib/swiss_knife/action_controller.rb",
|
25
|
-
"lib/swiss_knife/assets.rb",
|
26
|
-
"lib/swiss_knife/dispatcher_js.rb",
|
27
|
-
"lib/swiss_knife/helpers.rb",
|
28
|
-
"lib/swiss_knife/i18n_js.rb",
|
29
|
-
"lib/swiss_knife/jquery.rb",
|
30
|
-
"lib/swiss_knife/jquery_ujs.rb",
|
31
|
-
"lib/swiss_knife/jsmin.rb",
|
32
|
-
"lib/swiss_knife/modernizr.rb",
|
33
|
-
"lib/swiss_knife/railtie.rb",
|
34
|
-
"lib/swiss_knife/rake_tasks.rb",
|
35
|
-
"lib/swiss_knife/rspec.rb",
|
36
|
-
"lib/swiss_knife/rspec/have_tag.rb",
|
37
|
-
"lib/swiss_knife/rspec/have_text.rb",
|
38
|
-
"lib/swiss_knife/support/remote_file.rb",
|
39
|
-
"lib/swiss_knife/version.rb",
|
40
|
-
"locales/en.yml",
|
41
|
-
"locales/pt.yml",
|
42
|
-
"spec/controllers/application_controller_spec.rb",
|
43
|
-
"spec/helpers/helpers_spec.rb",
|
44
|
-
"spec/resources/assets.yml",
|
45
|
-
"spec/resources/assets/javascripts/application.js",
|
46
|
-
"spec/resources/assets/javascripts/jquery.js",
|
47
|
-
"spec/resources/assets/javascripts/rails.js",
|
48
|
-
"spec/resources/assets/stylesheets/main.css",
|
49
|
-
"spec/resources/assets/stylesheets/reset.css",
|
50
|
-
"spec/resources/assets/stylesheets/shared.css",
|
51
|
-
"spec/resources/stylesheets/_shared.less",
|
52
|
-
"spec/resources/stylesheets/main.less",
|
53
|
-
"spec/resources/stylesheets/reset.css",
|
54
|
-
"spec/resources/stylesheets/ui/tab.css",
|
55
|
-
"spec/resources/stylesheets/ui/window.less",
|
56
|
-
"spec/spec_helper.rb",
|
57
|
-
"spec/support/app/controllers/application_controller.rb",
|
58
|
-
"spec/support/config/boot.rb",
|
59
|
-
"spec/support/config/locales/en.yml",
|
60
|
-
"spec/support/log/test.log",
|
61
|
-
"spec/support/rspec/remote_file_shared.rb",
|
62
|
-
"spec/swiss_knife/assets_spec.rb",
|
63
|
-
"spec/swiss_knife/dispatcher_js_spec.rb",
|
64
|
-
"spec/swiss_knife/i18n_js_spec.rb",
|
65
|
-
"spec/swiss_knife/jquery_spec.rb",
|
66
|
-
"spec/swiss_knife/jquery_ujs_spec.rb",
|
67
|
-
"spec/swiss_knife/modernizr_spec.rb",
|
68
|
-
"spec/swiss_knife/rspec/have_text_spec.rb",
|
69
|
-
"swiss_knife.gemspec"
|
70
|
-
]
|
71
|
-
s.homepage = %q{http://github.com/fnando/swiss_knife}
|
72
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
73
19
|
s.require_paths = ["lib"]
|
74
|
-
s.rubygems_version = %q{1.3.7}
|
75
|
-
s.summary = %q{Several helpers for Rails 3}
|
76
|
-
s.test_files = [
|
77
|
-
"spec/controllers/application_controller_spec.rb",
|
78
|
-
"spec/helpers/helpers_spec.rb",
|
79
|
-
"spec/spec_helper.rb",
|
80
|
-
"spec/support/app/controllers/application_controller.rb",
|
81
|
-
"spec/support/config/boot.rb",
|
82
|
-
"spec/support/rspec/remote_file_shared.rb",
|
83
|
-
"spec/swiss_knife/assets_spec.rb",
|
84
|
-
"spec/swiss_knife/dispatcher_js_spec.rb",
|
85
|
-
"spec/swiss_knife/i18n_js_spec.rb",
|
86
|
-
"spec/swiss_knife/jquery_spec.rb",
|
87
|
-
"spec/swiss_knife/jquery_ujs_spec.rb",
|
88
|
-
"spec/swiss_knife/modernizr_spec.rb",
|
89
|
-
"spec/swiss_knife/rspec/have_text_spec.rb"
|
90
|
-
]
|
91
20
|
|
92
|
-
|
93
|
-
|
94
|
-
s.specification_version = 3
|
95
|
-
|
96
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
97
|
-
s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
|
98
|
-
s.add_development_dependency(%q<rspec>, [">= 2.0.0"])
|
99
|
-
else
|
100
|
-
s.add_dependency(%q<rails>, [">= 3.0.0"])
|
101
|
-
s.add_dependency(%q<rspec>, [">= 2.0.0"])
|
102
|
-
end
|
103
|
-
else
|
104
|
-
s.add_dependency(%q<rails>, [">= 3.0.0"])
|
105
|
-
s.add_dependency(%q<rspec>, [">= 2.0.0"])
|
106
|
-
end
|
21
|
+
s.add_dependency "rails", ">= 3.0.0"
|
22
|
+
s.add_development_dependency "rspec", ">= 2.0.0"
|
107
23
|
end
|
108
|
-
|
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
|
+
- 4
|
9
|
+
version: 0.1.4
|
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-
|
17
|
+
date: 2010-11-27 00:00:00 -02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -48,14 +48,16 @@ dependencies:
|
|
48
48
|
type: :development
|
49
49
|
version_requirements: *id002
|
50
50
|
description: Several helpers for Rails 3
|
51
|
-
email:
|
51
|
+
email:
|
52
|
+
- fnando.vieira@gmail.com
|
52
53
|
executables: []
|
53
54
|
|
54
55
|
extensions: []
|
55
56
|
|
56
|
-
extra_rdoc_files:
|
57
|
-
|
57
|
+
extra_rdoc_files: []
|
58
|
+
|
58
59
|
files:
|
60
|
+
- .gitignore
|
59
61
|
- Gemfile
|
60
62
|
- Gemfile.lock
|
61
63
|
- README.rdoc
|
@@ -78,7 +80,7 @@ files:
|
|
78
80
|
- lib/swiss_knife/support/remote_file.rb
|
79
81
|
- lib/swiss_knife/version.rb
|
80
82
|
- locales/en.yml
|
81
|
-
- locales/pt.yml
|
83
|
+
- locales/pt-BR.yml
|
82
84
|
- spec/controllers/application_controller_spec.rb
|
83
85
|
- spec/helpers/helpers_spec.rb
|
84
86
|
- spec/resources/assets.yml
|
@@ -98,7 +100,10 @@ files:
|
|
98
100
|
- spec/support/config/boot.rb
|
99
101
|
- spec/support/config/locales/en.yml
|
100
102
|
- spec/support/log/test.log
|
103
|
+
- spec/support/public/javascripts/.gitkeep
|
104
|
+
- spec/support/public/stylesheets/.gitkeep
|
101
105
|
- spec/support/rspec/remote_file_shared.rb
|
106
|
+
- spec/support/tmp/.gitkeep
|
102
107
|
- spec/swiss_knife/assets_spec.rb
|
103
108
|
- spec/swiss_knife/dispatcher_js_spec.rb
|
104
109
|
- spec/swiss_knife/i18n_js_spec.rb
|
@@ -108,12 +113,12 @@ files:
|
|
108
113
|
- spec/swiss_knife/rspec/have_text_spec.rb
|
109
114
|
- swiss_knife.gemspec
|
110
115
|
has_rdoc: true
|
111
|
-
homepage: http://
|
116
|
+
homepage: http://rubygems.org/gems/swiss_knife
|
112
117
|
licenses: []
|
113
118
|
|
114
119
|
post_install_message:
|
115
|
-
rdoc_options:
|
116
|
-
|
120
|
+
rdoc_options: []
|
121
|
+
|
117
122
|
require_paths:
|
118
123
|
- lib
|
119
124
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -142,10 +147,27 @@ summary: Several helpers for Rails 3
|
|
142
147
|
test_files:
|
143
148
|
- spec/controllers/application_controller_spec.rb
|
144
149
|
- spec/helpers/helpers_spec.rb
|
150
|
+
- spec/resources/assets.yml
|
151
|
+
- spec/resources/assets/javascripts/application.js
|
152
|
+
- spec/resources/assets/javascripts/jquery.js
|
153
|
+
- spec/resources/assets/javascripts/rails.js
|
154
|
+
- spec/resources/assets/stylesheets/main.css
|
155
|
+
- spec/resources/assets/stylesheets/reset.css
|
156
|
+
- spec/resources/assets/stylesheets/shared.css
|
157
|
+
- spec/resources/stylesheets/_shared.less
|
158
|
+
- spec/resources/stylesheets/main.less
|
159
|
+
- spec/resources/stylesheets/reset.css
|
160
|
+
- spec/resources/stylesheets/ui/tab.css
|
161
|
+
- spec/resources/stylesheets/ui/window.less
|
145
162
|
- spec/spec_helper.rb
|
146
163
|
- spec/support/app/controllers/application_controller.rb
|
147
164
|
- spec/support/config/boot.rb
|
165
|
+
- spec/support/config/locales/en.yml
|
166
|
+
- spec/support/log/test.log
|
167
|
+
- spec/support/public/javascripts/.gitkeep
|
168
|
+
- spec/support/public/stylesheets/.gitkeep
|
148
169
|
- spec/support/rspec/remote_file_shared.rb
|
170
|
+
- spec/support/tmp/.gitkeep
|
149
171
|
- spec/swiss_knife/assets_spec.rb
|
150
172
|
- spec/swiss_knife/dispatcher_js_spec.rb
|
151
173
|
- spec/swiss_knife/i18n_js_spec.rb
|