staticmatic2 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +24 -7
- data/Rakefile +1 -1
- data/VERSION.yml +1 -1
- data/bin/staticmatic +6 -6
- data/lib/staticmatic/compass/configuration_defaults.rb +4 -4
- data/lib/staticmatic/deployers/aws-s3.rb +52 -15
- data/lib/staticmatic/helpers/assets_helper.rb +4 -5
- data/lib/staticmatic/helpers/render_helper.rb +12 -0
- data/lib/staticmatic/mixins/build.rb +1 -1
- data/lib/staticmatic/mixins/render.rb +6 -7
- data/staticmatic2.gemspec +172 -0
- metadata +18 -17
data/README.markdown
CHANGED
@@ -1,18 +1,21 @@
|
|
1
1
|
# StaticMatic: Build and Deploy
|
2
2
|
|
3
|
-
Build static websites using modern dynamic tools:
|
3
|
+
1: Build static websites using modern dynamic tools:
|
4
4
|
|
5
5
|
- [Haml](http://haml-lang.com/)
|
6
6
|
- [Sass](http://sass-lang.com/)
|
7
7
|
- [Coffeescript](http://jashkenas.github.com/coffee-script/)
|
8
8
|
- [Compass](compass-style.org)
|
9
|
-
-
|
9
|
+
- [Amazon S3 Websites](http://aws.typepad.com/aws/2011/02/host-your-static-website-on-amazon-s3.html)
|
10
|
+
- And more to come
|
10
11
|
|
11
|
-
|
12
|
+
2: Deploy to Amazon S3:
|
12
13
|
|
13
14
|
$ staticmatic s3_deploy
|
14
15
|
|
15
|
-
|
16
|
+
3: Profit (due to low hosting fees :P)
|
17
|
+
|
18
|
+
## In other words:
|
16
19
|
|
17
20
|
StaticMatic build StaticMatic deploy
|
18
21
|
src/ ==> build/ ==> mywebsite.com/
|
@@ -23,6 +26,10 @@ In other words:
|
|
23
26
|
img/ ==> img/ ==> img/
|
24
27
|
logo.png ==> logo.png ==> logo.png
|
25
28
|
|
29
|
+
# Getting Started
|
30
|
+
|
31
|
+
$ gem install staticmatic2
|
32
|
+
|
26
33
|
## Quick Start
|
27
34
|
|
28
35
|
Instantly setup a new project:
|
@@ -50,19 +57,29 @@ Preview your static website:
|
|
50
57
|
|
51
58
|
Visit http://localhost:3000 to view your website in action.
|
52
59
|
|
53
|
-
|
60
|
+
To build & convert your haml/sass/whatever files into plain html, css, and javascript:
|
54
61
|
|
55
|
-
staticmatic build
|
62
|
+
$ staticmatic build
|
56
63
|
|
57
|
-
This will convert everything into a freshly generated `build/` folder,
|
64
|
+
This will convert everything into a freshly generated `build/` folder, 100% static.
|
65
|
+
|
66
|
+
If you have an Amazon S3 account and want to deploy to your bucket, run the following command:
|
67
|
+
|
68
|
+
# NOTE: You must be in the root folder of your project
|
69
|
+
$ staticmatic s3_deploy
|
70
|
+
|
71
|
+
If you haven't deployed your current project to Amazon yet, it will prompt you to create a config file. Edit this file to include your credentials, run the command again, and you're set.
|
58
72
|
|
59
73
|
## Special Folders
|
60
74
|
|
61
75
|
<my-project>/
|
62
76
|
src/
|
77
|
+
_helpers/
|
63
78
|
_layouts/
|
64
79
|
_partials/
|
65
80
|
|
81
|
+
- The `_helpers` folder is where you place your custom Haml helpers
|
82
|
+
|
66
83
|
- The `_layouts` folder is where layout files will be searched for. These files must contain a `yield` statement.
|
67
84
|
|
68
85
|
- The `_partials` folder is the last place partial files will be searched for. Any partial in this folder should not be prefixed with an underscore _
|
data/Rakefile
CHANGED
data/VERSION.yml
CHANGED
data/bin/staticmatic
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
|
3
2
|
require 'rubygems'
|
4
3
|
require 'thor'
|
4
|
+
|
5
5
|
lib_dir = File.dirname(__FILE__) + '/../lib/staticmatic'
|
6
|
+
|
6
7
|
require lib_dir
|
7
8
|
Dir[File.join lib_dir,'deployers','*.rb'].each do |deployer|
|
8
9
|
require deployer
|
@@ -18,11 +19,6 @@ class StaticExe < Thor
|
|
18
19
|
|
19
20
|
# functions related to initializing a project
|
20
21
|
|
21
|
-
desc "one", "two"
|
22
|
-
def one_two
|
23
|
-
puts 'one two'
|
24
|
-
end
|
25
|
-
|
26
22
|
desc "init", "Initialize a static directory structure"
|
27
23
|
method_option :skeleton, :type => :string, :aliases => "-s"
|
28
24
|
def init(target = ".")
|
@@ -82,6 +78,10 @@ private
|
|
82
78
|
def site_path(directory,*paths)
|
83
79
|
File.join(directory, 'build', *paths)
|
84
80
|
end
|
81
|
+
|
82
|
+
def build_files(directory)
|
83
|
+
Dir[site_path(directory,'**/*')].reject {|file| File.directory? file}
|
84
|
+
end
|
85
85
|
|
86
86
|
def clone(source, target)
|
87
87
|
if Dir["#{target}/*"].empty?
|
@@ -11,19 +11,19 @@ module Compass
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def sass_dir_without_default
|
14
|
-
"src
|
14
|
+
"src"
|
15
15
|
end
|
16
16
|
|
17
17
|
def javascripts_dir_without_default
|
18
|
-
"
|
18
|
+
"build"
|
19
19
|
end
|
20
20
|
|
21
21
|
def css_dir_without_default
|
22
|
-
"
|
22
|
+
"build"
|
23
23
|
end
|
24
24
|
|
25
25
|
def images_dir_without_default
|
26
|
-
"
|
26
|
+
"build"
|
27
27
|
end
|
28
28
|
|
29
29
|
def default_http_images_path
|
@@ -11,31 +11,19 @@ class StaticExe < Thor
|
|
11
11
|
|
12
12
|
invoke :build, directory unless options[:skip_build]
|
13
13
|
|
14
|
-
if
|
14
|
+
if build_files(directory).empty?
|
15
15
|
say 'Your build/ folder is empty', :red
|
16
16
|
say 'Nothing to do.'
|
17
17
|
return
|
18
18
|
end
|
19
19
|
|
20
|
-
say 'Uploading to Amazon S3...', :cyan
|
21
|
-
say 'Establishing connection to Amazon S3...'
|
22
20
|
amazon_config = YAML::load File.read(amazon_config_path directory)
|
23
|
-
AWS::S3::Base.establish_connection!(amazon_config['AccessKeys'])
|
24
|
-
|
25
21
|
env = options[:env] || 'development'
|
26
22
|
bucket_name = amazon_config['Buckets'][env]
|
27
23
|
|
28
|
-
|
29
|
-
buckets = AWS::S3::Service.buckets
|
30
|
-
unless buckets.map {|b| b.name}.include? bucket_name
|
31
|
-
say 'The bucket ', :red
|
32
|
-
say "'#{bucket_name}' "
|
33
|
-
say 'does not exist!', :red
|
34
|
-
say 'Nothing to do.'
|
35
|
-
return
|
36
|
-
end
|
24
|
+
connect_to_amazon_s3(amazon_config,env,bucket_name)
|
37
25
|
|
38
|
-
|
26
|
+
build_files(directory).each do |file|
|
39
27
|
contents = File.read file
|
40
28
|
s3path = file.sub(%r{^\./build/},'')
|
41
29
|
|
@@ -45,8 +33,57 @@ class StaticExe < Thor
|
|
45
33
|
say 'Done.'
|
46
34
|
end
|
47
35
|
|
36
|
+
desc "s3_upload FILE [FILE ...]", "Upload select files to your Amazon S3 bucket."
|
37
|
+
method_option :directory, :type => :string, :aliases => "-d", :default => '.'
|
38
|
+
method_option :env, :type => :string, :aliases => "-e"
|
39
|
+
method_option :skip_build, :type => :boolean, :aliases => "-k"
|
40
|
+
def s3_upload(*files)
|
41
|
+
return if needs_setup? options[:directory]
|
42
|
+
|
43
|
+
if files.length == 0
|
44
|
+
say 'No files selected.', :red
|
45
|
+
say 'Nothing to do.'
|
46
|
+
return
|
47
|
+
end
|
48
|
+
|
49
|
+
amazon_config = YAML::load File.read(amazon_config_path '.')
|
50
|
+
env = options[:env] || 'development'
|
51
|
+
bucket_name = amazon_config['Buckets'][env]
|
52
|
+
|
53
|
+
connect_to_amazon_s3(amazon_config,env,bucket_name)
|
54
|
+
|
55
|
+
files.each do |file|
|
56
|
+
|
57
|
+
unless File.exists? file
|
58
|
+
say " Does not exist ", :red; say file; next
|
59
|
+
end
|
60
|
+
|
61
|
+
contents = File.read file
|
62
|
+
s3path = file.sub(%r{^(\./)?build/},'')
|
63
|
+
|
64
|
+
say " upload ", :cyan; say s3path
|
65
|
+
AWS::S3::S3Object.store(s3path, contents, bucket_name, :access => :public_read)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
48
69
|
private
|
49
70
|
|
71
|
+
def connect_to_amazon_s3(config,env,bucket_name)
|
72
|
+
say 'Uploading to Amazon S3...', :cyan
|
73
|
+
say 'Establishing connection to Amazon S3...'
|
74
|
+
AWS::S3::Base.establish_connection!(config['AccessKeys'])
|
75
|
+
|
76
|
+
say "Grabbing #{env} bucket '#{bucket_name}'"
|
77
|
+
buckets = AWS::S3::Service.buckets
|
78
|
+
unless buckets.map {|b| b.name}.include? bucket_name
|
79
|
+
say 'The bucket ', :red
|
80
|
+
say "'#{bucket_name}' "
|
81
|
+
say 'does not exist!', :red
|
82
|
+
say 'Nothing to do.'
|
83
|
+
return
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
50
87
|
def amazon_config_path(directory)
|
51
88
|
File.join(directory, 'config','amazon.yml')
|
52
89
|
end
|
@@ -9,7 +9,7 @@ module StaticMatic
|
|
9
9
|
# = stylesheets :reset, :application
|
10
10
|
# Can also pass options hash in at the end so you can specify :media => :print
|
11
11
|
def stylesheets(*params)
|
12
|
-
options =
|
12
|
+
options = (params.last.is_a? Hash) ? params.pop : {}
|
13
13
|
|
14
14
|
options[:media] = 'all' unless options.has_key?(:media)
|
15
15
|
options[:rel] = 'stylesheet'; options[:type] = 'text/css'
|
@@ -42,7 +42,7 @@ module StaticMatic
|
|
42
42
|
# javascripts('test') -> <script language="javascript" src="javascripts/test.js"></script>
|
43
43
|
#
|
44
44
|
def javascripts(*files)
|
45
|
-
options =
|
45
|
+
options = (files.last.is_a? Hash) ? files.pop : {}
|
46
46
|
|
47
47
|
options[:language] = 'javascript'
|
48
48
|
options[:type] = 'text/javascript'
|
@@ -51,7 +51,6 @@ module StaticMatic
|
|
51
51
|
output = ""
|
52
52
|
|
53
53
|
files.each do |path|
|
54
|
-
puts "path: #{path}"
|
55
54
|
if path.to_s.match %r{^https?://}
|
56
55
|
output << format_output(:script,path,options)
|
57
56
|
else
|
@@ -83,8 +82,8 @@ module StaticMatic
|
|
83
82
|
else
|
84
83
|
filename_without_extension = File.basename(path).chomp(File.extname(path))
|
85
84
|
|
86
|
-
path = path.gsub(
|
87
|
-
gsub(
|
85
|
+
path = path.gsub(/^#{@staticmatic.src_dir}/, "").
|
86
|
+
gsub(/^#{@staticmatic.site_dir}/, "").
|
88
87
|
gsub(/#{filename_without_extension}\.(sass|scss|css|js|coffee)/, "")
|
89
88
|
|
90
89
|
src = File.join(current_page_relative_path, path, "#{filename_without_extension}")
|
@@ -4,6 +4,18 @@ module StaticMatic
|
|
4
4
|
module RenderHelper
|
5
5
|
self.extend self
|
6
6
|
|
7
|
+
def content_hash
|
8
|
+
@content_hash ||= {}
|
9
|
+
end
|
10
|
+
|
11
|
+
def yield_for(index)
|
12
|
+
self.content_hash[index.to_sym] || ""
|
13
|
+
end
|
14
|
+
|
15
|
+
def content_for(index,&block)
|
16
|
+
content_hash[:sidebar] = capture_haml &block
|
17
|
+
end
|
18
|
+
|
7
19
|
# Include a partial template
|
8
20
|
def partial(name, options = {})
|
9
21
|
@staticmatic.generate_partial(name, options)
|
@@ -44,7 +44,7 @@ module StaticMatic::BuildMixin
|
|
44
44
|
def copy_images
|
45
45
|
src_file_paths(*%w{gif jpg jpef png tiff}).each do |path|
|
46
46
|
file_dir, file_name = File.split(path.sub(/^#{@src_dir}/, ''))
|
47
|
-
copy_file(path, File.join(@site_dir,
|
47
|
+
copy_file(path, File.join(@site_dir, file_dir, file_name))
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
@@ -49,19 +49,18 @@ module StaticMatic::RenderMixin
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def generate_partial(name, options = {})
|
52
|
-
partial_dir, partial_name =
|
53
|
-
partial_dir, partial_name = File.split(name) if name.index('/')
|
52
|
+
partial_dir, partial_name = '', name
|
53
|
+
partial_dir, partial_name = File.split(name) if name.index('/')
|
54
54
|
partial_type = partial_name[/(\.haml|\.html)$/]
|
55
55
|
|
56
56
|
partial_name = "_#{partial_name}"
|
57
57
|
partial_name += ".haml" unless partial_type
|
58
58
|
|
59
|
-
partial_path = File.join(@src_dir, partial_dir, partial_name)
|
59
|
+
partial_path = File.join(@src_dir, File.dirname(self.current_file), partial_dir, partial_name)
|
60
60
|
unless File.exists?(partial_path)
|
61
|
-
# couldn't find it in the pages subdirectory tree so try
|
62
|
-
partial_dir = '_partials'
|
63
|
-
partial_name
|
64
|
-
partial_name += ".haml" unless partial_type
|
61
|
+
# couldn't find it in the pages subdirectory tree, so try the partials folder
|
62
|
+
partial_dir = File.join '_partials', partial_dir
|
63
|
+
partial_name.sub! /^_/, ''
|
65
64
|
partial_path = File.join(@src_dir, partial_dir, partial_name)
|
66
65
|
end
|
67
66
|
|
@@ -0,0 +1,172 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{staticmatic2}
|
8
|
+
s.version = "2.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Stephen Bartholomew", "Gilbert B Garza"]
|
12
|
+
s.date = %q{2011-03-14}
|
13
|
+
s.default_executable = %q{staticmatic}
|
14
|
+
s.description = %q{ StaticMatic helps you quickly create maintainable static websites using
|
15
|
+
tools such as Haml and Sass.
|
16
|
+
|
17
|
+
Quickly deploy to services such as Amazon S3 in a single command.
|
18
|
+
}
|
19
|
+
s.email = %q{gilbertbgarza@gmail.com}
|
20
|
+
s.executables = ["staticmatic"]
|
21
|
+
s.extra_rdoc_files = [
|
22
|
+
"LICENSE",
|
23
|
+
"README.markdown"
|
24
|
+
]
|
25
|
+
s.files = [
|
26
|
+
"Gemfile",
|
27
|
+
"Gemfile.lock",
|
28
|
+
"LICENSE",
|
29
|
+
"README.markdown",
|
30
|
+
"Rakefile",
|
31
|
+
"VERSION.yml",
|
32
|
+
"bin/staticmatic",
|
33
|
+
"lib/staticmatic.rb",
|
34
|
+
"lib/staticmatic/base.rb",
|
35
|
+
"lib/staticmatic/compass.rb",
|
36
|
+
"lib/staticmatic/compass/app_integration.rb",
|
37
|
+
"lib/staticmatic/compass/configuration_defaults.rb",
|
38
|
+
"lib/staticmatic/compass/installer.rb",
|
39
|
+
"lib/staticmatic/configuration.rb",
|
40
|
+
"lib/staticmatic/deployers/aws-s3.rb",
|
41
|
+
"lib/staticmatic/deployers/config/amazon.yml",
|
42
|
+
"lib/staticmatic/error.rb",
|
43
|
+
"lib/staticmatic/helpers.rb",
|
44
|
+
"lib/staticmatic/helpers/assets_helper.rb",
|
45
|
+
"lib/staticmatic/helpers/current_path_helper.rb",
|
46
|
+
"lib/staticmatic/helpers/form_helper.rb",
|
47
|
+
"lib/staticmatic/helpers/render_helper.rb",
|
48
|
+
"lib/staticmatic/helpers/tag_helper.rb",
|
49
|
+
"lib/staticmatic/helpers/url_helper.rb",
|
50
|
+
"lib/staticmatic/mixins/build.rb",
|
51
|
+
"lib/staticmatic/mixins/helpers.rb",
|
52
|
+
"lib/staticmatic/mixins/render.rb",
|
53
|
+
"lib/staticmatic/mixins/rescue.rb",
|
54
|
+
"lib/staticmatic/mixins/server.rb",
|
55
|
+
"lib/staticmatic/mixins/setup.rb",
|
56
|
+
"lib/staticmatic/server.rb",
|
57
|
+
"lib/staticmatic/template_error.rb",
|
58
|
+
"lib/staticmatic/templates/rescues/default.haml",
|
59
|
+
"lib/staticmatic/templates/rescues/template.haml",
|
60
|
+
"spec/base_spec.rb",
|
61
|
+
"spec/compass_integration_spec.rb",
|
62
|
+
"spec/helpers/asset_helper_spec.rb",
|
63
|
+
"spec/helpers/custom_helper_spec.rb",
|
64
|
+
"spec/render_spec.rb",
|
65
|
+
"spec/rescue_spec.rb",
|
66
|
+
"spec/sandbox/test_site/config/compass.rb",
|
67
|
+
"spec/sandbox/test_site/config/site.rb",
|
68
|
+
"spec/sandbox/test_site/src/helpers/application_helper.rb",
|
69
|
+
"spec/sandbox/test_site/src/layouts/alternate_layout.haml",
|
70
|
+
"spec/sandbox/test_site/src/layouts/default.haml",
|
71
|
+
"spec/sandbox/test_site/src/layouts/projects.haml",
|
72
|
+
"spec/sandbox/test_site/src/pages/hello_world.erb",
|
73
|
+
"spec/sandbox/test_site/src/pages/index.haml",
|
74
|
+
"spec/sandbox/test_site/src/pages/layout_test.haml",
|
75
|
+
"spec/sandbox/test_site/src/pages/page_one.haml",
|
76
|
+
"spec/sandbox/test_site/src/pages/page_two.haml",
|
77
|
+
"spec/sandbox/test_site/src/pages/page_with_error.haml",
|
78
|
+
"spec/sandbox/test_site/src/pages/page_with_partial_error.haml",
|
79
|
+
"spec/sandbox/test_site/src/partials/menu.haml",
|
80
|
+
"spec/sandbox/test_site/src/partials/partial_with_error.haml",
|
81
|
+
"spec/sandbox/test_site/src/stylesheets/application.sass",
|
82
|
+
"spec/sandbox/test_site/src/stylesheets/css_with_error.sass",
|
83
|
+
"spec/sandbox/test_site/src/stylesheets/nested/a_nested_stylesheet.sass",
|
84
|
+
"spec/sandbox/test_site/src/stylesheets/partials/_forms.sass",
|
85
|
+
"spec/sandbox/test_site/src/stylesheets/sassy.scss",
|
86
|
+
"spec/server_spec.rb",
|
87
|
+
"spec/setup_spec.rb",
|
88
|
+
"spec/spec_helper.rb",
|
89
|
+
"spec/template_error_spec.rb",
|
90
|
+
"staticmatic.gemspec",
|
91
|
+
"staticmatic2.gemspec",
|
92
|
+
"website/Gemfile",
|
93
|
+
"website/config/site.rb",
|
94
|
+
"website/site/docs/compass_integration.html",
|
95
|
+
"website/site/docs/getting_started.html",
|
96
|
+
"website/site/docs/helpers.html",
|
97
|
+
"website/site/images/bycurve21.gif",
|
98
|
+
"website/site/images/curve21.jpg",
|
99
|
+
"website/site/images/homepage-build.jpg",
|
100
|
+
"website/site/images/homepage-previewing.jpg",
|
101
|
+
"website/site/images/homepage-templating.jpg",
|
102
|
+
"website/site/stylesheets/ie.css",
|
103
|
+
"website/site/stylesheets/print.css",
|
104
|
+
"website/site/stylesheets/screen.css",
|
105
|
+
"website/src/helpers/content_helper.rb",
|
106
|
+
"website/src/layouts/default.haml",
|
107
|
+
"website/src/pages/development.haml",
|
108
|
+
"website/src/pages/docs/_menu.haml",
|
109
|
+
"website/src/pages/docs/_requires_prerelease.haml",
|
110
|
+
"website/src/pages/docs/compass_integration.haml",
|
111
|
+
"website/src/pages/docs/getting_started.haml",
|
112
|
+
"website/src/pages/docs/helpers.haml",
|
113
|
+
"website/src/pages/index.haml",
|
114
|
+
"website/src/stylesheets/_base.scss",
|
115
|
+
"website/src/stylesheets/_defaults.scss",
|
116
|
+
"website/src/stylesheets/ie.scss",
|
117
|
+
"website/src/stylesheets/print.scss",
|
118
|
+
"website/src/stylesheets/screen.scss"
|
119
|
+
]
|
120
|
+
s.homepage = %q{http://github.com/mindeavor/staticmatic}
|
121
|
+
s.licenses = ["MIT"]
|
122
|
+
s.require_paths = ["lib"]
|
123
|
+
s.rubyforge_project = %q{staticmatic2}
|
124
|
+
s.rubygems_version = %q{1.6.1}
|
125
|
+
s.summary = %q{Build static websites using modern dynamic tools}
|
126
|
+
s.test_files = [
|
127
|
+
"spec/base_spec.rb",
|
128
|
+
"spec/compass_integration_spec.rb",
|
129
|
+
"spec/helpers/asset_helper_spec.rb",
|
130
|
+
"spec/helpers/custom_helper_spec.rb",
|
131
|
+
"spec/render_spec.rb",
|
132
|
+
"spec/rescue_spec.rb",
|
133
|
+
"spec/sandbox/test_site/config/compass.rb",
|
134
|
+
"spec/sandbox/test_site/config/site.rb",
|
135
|
+
"spec/sandbox/test_site/src/helpers/application_helper.rb",
|
136
|
+
"spec/server_spec.rb",
|
137
|
+
"spec/setup_spec.rb",
|
138
|
+
"spec/spec_helper.rb",
|
139
|
+
"spec/template_error_spec.rb"
|
140
|
+
]
|
141
|
+
|
142
|
+
if s.respond_to? :specification_version then
|
143
|
+
s.specification_version = 3
|
144
|
+
|
145
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
146
|
+
s.add_runtime_dependency(%q<haml>, [">= 2.0.0"])
|
147
|
+
s.add_runtime_dependency(%q<compass>, [">= 0"])
|
148
|
+
s.add_runtime_dependency(%q<rack>, [">= 1.0"])
|
149
|
+
s.add_runtime_dependency(%q<thor>, [">= 0.14.6"])
|
150
|
+
s.add_development_dependency(%q<bundler>, [">= 1.0.10"])
|
151
|
+
s.add_development_dependency(%q<jeweler>, [">= 1.5.2"])
|
152
|
+
s.add_development_dependency(%q<rspec>, ["~> 1.3.1"])
|
153
|
+
else
|
154
|
+
s.add_dependency(%q<haml>, [">= 2.0.0"])
|
155
|
+
s.add_dependency(%q<compass>, [">= 0"])
|
156
|
+
s.add_dependency(%q<rack>, [">= 1.0"])
|
157
|
+
s.add_dependency(%q<thor>, [">= 0.14.6"])
|
158
|
+
s.add_dependency(%q<bundler>, [">= 1.0.10"])
|
159
|
+
s.add_dependency(%q<jeweler>, [">= 1.5.2"])
|
160
|
+
s.add_dependency(%q<rspec>, ["~> 1.3.1"])
|
161
|
+
end
|
162
|
+
else
|
163
|
+
s.add_dependency(%q<haml>, [">= 2.0.0"])
|
164
|
+
s.add_dependency(%q<compass>, [">= 0"])
|
165
|
+
s.add_dependency(%q<rack>, [">= 1.0"])
|
166
|
+
s.add_dependency(%q<thor>, [">= 0.14.6"])
|
167
|
+
s.add_dependency(%q<bundler>, [">= 1.0.10"])
|
168
|
+
s.add_dependency(%q<jeweler>, [">= 1.5.2"])
|
169
|
+
s.add_dependency(%q<rspec>, ["~> 1.3.1"])
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: staticmatic2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,12 +10,12 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-14 00:00:00.000000000 -05:00
|
14
14
|
default_executable: staticmatic
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: haml
|
18
|
-
requirement: &
|
18
|
+
requirement: &2156608600 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: 2.0.0
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *2156608600
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: compass
|
29
|
-
requirement: &
|
29
|
+
requirement: &2156598400 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *2156598400
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: rack
|
40
|
-
requirement: &
|
40
|
+
requirement: &2156596380 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
@@ -45,10 +45,10 @@ dependencies:
|
|
45
45
|
version: '1.0'
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *2156596380
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: thor
|
51
|
-
requirement: &
|
51
|
+
requirement: &2156593520 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ! '>='
|
@@ -56,10 +56,10 @@ dependencies:
|
|
56
56
|
version: 0.14.6
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
|
-
version_requirements: *
|
59
|
+
version_requirements: *2156593520
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: bundler
|
62
|
-
requirement: &
|
62
|
+
requirement: &2156592140 !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
65
65
|
- - ! '>='
|
@@ -67,10 +67,10 @@ dependencies:
|
|
67
67
|
version: 1.0.10
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
|
-
version_requirements: *
|
70
|
+
version_requirements: *2156592140
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: jeweler
|
73
|
-
requirement: &
|
73
|
+
requirement: &2156589980 !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
75
75
|
requirements:
|
76
76
|
- - ! '>='
|
@@ -78,10 +78,10 @@ dependencies:
|
|
78
78
|
version: 1.5.2
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
|
-
version_requirements: *
|
81
|
+
version_requirements: *2156589980
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
83
|
name: rspec
|
84
|
-
requirement: &
|
84
|
+
requirement: &2156587120 !ruby/object:Gem::Requirement
|
85
85
|
none: false
|
86
86
|
requirements:
|
87
87
|
- - ~>
|
@@ -89,7 +89,7 @@ dependencies:
|
|
89
89
|
version: 1.3.1
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
|
-
version_requirements: *
|
92
|
+
version_requirements: *2156587120
|
93
93
|
description: ! " StaticMatic helps you quickly create maintainable static websites
|
94
94
|
using\n tools such as Haml and Sass.\n \n Quickly deploy to services such
|
95
95
|
as Amazon S3 in a single command.\n"
|
@@ -166,6 +166,7 @@ files:
|
|
166
166
|
- spec/spec_helper.rb
|
167
167
|
- spec/template_error_spec.rb
|
168
168
|
- staticmatic.gemspec
|
169
|
+
- staticmatic2.gemspec
|
169
170
|
- website/Gemfile
|
170
171
|
- website/config/site.rb
|
171
172
|
- website/site/docs/compass_integration.html
|
@@ -209,7 +210,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
209
210
|
version: '0'
|
210
211
|
segments:
|
211
212
|
- 0
|
212
|
-
hash:
|
213
|
+
hash: -650957537592481647
|
213
214
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
214
215
|
none: false
|
215
216
|
requirements:
|