quickl 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ # 0.4.3 / 2012-02-16
2
+
3
+ * Ensures delegator.erb is present in the gem.
4
+
1
5
  # 0.4.2 / 2011-12-09
2
6
 
3
7
  * Fix a bug when reacting to errors that do no define react!
@@ -6,7 +6,7 @@ Gemfile
6
6
  Gemfile.lock
7
7
  bin/**/*
8
8
  lib/**/*
9
- templates/single.erb
9
+ templates/**/*.erb
10
10
  LICENCE.md
11
11
  Manifest.txt
12
12
  Rakefile
@@ -3,7 +3,7 @@ module Quickl
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 4
6
- TINY = 2
6
+ TINY = 3
7
7
 
8
8
  def self.to_s
9
9
  [ MAJOR, MINOR, TINY ].join('.')
@@ -1,15 +1,13 @@
1
- # Noe template for ruby gem libraries (https://github.com/blambeau/noe) - short version
2
- # Run 'noe show-spec' and 'noe help show-spec' for additional details.
3
1
  template-info:
4
2
  name: "ruby"
5
- version: 1.5.1
3
+ version: 1.7.0
6
4
  variables:
7
5
  lower:
8
6
  quickl
9
7
  upper:
10
8
  Quickl
11
9
  version:
12
- 0.4.2
10
+ 0.4.3
13
11
  summary: |-
14
12
  Helper to create commandline ruby programs
15
13
  description: |-
@@ -0,0 +1,42 @@
1
+ <% if header %>
2
+ begin
3
+ require 'quickl'
4
+ rescue LoadError
5
+ require 'rubygems'
6
+ gem 'quickl'
7
+ retry
8
+ end
9
+ <% end %>
10
+ #
11
+ # FIX: overview
12
+ #
13
+ # SYNOPSIS
14
+ # #{program_name} [--version] [--help] [--output=...] COMMAND [cmd opts] ARGS...
15
+ #
16
+ # OPTIONS
17
+ # #{summarized_options}
18
+ #
19
+ # COMMANDS
20
+ # #{summarized_subcommands}
21
+ #
22
+ # DESCRIPTION
23
+ # FIX: description
24
+ #
25
+ # See '#{program_name} help COMMAND' for more information on a specific command.
26
+ #
27
+ class <%= cmd_class_name %> < Quickl::Delegator(__FILE__, __LINE__)
28
+
29
+ VERSION = "1.0.0"
30
+
31
+ # Install options
32
+ options do |opt|
33
+ <%= option_helpers.collect{|s| tabto(s,4)}.join("\n") %>
34
+ end
35
+
36
+ end # class <%= cmd_class_name %>
37
+ <% if footer %>
38
+ if __FILE__ == $0
39
+ <%= cmd_class_name %>.run(ARGV)
40
+ end
41
+ <% end %>
42
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-09 00:00:00.000000000Z
12
+ date: 2012-02-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &74772270 !ruby/object:Gem::Requirement
16
+ requirement: &70362124536320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.9.2
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *74772270
24
+ version_requirements: *70362124536320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &74771930 !ruby/object:Gem::Requirement
27
+ requirement: &70362124535740 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.7.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *74771930
35
+ version_requirements: *70362124535740
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: yard
38
- requirement: &74771580 !ruby/object:Gem::Requirement
38
+ requirement: &70362124535200 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.7.2
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *74771580
46
+ version_requirements: *70362124535200
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bluecloth
49
- requirement: &74771100 !ruby/object:Gem::Requirement
49
+ requirement: &70362124534600 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 2.2.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *74771100
57
+ version_requirements: *70362124534600
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: wlang
60
- requirement: &74770470 !ruby/object:Gem::Requirement
60
+ requirement: &70362124534000 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 0.10.2
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *74770470
68
+ version_requirements: *70362124534000
69
69
  description: ! "Quickl helps you creating commandline ruby programs. From simple commands
70
70
  \nwith options to complex delegators with subcommands, global and local \noptions."
71
71
  email:
