stasis 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +5 -0
- data/README.md +2 -0
- data/Rakefile +7 -1
- data/lib/stasis.rb +1 -1
- data/spec/fixtures/project/.dotfile +0 -0
- data/spec/spec_helper.rb +1 -1
- data/spec/stasis_spec.rb +4 -0
- data/stasis.gemspec +2 -1
- metadata +32 -15
data/.travis.yml
ADDED
data/README.md
CHANGED
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
|
data/lib/stasis.rb
CHANGED
@@ -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
|
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
|
data/spec/spec_helper.rb
CHANGED
@@ -19,7 +19,7 @@ end
|
|
19
19
|
|
20
20
|
def generate_files
|
21
21
|
pub = "#{$fixture}/public"
|
22
|
-
$files = Dir
|
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
|
data/spec/stasis_spec.rb
CHANGED
data/stasis.gemspec
CHANGED
@@ -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.
|
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:
|
4
|
+
hash: 57
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
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:
|
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: *
|
116
|
+
requirement: *id007
|
103
117
|
prerelease: false
|
104
118
|
name: rspec
|
105
119
|
type: :development
|
106
120
|
- !ruby/object:Gem::Dependency
|
107
|
-
version_requirements: &
|
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: *
|
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: &
|
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: *
|
148
|
+
requirement: *id009
|
135
149
|
prerelease: false
|
136
150
|
name: redis
|
137
151
|
type: :runtime
|
138
152
|
- !ruby/object:Gem::Dependency
|
139
|
-
version_requirements: &
|
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: *
|
164
|
+
requirement: *id010
|
151
165
|
prerelease: false
|
152
166
|
name: slop
|
153
167
|
type: :runtime
|
154
168
|
- !ruby/object:Gem::Dependency
|
155
|
-
version_requirements: &
|
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: *
|
180
|
+
requirement: *id011
|
167
181
|
prerelease: false
|
168
182
|
name: tilt
|
169
183
|
type: :runtime
|
170
184
|
- !ruby/object:Gem::Dependency
|
171
|
-
version_requirements: &
|
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: *
|
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
|