drydock 0.6.9 → 1.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.
Files changed (10) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGES.txt +26 -21
  3. data/LICENSE.txt +2 -2
  4. data/README.md +92 -0
  5. data/Rakefile +40 -58
  6. data/bin/example +92 -96
  7. data/drydock.gemspec +41 -37
  8. data/lib/drydock.rb +265 -281
  9. metadata +52 -48
  10. data/README.rdoc +0 -92
metadata CHANGED
@@ -1,32 +1,43 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: drydock
3
- version: !ruby/object:Gem::Version
4
- version: 0.6.9
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Delano Mandelbaum
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
-
12
- date: 2010-02-12 00:00:00 -05:00
13
- default_executable:
14
- dependencies: []
15
-
16
- description: Build seaworthy command-line apps like a Captain with a powerful Ruby DSL.
17
- email: delano@solutious.com
18
- executables: []
19
-
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: ostruct
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '0.6'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '0.6'
26
+ description: Drydock provides a powerful DSL for building command-line applications
27
+ with ease.
28
+ email:
29
+ - delano@solutious.com
30
+ executables:
31
+ - example
20
32
  extensions: []
21
-
22
- extra_rdoc_files:
23
- - README.rdoc
24
- - LICENSE.txt
33
+ extra_rdoc_files:
25
34
  - CHANGES.txt
26
- files:
35
+ - LICENSE.txt
36
+ - README.md
37
+ files:
27
38
  - CHANGES.txt
28
39
  - LICENSE.txt
29
- - README.rdoc
40
+ - README.md
30
41
  - Rakefile
31
42
  - bin/example
32
43
  - drydock.gemspec
@@ -36,37 +47,30 @@ files:
36
47
  - lib/drydock/mixins/object.rb
37
48
  - lib/drydock/mixins/string.rb
38
49
  - lib/drydock/screen.rb
39
- has_rdoc: true
40
- homepage: http://github.com/delano/drydock
41
- licenses: []
42
-
43
- post_install_message:
44
- rdoc_options:
45
- - --line-numbers
46
- - --title
47
- - "Drydock: Build seaworthy command-line apps like a Captain with a powerful Ruby DSL."
48
- - --main
49
- - README.rdoc
50
- require_paths:
50
+ homepage: https://github.com/delano/drydock
51
+ licenses:
52
+ - MIT
53
+ metadata: {}
54
+ rdoc_options:
55
+ - "--line-numbers"
56
+ - "--title"
57
+ - Drydock
58
+ - "--main"
59
+ - README.md
60
+ require_paths:
51
61
  - lib
52
- required_ruby_version: !ruby/object:Gem::Requirement
53
- requirements:
62
+ required_ruby_version: !ruby/object:Gem::Requirement
63
+ requirements:
54
64
  - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
57
- version:
58
- required_rubygems_version: !ruby/object:Gem::Requirement
59
- requirements:
65
+ - !ruby/object:Gem::Version
66
+ version: 3.2.0
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ requirements:
60
69
  - - ">="
61
- - !ruby/object:Gem::Version
62
- version: "0"
63
- version:
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
64
72
  requirements: []
65
-
66
- rubyforge_project: drydock
67
- rubygems_version: 1.3.5
68
- signing_key:
69
- specification_version: 1
73
+ rubygems_version: 3.6.9
74
+ specification_version: 4
70
75
  summary: Build seaworthy command-line apps like a Captain with a powerful Ruby DSL.
71
76
  test_files: []
72
-
data/README.rdoc DELETED
@@ -1,92 +0,0 @@
1
- = Drydock - v0.6
2
-
3
- <b>Build seaworthy command-line apps like a Captain with a powerful Ruby DSL.</b>
4
-
5
- == Overview
6
-
7
- Drydock is a seaworthy DSL for building really powerful command line applications. The core class is contained in a single .rb file so it's easy to copy directly into your project. See below for examples.
8
-
9
- == Install
10
-
11
- One of:
12
-
13
- * gem install drydock
14
- * copy lib/drydock.rb into your lib directory.
15
-
16
- Or for GitHub fans:
17
-
18
- * git clone git://github.com/delano/drydock.git
19
- * gem install delano-drydock
20
-
21
- == Examples
22
-
23
- See bin/example for more.
24
-
25
- require 'drydock'
26
- extend Drydock
27
-
28
- default :welcome
29
-
30
- before do
31
- # You can execute a block before the requests command is executed. Instance
32
- # variables defined here will be available to all commands.
33
- end
34
-
35
- about "A friendly welcome to the Drydock"
36
- command :welcome do
37
- puts "Welcome to Drydock."
38
- puts "For available commands:"
39
- puts "#{$0} show-commands"
40
- end
41
-
42
- usage "USAGE: #{$0} laugh [-f]"
43
- about "The captain commands his crew to laugh"
44
- option :f, :faster, "A boolean value. Go even faster!"
45
- command :laugh do |obj|
46
- # +obj+ is an instance of Drydock::Command. The options you define are available
47
- # via obj.option.name
48
-
49
- answer = !obj.option.faster ? "Sort of" : "Yes! I'm literally laughing as fast as possible."
50
-
51
- puts "Captain Stubing: Are you laughing?"
52
- puts "Dr. Bricker: " << answer
53
- end
54
-
55
-
56
- class JohnWestSmokedOysters < Drydock::Command
57
- # You can write your own command classes by inheriting from Drydock::Command
58
- # and referencing it in the command definition.
59
- def ahoy!; p "matey"; end
60
- end
61
-
62
- about "Do something with John West's Smoked Oysters"
63
- command :oysters => JohnWestSmokedOysters do |obj|
64
- p obj # => #<JohnWestSmokedOysters:0x42179c ... >
65
- end
66
-
67
- about "My way of saying hello!"
68
- command :ahoy! => JohnWestSmokedOysters
69
- # If you don't provide a block, Drydock will call JohnWestSmokedOysters#ahoy!
70
-
71
- Drydock.run!
72
-
73
-
74
- == More Information
75
-
76
- * GitHub[http://github.com/delano/drydock]
77
- * RDocs[http://drydock.rubyforge.org/]
78
- * Inspiration[http://www.youtube.com/watch?v=m_wFEB4Oxlo]
79
-
80
- == Thanks
81
-
82
- * Solutious Inc for putting up with my endless references to the sea! (http://solutious.com)
83
- * Blake Mizerany for the inspiration via bmizerany-frylock[http://github.com/bmizerany/frylock]
84
-
85
- == Credits
86
-
87
- * Delano Mandelbaum (delano@solutious.com)
88
- * Bernie Kopell (bernie@solutious.com)
89
-
90
- == License
91
-
92
- See LICENSE.txt