modname 0.2 → 0.2.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/lib/modname/version.rb +1 -1
  3. data/readme.md +54 -3
  4. metadata +18 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f50f9ac75d94e1198c7428c0320ae0b21c8bee7
4
- data.tar.gz: 6cec21fe52d84ba870a7f8000f6262112c28bf1e
3
+ metadata.gz: f834259d894601d09c3bfe15f6577b9114261ae5
4
+ data.tar.gz: b913671d9a73512fd7636396156eb13ba460ee2d
5
5
  SHA512:
6
- metadata.gz: b0798503891d854c2e9ff18a90dd3b93216444295853600e5a232a266a022d2a49c718d2fe00574a0ad4d660e594916e651121bab8ef69952017c1a9910b02b4
7
- data.tar.gz: b6f70e107bd19b801e9d39c1cb0bc42178278e146e19cb597fe5220e5826541db3cfc7b425918894d3c351a9ca54496055106adb0ab41a3b60e3a49db79d928f
6
+ metadata.gz: e332251185cee6633d88116019a7bc3070225be725e56926eea811df5956dfc9d2a55c06a28c8f43b35753910a188971e4008fbfcb12618d3a0816cc8f5beede
7
+ data.tar.gz: 152c521a122bbcc1fea3af779206c38088babb16f9f031e7bb6f36dedce2c0f54fcd4e9e4d3004c695f0f026804965c2bff7dbdec92da1261249e4de95c556a7
@@ -1,3 +1,3 @@
1
1
  module Modname
2
- Version = "0.2"
2
+ Version = "0.2.1"
3
3
  end
data/readme.md CHANGED
@@ -7,6 +7,8 @@ modname
7
7
  [![MIT](https://img.shields.io/npm/l/alt.svg?style=flat)](http://jeremywrnr.com/mit-license)
8
8
 
9
9
 
10
+ ## about
11
+
10
12
  a versatile file naming tool.
11
13
 
12
14
  easily rename groups of files with regex replacements.
@@ -16,13 +18,62 @@ also supports easily changing file extensions.
16
18
 
17
19
  ## setup
18
20
 
19
- $ [sudo] gem install modname
21
+ [sudo] gem install modname
20
22
 
21
- ## modname usage
23
+ ## usage
24
+
25
+ ```
26
+ modname [options] <match> [transform]
27
+
28
+ modname | rename files, fast
29
+ -e | change file extensions
30
+ -f | force run; don't pre-check
31
+ -r | run modname recursively
32
+ -h | show more help, examples
33
+
34
+ commands
35
+ file names
36
+ atch] [trans] => modify a pattern in filenames
37
+ atch] => delete a pattern from filenames
38
+
39
+ extensions (-e)
40
+ [old] [new] => move file extensions, <old> to <new>
41
+ [ext] => lowercase one extension type (EXT => ext)
42
+ nil => move all extensions to lower case
43
+
44
+ examples
45
+ file names
46
+ modname hello => deletes 'hello' from all filenames
47
+ modname hello byebye => replace 'hello' with byebye
48
+
49
+ extensions (-e)
50
+ modname -e txt md => move all txt files to markdown
51
+ modname -e mov mp4 => move all mov files to mp4
52
+
53
+ Note: <required> [optional]
54
+ ```
22
55
 
23
- ## about
24
56
 
25
57
  ## development / testing
26
58
 
59
+ To build from source, first install the project dependencies. This project
60
+ uses `bundler`, the standard ruby gem management system. If you don't have it,
61
+ try running `gem install bundler`. Once that is done:
62
+
63
+ bundle install
64
+
65
+ Now, we should be able to build the gem locally. This will build the local
66
+ modname gem and link it in your path, so you can playing around with `modname`.
67
+
68
+ rake build
69
+
70
+ This uses `rspec` and `rake` to run a suite of unit tests. To run the suite:
71
+
72
+ rake
73
+
74
+
27
75
  ## todos
28
76
 
77
+ - only try to rename filenames, not folders on recursive calls
78
+ - figure out whats up with the extension globbing
79
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modname
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Warner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-18 00:00:00.000000000 Z
11
+ date: 2016-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: ronn
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -79,7 +93,7 @@ files:
79
93
  - lib/modname/modder.rb
80
94
  - lib/modname/version.rb
81
95
  - readme.md
82
- homepage: http://github.com/jeremywrnr/booker
96
+ homepage: http://github.com/jeremywrnr/modname
83
97
  licenses:
84
98
  - MIT
85
99
  metadata: {}
@@ -104,3 +118,4 @@ signing_key:
104
118
  specification_version: 4
105
119
  summary: a versatile file naming tool.
106
120
  test_files: []
121
+ has_rdoc: