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 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("mongrel", ">=1.1.5")
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: sudo gem install technicalpickles-jeweler -s http://gemgem.github.com"
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|
@@ -2,4 +2,4 @@
2
2
  :major: 0
3
3
  :minor: 11
4
4
  :patch: 0
5
- :build: alpha.7
5
+ :build: alpha.8
@@ -4,7 +4,8 @@ require 'haml'
4
4
  require 'sass'
5
5
  require 'sass/plugin'
6
6
  require 'rack'
7
- require 'rack/handler/mongrel'
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/app_integration", "compass/configuration_defaults"].each do |lib|
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
 
@@ -93,7 +93,6 @@ module StaticMatic
93
93
 
94
94
  def configure_compass
95
95
  Compass.configuration.project_path = @base_dir
96
- Compass.add_configuration(:staticmatic)
97
96
 
98
97
  compass_config_path = File.join(@base_dir, "config", "compass.rb")
99
98
 
@@ -0,0 +1,5 @@
1
+ ["installer", "configuration_defaults", "app_integration"].each do |file|
2
+ require File.join(File.dirname(__FILE__), "compass", file)
3
+ end
4
+
5
+ Compass.add_configuration(:staticmatic)
@@ -4,6 +4,8 @@ module Compass
4
4
  module Staticmatic
5
5
 
6
6
  extend self
7
+
8
+
7
9
 
8
10
  def installer(*args)
9
11
  Installer.new(*args)
@@ -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
@@ -49,7 +49,7 @@ module StaticMatic
49
49
  use Rack::ShowExceptions
50
50
  run StaticMatic::Server.new(staticmatic)
51
51
  end
52
- Rack::Handler::Mongrel.run(app, :Port => port, :Host => host)
52
+ Rack::Handler::WEBrick.run(app, :Port => port, :Host => host)
53
53
  end
54
54
 
55
55
  private
@@ -0,0 +1,3 @@
1
+ require "staticmatic/compass"
2
+
3
+ project_type = :staticmatic
@@ -1,11 +1,3 @@
1
+ require "staticmatic/compass"
1
2
 
2
- output_style = :expanded
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
- - 7
11
- version: 0.11.0.alpha.7
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-30 00:00:00 +01:00
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: &id004 !ruby/object:Gem::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
- version: "0"
58
+ - 10
59
+ - 0
60
+ version: 0.10.0
73
61
  type: :runtime
74
- version_requirements: *id004
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