renumber 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/renumber/version.rb +1 -1
- data/lib/renumber.rb +2 -0
- 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: b3e6ccb17d5851f28e40ca9af9b2c561b3449401
|
4
|
+
data.tar.gz: 9d21d21d6a05b9f9c921ae671d1d752ef317b894
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 999777a5ee83ed945afb2e133415d0fa2d17013a41e494d0d868a060e0fab4b02024d20285cbb54879a1676824b85b6948f95ecbac84d858276e24484814f94c
|
7
|
+
data.tar.gz: b0059134f6f8b9c3f2877d2d5a7140ad483b64c34fa9f3e711f6c606f525706fd43905ae0da6fe97c822e9bb92b6d33c2b16f303fd0af4e600c6030eb693dacc
|
data/README.md
CHANGED
@@ -22,7 +22,14 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
+
```ruby
|
26
|
+
require 'renumber'
|
27
|
+
include Renumber
|
28
|
+
|
29
|
+
sorted_files '.' # -> 0, 3, 4
|
25
30
|
|
31
|
+
change_files '.', 'prefix', '.txt' # -> prefix0.txt, prefix1.txt, prefix2.txt
|
32
|
+
```
|
26
33
|
|
27
34
|
## Contributing
|
28
35
|
|
data/lib/renumber/version.rb
CHANGED
data/lib/renumber.rb
CHANGED