stasis 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
data/README.md CHANGED
@@ -3,6 +3,8 @@ Stasis
3
3
 
4
4
  Stasis is a dynamic framework for static sites.
5
5
 
6
+ [![Build Status](https://secure.travis-ci.org/winton/stasis.png)](http://travis-ci.org/winton/stasis)
7
+
6
8
  Install
7
9
  -------
8
10
 
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'bundler'
2
2
  require 'bundler/gem_tasks'
3
+ require 'spec/rake/spectask'
3
4
 
4
5
  Bundler.setup(:development)
5
6
 
@@ -21,4 +22,9 @@ task :site do
21
22
  end
22
23
 
23
24
  desc "Build Rocco Docs"
24
- Rocco::make 'docs/'
25
+ Rocco::make 'docs/'
26
+
27
+ Spec::Rake::SpecTask.new(:spec) do |t|
28
+ t.spec_files = FileList['spec/**/*_spec.rb']
29
+ end
30
+ task :default => :spec
@@ -80,7 +80,7 @@ class Stasis
80
80
  @destination = File.expand_path(@destination, @root)
81
81
 
82
82
  # Create an `Array` of paths that Stasis will act upon.
83
- @paths = Dir["#{@root}/**/*"]
83
+ @paths = Dir.glob("#{@root}/**/*", File::FNM_DOTMATCH)
84
84
 
85
85
  # Reject paths that are directories or within the destination directory.
86
86
  @paths.reject! do |path|
File without changes
@@ -19,7 +19,7 @@ end
19
19
 
20
20
  def generate_files
21
21
  pub = "#{$fixture}/public"
22
- $files = Dir["#{pub}/**/*"].inject({}) do |hash, path|
22
+ $files = Dir.glob("#{pub}/**/*", File::FNM_DOTMATCH).inject({}) do |hash, path|
23
23
  if File.file?(path)
24
24
  hash[path[pub.length+1..-1]] = File.read(path)
25
25
  end
@@ -5,6 +5,10 @@ describe Stasis do
5
5
  before(:all) do
6
6
  generate
7
7
  end
8
+
9
+ it "should preserve dotfiles" do
10
+ $files.keys.include?(".dotfile").should == true
11
+ end
8
12
 
9
13
  it "should copy files that are not markup" do
10
14
  $files['not_dynamic.html'].should =~ /pass/
@@ -6,7 +6,7 @@ $:.unshift lib unless $:.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "stasis"
9
- s.version = '0.1.16'
9
+ s.version = '0.1.17'
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = [ 'Winton Welsh' ]
12
12
  s.email = [ 'mail@wintoni.us' ]
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.add_development_dependency "coffee-script"
24
24
  s.add_development_dependency "haml"
25
25
  s.add_development_dependency "nokogiri"
26
+ s.add_development_dependency "rake"
26
27
  s.add_development_dependency "rocco"
27
28
  s.add_development_dependency "rspec", "~> 1.0"
28
29
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stasis
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 16
10
- version: 0.1.16
9
+ - 17
10
+ version: 0.1.17
11
11
  platform: ruby
12
12
  authors:
13
13
  - Winton Welsh
@@ -86,10 +86,24 @@ dependencies:
86
86
  version: "0"
87
87
  requirement: *id005
88
88
  prerelease: false
89
- name: rocco
89
+ name: rake
90
90
  type: :development
91
91
  - !ruby/object:Gem::Dependency
92
92
  version_requirements: &id006 !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ hash: 3
98
+ segments:
99
+ - 0
100
+ version: "0"
101
+ requirement: *id006
102
+ prerelease: false
103
+ name: rocco
104
+ type: :development
105
+ - !ruby/object:Gem::Dependency
106
+ version_requirements: &id007 !ruby/object:Gem::Requirement
93
107
  none: false
94
108
  requirements:
95
109
  - - ~>
@@ -99,12 +113,12 @@ dependencies:
99
113
  - 1
100
114
  - 0
101
115
  version: "1.0"
102
- requirement: *id006
116
+ requirement: *id007
103
117
  prerelease: false
104
118
  name: rspec
105
119
  type: :development
106
120
  - !ruby/object:Gem::Dependency
107
- version_requirements: &id007 !ruby/object:Gem::Requirement
121
+ version_requirements: &id008 !ruby/object:Gem::Requirement
108
122
  none: false
109
123
  requirements:
110
124
  - - ~>
@@ -115,12 +129,12 @@ dependencies:
115
129
  - 4
116
130
  - 1
117
131
  version: 1.4.1
118
- requirement: *id007
132
+ requirement: *id008
119
133
  prerelease: false
120
134
  name: directory_watcher
121
135
  type: :runtime
122
136
  - !ruby/object:Gem::Dependency
123
- version_requirements: &id008 !ruby/object:Gem::Requirement
137
+ version_requirements: &id009 !ruby/object:Gem::Requirement
124
138
  none: false
125
139
  requirements:
126
140
  - - ~>
@@ -131,12 +145,12 @@ dependencies:
131
145
  - 2
132
146
  - 2
133
147
  version: 2.2.2
134
- requirement: *id008
148
+ requirement: *id009
135
149
  prerelease: false
136
150
  name: redis
137
151
  type: :runtime
138
152
  - !ruby/object:Gem::Dependency
139
- version_requirements: &id009 !ruby/object:Gem::Requirement
153
+ version_requirements: &id010 !ruby/object:Gem::Requirement
140
154
  none: false
141
155
  requirements:
142
156
  - - ~>
@@ -147,12 +161,12 @@ dependencies:
147
161
  - 1
148
162
  - 0
149
163
  version: 2.1.0
150
- requirement: *id009
164
+ requirement: *id010
151
165
  prerelease: false
152
166
  name: slop
153
167
  type: :runtime
154
168
  - !ruby/object:Gem::Dependency
155
- version_requirements: &id010 !ruby/object:Gem::Requirement
169
+ version_requirements: &id011 !ruby/object:Gem::Requirement
156
170
  none: false
157
171
  requirements:
158
172
  - - ~>
@@ -163,12 +177,12 @@ dependencies:
163
177
  - 3
164
178
  - 3
165
179
  version: 1.3.3
166
- requirement: *id010
180
+ requirement: *id011
167
181
  prerelease: false
168
182
  name: tilt
169
183
  type: :runtime
170
184
  - !ruby/object:Gem::Dependency
171
- version_requirements: &id011 !ruby/object:Gem::Requirement
185
+ version_requirements: &id012 !ruby/object:Gem::Requirement
172
186
  none: false
173
187
  requirements:
174
188
  - - ~>
@@ -179,7 +193,7 @@ dependencies:
179
193
  - 0
180
194
  - 0
181
195
  version: 1.0.0
182
- requirement: *id011
196
+ requirement: *id012
183
197
  prerelease: false
184
198
  name: yajl-ruby
185
199
  type: :runtime
@@ -194,6 +208,7 @@ extra_rdoc_files: []
194
208
 
195
209
  files:
196
210
  - .gitignore
211
+ - .travis.yml
197
212
  - Gemfile
198
213
  - LICENSE
199
214
  - README.md
@@ -222,6 +237,7 @@ files:
222
237
  - site/stasis.css.scss
223
238
  - site/stasis.js.coffee
224
239
  - site/stasis.png
240
+ - spec/fixtures/project/.dotfile
225
241
  - spec/fixtures/project/_partial.html.haml
226
242
  - spec/fixtures/project/before_render_partial.html.haml
227
243
  - spec/fixtures/project/before_render_text.html.haml
@@ -296,6 +312,7 @@ signing_key:
296
312
  specification_version: 3
297
313
  summary: Static sites made powerful
298
314
  test_files:
315
+ - spec/fixtures/project/.dotfile
299
316
  - spec/fixtures/project/_partial.html.haml
300
317
  - spec/fixtures/project/before_render_partial.html.haml
301
318
  - spec/fixtures/project/before_render_text.html.haml