@@ -84,64 +84,65 @@ files:
84
84
  - Gemfile
85
85
  - Gemfile.lock
86
86
  - bin/quickl
87
- - lib/quickl.rb
88
- - lib/quickl/command/single.rb
89
87
  - lib/quickl/command/builder.rb
90
88
  - lib/quickl/command/class_methods.rb
89
+ - lib/quickl/command/delegator.rb
91
90
  - lib/quickl/command/instance_methods.rb
92
91
  - lib/quickl/command/options.rb
93
- - lib/quickl/command/delegator.rb
94
- - lib/quickl/naming.rb
92
+ - lib/quickl/command/single.rb
93
+ - lib/quickl/command.rb
95
94
  - lib/quickl/errors.rb
96
- - lib/quickl/loader.rb
97
95
  - lib/quickl/ext/object.rb
96
+ - lib/quickl/loader.rb
97
+ - lib/quickl/naming.rb
98
98
  - lib/quickl/ruby_tools.rb
99
- - lib/quickl/command.rb
100
99
  - lib/quickl/version.rb
100
+ - lib/quickl.rb
101
+ - templates/delegator.erb
101
102
  - templates/single.erb
102
103
  - LICENCE.md
103
104
  - Manifest.txt
104
105
  - Rakefile
105
106
  - README.md
106
- - spec/spec_helper.rb
107
+ - spec/command/delegator/test_split_argv.rb
108
+ - spec/command/test_command_building.rb
107
109
  - spec/command/test_command_name.rb
108
- - spec/command/test_subcommands.rb
109
- - spec/command/test_subcommand_by_name.rb
110
+ - spec/command/test_documentation.rb
110
111
  - spec/command/test_overview.rb
111
- - spec/command/test_command_building.rb
112
- - spec/command/test_run.rb
113
- - spec/command/test_usage.rb
114
- - spec/command/delegator/test_split_argv.rb
115
112
  - spec/command/test_parse_options.rb
116
- - spec/command/test_documentation.rb
117
113
  - spec/command/test_requester.rb
118
- - spec/test_quickl.rb
114
+ - spec/command/test_run.rb
115
+ - spec/command/test_subcommand_by_name.rb
116
+ - spec/command/test_subcommands.rb
117
+ - spec/command/test_usage.rb
119
118
  - spec/mini_client.rb
120
- - spec/ruby_tools/fixtures.rb
121
- - spec/ruby_tools/test_extract_file_rdoc.rb
122
- - spec/ruby_tools/test_class_unqualified_name.rb
123
- - spec/ruby_tools/test_optional_args_block.rb
124
- - spec/ruby_tools/test_parent_module.rb
125
- - spec/ruby_tools/fixtures/RubyTools.rdoc
126
- - spec/ruby_tools/fixtures/Utils.rdoc
127
119
  - spec/naming/test_command2module.rb
128
120
  - spec/naming/test_module2command.rb
129
121
  - spec/quickl/test_command_name.rb
122
+ - spec/quickl/test_documentation.rb
123
+ - spec/quickl/test_overview.rb
130
124
  - spec/quickl/test_parse_commandline_args.rb
131
125
  - spec/quickl/test_split_commandline_args.rb
132
- - spec/quickl/test_super_command.rb
133
126
  - spec/quickl/test_sub_command.rb
134
- - spec/quickl/test_overview.rb
127
+ - spec/quickl/test_super_command.rb
135
128
  - spec/quickl/test_usage.rb
136
- - spec/quickl/test_documentation.rb
137
129
  - spec/quickl/test_valid_read_file.rb
138
- - tasks/debug_mail.rake
139
- - tasks/yard.rake
130
+ - spec/ruby_tools/fixtures/RubyTools.rdoc
131
+ - spec/ruby_tools/fixtures/Utils.rdoc
132
+ - spec/ruby_tools/fixtures.rb
133
+ - spec/ruby_tools/test_class_unqualified_name.rb
134
+ - spec/ruby_tools/test_extract_file_rdoc.rb
135
+ - spec/ruby_tools/test_optional_args_block.rb
136
+ - spec/ruby_tools/test_parent_module.rb
137
+ - spec/spec_helper.rb
138
+ - spec/test_quickl.rb
140
139
  - tasks/clean.rake
