turingstudio-webloc_cleaner 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/webloc_cleaner.rb +4 -2
  2. metadata +1 -1
@@ -5,7 +5,7 @@ require 'simpleconsole'
5
5
  require 'activesupport'
6
6
 
7
7
  module WeblocCleaner
8
- VERSION = '1.0.2'
8
+ VERSION = '1.0.3'
9
9
 
10
10
  class Controller < SimpleConsole::Controller
11
11
  def default
@@ -33,10 +33,12 @@ module WeblocCleaner
33
33
 
34
34
  ok.each do |file|
35
35
  url = webloc_url(file)
36
- File.open(file.gsub(/\.webloc$/, '.url'), 'w') do |f|
36
+ url_file = file.gsub(/\.webloc$/, '.url')
37
+ File.open(url_file, 'w') do |f|
37
38
  f.write "[InternetShortcut]\r\nURL=#{url}"
38
39
  end
39
40
  File.delete(file)
41
+ puts %Q("#{file}" converted to "#{url_file}")
40
42
  end
41
43
  end
42
44
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turingstudio-webloc_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Turing Studio, Inc.