swissknife 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f627d39ab1b588116403ffb1474973f2274c858
4
- data.tar.gz: f33ad7b4613905abf6388c74710a67083849b65f
3
+ metadata.gz: b4c064a9a4fd5a32f75bea0c883e0f0c073ed861
4
+ data.tar.gz: dab6a5c697f8323eaaaa012b43597d4b3f4ae65e
5
5
  SHA512:
6
- metadata.gz: a7ab25aeed2fcbe0b8c66c9d62ce18ec8d9d1044a8a88af46d75c981b2fc5e0d074160b028fcd0b16b78a84be2711f4950550e512cb5237d39a06cb3a8576ebf
7
- data.tar.gz: df1789ad9f192b9e356044ff6f136ec3900430683424f1f14bb2c4944108567d66039d54d23f3c8a54acedcb07629ad8c22f24610f78db12c69713f4c34f5c01
6
+ metadata.gz: 552c007fd69451b758b4219e8ca426c81d29619bc6679e83a6acbb481741d23b404d59f7c573b770cd182835732cae40bba934b2eabf5f44364b47ebc83fe007
7
+ data.tar.gz: c56a7099c3ed0b284e4fd4a65c5f0adfb02bbb402bebcbe1d74c47dfe012ca549f5e52f45a3fc8bb44e002748de0d9bbf9379b3235acc356f56779fad9f1bc0e
data/README.md CHANGED
@@ -1,4 +1,19 @@
1
- swissknife
2
- ==========
1
+ # swissknife
2
+ A simple gem with sneaky commands!
3
+ ***
4
+ If you're tired of having to type out long commands excessively, then meet swissknife!
5
+ The whole purpose of the swissknife project is to provide developers with a slew of shortened and simple commands that
6
+ can be easy to both remember and type! The project is continually seeking new commands to add!
3
7
 
4
- A simple gem that contains a lot of sneakily useful commands!
8
+ ## Available commands
9
+ | Command | Description |
10
+ |:-------:|:-----------:|
11
+ | x | Exits a console |
12
+ | c | Clears the console screen (puts the cursor on the bottom for easy console browsing)|
13
+ | pack | Bundles a Ruby project's dependencies to `vendor/bundle`|
14
+
15
+ ## Contributing
16
+ 1. Fork it
17
+ 2. Add or remove some stuff
18
+ 3. Commit your changes (`git commit -am "My awesome change!"`)
19
+ 4. Create a new pull request!
data/bin/c ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'swissknife'
4
+
5
+ util = SwissKnife::Util.new
6
+ util.clear_screen
data/bin/pack ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'swissknife'
4
+
5
+ util = SwissKnife::Util.new
6
+ util.pack
data/bin/x CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  require 'swissknife'
4
4
 
5
- util = SwissKnife::ConsoleUtility.new
5
+ util = SwissKnife::Util.new
6
6
  util.exit
data/lib/swissknife.rb CHANGED
@@ -1,9 +1,21 @@
1
1
  module SwissKnife
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
 
4
- class ConsoleUtility
5
- def exit
4
+ class Util
5
+ def exit # quits whatever console you're using: cross-platform
6
6
  Process.kill 'HUP', Process.ppid
7
7
  end
8
+
9
+ def clear_screen # clears the screen w/ the cursor on the bottom
10
+ puts '%c[2J' % 27
11
+ end
12
+
13
+ def pack # bundles a Ruby project's dependencies to vendor/bundle
14
+ if system 'bundle --path vendor/bundle'
15
+ puts '\nDependencies set up succesfully!'
16
+ else
17
+ puts '\nSomething went wrong...'
18
+ end
19
+ end
8
20
  end
9
21
  end
data/swissknife.gemspec CHANGED
@@ -14,10 +14,11 @@ Gem::Specification.new do |spec|
14
14
  spec.license = 'GNU v2'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
17
- spec.executables = ['x']
17
+ spec.executables = Dir.entries 'bin'
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_development_dependency 'bundler', '~> 1.7'
22
22
  spec.add_development_dependency 'rake', '~> 10.0'
23
+ spec.add_development_dependency 'rubocop'
23
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swissknife
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Shuler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-19 00:00:00.000000000 Z
11
+ date: 2014-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,10 +38,26 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  description:
42
56
  email:
43
57
  - gnosoman@gmail.com
44
58
  executables:
59
+ - c
60
+ - pack
45
61
  - x
46
62
  extensions: []
47
63
  extra_rdoc_files: []
@@ -51,6 +67,8 @@ files:
51
67
  - LICENSE.txt
52
68
  - README.md
53
69
  - Rakefile
70
+ - bin/c
71
+ - bin/pack
54
72
  - bin/x
55
73
  - lib/swissknife.rb
56
74
  - swissknife.gemspec