rcli 0.1.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 (43) hide show
  1. data/LICENSE +20 -0
  2. data/README.md +193 -0
  3. data/README.rdoc +194 -0
  4. data/Rakefile +61 -0
  5. data/bin/rcli +12 -0
  6. data/lib/commands/compile.rb +15 -0
  7. data/lib/commands/debug.rb +86 -0
  8. data/lib/commands/edit.rb +34 -0
  9. data/lib/commands/generate.rb +43 -0
  10. data/lib/commands/help.rb +47 -0
  11. data/lib/commands/install.rb +86 -0
  12. data/lib/commands/list.rb +28 -0
  13. data/lib/commands/uninstall.rb +36 -0
  14. data/lib/commands/version.rb +11 -0
  15. data/lib/core/actions/create_file.rb +106 -0
  16. data/lib/core/actions/empty_directory.rb +88 -0
  17. data/lib/core/actions/file_binary_read.rb +9 -0
  18. data/lib/core/actions.rb +9 -0
  19. data/lib/core/command.rb +137 -0
  20. data/lib/core/commander.rb +48 -0
  21. data/lib/core/console.rb +5 -0
  22. data/lib/core/global_functions.rb +16 -0
  23. data/lib/core/shared/rcli_installation.rb +9 -0
  24. data/lib/core/thor_actions/create_file.rb +100 -0
  25. data/lib/core/thor_actions/directory.rb +89 -0
  26. data/lib/core/thor_actions/empty_directory.rb +134 -0
  27. data/lib/core/thor_actions/file_binary_read.rb +9 -0
  28. data/lib/core/thor_actions/file_manipulation.rb +223 -0
  29. data/lib/core/thor_actions/inject_into_file.rb +102 -0
  30. data/lib/core/thor_actions.rb +302 -0
  31. data/lib/core/traceable_factory.rb +20 -0
  32. data/lib/core/traceable_object.rb +45 -0
  33. data/lib/core/tracer.rb +23 -0
  34. data/lib/rcli.rb +65 -0
  35. data/lib/templates/new_app/RCLIAPPNAME.rb +9 -0
  36. data/lib/templates/new_app/lib/commands/default.rb +12 -0
  37. data/lib/templates/new_app/lib/commands/version.rb +6 -0
  38. data/lib/vendor/mainline/lib/trollop.rb +782 -0
  39. data/lib/vendor/mainline/test/test_trollop.rb +1094 -0
  40. data/lib/vendor/trollop.rb +782 -0
  41. data/test/helper.rb +10 -0
  42. data/test/test_rcli-gem.rb +7 -0
  43. metadata +137 -0
data/test/helper.rb ADDED
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
7
+ require 'rcli-gem'
8
+
9
+ class Test::Unit::TestCase
10
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestRcliGem < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,137 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rcli
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 0
9
+ version: 0.1.0
10
+ platform: ruby
11
+ authors:
12
+ - Eduardo Del Balso
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-10-12 00:00:00 -04:00
18
+ default_executable: rcli
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: text
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ - 2
31
+ - 0
32
+ version: 0.2.0
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: highline
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ segments:
44
+ - 1
45
+ - 6
46
+ - 1
47
+ version: 1.6.1
48
+ type: :runtime
49
+ version_requirements: *id002
50
+ description: This script creates, manages, installs, uninstalls and edits command-line ruby scripts. It also works as a useful library for building scripts.
51
+ email: e.delbalso@gmail.com
52
+ executables:
53
+ - rcli
54
+ extensions: []
55
+
56
+ extra_rdoc_files:
57
+ - LICENSE
58
+ - README.md
59
+ - README.rdoc
60
+ files:
61
+ - LICENSE
62
+ - README.md
63
+ - README.rdoc
64
+ - Rakefile
65
+ - lib/commands/compile.rb
66
+ - lib/commands/debug.rb
67
+ - lib/commands/edit.rb
68
+ - lib/commands/generate.rb
69
+ - lib/commands/help.rb
70
+ - lib/commands/install.rb
71
+ - lib/commands/list.rb
72
+ - lib/commands/uninstall.rb
73
+ - lib/commands/version.rb
74
+ - lib/core/actions.rb
75
+ - lib/core/actions/create_file.rb
76
+ - lib/core/actions/empty_directory.rb
77
+ - lib/core/actions/file_binary_read.rb
78
+ - lib/core/command.rb
79
+ - lib/core/commander.rb
80
+ - lib/core/console.rb
81
+ - lib/core/global_functions.rb
82
+ - lib/core/shared/rcli_installation.rb
83
+ - lib/core/thor_actions.rb
84
+ - lib/core/thor_actions/create_file.rb
85
+ - lib/core/thor_actions/directory.rb
86
+ - lib/core/thor_actions/empty_directory.rb
87
+ - lib/core/thor_actions/file_binary_read.rb
88
+ - lib/core/thor_actions/file_manipulation.rb
89
+ - lib/core/thor_actions/inject_into_file.rb
90
+ - lib/core/traceable_factory.rb
91
+ - lib/core/traceable_object.rb
92
+ - lib/core/tracer.rb
93
+ - lib/rcli.rb
94
+ - lib/templates/new_app/RCLIAPPNAME.rb
95
+ - lib/templates/new_app/lib/commands/default.rb
96
+ - lib/templates/new_app/lib/commands/version.rb
97
+ - lib/vendor/mainline/lib/trollop.rb
98
+ - lib/vendor/mainline/test/test_trollop.rb
99
+ - lib/vendor/trollop.rb
100
+ - test/helper.rb
101
+ - test/test_rcli-gem.rb
102
+ - bin/rcli
103
+ has_rdoc: true
104
+ homepage: http://github.com/edelbalso/rcli
105
+ licenses: []
106
+
107
+ post_install_message:
108
+ rdoc_options:
109
+ - --charset=UTF-8
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ segments:
118
+ - 0
119
+ version: "0"
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ segments:
126
+ - 0
127
+ version: "0"
128
+ requirements: []
129
+
130
+ rubyforge_project:
131
+ rubygems_version: 1.3.7
132
+ signing_key:
133
+ specification_version: 3
134
+ summary: A rough framework for building command-line scripts in ruby.
135
+ test_files:
136
+ - test/helper.rb
137
+ - test/test_rcli-gem.rb