140
+ - tasks/debug_mail.rake
141
+ - tasks/debug_mail.txt
141
142
  - tasks/gem.rake
142
143
  - tasks/spec_test.rake
143
144
  - tasks/unit_test.rake
144
- - tasks/debug_mail.txt
145
+ - tasks/yard.rake
145
146
  homepage: http://github.com/blambeau/quickl
146
147
  licenses: []
147
148
  post_install_message:
@@ -156,7 +157,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
156
157
  version: '0'
157
158
  segments:
158
159
  - 0
159
- hash: -534574387
160
+ hash: 4426003899553672836
160
161
  required_rubygems_version: !ruby/object:Gem::Requirement
161
162
  none: false
162
163
  requirements:
@@ -170,35 +171,35 @@ signing_key:
170
171
  specification_version: 3
171
172
  summary: Helper to create commandline ruby programs
172
173
  test_files:
173
- - spec/spec_helper.rb
174
+ - spec/command/delegator/test_split_argv.rb
175
+ - spec/command/test_command_building.rb
174
176
  - spec/command/test_command_name.rb
175
- - spec/command/test_subcommands.rb
176
- - spec/command/test_subcommand_by_name.rb
177
+ - spec/command/test_documentation.rb
177
178
  - spec/command/test_overview.rb
178
- - spec/command/test_command_building.rb
179
- - spec/command/test_run.rb
180
- - spec/command/test_usage.rb
181
- - spec/command/delegator/test_split_argv.rb
182
179
  - spec/command/test_parse_options.rb
183
- - spec/command/test_documentation.rb
184
180
  - spec/command/test_requester.rb
185
- - spec/test_quickl.rb
181
+ - spec/command/test_run.rb
182
+ - spec/command/test_subcommand_by_name.rb
183
+ - spec/command/test_subcommands.rb
184
+ - spec/command/test_usage.rb
186
185
  - spec/mini_client.rb
187
- - spec/ruby_tools/fixtures.rb
188
- - spec/ruby_tools/test_extract_file_rdoc.rb
189
- - spec/ruby_tools/test_class_unqualified_name.rb
190
- - spec/ruby_tools/test_optional_args_block.rb
191
- - spec/ruby_tools/test_parent_module.rb
192
- - spec/ruby_tools/fixtures/RubyTools.rdoc
193
- - spec/ruby_tools/fixtures/Utils.rdoc
194
186
  - spec/naming/test_command2module.rb
195
187
  - spec/naming/test_module2command.rb
196
188
  - spec/quickl/test_command_name.rb
189
+ - spec/quickl/test_documentation.rb
190
+ - spec/quickl/test_overview.rb
197
191
  - spec/quickl/test_parse_commandline_args.rb
198
192
  - spec/quickl/test_split_commandline_args.rb
199
- - spec/quickl/test_super_command.rb
200
193
  - spec/quickl/test_sub_command.rb
201
- - spec/quickl/test_overview.rb
194
+ - spec/quickl/test_super_command.rb
202
195
  - spec/quickl/test_usage.rb
203
- - spec/quickl/test_documentation.rb
204
196
  - spec/quickl/test_valid_read_file.rb
197
+ - spec/ruby_tools/fixtures/RubyTools.rdoc
198
+ - spec/ruby_tools/fixtures/Utils.rdoc
199
+ - spec/ruby_tools/fixtures.rb
200
+ - spec/ruby_tools/test_class_unqualified_name.rb
201
+ - spec/ruby_tools/test_extract_file_rdoc.rb
202
+ - spec/ruby_tools/test_optional_args_block.rb
203
+ - spec/ruby_tools/test_parent_module.rb
204
+ - spec/spec_helper.rb
205
+ - spec/test_quickl.rb