atomizr 0.18.0 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/atomizr +6 -5
  3. data/lib/atomizr.rb +2 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a56751156f8d212eee3aac8f422169a4d2658a27
4
- data.tar.gz: '09b2ee2faa2025a92ffb7f40a586e416604d189a'
3
+ metadata.gz: 9ea5330ae05a0f131d9acfcd29b37ce1cbeb93d3
4
+ data.tar.gz: f9be0ff8de9b2dbe2eaf209655a922b6f417d77e
5
5
  SHA512:
6
- metadata.gz: 58a3918e0dcb3d1eb27060690fdcb1dbc99a5fbdb0450585c1a5fa4ff8ab1e35e41379f423a14fa83e0a668656f0e1697c642c22c93fe245ceb09e9de64e390c
7
- data.tar.gz: 67a1ebee2b3a2117d4c2e0113e0a366153eea4aaa9a58f310ea9f712efa73602ecbc5543363387910e4053f95c1fa2bd34a02f30ee6eca0ea447e9d9207cc04b
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
@@ -1,10 +1,11 @@
1
1
  require "json"
2
2
  require "nokogiri"
3
+ require "fileutils"
3
4
 
4
5
  class Atomizr
5
6
 
6
7
  @name = "Atomizr"
7
- @version = "0.18.0"
8
+ @version = "0.18.1"
8
9
  @author = "Jan T. Sott"
9
10
  @homepage = "https://github.com/idleberg/atomizr.rb"
10
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atomizr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan T. Sott