stitch-plus 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +4 -0
- data/lib/stitch-plus.rb +5 -4
- data/lib/stitch-plus/version.rb +1 -1
- data/test/test.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTdiODc5ZWVmZDgxMDIzNTA0ZTJiMDNhM2YwZmNjNmEzNzYxNzUzZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDg3OTU0ZTAyNmNlMTM2MDQzOTZiYzc2MDNmYjZiMjdhNTk5ZjBmNw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZGJhNWIwNjJhOWZjM2RlYzNiNWY1NmE0NTIzMDQxMTk3NzY4NDkzOTgzZGY2
|
10
|
+
ZmIxNDQ1OThiY2Y0Y2Y3NmJjZTMwYmFkZDAwYmIyYzVkZTQ0YzFlMzc0Zjlh
|
11
|
+
MmJkNTIyMDI4MGE2M2JlYTJlZmU1N2M4MGNiYjRkMGMzY2U2Yzc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWJhMGUyZjQwNTQ4ODVhY2E5YzE3NjJjZjNiZWEwYjk5OGYzYjEwMWVjNzg4
|
14
|
+
NDhlZWQ4YmYxOWE5MmI3MzEzNmZjYTEyNGQ0ZmYyZGZhYjBjZTRkYjE5ODY2
|
15
|
+
OGQwMTZmNTJiNDhiYjQ3NjYxOTI1YWZjN2FjZmYzYjFjNGQ5Yzc=
|
data/CHANGELOG.md
CHANGED
data/lib/stitch-plus.rb
CHANGED
@@ -4,7 +4,7 @@ require 'colorator'
|
|
4
4
|
require 'yaml'
|
5
5
|
|
6
6
|
class StitchPlus
|
7
|
-
attr_accessor :options
|
7
|
+
attr_accessor :options, :deleted
|
8
8
|
|
9
9
|
def initialize(options={})
|
10
10
|
|
@@ -18,6 +18,7 @@ class StitchPlus
|
|
18
18
|
:uglify_options => {},
|
19
19
|
:config => nil
|
20
20
|
}
|
21
|
+
@deleted = []
|
21
22
|
|
22
23
|
set_options(options)
|
23
24
|
|
@@ -154,11 +155,11 @@ class StitchPlus
|
|
154
155
|
|
155
156
|
# Remove existing generated files with the same options[:output] name
|
156
157
|
def cleanup(file)
|
157
|
-
|
158
|
-
|
159
|
-
if File.basename(item) != File.basename(file) and File.basename(item).match /^#{match[0]}(-.+)?#{match[1]}/i
|
158
|
+
Dir.glob(@options[:output].sub(/\./, '*')).each do |item|
|
159
|
+
if File.basename(item) != File.basename(file)
|
160
160
|
info "Stitch " + "deleted ".red + item
|
161
161
|
FileUtils.rm(item)
|
162
|
+
@deleted << item
|
162
163
|
end
|
163
164
|
end
|
164
165
|
end
|
data/lib/stitch-plus/version.rb
CHANGED
data/test/test.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stitch-plus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: stitch-rb
|