nx-file-utils 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 697647b2f9798c925ecaf90920b3a823b4ab15386c69a5d3d8b484e58109350e
4
- data.tar.gz: 035e2f75c2dcf1132f40f7ca9766600565a1677f15e753f916e1618aaa5b6809
3
+ metadata.gz: '0718a5903a590c7d2108462adce182175049153b890ec67dbf7dbd935d2b6e08'
4
+ data.tar.gz: 931435ebea5e6c6f387b4e17f2a84b78c5a98f36a81078ed253f72b9404ea448
5
5
  SHA512:
6
- metadata.gz: 62608c3861eb7b6ef31a5b9bcad4419b4707b28388155986302dbe6501b4a4e2cfe0cec1a794f250abbc1806bc00aabb739c847bf0dc8be6bad492239dc28111
7
- data.tar.gz: 9d11cacaf60dff67a1ec9d4c23734cf0db0ec81e3f0730b3e914491215454ec9b0d0cdac7ce26dece9fa434a8a62623ebf09c9260ad1a4ae50cbb53cd2fd0540
6
+ metadata.gz: fdd25d907bb0c52d3b28c08c65eca41cee0d076e838d5a8d7b9b5874dc6f1965d48bc878a9d9d68d09ccda17932135ed6f75b8ed4349d29300075af6dcc2ce7e
7
+ data.tar.gz: d1a804507f78c37266ab37bb75e4ed1b5534277647da001c597d7ca122d60e0012a0dff142c4923bdf749274a7c3ec60ca5c8449b5a776ba71918271fc90005c
data/lib/nx/file-utils.rb CHANGED
@@ -7,7 +7,6 @@ module Nx
7
7
  bad_chars = ["/", '\\', "?", "%", "*", "|", '"', "<", ">", "-", "(", "(", ")", ")", "、"]
8
8
  bad_chars.each do |char|
9
9
  in_name.gsub!(" ", "")
10
- in_name.gsub!(":", ":")
11
10
  in_name.gsub!(",", ",")
12
11
  in_name.gsub!(char, "_")
13
12
  end
@@ -21,6 +20,11 @@ module Nx
21
20
  prefix = options[:number].to_s.rjust(options[:width], options[:char])
22
21
  prefix + options[:separator] + in_name
23
22
  end
23
+
24
+ def rename(in_name, in_new_name)
25
+ file = File.basename in_name
26
+ dir = File.dirname in_name
27
+ end
24
28
  end
25
29
  end
26
30
  end
data/lib/nx/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Nx
2
2
  class FileUtils
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nx-file-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - afeiship
@@ -61,7 +61,7 @@ files:
61
61
  - lib/nx-file-utils.rb
62
62
  - lib/nx/file-utils.rb
63
63
  - lib/nx/version.rb
64
- - nx-file-utils-0.1.0.gem
64
+ - nx-file-utils-0.1.1.gem
65
65
  - nx-file-utils.gemspec
66
66
  - package.json
67
67
  homepage: https://github.com/afeiship/nx-file-utils
Binary file