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 CHANGED
@@ -1,4 +1,4 @@
1
- gem "rails", "3.0.0.beta2"
1
+ gem "rails", "3.0.0.beta3"
2
2
 
3
3
  group :test do
4
4
  gem "ruby-debug"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.4.rails3.beta2
1
+ 1.0.4.rails3.beta3
data/lib/smurf.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'smurf/javascript'
2
2
  require 'smurf/stylesheet'
3
+ require 'smurf/noop'
3
4
 
4
5
  module ActionView::Helpers::AssetTagHelper
5
6
  private
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.beta2"
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"]
@@ -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.cookie_secret = '731d6426b731d6426b731d6426b731d6426b731d6426b731d6426b731d6426b'
13
+ config.secret_token = "i own you." * 3
21
14
 
22
- # Configure sensitive parameters which will be filtered from the log file.
23
- config.filter_parameters << :password
15
+ config.root = File.expand_path(File.join(File.dirname(__FILE__), ".."))
24
16
  end
25
17
  end
@@ -4,6 +4,4 @@ Smurf::Application.configure do
4
4
 
5
5
  config.action_controller.consider_all_requests_local = true
6
6
  config.action_controller.perform_caching = true # THIS IS IMPORTANT FOR THE TESTS
7
-
8
- config.action_mailer.delivery_method = :test
9
7
  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
metadata CHANGED
@@ -7,8 +7,8 @@ version: !ruby/object:Gem::Version
7
7
  - 0
8
8
  - 4
9
9
  - rails3
10
- - beta2
11
- version: 1.0.4.rails3.beta2
10
+ - beta3
11
+ version: 1.0.4.rails3.beta3
12
12
  platform: ruby
13
13
  authors:
14
14
  - Justin 'Gus' Knowlden