my-simon 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +1 -0
  2. data/VERSION +1 -1
  3. data/bin/simon +58 -0
  4. data/my-simon.gemspec +3 -1
  5. metadata +4 -2
data/Rakefile CHANGED
@@ -14,6 +14,7 @@ Jeweler::Tasks.new do |gem|
14
14
  gem.description = "CLI tool for Simon, the simple PHP project boilerplate!"
15
15
  gem.email = "aaron.mcguire@evb.com"
16
16
  gem.authors = ["Aaron McGuire"]
17
+ gem.executables = ["/simon"]
17
18
  # dependencies defined in Gemfile
18
19
  end
19
20
  Jeweler::RubygemsDotOrgTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/bin/simon ADDED
@@ -0,0 +1,58 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # resolve bin path, ignoring symlinks
4
+ require "pathname"
5
+ bin_file = Pathname.new(__FILE__).realpath
6
+ $:.unshift File.expand_path("../../lib", bin_file)
7
+
8
+ require 'rubygems'
9
+ require 'commander/import'
10
+
11
+ program :version, '0.0.1'
12
+ program :description, 'CLI tool for Simon, a simple MVC boilerplate'
13
+
14
+ command :create, do |c|
15
+ c.syntax = 'my-simon create, [options]'
16
+ c.summary = ''
17
+ c.description = ''
18
+ c.example 'description', 'command example'
19
+ c.option '--some-switch', 'Some switch that does something'
20
+ c.action do |args, options|
21
+ # Do something or c.when_called My-simon::Commands::Create,
22
+ notify 'Create was called'
23
+ puts 'Create was called'
24
+ end
25
+ end
26
+
27
+ command :add, do |c|
28
+ c.syntax = 'my-simon add, [options]'
29
+ c.summary = ''
30
+ c.description = ''
31
+ c.example 'description', 'command example'
32
+ c.option '--some-switch', 'Some switch that does something'
33
+ c.action do |args, options|
34
+ # Do something or c.when_called My-simon::Commands::Add,
35
+ end
36
+ end
37
+
38
+ command :setup, do |c|
39
+ c.syntax = 'my-simon setup, [options]'
40
+ c.summary = ''
41
+ c.description = ''
42
+ c.example 'description', 'command example'
43
+ c.option '--some-switch', 'Some switch that does something'
44
+ c.action do |args, options|
45
+ # Do something or c.when_called My-simon::Commands::Setup,
46
+ end
47
+ end
48
+
49
+ command :help do |c|
50
+ c.syntax = 'my-simon help [options]'
51
+ c.summary = ''
52
+ c.description = ''
53
+ c.example 'description', 'command example'
54
+ c.option '--some-switch', 'Some switch that does something'
55
+ c.action do |args, options|
56
+ # Do something or c.when_called My-simon::Commands::Help
57
+ end
58
+ end
data/my-simon.gemspec CHANGED
@@ -5,13 +5,14 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "my-simon"
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aaron McGuire"]
12
12
  s.date = "2013-02-04"
13
13
  s.description = "CLI tool for Simon, the simple PHP project boilerplate!"
14
14
  s.email = "aaron.mcguire@evb.com"
15
+ s.executables = ["/simon"]
15
16
  s.extra_rdoc_files = [
16
17
  "LICENSE.txt",
17
18
  "README.md",
@@ -27,6 +28,7 @@ Gem::Specification.new do |s|
27
28
  "README.rdoc",
28
29
  "Rakefile",
29
30
  "VERSION",
31
+ "bin/simon",
30
32
  "lib/simon.rb",
31
33
  "my-simon.gemspec",
32
34
  "simon",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my-simon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -125,7 +125,8 @@ dependencies:
125
125
  version: '0'
126
126
  description: CLI tool for Simon, the simple PHP project boilerplate!
127
127
  email: aaron.mcguire@evb.com
128
- executables: []
128
+ executables:
129
+ - /simon
129
130
  extensions: []
130
131
  extra_rdoc_files:
131
132
  - LICENSE.txt
@@ -141,6 +142,7 @@ files:
141
142
  - README.rdoc
142
143
  - Rakefile
143
144
  - VERSION
145
+ - bin/simon
144
146
  - lib/simon.rb
145
147
  - my-simon.gemspec
146
148
  - simon