more-ron 0.0.0
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.
- data/README.rdoc +6 -0
- data/bin/more-ron +99 -0
- data/lib/more-ron.rb +4 -0
- data/lib/more-ron/version.rb +3 -0
- data/more-ron.rdoc +5 -0
- metadata +122 -0
data/README.rdoc
ADDED
data/bin/more-ron
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'gli'
|
3
|
+
begin # XXX: Remove this begin/rescue before distributing your app
|
4
|
+
require 'more-ron'
|
5
|
+
rescue LoadError
|
6
|
+
STDERR.puts "In development, you need to use `bundle exec bin/more-ron` to run your app"
|
7
|
+
STDERR.puts "At install-time, RubyGems will make sure lib, etc. are in the load path"
|
8
|
+
STDERR.puts "Feel free to remove this message from bin/more-ron now"
|
9
|
+
exit 64
|
10
|
+
end
|
11
|
+
|
12
|
+
include GLI::App
|
13
|
+
|
14
|
+
program_desc 'Describe your application here'
|
15
|
+
|
16
|
+
version MoreRon::VERSION
|
17
|
+
|
18
|
+
desc 'Describe some switch here'
|
19
|
+
switch [:s,:switch]
|
20
|
+
|
21
|
+
desc 'Describe some flag here'
|
22
|
+
default_value 'the default'
|
23
|
+
arg_name 'The name of the argument'
|
24
|
+
flag [:f,:flagname]
|
25
|
+
|
26
|
+
desc 'Describe create here'
|
27
|
+
arg_name 'Describe arguments to create here'
|
28
|
+
command :create do |c|
|
29
|
+
c.desc 'Describe a switch to create'
|
30
|
+
c.switch :s
|
31
|
+
|
32
|
+
c.desc 'Describe a flag to create'
|
33
|
+
c.default_value 'default'
|
34
|
+
c.flag :f
|
35
|
+
c.action do |global_options,options,args|
|
36
|
+
|
37
|
+
# Your command logic here
|
38
|
+
|
39
|
+
# If you have any errors, just raise them
|
40
|
+
# raise "that command made no sense"
|
41
|
+
|
42
|
+
puts "create command ran"
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
desc 'Describe organize here'
|
47
|
+
arg_name 'Describe arguments to organize here'
|
48
|
+
command :organize do |c|
|
49
|
+
c.action do |global_options,options,args|
|
50
|
+
puts "organize command ran"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
desc 'Describe list here'
|
55
|
+
arg_name 'Describe arguments to list here'
|
56
|
+
command :list do |c|
|
57
|
+
c.action do |global_options,options,args|
|
58
|
+
puts "list command ran"
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
desc 'Describe play here'
|
63
|
+
arg_name 'Describe arguments to play here'
|
64
|
+
command :play do |c|
|
65
|
+
c.action do |global_options,options,args|
|
66
|
+
puts "play command ran"
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
desc 'Describe show here'
|
71
|
+
arg_name 'Describe arguments to show here'
|
72
|
+
command :show do |c|
|
73
|
+
c.action do |global_options,options,args|
|
74
|
+
puts "show command ran"
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
pre do |global,command,options,args|
|
79
|
+
# Pre logic here
|
80
|
+
# Return true to proceed; false to abort and not call the
|
81
|
+
# chosen command
|
82
|
+
# Use skips_pre before a command to skip this block
|
83
|
+
# on that command only
|
84
|
+
true
|
85
|
+
end
|
86
|
+
|
87
|
+
post do |global,command,options,args|
|
88
|
+
# Post logic here
|
89
|
+
# Use skips_post before a command to skip this
|
90
|
+
# block on that command only
|
91
|
+
end
|
92
|
+
|
93
|
+
on_error do |exception|
|
94
|
+
# Error logic here
|
95
|
+
# return false to skip default error handling
|
96
|
+
true
|
97
|
+
end
|
98
|
+
|
99
|
+
exit run(ARGV)
|
data/lib/more-ron.rb
ADDED
data/more-ron.rdoc
ADDED
metadata
ADDED
@@ -0,0 +1,122 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: more-ron
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- MoreRon
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-02-16 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rdoc
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: aruba
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: gli
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - '='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 2.5.4
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - '='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 2.5.4
|
78
|
+
description:
|
79
|
+
email: more.ron.too@gmail.com
|
80
|
+
executables:
|
81
|
+
- more-ron
|
82
|
+
extensions: []
|
83
|
+
extra_rdoc_files:
|
84
|
+
- README.rdoc
|
85
|
+
- more-ron.rdoc
|
86
|
+
files:
|
87
|
+
- bin/more-ron
|
88
|
+
- lib/more-ron/version.rb
|
89
|
+
- lib/more-ron.rb
|
90
|
+
- README.rdoc
|
91
|
+
- more-ron.rdoc
|
92
|
+
homepage: http://more-ron.github.com/more-ron/
|
93
|
+
licenses: []
|
94
|
+
post_install_message:
|
95
|
+
rdoc_options:
|
96
|
+
- --title
|
97
|
+
- more-ron
|
98
|
+
- --main
|
99
|
+
- README.rdoc
|
100
|
+
- -ri
|
101
|
+
require_paths:
|
102
|
+
- lib
|
103
|
+
- lib
|
104
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
|
+
none: false
|
112
|
+
requirements:
|
113
|
+
- - ! '>='
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '0'
|
116
|
+
requirements: []
|
117
|
+
rubyforge_project:
|
118
|
+
rubygems_version: 1.8.25
|
119
|
+
signing_key:
|
120
|
+
specification_version: 3
|
121
|
+
summary: MoreRon scripts and tricks
|
122
|
+
test_files: []
|