rock 0.1.1 → 0.1.3

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 (3) hide show
  1. data/bin/rock +27 -0
  2. data/lib/rock.rb +3 -12
  3. metadata +6 -5
data/bin/rock ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ class App
4
+
5
+ def usage
6
+ $stderr.puts('rock --help');
7
+ exit(2)
8
+ end
9
+
10
+ def command_parser
11
+ if ARGV.length == 0
12
+ usage
13
+ else
14
+ ARGV.each do |i|
15
+ puts i
16
+ end
17
+ end
18
+ end
19
+
20
+ def run
21
+ command_parser
22
+ end
23
+
24
+ end
25
+
26
+ myRock = App.new
27
+ myRock.run
data/lib/rock.rb CHANGED
@@ -1,13 +1,4 @@
1
1
 
2
- module rock
3
- class << self
4
- def application
5
- @application ||= rock::Application.new
6
- end
7
- end
8
- class Application
9
- def run
10
- puts 'got rock?'
11
- end
12
- end
13
- end
2
+ ARGV.each do|a|
3
+ puts "Argument: #{a}"
4
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rock
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - For Sure, Rad!
@@ -21,14 +21,15 @@ dependencies: []
21
21
  description: rock (ruby on crack) is a ruby gem for startup creation
22
22
  email:
23
23
  - hi@forsurerad.com
24
- executables: []
25
-
24
+ executables:
25
+ - rock
26
26
  extensions: []
27
27
 
28
28
  extra_rdoc_files: []
29
29
 
30
30
  files:
31
31
  - lib/rock.rb
32
+ - bin/rock
32
33
  homepage: https://github.com/forsurerad/rock/
33
34
  licenses: []
34
35