gi-cli 0.1.3 → 0.1.4
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/.gitignore +1 -1
- data/README.md +4 -4
- data/bin/gi +7 -6
- data/lib/gi.rb +1 -1
- data/lib/gi/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5cf17e4794d69fbad8f68629883168bb4b35166
|
4
|
+
data.tar.gz: 6bad266931f9eeb41f773d338012386103cbbb9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b321eba6730b785a8fd02b61e797774eaf9d55a50363b7b44721293e4d21d56153773fc72c39c052e26e6760c7ae5693ea402b6152bdc476b1f49d251052531
|
7
|
+
data.tar.gz: 50d25a65820e1d59feaaa3422c7c13279e85f855e69681c5c5ddfe707e6ddd1d4c02caf009604cdb5fbb3b1f018afd6291a7d6e936f2322e718c9e45271480f5
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -19,10 +19,10 @@ $ gem install gi-cli
|
|
19
19
|
for a list of seeds run `$ gi list`, on a side note if you are searching for a specific one you can simply use `grep` or `ack` and pipe in your search term `gi list | ack "node"`
|
20
20
|
|
21
21
|
### seed
|
22
|
-
the default command is the one that appends the `.gitignore` file, it works in a two step process. upon calling the command `$ gi
|
22
|
+
the default command is the one that appends the `.gitignore` file, it works in a two step process. upon calling the command `$ gi <args>` __OR__ `$ gi seed <args>`.
|
23
23
|
|
24
|
-
1. `$ gi`
|
25
|
-
2. `$
|
24
|
+
1. `$ gi osx,ruby,node,emacs`
|
25
|
+
2. `$ gi seed osx,ruby,node,emacs`
|
26
26
|
|
27
27
|
#### --dry
|
28
28
|
attaching the `--dry` flag to the initial `seed` command will simply print out the (would be) contents of the .gitignore to the terminal and not actually create a file on the hard drive _(really this only exists for testing but hey, someone might use it)_
|
@@ -32,7 +32,7 @@ attaching the `--overwrite` flag to `seed` will overwrite the existing `.gitigno
|
|
32
32
|
|
33
33
|
## Contributing
|
34
34
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/bernsie/gi.
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/bernsie/gi-cli.
|
36
36
|
|
37
37
|
|
38
38
|
## License
|
data/bin/gi
CHANGED
@@ -22,21 +22,22 @@ command :list do |c|
|
|
22
22
|
end
|
23
23
|
|
24
24
|
command :seed do |c|
|
25
|
-
c.syntax = 'gi seed'
|
25
|
+
c.syntax = 'gi seed <list,of,arguments>'
|
26
26
|
c.description = 'append .gitignore with the provided seed list OR use --overwrite to overwrite the existing one all together'
|
27
27
|
c.option '--dry', 'does not create .gitignore but prints it out'
|
28
28
|
c.option '--overwrite', 'if one exists overwrite .gitignore with the seeded one'
|
29
29
|
c.action do |args, options|
|
30
|
-
seeds =
|
30
|
+
seeds = args.join(',')
|
31
31
|
if options.dry
|
32
|
-
|
32
|
+
exec "#{gi.base(seeds)}"
|
33
33
|
elsif options.overwrite
|
34
|
-
|
34
|
+
cmd = "#{gi.base(seeds)} > .gitignore"
|
35
|
+
exec cmd
|
35
36
|
else
|
36
|
-
|
37
|
+
cmd = "#{gi.base(seeds)} >> .gitignore"
|
38
|
+
exec cmd
|
37
39
|
end
|
38
40
|
end
|
39
41
|
end
|
40
42
|
|
41
|
-
# default command
|
42
43
|
default_command :seed
|
data/lib/gi.rb
CHANGED
data/lib/gi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gi-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Burns
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
107
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
108
|
+
rubygems_version: 2.5.1
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: cli util to create seeded .gitignore files
|