smurf 1.0.4.rails3.beta2 → 1.0.4.rails3.beta3
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.
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/lib/smurf.rb +1 -0
- data/smurf.gemspec +1 -1
- data/test/integration_test.rb +3 -13
- data/test/rails/config/application.rb +2 -10
- data/test/rails/config/environments/test.rb +0 -2
- data/test/test_helper.rb +4 -4
- metadata +2 -2
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.4.rails3.
|
1
|
+
1.0.4.rails3.beta3
|
data/lib/smurf.rb
CHANGED
data/smurf.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{smurf}
|
8
|
-
s.version = "1.0.4.rails3.
|
8
|
+
s.version = "1.0.4.rails3.beta3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin 'Gus' Knowlden"]
|
data/test/integration_test.rb
CHANGED
@@ -7,17 +7,7 @@ context "link tags when caching on" do
|
|
7
7
|
stylesheet_link_tag('foo', 'bar', '/javascripts/projwcss/jscss', :cache => 'cache/actual-plus')
|
8
8
|
end
|
9
9
|
|
10
|
-
should_have_same_contents('javascripts/cache/expected.js', 'javascripts/cache/actual.js')
|
11
|
-
should_have_same_contents('stylesheets/cache/expected-basic.css', 'stylesheets/cache/actual-basic.css')
|
12
|
-
should_have_same_contents('stylesheets/cache/expected-plus.css', 'stylesheets/cache/actual-plus.css')
|
10
|
+
should_have_same_contents('/javascripts/cache/expected.js', '/javascripts/cache/actual.js')
|
11
|
+
should_have_same_contents('/stylesheets/cache/expected-basic.css', '/stylesheets/cache/actual-basic.css')
|
12
|
+
should_have_same_contents('/stylesheets/cache/expected-plus.css', '/stylesheets/cache/actual-plus.css')
|
13
13
|
end # link tags when caching on
|
14
|
-
|
15
|
-
# context "link tags when caching on" do
|
16
|
-
# setup do
|
17
|
-
# javascript_include_tag('testing', "cache" => 'cache/actual')
|
18
|
-
# stylesheet_link_tag('foo', 'bar', "cache" => 'cache/actual')
|
19
|
-
# end
|
20
|
-
#
|
21
|
-
# should_have_same_contents('javascripts/cache/expected.js', 'javascripts/cache/actual.js')
|
22
|
-
# should_have_same_contents('stylesheets/cache/expected.css', 'stylesheets/cache/actual.css')
|
23
|
-
# end # link tags when caching on
|
@@ -9,17 +9,9 @@ Bundler.require :default, Rails.env
|
|
9
9
|
|
10
10
|
module Smurf
|
11
11
|
class Application < Rails::Application
|
12
|
-
# Settings in config/environments/* take precedence over those specified here.
|
13
|
-
# Application configuration should go into files in config/initializers
|
14
|
-
# -- all .rb files in that directory are automatically loaded.
|
15
|
-
|
16
|
-
# Add additional load paths for your own custom dirs
|
17
|
-
# config.load_paths += %W( #{config.root}/... )
|
18
|
-
|
19
12
|
config.session_store :cookie_store, {:key => "_smurf_session"}
|
20
|
-
config.
|
13
|
+
config.secret_token = "i own you." * 3
|
21
14
|
|
22
|
-
|
23
|
-
config.filter_parameters << :password
|
15
|
+
config.root = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
24
16
|
end
|
25
17
|
end
|
data/test/test_helper.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
ENV["RAILS_ENV"] = "test"
|
2
2
|
require ::File.expand_path('../rails/config/environment', __FILE__)
|
3
3
|
|
4
|
-
Rails.public_path = Rails.root + "test" + "rails" + "public"
|
4
|
+
# Rails.public_path = Rails.root + "test" + "rails" + "public"
|
5
5
|
require 'riot'
|
6
6
|
require 'ostruct'
|
7
7
|
|
@@ -35,14 +35,14 @@ class Riot::Situation
|
|
35
35
|
def config
|
36
36
|
OpenStruct.new({
|
37
37
|
:assets_dir => Rails.public_path,
|
38
|
-
:javascripts_dir => Rails.public_path + "javascripts",
|
39
|
-
:stylesheets_dir => Rails.public_path + "stylesheets",
|
38
|
+
:javascripts_dir => Rails.public_path + "/javascripts",
|
39
|
+
:stylesheets_dir => Rails.public_path + "/stylesheets",
|
40
40
|
:perform_caching => true
|
41
41
|
})
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
45
|
at_exit do
|
46
|
-
artifacts = Dir.glob(File.join(AssetFile.base_path, '**', 'cache', 'actual
|
46
|
+
artifacts = Dir.glob(File.join(AssetFile.base_path, '**', 'cache', 'actual*.*'))
|
47
47
|
FileUtils.rm(artifacts)
|
48
48
|
end
|