sinatra_more 0.3.24 → 0.3.25

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ begin
17
17
  gem.add_runtime_dependency "thor", ">= 0.11.8"
18
18
  gem.add_runtime_dependency "activesupport", ">= 2.2.2"
19
19
  gem.add_runtime_dependency "bundler"
20
- gem.add_development_dependency "haml", ">= 2.2.1"
20
+ gem.add_development_dependency "haml", ">= 2.2.14"
21
21
  gem.add_development_dependency "shoulda", ">= 2.10.2"
22
22
  gem.add_development_dependency "mocha", ">= 0.9.7"
23
23
  gem.add_development_dependency "rack-test", ">= 0.5.0"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.24
1
+ 0.3.25
@@ -1,18 +1,22 @@
1
1
  module SinatraMore
2
2
  module HamlRendererGen
3
-
4
- HASSLE = <<-HASSLE
5
- module HassleInitializer
6
- def self.registered(app)
7
- app.use Hassle
8
- end
9
- end
10
- HASSLE
11
-
3
+
4
+ SASS_INIT = (<<-SASS).gsub(/^ {4}/, '')
5
+ # Enables support for SASS template reloading for rack.
6
+ # See http://nex-3.com/posts/88-sass-supports-rack for more details.
7
+
8
+ module SassInitializer
9
+ def self.registered(app)
10
+ require 'sass/plugin/rack'
11
+ app.use Sass::Plugin::Rack
12
+ end
13
+ end
14
+ SASS
15
+
12
16
  def setup_renderer
13
- require_dependencies 'haml', 'hassle'
14
- create_file("config/initializers/hassle.rb", HASSLE)
17
+ require_dependencies 'haml'
18
+ create_file("config/initializers/sass.rb", SASS_INIT)
15
19
  empty_directory('public/stylesheets/sass')
16
20
  end
17
21
  end
18
- end
22
+ end
data/sinatra_more.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sinatra_more}
8
- s.version = "0.3.24"
8
+ s.version = "0.3.25"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nathan Esquenazi"]
12
- s.date = %q{2009-11-23}
12
+ s.date = %q{2009-11-25}
13
13
  s.default_executable = %q{sinatra_gen}
14
14
  s.description = %q{Expands sinatra with standard helpers and tools to allow for complex applications}
15
15
  s.email = %q{nesquena@gmail.com}
@@ -182,7 +182,7 @@ Gem::Specification.new do |s|
182
182
  s.add_runtime_dependency(%q<thor>, [">= 0.11.8"])
183
183
  s.add_runtime_dependency(%q<activesupport>, [">= 2.2.2"])
184
184
  s.add_runtime_dependency(%q<bundler>, [">= 0"])
185
- s.add_development_dependency(%q<haml>, [">= 2.2.1"])
185
+ s.add_development_dependency(%q<haml>, [">= 2.2.14"])
186
186
  s.add_development_dependency(%q<shoulda>, [">= 2.10.2"])
187
187
  s.add_development_dependency(%q<mocha>, [">= 0.9.7"])
188
188
  s.add_development_dependency(%q<rack-test>, [">= 0.5.0"])
@@ -193,7 +193,7 @@ Gem::Specification.new do |s|
193
193
  s.add_dependency(%q<thor>, [">= 0.11.8"])
194
194
  s.add_dependency(%q<activesupport>, [">= 2.2.2"])
195
195
  s.add_dependency(%q<bundler>, [">= 0"])
196
- s.add_dependency(%q<haml>, [">= 2.2.1"])
196
+ s.add_dependency(%q<haml>, [">= 2.2.14"])
197
197
  s.add_dependency(%q<shoulda>, [">= 2.10.2"])
198
198
  s.add_dependency(%q<mocha>, [">= 0.9.7"])
199
199
  s.add_dependency(%q<rack-test>, [">= 0.5.0"])
@@ -205,7 +205,7 @@ Gem::Specification.new do |s|
205
205
  s.add_dependency(%q<thor>, [">= 0.11.8"])
206
206
  s.add_dependency(%q<activesupport>, [">= 2.2.2"])
207
207
  s.add_dependency(%q<bundler>, [">= 0"])
208
- s.add_dependency(%q<haml>, [">= 2.2.1"])
208
+ s.add_dependency(%q<haml>, [">= 2.2.14"])
209
209
  s.add_dependency(%q<shoulda>, [">= 2.10.2"])
210
210
  s.add_dependency(%q<mocha>, [">= 0.9.7"])
211
211
  s.add_dependency(%q<rack-test>, [">= 0.5.0"])
@@ -124,8 +124,8 @@ class TestSkeletonGenerator < Test::Unit::TestCase
124
124
  buffer = silence_logger { SinatraMore::SkeletonGenerator.start(['sample_app', '/tmp', '--renderer=haml','--script=none']) }
125
125
  assert_match /Applying.*?haml.*?renderer/, buffer
126
126
  assert_match_in_file(/gem 'haml'/, '/tmp/sample_app/Gemfile')
127
- assert_match_in_file(/gem 'hassle'/, '/tmp/sample_app/Gemfile')
128
- assert_match_in_file(/HassleInitializer/, '/tmp/sample_app/config/initializers/hassle.rb')
127
+ assert_match_in_file(/SassInitializer/, '/tmp/sample_app/config/initializers/sass.rb')
128
+ assert_match_in_file(/app.use Sass::Plugin::Rack/, '/tmp/sample_app/config/initializers/sass.rb')
129
129
  end
130
130
  end
131
131
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra_more
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.24
4
+ version: 0.3.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Esquenazi
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-23 00:00:00 -08:00
12
+ date: 2009-11-25 00:00:00 -08:00
13
13
  default_executable: sinatra_gen
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -70,7 +70,7 @@ dependencies:
70
70
  requirements:
71
71
  - - ">="
72
72
  - !ruby/object:Gem::Version
73
- version: 2.2.1
73
+ version: 2.2.14
74
74
  version:
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: shoulda