atomizr 0.18.0 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/atomizr +6 -5
- data/lib/atomizr.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ea5330ae05a0f131d9acfcd29b37ce1cbeb93d3
|
4
|
+
data.tar.gz: f9be0ff8de9b2dbe2eaf209655a922b6f417d77e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4227c552b1cdadafafe19d5f7cc0ec74387ae79048795d8e0cf5a299cacc9fc6f30e26da4875521ccf46531430c1e52a4ef0b1667b4f11547e3096b29a2a59c
|
7
|
+
data.tar.gz: 4bacbf9976366be0277eede45503af4a574583f1e458bb9e4e1b893605182c5fc57960ea787ed8a3b228348dfb926c88c1de1587109d46b8df98fb7a1c09dd8d
|
data/bin/atomizr
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require "atomizr"
|
4
|
+
require "fileutils"
|
4
5
|
require "optparse"
|
5
6
|
|
6
7
|
# default options
|
@@ -119,12 +120,12 @@ $input.each do |input|
|
|
119
120
|
if (input.end_with? ".sublime-completions") || (input.end_with? ".json")
|
120
121
|
|
121
122
|
Atomizr.read_file(input, "json")
|
122
|
-
delete_file(input) if $delete_input == true
|
123
|
+
Atomizr.delete_file(input) if $delete_input == true
|
123
124
|
|
124
125
|
elsif (input.end_with? ".sublime-snippet") || (input.end_with? ".tmSnippet")|| (input.end_with? ".xml")
|
125
126
|
|
126
127
|
Atomizr.read_file(input, "xml")
|
127
|
-
delete_file(input) if $delete_input == true
|
128
|
+
Atomizr.delete_file(input) if $delete_input == true
|
128
129
|
|
129
130
|
elsif File.directory?(input)
|
130
131
|
|
@@ -158,8 +159,8 @@ $input.each do |input|
|
|
158
159
|
@parent = "#{$folder}/#{$output}"
|
159
160
|
@target = @parent+'/.tmp/'+item[0]+'/'
|
160
161
|
|
161
|
-
mkdir(@target)
|
162
|
-
copy_file(file, @target+@base, false)
|
162
|
+
Atomizr.mkdir(@target)
|
163
|
+
Atomizr.copy_file(file, @target+@base, false)
|
163
164
|
end
|
164
165
|
|
165
166
|
end
|
@@ -181,7 +182,7 @@ $input.each do |input|
|
|
181
182
|
end
|
182
183
|
end
|
183
184
|
|
184
|
-
delete_file(input) if $delete_input == true
|
185
|
+
Atomizr.delete_file(input) if $delete_input == true
|
185
186
|
puts "\nCompleted."
|
186
187
|
exit
|
187
188
|
|
data/lib/atomizr.rb
CHANGED