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 +1 -1
- data/VERSION +1 -1
- data/generators/components/renderers/haml_renderer_gen.rb +16 -12
- data/sinatra_more.gemspec +5 -5
- data/test/generators/test_skeleton_generator.rb +2 -2
- metadata +3 -3
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.
|
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.
|
1
|
+
0.3.25
|
@@ -1,18 +1,22 @@
|
|
1
1
|
module SinatraMore
|
2
2
|
module HamlRendererGen
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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'
|
14
|
-
create_file("config/initializers/
|
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.
|
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-
|
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.
|
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.
|
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.
|
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(/
|
128
|
-
assert_match_in_file(/
|
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.
|
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-
|
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.
|
73
|
+
version: 2.2.14
|
74
74
|
version:
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: shoulda
|