tdreyno-staticmatic 2.9.1 → 2.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ body {
2
+ font-size: 12px; }
@@ -0,0 +1,37 @@
1
+ require 'fileutils'
2
+
3
+ describe "Generator" do
4
+ def project_file(*parts)
5
+ File.expand_path(File.join(File.dirname(__FILE__), "..", *parts))
6
+ end
7
+
8
+ before :all do
9
+ @root_dir = project_file("spec", "fixtures", "generator-test")
10
+ end
11
+
12
+ before :each do
13
+ init_cmd = project_file("bin", "sm-init")
14
+ `cd #{File.dirname(@root_dir)} && #{init_cmd} #{File.basename(@root_dir)}`
15
+ end
16
+
17
+ after :each do
18
+ FileUtils.rm_rf(@root_dir)
19
+ end
20
+
21
+ it "should copy template files" do
22
+ template_dir = project_file("lib", "template", "**/*")
23
+ Dir[template_dir].each do |f|
24
+ File.exists?("#{@root_dir}/#{f.split('template/')[1]}").should be_true
25
+ end
26
+ end
27
+
28
+ it "should create empty directories" do
29
+ %w(build javascripts images).each do |d|
30
+ File.exists?("#{@root_dir}/#{d}").should be_true
31
+ end
32
+ end
33
+
34
+ xit "should use user-defined template directory" do
35
+ # Write support/spec
36
+ end
37
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tdreyno-staticmatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.1
4
+ version: 2.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Bartholomew
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2008-12-18 00:00:00 -08:00
13
+ date: 2008-12-25 00:00:00 -08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -29,7 +29,7 @@ dependencies:
29
29
  requirements:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.0.0
32
+ version: 1.0.5
33
33
  version:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: merb-haml
@@ -38,7 +38,7 @@ dependencies:
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 1.0.0
41
+ version: 1.0.5
42
42
  version:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: merb-assets
@@ -47,7 +47,7 @@ dependencies:
47
47
  requirements:
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: 1.0.0
50
+ version: 1.0.5
51
51
  version:
52
52
  description:
53
53
  email: tdreyno@gmail.com
@@ -73,15 +73,8 @@ files:
73
73
  - lib/template/layout/site.html.haml
74
74
  - lib/template/pages/index.html.haml
75
75
  - lib/template/stylesheets/sass/site.sass
76
- - spec/base_spec.rb
76
+ - spec/generator_spec.rb
77
77
  - spec/builder_spec.rb
78
- - spec/fixtures/sample/build/haml_test.html
79
- - spec/fixtures/sample/build/hello_world.html
80
- - spec/fixtures/sample/build/index.html
81
- - spec/fixtures/sample/build/page_with_error.html
82
- - spec/fixtures/sample/build/services/index.html
83
- - spec/fixtures/sample/build/services/web_development.html
84
- - spec/fixtures/sample/build/stylesheets/site.css
85
78
  - spec/fixtures/sample/helpers/speech_helper.rb
86
79
  - spec/fixtures/sample/pages/layout/site.html.erb
87
80
  - spec/fixtures/sample/pages/layout/specified_layout.html.erb
@@ -90,14 +83,11 @@ files:
90
83
  - spec/fixtures/sample/pages/hello_world.html.erb
91
84
  - spec/fixtures/sample/pages/index.html.erb
92
85
  - spec/fixtures/sample/pages/partial_test.html.erb
93
- - spec/fixtures/sample/pages/liquid_test.html.liquid
94
- - spec/fixtures/sample/pages/markdown_test.html.markdown
95
- - spec/fixtures/sample/pages/page_with_error.html.nothaml
96
86
  - spec/fixtures/sample/pages/specify_layout.html.erb
97
87
  - spec/fixtures/sample/pages/static.html
98
- - spec/fixtures/sample/pages/textile_test.html.textile
99
88
  - spec/fixtures/sample/pages/services/index.html.erb
100
89
  - spec/fixtures/sample/pages/services/web_development.html.erb
90
+ - spec/fixtures/sample/stylesheets/static.css
101
91
  - spec/fixtures/sample/stylesheets/sass/site.sass
102
92
  has_rdoc: false
103
93
  homepage: http://github.com/tdreyno/staticmatic
@@ -124,17 +114,10 @@ rubyforge_project:
124
114
  rubygems_version: 1.2.0
125
115
  signing_key:
126
116
  specification_version: 2
127
- summary: Static sites, the Rails Way
117
+ summary: Static sites, the Merb Way
128
118
  test_files:
129
- - spec/base_spec.rb
119
+ - spec/generator_spec.rb
130
120
  - spec/builder_spec.rb
131
- - spec/fixtures/sample/build/haml_test.html
132
- - spec/fixtures/sample/build/hello_world.html
133
- - spec/fixtures/sample/build/index.html
134
- - spec/fixtures/sample/build/page_with_error.html
135
- - spec/fixtures/sample/build/services/index.html
136
- - spec/fixtures/sample/build/services/web_development.html
137
- - spec/fixtures/sample/build/stylesheets/site.css
138
121
  - spec/fixtures/sample/helpers/speech_helper.rb
139
122
  - spec/fixtures/sample/pages/layout/site.html.erb
140
123
  - spec/fixtures/sample/pages/layout/specified_layout.html.erb
@@ -143,12 +126,9 @@ test_files:
143
126
  - spec/fixtures/sample/pages/hello_world.html.erb
144
127
  - spec/fixtures/sample/pages/index.html.erb
145
128
  - spec/fixtures/sample/pages/partial_test.html.erb
146
- - spec/fixtures/sample/pages/liquid_test.html.liquid
147
- - spec/fixtures/sample/pages/markdown_test.html.markdown
148
- - spec/fixtures/sample/pages/page_with_error.html.nothaml
149
129
  - spec/fixtures/sample/pages/specify_layout.html.erb
150
130
  - spec/fixtures/sample/pages/static.html
151
- - spec/fixtures/sample/pages/textile_test.html.textile
152
131
  - spec/fixtures/sample/pages/services/index.html.erb
153
132
  - spec/fixtures/sample/pages/services/web_development.html.erb
133
+ - spec/fixtures/sample/stylesheets/static.css
154
134
  - spec/fixtures/sample/stylesheets/sass/site.sass