rename_radically 0.1.0 → 0.2.0
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.
- checksums.yaml +4 -4
- data/bin/rnr +1 -1
- data/lib/rename_radically.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 380219f5284979eaf6db64a4bf815683ce3cbbb7
|
4
|
+
data.tar.gz: 5277e107bc576eeb5205399cb6f89620db75853f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2c72642c51d8a9e0438f052080fd1fd08158ed22bb4e2dfa5994aae84305f2143b826f8869537050f427b766b14e67b4af9bc229fcb37a9401a1843a09f2f87
|
7
|
+
data.tar.gz: 01798c59e5657c956d21b9ee31750656cc46efc36ee7a33c2207066f28ac3fbae20d6f1e9cc71f2d56d4727a2d69fcc33273ad73a74c76b5b24d803b842b7343
|
data/bin/rnr
CHANGED
data/lib/rename_radically.rb
CHANGED
@@ -27,7 +27,7 @@ class ReNameRadically
|
|
27
27
|
|
28
28
|
# Constructor: takes the path of the config file as a parameter, and ensures
|
29
29
|
# it contains the right info. If not, it gets created anew.
|
30
|
-
def initialize( config_file )
|
30
|
+
def initialize( config_file = "#{ENV['HOME']}/.rnr" )
|
31
31
|
@config = Pathname.new config_file
|
32
32
|
|
33
33
|
# Attempt to read from the config file:
|
@@ -243,8 +243,8 @@ class ReNameRadically
|
|
243
243
|
|
244
244
|
# Replace the characters contained in the "as_spaces" field in the config
|
245
245
|
# file with spaces:
|
246
|
-
@as_spaces.each do |
|
247
|
-
file_name
|
246
|
+
@as_spaces.each do |remove|
|
247
|
+
file_name.gsub! remove, " "
|
248
248
|
end
|
249
249
|
|
250
250
|
# Add a space after each delimiter:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rename_radically
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maurizio Oliveri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unicode
|