staticmatic 0.11.0.alpha.7 → 0.11.0.alpha.8
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/Rakefile +2 -3
- data/VERSION.yml +1 -1
- data/lib/staticmatic.rb +3 -2
- data/lib/staticmatic/base.rb +0 -1
- data/lib/staticmatic/compass.rb +5 -0
- data/lib/staticmatic/compass/app_integration.rb +2 -0
- data/lib/staticmatic/compass/installer.rb +15 -0
- data/lib/staticmatic/server.rb +1 -1
- data/lib/staticmatic/templates/project/config/compass.rb +3 -0
- data/spec/sandbox/tmp/config/compass.rb +2 -10
- metadata +11 -20
data/Rakefile
CHANGED
@@ -19,11 +19,10 @@ begin
|
|
19
19
|
|
20
20
|
gem.add_dependency("haml", ">=2.0.0")
|
21
21
|
gem.add_dependency("rack", ">=1.0")
|
22
|
-
gem.add_dependency("
|
23
|
-
gem.add_dependency("compass")
|
22
|
+
gem.add_dependency("compass", ">=0.10.0")
|
24
23
|
end
|
25
24
|
rescue LoadError
|
26
|
-
puts "Jeweler, or one of its dependencies, is not available. Install it with:
|
25
|
+
puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
|
27
26
|
end
|
28
27
|
|
29
28
|
Spec::Rake::SpecTask.new(:spec) do |spec|
|
data/VERSION.yml
CHANGED
data/lib/staticmatic.rb
CHANGED
@@ -4,7 +4,8 @@ require 'haml'
|
|
4
4
|
require 'sass'
|
5
5
|
require 'sass/plugin'
|
6
6
|
require 'rack'
|
7
|
-
require 'rack/handler/
|
7
|
+
require 'rack/handler/webrick'
|
8
|
+
require 'cgi'
|
8
9
|
require 'fileutils'
|
9
10
|
|
10
11
|
|
@@ -16,7 +17,7 @@ end
|
|
16
17
|
require File.join(File.dirname(__FILE__), "staticmatic", "mixins", mixin)
|
17
18
|
end
|
18
19
|
|
19
|
-
["base", "configuration", "error", "server", "helpers", "template_error", "compass
|
20
|
+
["base", "configuration", "error", "server", "helpers", "template_error", "compass"].each do |lib|
|
20
21
|
require File.join(File.dirname(__FILE__), "staticmatic", lib)
|
21
22
|
end
|
22
23
|
|
data/lib/staticmatic/base.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
module Compass
|
2
|
+
module AppIntegration
|
3
|
+
module Staticmatic
|
4
|
+
class Installer < Compass::Installers::ManifestInstaller
|
5
|
+
def completed_configuration
|
6
|
+
nil
|
7
|
+
end
|
8
|
+
|
9
|
+
def finalize(options = {})
|
10
|
+
puts manifest.welcome_message if manifest.welcome_message
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/staticmatic/server.rb
CHANGED
@@ -1,11 +1,3 @@
|
|
1
|
+
require "staticmatic/compass"
|
1
2
|
|
2
|
-
|
3
|
-
project_path = File.join(File.dirname(__FILE__), "..", "/") # must be set for Compass to work
|
4
|
-
sass_dir = "src/stylesheets" # dir containing Sass / Compass source files
|
5
|
-
http_path = "/" # root when deployed
|
6
|
-
css_dir = "site/stylesheets" # final CSS
|
7
|
-
images_dir = "site/images" # final images
|
8
|
-
http_images_path = "/images"
|
9
|
-
|
10
|
-
# To enable relative paths to assets via compass helper functions. Uncomment:
|
11
|
-
# relative_assets = true
|
3
|
+
project_type = :staticmatic
|
metadata
CHANGED
@@ -7,8 +7,8 @@ version: !ruby/object:Gem::Version
|
|
7
7
|
- 11
|
8
8
|
- 0
|
9
9
|
- alpha
|
10
|
-
-
|
11
|
-
version: 0.11.0.alpha.
|
10
|
+
- 8
|
11
|
+
version: 0.11.0.alpha.8
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Stephen Bartholomew
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-05
|
19
|
+
date: 2010-06-05 00:00:00 +01:00
|
20
20
|
default_executable: staticmatic
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -46,32 +46,20 @@ dependencies:
|
|
46
46
|
version: "1.0"
|
47
47
|
type: :runtime
|
48
48
|
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: mongrel
|
51
|
-
prerelease: false
|
52
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
-
requirements:
|
54
|
-
- - ">="
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
segments:
|
57
|
-
- 1
|
58
|
-
- 1
|
59
|
-
- 5
|
60
|
-
version: 1.1.5
|
61
|
-
type: :runtime
|
62
|
-
version_requirements: *id003
|
63
49
|
- !ruby/object:Gem::Dependency
|
64
50
|
name: compass
|
65
51
|
prerelease: false
|
66
|
-
requirement: &
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
67
53
|
requirements:
|
68
54
|
- - ">="
|
69
55
|
- !ruby/object:Gem::Version
|
70
56
|
segments:
|
71
57
|
- 0
|
72
|
-
|
58
|
+
- 10
|
59
|
+
- 0
|
60
|
+
version: 0.10.0
|
73
61
|
type: :runtime
|
74
|
-
version_requirements: *
|
62
|
+
version_requirements: *id003
|
75
63
|
description: Lightweight Static Site Framework
|
76
64
|
email: steve@curve21.com
|
77
65
|
executables:
|
@@ -89,8 +77,10 @@ files:
|
|
89
77
|
- bin/staticmatic
|
90
78
|
- lib/staticmatic.rb
|
91
79
|
- lib/staticmatic/base.rb
|
80
|
+
- lib/staticmatic/compass.rb
|
92
81
|
- lib/staticmatic/compass/app_integration.rb
|
93
82
|
- lib/staticmatic/compass/configuration_defaults.rb
|
83
|
+
- lib/staticmatic/compass/installer.rb
|
94
84
|
- lib/staticmatic/configuration.rb
|
95
85
|
- lib/staticmatic/error.rb
|
96
86
|
- lib/staticmatic/helpers.rb
|
@@ -102,6 +92,7 @@ files:
|
|
102
92
|
- lib/staticmatic/mixins/setup.rb
|
103
93
|
- lib/staticmatic/server.rb
|
104
94
|
- lib/staticmatic/template_error.rb
|
95
|
+
- lib/staticmatic/templates/project/config/compass.rb
|
105
96
|
- lib/staticmatic/templates/project/config/site.rb
|
106
97
|
- lib/staticmatic/templates/project/src/layouts/default.haml
|
107
98
|
- lib/staticmatic/templates/project/src/pages/index.haml
|