subby 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 +72 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee582d783f834ffed749c63fb3d468bff9919edfdf57e7e38dd1d834dca8cbdd
|
4
|
+
data.tar.gz: f6f02cacf4a3b213daf639045d499da46abf84c96b80c6b1e0c56cc236c6e82c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78589d33c546741fbc48597fafc78df97650d8546ad715f6f6202ba870444ebc9179935b3be94de670a022cd4c1d2fdd1845d14d941d9e49e0ce532acae731ef
|
7
|
+
data.tar.gz: 8dd6a547132695a10bb60a0c421833639b23c061c3716b22a37d22c3a2230ab42942d026cfe5a3a61380ba1b9b4d385f5aec058bc22b44e0a7dc93f2f73fb3a0
|
data/README.md
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
|
2
|
+
# Subby
|
3
|
+
**Subby** is a command-line tool for substituting string case variations.
|
4
|
+
|
5
|
+
## Quick Examples
|
6
|
+
### Basic usage.
|
7
|
+
|
8
|
+
```bash
|
9
|
+
$ echo "apple pie applePie apple_pie" | subby applePie chocolateCake
|
10
|
+
chocolate cake chocolateCake chocolate_cake
|
11
|
+
```
|
12
|
+
|
13
|
+
### Copy and modify a file.
|
14
|
+
|
15
|
+
```bash
|
16
|
+
$ cat apple_pie.txt
|
17
|
+
apple pie Apple pie applePie
|
18
|
+
|
19
|
+
$ subby applePie chocolateCake < apple_pie.txt > chocolate_cake.txt
|
20
|
+
|
21
|
+
$ cat chocolate_cake.txt
|
22
|
+
chocolate cake Chocolate cake chocolateCake
|
23
|
+
```
|
24
|
+
|
25
|
+
### Change snake case to camel case.
|
26
|
+
|
27
|
+
```bash
|
28
|
+
$ echo "apple pie applePie apple_pie" | subby -i snake -o camel applePie applePie
|
29
|
+
apple pie applePie applePie
|
30
|
+
```
|
31
|
+
|
32
|
+
## Installation
|
33
|
+
Ruby is required.
|
34
|
+
|
35
|
+
```bash
|
36
|
+
$ gem install subby
|
37
|
+
```
|
38
|
+
|
39
|
+
## Documentation:
|
40
|
+
### Online
|
41
|
+
<a href="http://htmlpreview.github.io/?https://github.com/kevincjackson/subby/blob/master/man/subby.1.html" target="_blank">Man Page</a>
|
42
|
+
### Terminal
|
43
|
+
Usage
|
44
|
+
|
45
|
+
```bash
|
46
|
+
$ subby
|
47
|
+
$ subby -h
|
48
|
+
$ subby --help
|
49
|
+
```
|
50
|
+
|
51
|
+
Man Page
|
52
|
+
|
53
|
+
```bash
|
54
|
+
$ gem man subby
|
55
|
+
```
|
56
|
+
|
57
|
+
## Project Organization
|
58
|
+
### Contributing
|
59
|
+
Contributions are welcome. If you can improve **subby**, please feel free to
|
60
|
+
fork the project on [github](https://github.com/kevincjackson/subby) and send
|
61
|
+
me a pull request. Unit tests are in Minitest and UI tests are in
|
62
|
+
[BATS](https://github.com/sstephenson/bats) (a simple Bash testing system
|
63
|
+
also used on `rbenv`). Add tests to the Rake `test` and `unit_test` tasks.
|
64
|
+
|
65
|
+
### Bugs and Feature Requests
|
66
|
+
[Email me.](mailto:kj31428@gmail.com)
|
67
|
+
|
68
|
+
### Author
|
69
|
+
Kevin Jackson
|
70
|
+
|
71
|
+
## License:
|
72
|
+
[MIT](https://opensource.org/licenses/MIT)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Jackson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -89,6 +89,7 @@ executables:
|
|
89
89
|
extensions: []
|
90
90
|
extra_rdoc_files: []
|
91
91
|
files:
|
92
|
+
- README.md
|
92
93
|
- bin/subby
|
93
94
|
- lib/subby.rb
|
94
95
|
- lib/subby/base.rb
|
@@ -96,7 +97,8 @@ files:
|
|
96
97
|
- man/subby.1
|
97
98
|
- man/subby.1.html
|
98
99
|
homepage:
|
99
|
-
licenses:
|
100
|
+
licenses:
|
101
|
+
- MIT
|
100
102
|
metadata: {}
|
101
103
|
post_install_message: Thanks for installing!
|
102
104
|
rdoc_options: []
|