middleman-remover 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -6
- data/README.jp.md +2 -0
- data/README.md +2 -0
- data/Rakefile +13 -0
- data/features/remover.feature +60 -0
- data/lib/middleman-remover/extension.rb +1 -1
- data/lib/middleman-remover/version.rb +1 -1
- data/middleman-remover.gemspec +6 -6
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c1bb22cd01d2193c7c70fd39b6310553110e0b3
|
4
|
+
data.tar.gz: 265ab11da03683867c1ccad5f4f2bebf32392dd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2109c8cfdc96ec4410ae35673f1012f65a8e070d1fb72e2c1c5e7311aa3e153ba634296232e46b0b48a01cb4e9d9489ff2f6302733f961b416d0113f3df398b
|
7
|
+
data.tar.gz: 5b10d7ddb9d2f9d52b66346b9531a9548f481fabce6f077717669354bda14ac7fda941c9753aae9e70006c3528126f64d9220255e45047855fe76abbe7cbea79
|
data/.travis.yml
CHANGED
@@ -1,19 +1,21 @@
|
|
1
1
|
language: ruby
|
2
|
-
|
2
|
+
sudo: false
|
3
3
|
rvm:
|
4
4
|
- ruby-head
|
5
5
|
- jruby-head
|
6
|
-
- jruby-19mode
|
7
6
|
- 2.2
|
8
7
|
- 2.1
|
9
8
|
- 2.0
|
10
|
-
- 1.9.3
|
11
9
|
os:
|
12
10
|
- linux
|
13
11
|
- osx
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
matrix:
|
13
|
+
fast_finish: true
|
14
|
+
allow_failures:
|
15
|
+
- rvm: ruby-head
|
16
|
+
- rvm: jruby-head
|
17
|
+
script: bundle exec rake test
|
18
|
+
env: TEST=true
|
17
19
|
notifications:
|
18
20
|
slack:
|
19
21
|
secure: jEYk3mSCnUEK3xoU42RrqSxim4zWQYtyTKd54A8GbN05woayc0HeSx1YAFxwR/B4w4A/w2EzAFXXZzGDy3uvoQGGEHIkj3IVcGcZGre9G2LuvIozKfxq6Erg696VkwAJ58aM3WVOxhWxDrRCF4y5NHyrn2IGtmPcK4R4iEn8RHQ=
|
data/README.jp.md
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -1,2 +1,15 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
|
+
require "middleman-core/version"
|
2
3
|
|
4
|
+
task default: :test
|
5
|
+
|
6
|
+
desc "test command"
|
7
|
+
task :test do
|
8
|
+
version = ::Middleman::VERSION
|
9
|
+
|
10
|
+
if /^4\./ =~ ::Middleman::VERSION
|
11
|
+
sh 'cucumber --tags ~@v3 features/'
|
12
|
+
else
|
13
|
+
sh 'cucumber --tags ~@v4 features/'
|
14
|
+
end
|
15
|
+
end
|
data/features/remover.feature
CHANGED
@@ -108,6 +108,7 @@ Feature: Middleman-Remover
|
|
108
108
|
When I cd to "build"
|
109
109
|
Then a directory named "dir" should not exist
|
110
110
|
|
111
|
+
@v3
|
111
112
|
Scenario: Remove file with WILDCARD
|
112
113
|
Given a fixture app "basic-app"
|
113
114
|
And a file named "config.rb" with:
|
@@ -130,6 +131,29 @@ Feature: Middleman-Remover
|
|
130
131
|
And a file named "dir/empty" should not exist
|
131
132
|
And a file named "dir/something.html" should not exist
|
132
133
|
|
134
|
+
@v4
|
135
|
+
Scenario: Remove file with WILDCARD
|
136
|
+
Given a fixture app "basic-app"
|
137
|
+
And a file named "config.rb" with:
|
138
|
+
"""
|
139
|
+
configure :build do
|
140
|
+
activate :remover, :paths => %w(dir/*)
|
141
|
+
end
|
142
|
+
"""
|
143
|
+
And a directory named "source/dir"
|
144
|
+
And a file named "source/dir/empty" with:
|
145
|
+
"""
|
146
|
+
"""
|
147
|
+
And a file named "source/dir/something.html" with:
|
148
|
+
"""
|
149
|
+
<html><head><title>something</title></head><body></body></html>
|
150
|
+
"""
|
151
|
+
And a successfully built app at "basic-app"
|
152
|
+
When I cd to "build"
|
153
|
+
Then a directory named "dir" should not exist
|
154
|
+
And a file named "dir/empty" should not exist
|
155
|
+
And a file named "dir/something.html" should not exist
|
156
|
+
|
133
157
|
Scenario: Remove file with WILDCARD and extension
|
134
158
|
Given a fixture app "basic-app"
|
135
159
|
And a file named "config.rb" with:
|
@@ -152,6 +176,7 @@ Feature: Middleman-Remover
|
|
152
176
|
And a file named "dir/empty" should exist
|
153
177
|
And a file named "dir/something.html" should not exist
|
154
178
|
|
179
|
+
@v3
|
155
180
|
Scenario: Remove Some files/Directories
|
156
181
|
Given a fixture app "basic-app"
|
157
182
|
And a file named "config.rb" with:
|
@@ -186,3 +211,38 @@ Feature: Middleman-Remover
|
|
186
211
|
And a file named "dir1/something.html" should not exist
|
187
212
|
And a file named "dir2/sample.dat" should not exist
|
188
213
|
|
214
|
+
@v4
|
215
|
+
Scenario: Remove Some files/Directories
|
216
|
+
Given a fixture app "basic-app"
|
217
|
+
And a file named "config.rb" with:
|
218
|
+
"""
|
219
|
+
configure :build do
|
220
|
+
activate :remover, :paths => %w(dir1/*.html dir2/*.dat /dir3)
|
221
|
+
end
|
222
|
+
"""
|
223
|
+
And a directory named "source/dir1"
|
224
|
+
And a directory named "source/dir2"
|
225
|
+
And a directory named "source/dir3"
|
226
|
+
And a file named "source/dir1/empty" with:
|
227
|
+
"""
|
228
|
+
"""
|
229
|
+
And a file named "source/dir1/something.html" with:
|
230
|
+
"""
|
231
|
+
<html><head><title>something</title></head><body></body></html>
|
232
|
+
"""
|
233
|
+
And a file named "source/dir2/sample.dat" with:
|
234
|
+
"""
|
235
|
+
sample
|
236
|
+
"""
|
237
|
+
And a file named "source/dir3/empty" with:
|
238
|
+
"""
|
239
|
+
"""
|
240
|
+
And a successfully built app at "basic-app"
|
241
|
+
When I cd to "build"
|
242
|
+
Then a directory named "dir1" should exist
|
243
|
+
And a directory named "dir2" should not exist
|
244
|
+
And a directory named "dir3" should not exist
|
245
|
+
And a file named "dir1/empty" should exist
|
246
|
+
And a file named "dir1/something.html" should not exist
|
247
|
+
And a file named "dir2/sample.dat" should not exist
|
248
|
+
|
data/middleman-remover.gemspec
CHANGED
@@ -17,12 +17,12 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
|
-
spec.required_ruby_version = '>=
|
20
|
+
spec.required_ruby_version = '>= 2.0.0'
|
21
21
|
|
22
|
-
spec.add_runtime_dependency "middleman", "
|
22
|
+
spec.add_runtime_dependency "middleman", ">= 3.3"
|
23
23
|
|
24
|
-
spec.add_development_dependency "cucumber", "
|
25
|
-
spec.add_development_dependency "aruba", "
|
26
|
-
spec.add_development_dependency "bundler", "
|
27
|
-
spec.add_development_dependency "rake", "
|
24
|
+
spec.add_development_dependency "cucumber", ">= 1.3"
|
25
|
+
spec.add_development_dependency "aruba", ">= 0.6"
|
26
|
+
spec.add_development_dependency "bundler", ">= 1.5"
|
27
|
+
spec.add_development_dependency "rake", ">= 10"
|
28
28
|
end
|
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-remover
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yterajima
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: cucumber
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: aruba
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0.6'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0.6'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '1.5'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.5'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '10'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '10'
|
83
83
|
description: Remove some files fron build dir
|
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
115
|
requirements:
|
116
116
|
- - ">="
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
118
|
+
version: 2.0.0
|
119
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - ">="
|