middleman 0.14.1 → 0.99.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +14 -18
- data/VERSION +1 -1
- data/features/automatic_image_sizes.feature +7 -7
- data/features/cache_buster.feature +10 -10
- data/features/minify_css.feature +10 -10
- data/features/minify_javascript.feature +6 -6
- data/features/step_definitions/asset_host_steps.rb +1 -0
- data/features/step_definitions/middleman_steps.rb +1 -1
- data/lib/middleman.rb +1 -18
- data/lib/middleman/assets.rb +33 -0
- data/lib/middleman/base.rb +25 -66
- data/lib/middleman/builder.rb +8 -4
- data/lib/middleman/features.rb +39 -0
- data/lib/middleman/features/asset_host.rb +16 -19
- data/lib/middleman/features/automatic_image_sizes.rb +24 -24
- data/lib/middleman/{fastimage.rb → features/automatic_image_sizes/fastimage.rb} +0 -0
- data/lib/middleman/features/cache_buster.rb +31 -38
- data/lib/middleman/{helpers.rb → features/default_helpers.rb} +8 -11
- data/lib/middleman/features/livereload.rb +19 -0
- data/lib/middleman/features/minify_css.rb +9 -0
- data/lib/middleman/features/minify_javascript.rb +15 -17
- data/lib/middleman/features/minify_javascript/rack.rb +31 -0
- data/lib/middleman/features/relative_assets.rb +29 -40
- data/lib/middleman/features/slickmap.rb +69 -70
- data/lib/middleman/features/smush_pngs.rb +8 -6
- data/lib/middleman/features/ugly_haml.rb +7 -0
- data/lib/middleman/renderers.rb +26 -0
- data/lib/middleman/renderers/coffee.rb +28 -0
- data/lib/middleman/renderers/haml.rb +2 -25
- data/lib/middleman/renderers/sass.rb +40 -87
- data/lib/middleman/template/init.rbt +30 -7
- data/middleman.gemspec +58 -69
- data/spec/builder_spec.rb +10 -4
- data/spec/fixtures/sample/views/stylesheets/site_scss.css.scss +1 -0
- data/spec/fixtures/sample/views/stylesheets/test_less.css.less +5 -0
- metadata +125 -113
- data/lib/middleman/rack/minify_css.rb +0 -25
- data/lib/middleman/rack/minify_javascript.rb +0 -25
- data/lib/middleman/rack/sprockets.rb +0 -61
- data/lib/middleman/renderers/builder.rb +0 -23
- data/lib/middleman/renderers/erb.rb +0 -24
- data/lib/middleman/renderers/less.rb +0 -23
- data/spec/fixtures/sample/public/javascripts/to-be-included.js +0 -1
- data/spec/fixtures/sample/views/javascripts/empty-with-include.js +0 -1
@@ -1,9 +1,9 @@
|
|
1
|
-
|
1
|
+
class Middleman::Features::SmushPngs
|
2
|
+
def initialize(app)
|
3
|
+
require "middleman/builder"
|
2
4
|
|
3
|
-
|
4
|
-
|
5
|
-
alias_method :pre_smush_after_run, :after_run
|
6
|
-
def after_run
|
5
|
+
Middleman::Base.alias_method :pre_smush_after_run, :after_run
|
6
|
+
Middleman::Base.define_method :after_run do
|
7
7
|
pre_smush_after_run
|
8
8
|
smush_dir = File.join(Middleman::Base.build_dir, Middleman::Base.images_dir)
|
9
9
|
|
@@ -33,4 +33,6 @@ module Middleman
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
36
|
-
end
|
36
|
+
end
|
37
|
+
|
38
|
+
Middleman::Features.register :smush_pngs, Middleman::Features::SmushPngs
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Middleman
|
2
|
+
|
3
|
+
module Renderers
|
4
|
+
@@render_method_for_template_types = {}
|
5
|
+
|
6
|
+
def self.register(method_name, template_type)
|
7
|
+
@@render_method_for_template_types[template_type.to_s] = method_name
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.get_method(template_path)
|
11
|
+
template_type = Tilt[template_path].to_s
|
12
|
+
@@render_method_for_template_types[template_type]
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
# Types built into Sinatra
|
19
|
+
Middleman::Renderers.register(:less, Tilt::LessTemplate)
|
20
|
+
Middleman::Renderers.register(:haml, Tilt::HamlTemplate)
|
21
|
+
Middleman::Renderers.register(:builder, Tilt::BuilderTemplate)
|
22
|
+
Middleman::Renderers.register(:erb, Tilt::ERBTemplate)
|
23
|
+
|
24
|
+
%w(haml
|
25
|
+
sass
|
26
|
+
coffee).each { |renderer| require "middleman/renderers/#{renderer}" }
|
@@ -0,0 +1,28 @@
|
|
1
|
+
class Middleman::Base
|
2
|
+
def coffee(template, options={}, locals={})
|
3
|
+
options[:layout] = false
|
4
|
+
render :coffee, template, options, locals
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
unless defined? Tilt::CoffeeTemplate
|
9
|
+
# CoffeeScript info:
|
10
|
+
# http://jashkenas.github.com/coffee-script/
|
11
|
+
class Tilt::CoffeeTemplate < Tilt::Template
|
12
|
+
def initialize_engine
|
13
|
+
return if defined? ::CoffeeScript
|
14
|
+
require_template_library 'coffee-script'
|
15
|
+
end
|
16
|
+
|
17
|
+
def prepare
|
18
|
+
@output = nil
|
19
|
+
end
|
20
|
+
|
21
|
+
def evaluate(scope, locals, &block)
|
22
|
+
@output ||= ::CoffeeScript::compile(data, options)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
Tilt.register 'coffee', Tilt::CoffeeTemplate
|
26
|
+
end
|
27
|
+
|
28
|
+
Middleman::Renderers.register(:coffee, Tilt::CoffeeTemplate)
|
@@ -1,30 +1,7 @@
|
|
1
1
|
require "haml"
|
2
2
|
|
3
3
|
module Middleman
|
4
|
-
module Haml
|
5
|
-
module Renderer
|
6
|
-
def self.included(base)
|
7
|
-
base.supported_formats << "haml"
|
8
|
-
base.helpers Middleman::Haml::Helpers
|
9
|
-
end
|
10
|
-
|
11
|
-
def render_path(path, layout)
|
12
|
-
if template_exists?(path, :haml)
|
13
|
-
result = nil
|
14
|
-
begin
|
15
|
-
layout = false if File.extname(path) == ".xml"
|
16
|
-
result = haml(path.to_sym, :layout => layout, :ugly => Middleman::Base.enabled?(:ugly_haml))
|
17
|
-
rescue ::Haml::Error => e
|
18
|
-
result = "Haml Error: #{e}"
|
19
|
-
result << "<pre>Backtrace: #{e.backtrace.join("\n")}</pre>"
|
20
|
-
end
|
21
|
-
result
|
22
|
-
else
|
23
|
-
super
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
4
|
+
module Haml
|
28
5
|
module Helpers
|
29
6
|
def haml_partial(name, options = {})
|
30
7
|
item_name = name.to_sym
|
@@ -66,5 +43,5 @@ module Middleman
|
|
66
43
|
end
|
67
44
|
|
68
45
|
class Middleman::Base
|
69
|
-
|
46
|
+
helpers Middleman::Haml::Helpers
|
70
47
|
end
|
@@ -1,93 +1,18 @@
|
|
1
1
|
require "sass"
|
2
2
|
require "compass"
|
3
|
-
require "fancy-buttons"
|
4
|
-
|
5
|
-
begin
|
6
|
-
require "yui/compressor"
|
7
|
-
rescue LoadError
|
8
|
-
puts "YUI-Compressor not available. Install it with: gem install yui-compressor"
|
9
|
-
end
|
10
|
-
|
11
|
-
module Middleman::Sass
|
12
|
-
def self.included(base)
|
13
|
-
base.supported_formats << "sass"
|
14
|
-
end
|
15
|
-
|
16
|
-
def render_path(path, layout)
|
17
|
-
if template_exists?(path, :sass)
|
18
|
-
begin
|
19
|
-
static_version = settings.public + request.path_info
|
20
|
-
send_file(static_version) if File.exists? static_version
|
21
|
-
|
22
|
-
location_of_sass_file = settings.environment == "build" ?
|
23
|
-
File.join(Dir.pwd, settings.build_dir) :
|
24
|
-
settings.public
|
25
|
-
|
26
|
-
css_filename = File.join(location_of_sass_file, request.path_info)
|
27
|
-
result = sass(path.to_sym, ::Compass.sass_engine_options.merge({ :css_filename => css_filename }))
|
28
|
-
|
29
|
-
if enabled?(:minify_css)
|
30
|
-
::YUI::CssCompressor.new.compress(result)
|
31
|
-
else
|
32
|
-
result
|
33
|
-
end
|
34
|
-
rescue Exception => e
|
35
|
-
sass_exception_string(e)
|
36
|
-
end
|
37
|
-
else
|
38
|
-
super
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
# Handle Sass errors
|
43
|
-
def sass_exception_string(e)
|
44
|
-
e_string = "#{e.class}: #{e.message}"
|
45
|
-
|
46
|
-
if e.is_a? ::Sass::SyntaxError
|
47
|
-
e_string << "\non line #{e.sass_line}"
|
48
|
-
|
49
|
-
if e.sass_filename
|
50
|
-
e_string << " of #{e.sass_filename}"
|
51
|
-
|
52
|
-
if File.exists?(e.sass_filename)
|
53
|
-
e_string << "\n\n"
|
54
|
-
|
55
|
-
min = [e.sass_line - 5, 0].max
|
56
|
-
begin
|
57
|
-
File.read(e.sass_filename).rstrip.split("\n")[
|
58
|
-
min .. e.sass_line + 5
|
59
|
-
].each_with_index do |line, i|
|
60
|
-
e_string << "#{min + i + 1}: #{line}\n"
|
61
|
-
end
|
62
|
-
rescue
|
63
|
-
e_string << "Couldn't read sass file: #{e.sass_filename}"
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
<<END
|
69
|
-
/*
|
70
|
-
#{e_string}
|
71
|
-
|
72
|
-
Backtrace:\n#{e.backtrace.join("\n")}
|
73
|
-
*/
|
74
|
-
body:before {
|
75
|
-
white-space: pre;
|
76
|
-
font-family: monospace;
|
77
|
-
content: "#{e_string.gsub('"', '\"').gsub("\n", '\\A ')}"; }
|
78
|
-
END
|
79
|
-
end
|
80
|
-
end
|
81
3
|
|
82
4
|
class Middleman::Base
|
83
|
-
|
5
|
+
def scss(template, options={}, locals={})
|
6
|
+
options[:layout] = false
|
7
|
+
render :scss, template, options, locals
|
8
|
+
end
|
84
9
|
|
85
10
|
after_feature_init do
|
86
11
|
::Compass.configuration do |config|
|
87
|
-
config.cache_path = File.join(self.root, ".
|
12
|
+
config.cache_path = File.join(self.root, ".sass-cache") # For sassc files
|
88
13
|
config.project_path = self.root
|
89
14
|
config.sass_dir = File.join(File.basename(self.views), self.css_dir)
|
90
|
-
config.output_style =
|
15
|
+
config.output_style = :nested
|
91
16
|
config.fonts_dir = File.join(File.basename(self.public), self.fonts_dir)
|
92
17
|
config.css_dir = File.join(File.basename(self.public), self.css_dir)
|
93
18
|
config.images_dir = File.join(File.basename(self.public), self.images_dir)
|
@@ -98,17 +23,45 @@ class Middleman::Base
|
|
98
23
|
config.add_import_path(config.sass_dir)
|
99
24
|
end
|
100
25
|
|
101
|
-
::Compass.configure_sass_plugin!
|
102
|
-
Sass::Plugin.options.update(:line_comments => true, :debug_info => true)
|
103
|
-
|
104
26
|
configure :build do
|
105
27
|
::Compass.configuration do |config|
|
106
28
|
config.css_dir = File.join(File.basename(self.build_dir), self.css_dir)
|
107
29
|
config.images_dir = File.join(File.basename(self.build_dir), self.images_dir)
|
108
30
|
end
|
109
|
-
|
110
|
-
|
111
|
-
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
class Tilt::SassPlusCSSFilenameTemplate < Tilt::SassTemplate
|
36
|
+
def sass_options
|
37
|
+
location_of_sass_file = Middleman::Base.environment == "build" ?
|
38
|
+
File.join(Middleman::Base.root, Middleman::Base.build_dir) :
|
39
|
+
Middleman::Base.public
|
40
|
+
|
41
|
+
parts = basename.split('.')
|
42
|
+
parts.pop
|
43
|
+
css_filename = File.join(location_of_sass_file, Middleman::Base.css_dir, parts.join("."))
|
44
|
+
super.merge(::Compass.configuration.to_sass_engine_options).merge(:css_filename => css_filename)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
Tilt.register 'sass', Tilt::SassPlusCSSFilenameTemplate
|
48
|
+
Middleman::Renderers.register(:sass, Tilt::SassPlusCSSFilenameTemplate)
|
49
|
+
|
50
|
+
class Tilt::ScssPlusCSSFilenameTemplate < Tilt::SassPlusCSSFilenameTemplate
|
51
|
+
def sass_options
|
52
|
+
super.merge(:syntax => :scss)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
Tilt.register 'scss', Tilt::ScssPlusCSSFilenameTemplate
|
56
|
+
Middleman::Renderers.register(:scss, Tilt::ScssPlusCSSFilenameTemplate)
|
57
|
+
|
58
|
+
|
59
|
+
module Middleman::Haml
|
60
|
+
module Sass
|
61
|
+
include ::Haml::Filters::Base
|
62
|
+
|
63
|
+
def render(text)
|
64
|
+
::Sass::Engine.new(text, ::Compass.configuration.to_sass_engine_options).render
|
112
65
|
end
|
113
66
|
end
|
114
67
|
end
|
@@ -1,6 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
# Automatic sitemaps
|
2
|
+
# enable :slickmap
|
3
|
+
|
4
|
+
# Automatic image dimension calculations
|
5
|
+
# enable :automatic_image_sizes
|
6
|
+
|
7
|
+
# Per-page layout changes
|
8
|
+
# With no layout
|
9
|
+
# page "/path/to/file.html", :layout => false
|
10
|
+
# With alternative layout
|
11
|
+
# page "/path/to/file.html", :layout => :otherlayout
|
4
12
|
|
5
13
|
# Helpers
|
6
14
|
helpers do
|
@@ -9,11 +17,26 @@ helpers do
|
|
9
17
|
end
|
10
18
|
end
|
11
19
|
|
12
|
-
|
13
|
-
|
20
|
+
<% if css_dir %>
|
21
|
+
set :css_dir, "<%= css_dir -%>"
|
22
|
+
<% else %>
|
23
|
+
# Change the CSS directory
|
24
|
+
# set :css_dir, "alternative_css_directory"
|
25
|
+
<% end %>
|
14
26
|
|
15
|
-
|
16
|
-
|
27
|
+
<% if js_dir %>
|
28
|
+
set :js_dir, "<%= js_dir -%>"
|
29
|
+
<% else %>
|
30
|
+
# Change the JS directory
|
31
|
+
# set :js_dir, "alternative_js_directory"
|
32
|
+
<% end %>
|
33
|
+
|
34
|
+
<% if images_dir %>
|
35
|
+
set :images_dir, "<%= images_dir -%>"
|
36
|
+
<% else %>
|
37
|
+
# Change the images directory
|
38
|
+
# set :images_dir, "alternative_image_directory"
|
39
|
+
<% end %>
|
17
40
|
|
18
41
|
# Build-specific configuration
|
19
42
|
configure :build do
|
data/middleman.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{middleman}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.99.0.pre"
|
9
9
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Thomas Reynolds"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-05}
|
13
13
|
s.email = %q{tdreyno@gmail.com}
|
14
14
|
s.executables = ["mm-init", "mm-build", "mm-server"]
|
15
15
|
s.extra_rdoc_files = [
|
@@ -40,26 +40,27 @@ Gem::Specification.new do |s|
|
|
40
40
|
"features/step_definitions/middleman_steps.rb",
|
41
41
|
"features/step_definitions/page_layout_steps.rb",
|
42
42
|
"lib/middleman.rb",
|
43
|
+
"lib/middleman/assets.rb",
|
43
44
|
"lib/middleman/base.rb",
|
44
45
|
"lib/middleman/builder.rb",
|
45
46
|
"lib/middleman/config.ru",
|
46
|
-
"lib/middleman/
|
47
|
+
"lib/middleman/features.rb",
|
47
48
|
"lib/middleman/features/asset_host.rb",
|
48
49
|
"lib/middleman/features/automatic_image_sizes.rb",
|
50
|
+
"lib/middleman/features/automatic_image_sizes/fastimage.rb",
|
49
51
|
"lib/middleman/features/cache_buster.rb",
|
52
|
+
"lib/middleman/features/default_helpers.rb",
|
53
|
+
"lib/middleman/features/livereload.rb",
|
50
54
|
"lib/middleman/features/minify_css.rb",
|
51
55
|
"lib/middleman/features/minify_javascript.rb",
|
56
|
+
"lib/middleman/features/minify_javascript/rack.rb",
|
52
57
|
"lib/middleman/features/relative_assets.rb",
|
53
58
|
"lib/middleman/features/slickmap.rb",
|
54
59
|
"lib/middleman/features/smush_pngs.rb",
|
55
|
-
"lib/middleman/
|
56
|
-
"lib/middleman/
|
57
|
-
"lib/middleman/
|
58
|
-
"lib/middleman/rack/sprockets.rb",
|
59
|
-
"lib/middleman/renderers/builder.rb",
|
60
|
-
"lib/middleman/renderers/erb.rb",
|
60
|
+
"lib/middleman/features/ugly_haml.rb",
|
61
|
+
"lib/middleman/renderers.rb",
|
62
|
+
"lib/middleman/renderers/coffee.rb",
|
61
63
|
"lib/middleman/renderers/haml.rb",
|
62
|
-
"lib/middleman/renderers/less.rb",
|
63
64
|
"lib/middleman/renderers/sass.rb",
|
64
65
|
"lib/middleman/template/init.rbt",
|
65
66
|
"lib/middleman/template/views/index.html.haml",
|
@@ -70,7 +71,6 @@ Gem::Specification.new do |s|
|
|
70
71
|
"spec/builder_spec.rb",
|
71
72
|
"spec/fixtures/sample/init.rb",
|
72
73
|
"spec/fixtures/sample/public/images/blank.gif",
|
73
|
-
"spec/fixtures/sample/public/javascripts/to-be-included.js",
|
74
74
|
"spec/fixtures/sample/public/static.html",
|
75
75
|
"spec/fixtures/sample/public/stylesheets/auto-css.css",
|
76
76
|
"spec/fixtures/sample/public/stylesheets/static.css",
|
@@ -86,7 +86,6 @@ Gem::Specification.new do |s|
|
|
86
86
|
"spec/fixtures/sample/views/index.html.haml",
|
87
87
|
"spec/fixtures/sample/views/inline-css.html.haml",
|
88
88
|
"spec/fixtures/sample/views/inline-js.html.haml",
|
89
|
-
"spec/fixtures/sample/views/javascripts/empty-with-include.js",
|
90
89
|
"spec/fixtures/sample/views/layout.haml",
|
91
90
|
"spec/fixtures/sample/views/maruku.html.maruku",
|
92
91
|
"spec/fixtures/sample/views/page-classes.html.haml",
|
@@ -94,6 +93,8 @@ Gem::Specification.new do |s|
|
|
94
93
|
"spec/fixtures/sample/views/stylesheets/asset_host.css.sass",
|
95
94
|
"spec/fixtures/sample/views/stylesheets/relative_assets.css.sass",
|
96
95
|
"spec/fixtures/sample/views/stylesheets/site.css.sass",
|
96
|
+
"spec/fixtures/sample/views/stylesheets/site_scss.css.scss",
|
97
|
+
"spec/fixtures/sample/views/stylesheets/test_less.css.less",
|
97
98
|
"spec/helpers_spec.rb",
|
98
99
|
"spec/spec_helper.rb"
|
99
100
|
]
|
@@ -101,80 +102,68 @@ Gem::Specification.new do |s|
|
|
101
102
|
s.rdoc_options = ["--charset=UTF-8"]
|
102
103
|
s.require_paths = ["lib"]
|
103
104
|
s.rubyforge_project = %q{middleman}
|
104
|
-
s.rubygems_version = %q{1.3.
|
105
|
+
s.rubygems_version = %q{1.3.7}
|
105
106
|
s.summary = %q{A static site generator utilizing Haml, Sass and providing YUI compression and cache busting}
|
106
107
|
s.test_files = [
|
107
|
-
"spec/
|
108
|
-
"spec/
|
108
|
+
"spec/builder_spec.rb",
|
109
|
+
"spec/fixtures/sample/init.rb",
|
109
110
|
"spec/helpers_spec.rb",
|
110
|
-
"spec/
|
111
|
+
"spec/spec_helper.rb"
|
111
112
|
]
|
112
113
|
|
113
114
|
if s.respond_to? :specification_version then
|
114
115
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
115
116
|
s.specification_version = 3
|
116
117
|
|
117
|
-
if Gem::Version.new(Gem::
|
118
|
-
s.add_runtime_dependency(%q<rack>, ["
|
119
|
-
s.add_runtime_dependency(%q<thin>, ["
|
120
|
-
s.add_runtime_dependency(%q<shotgun>, ["
|
121
|
-
s.add_runtime_dependency(%q<templater>, ["
|
122
|
-
s.add_runtime_dependency(%q<
|
123
|
-
s.add_runtime_dependency(%q<sinatra>, ["
|
124
|
-
s.add_runtime_dependency(%q<
|
125
|
-
s.add_runtime_dependency(%q<
|
126
|
-
s.add_runtime_dependency(%q<
|
127
|
-
s.add_runtime_dependency(%q<
|
128
|
-
s.add_runtime_dependency(%q<
|
129
|
-
s.add_runtime_dependency(%q<
|
130
|
-
s.add_runtime_dependency(%q<compass>, ["
|
131
|
-
s.add_runtime_dependency(%q<fancy-buttons>, [">= 0"])
|
132
|
-
s.add_runtime_dependency(%q<json_pure>, [">= 0"])
|
133
|
-
s.add_runtime_dependency(%q<smusher>, [">= 0"])
|
134
|
-
s.add_runtime_dependency(%q<compass-slickmap>, [">= 0"])
|
118
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
119
|
+
s.add_runtime_dependency(%q<rack>, ["~> 1.0"])
|
120
|
+
s.add_runtime_dependency(%q<thin>, ["~> 1.2.0"])
|
121
|
+
s.add_runtime_dependency(%q<shotgun>, ["~> 0.8.0"])
|
122
|
+
s.add_runtime_dependency(%q<templater>, ["~> 1.0.0"])
|
123
|
+
s.add_runtime_dependency(%q<sinatra>, ["~> 1.0"])
|
124
|
+
s.add_runtime_dependency(%q<sinatra-content-for>, ["~> 0.2.0"])
|
125
|
+
s.add_runtime_dependency(%q<rack-test>, ["~> 0.5.0"])
|
126
|
+
s.add_runtime_dependency(%q<yui-compressor>, ["~> 0.9.0"])
|
127
|
+
s.add_runtime_dependency(%q<haml>, ["~> 3.0"])
|
128
|
+
s.add_runtime_dependency(%q<compass>, ["~> 0.10.0"])
|
129
|
+
s.add_runtime_dependency(%q<json_pure>, ["~> 1.4.0"])
|
130
|
+
s.add_runtime_dependency(%q<smusher>, ["~> 0.4.5"])
|
131
|
+
s.add_runtime_dependency(%q<compass-slickmap>, ["~> 0.3.0"])
|
135
132
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
136
133
|
s.add_development_dependency(%q<cucumber>, [">= 0"])
|
137
134
|
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
138
135
|
else
|
139
|
-
s.add_dependency(%q<rack>, ["
|
140
|
-
s.add_dependency(%q<thin>, ["
|
141
|
-
s.add_dependency(%q<shotgun>, ["
|
142
|
-
s.add_dependency(%q<templater>, ["
|
143
|
-
s.add_dependency(%q<
|
144
|
-
s.add_dependency(%q<sinatra>, ["
|
145
|
-
s.add_dependency(%q<
|
146
|
-
s.add_dependency(%q<
|
147
|
-
s.add_dependency(%q<
|
148
|
-
s.add_dependency(%q<
|
149
|
-
s.add_dependency(%q<
|
150
|
-
s.add_dependency(%q<
|
151
|
-
s.add_dependency(%q<compass>, ["
|
152
|
-
s.add_dependency(%q<fancy-buttons>, [">= 0"])
|
153
|
-
s.add_dependency(%q<json_pure>, [">= 0"])
|
154
|
-
s.add_dependency(%q<smusher>, [">= 0"])
|
155
|
-
s.add_dependency(%q<compass-slickmap>, [">= 0"])
|
136
|
+
s.add_dependency(%q<rack>, ["~> 1.0"])
|
137
|
+
s.add_dependency(%q<thin>, ["~> 1.2.0"])
|
138
|
+
s.add_dependency(%q<shotgun>, ["~> 0.8.0"])
|
139
|
+
s.add_dependency(%q<templater>, ["~> 1.0.0"])
|
140
|
+
s.add_dependency(%q<sinatra>, ["~> 1.0"])
|
141
|
+
s.add_dependency(%q<sinatra-content-for>, ["~> 0.2.0"])
|
142
|
+
s.add_dependency(%q<rack-test>, ["~> 0.5.0"])
|
143
|
+
s.add_dependency(%q<yui-compressor>, ["~> 0.9.0"])
|
144
|
+
s.add_dependency(%q<haml>, ["~> 3.0"])
|
145
|
+
s.add_dependency(%q<compass>, ["~> 0.10.0"])
|
146
|
+
s.add_dependency(%q<json_pure>, ["~> 1.4.0"])
|
147
|
+
s.add_dependency(%q<smusher>, ["~> 0.4.5"])
|
148
|
+
s.add_dependency(%q<compass-slickmap>, ["~> 0.3.0"])
|
156
149
|
s.add_dependency(%q<rspec>, [">= 0"])
|
157
150
|
s.add_dependency(%q<cucumber>, [">= 0"])
|
158
151
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
159
152
|
end
|
160
153
|
else
|
161
|
-
s.add_dependency(%q<rack>, ["
|
162
|
-
s.add_dependency(%q<thin>, ["
|
163
|
-
s.add_dependency(%q<shotgun>, ["
|
164
|
-
s.add_dependency(%q<templater>, ["
|
165
|
-
s.add_dependency(%q<
|
166
|
-
s.add_dependency(%q<sinatra>, ["
|
167
|
-
s.add_dependency(%q<
|
168
|
-
s.add_dependency(%q<
|
169
|
-
s.add_dependency(%q<
|
170
|
-
s.add_dependency(%q<
|
171
|
-
s.add_dependency(%q<
|
172
|
-
s.add_dependency(%q<
|
173
|
-
s.add_dependency(%q<compass>, ["
|
174
|
-
s.add_dependency(%q<fancy-buttons>, [">= 0"])
|
175
|
-
s.add_dependency(%q<json_pure>, [">= 0"])
|
176
|
-
s.add_dependency(%q<smusher>, [">= 0"])
|
177
|
-
s.add_dependency(%q<compass-slickmap>, [">= 0"])
|
154
|
+
s.add_dependency(%q<rack>, ["~> 1.0"])
|
155
|
+
s.add_dependency(%q<thin>, ["~> 1.2.0"])
|
156
|
+
s.add_dependency(%q<shotgun>, ["~> 0.8.0"])
|
157
|
+
s.add_dependency(%q<templater>, ["~> 1.0.0"])
|
158
|
+
s.add_dependency(%q<sinatra>, ["~> 1.0"])
|
159
|
+
s.add_dependency(%q<sinatra-content-for>, ["~> 0.2.0"])
|
160
|
+
s.add_dependency(%q<rack-test>, ["~> 0.5.0"])
|
161
|
+
s.add_dependency(%q<yui-compressor>, ["~> 0.9.0"])
|
162
|
+
s.add_dependency(%q<haml>, ["~> 3.0"])
|
163
|
+
s.add_dependency(%q<compass>, ["~> 0.10.0"])
|
164
|
+
s.add_dependency(%q<json_pure>, ["~> 1.4.0"])
|
165
|
+
s.add_dependency(%q<smusher>, ["~> 0.4.5"])
|
166
|
+
s.add_dependency(%q<compass-slickmap>, ["~> 0.3.0"])
|
178
167
|
s.add_dependency(%q<rspec>, [">= 0"])
|
179
168
|
s.add_dependency(%q<cucumber>, [">= 0"])
|
180
169
|
s.add_dependency(%q<jeweler>, [">= 0"])
|