boson 0.2.0 → 0.2.1
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 +21 -14
- data/VERSION.yml +1 -1
- data/lib/boson.rb +5 -5
- data/lib/boson/command.rb +20 -21
- data/lib/boson/commands/core.rb +5 -6
- data/lib/boson/index.rb +21 -98
- data/lib/boson/inspector.rb +28 -2
- data/lib/boson/inspectors/comment_inspector.rb +5 -7
- data/lib/boson/inspectors/method_inspector.rb +4 -17
- data/lib/boson/libraries/file_library.rb +22 -27
- data/lib/boson/libraries/local_file_library.rb +30 -0
- data/lib/boson/libraries/module_library.rb +1 -1
- data/lib/boson/library.rb +15 -9
- data/lib/boson/loader.rb +3 -18
- data/lib/boson/manager.rb +4 -31
- data/lib/boson/option_command.rb +204 -0
- data/lib/boson/option_parser.rb +13 -2
- data/lib/boson/options.rb +1 -1
- data/lib/boson/pipe.rb +157 -0
- data/lib/boson/repo.rb +20 -1
- data/lib/boson/repo_index.rb +123 -0
- data/lib/boson/runner.rb +3 -4
- data/lib/boson/runners/bin_runner.rb +23 -8
- data/lib/boson/runners/console_runner.rb +1 -2
- data/lib/boson/scientist.rb +48 -225
- data/lib/boson/view.rb +50 -64
- data/test/bin_runner_test.rb +48 -7
- data/test/comment_inspector_test.rb +7 -6
- data/test/config/index.marshal +0 -0
- data/test/file_library_test.rb +1 -22
- data/test/loader_test.rb +5 -13
- data/test/manager_test.rb +4 -4
- data/test/method_inspector_test.rb +7 -2
- data/test/{view_test.rb → pipe_test.rb} +11 -11
- data/test/{index_test.rb → repo_index_test.rb} +26 -26
- data/test/scientist_test.rb +2 -2
- metadata +11 -6
data/test/scientist_test.rb
CHANGED
@@ -30,7 +30,7 @@ module Boson
|
|
30
30
|
hash = {:name=>'blah', :lib=>'bling', :options=>{:force=>:boolean, :level=>2}}.merge(hash)
|
31
31
|
@cmd = Command.new hash
|
32
32
|
@cmd.instance_variable_set("@file_parsed_args", true) if hash[:file_parsed_args]
|
33
|
-
Scientist.
|
33
|
+
Scientist.redefine_command(@opt_cmd, @cmd)
|
34
34
|
@opt_cmd.send(hash[:name], *args)
|
35
35
|
end
|
36
36
|
|
@@ -132,7 +132,7 @@ module Boson
|
|
132
132
|
end
|
133
133
|
|
134
134
|
test "with unexpected error in translation" do
|
135
|
-
Scientist.expects(:
|
135
|
+
Scientist.expects(:option_command).raises("unexpected")
|
136
136
|
capture_stderr { command_with_args('a1') }.should =~ /Error.*unexpected/
|
137
137
|
end
|
138
138
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Horner
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-19 00:00:00 -05:00
|
13
13
|
default_executable: boson
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -59,15 +59,19 @@ files:
|
|
59
59
|
- lib/boson/inspectors/method_inspector.rb
|
60
60
|
- lib/boson/libraries/file_library.rb
|
61
61
|
- lib/boson/libraries/gem_library.rb
|
62
|
+
- lib/boson/libraries/local_file_library.rb
|
62
63
|
- lib/boson/libraries/module_library.rb
|
63
64
|
- lib/boson/libraries/require_library.rb
|
64
65
|
- lib/boson/library.rb
|
65
66
|
- lib/boson/loader.rb
|
66
67
|
- lib/boson/manager.rb
|
67
68
|
- lib/boson/namespace.rb
|
69
|
+
- lib/boson/option_command.rb
|
68
70
|
- lib/boson/option_parser.rb
|
69
71
|
- lib/boson/options.rb
|
72
|
+
- lib/boson/pipe.rb
|
70
73
|
- lib/boson/repo.rb
|
74
|
+
- lib/boson/repo_index.rb
|
71
75
|
- lib/boson/runner.rb
|
72
76
|
- lib/boson/runners/bin_runner.rb
|
73
77
|
- lib/boson/runners/console_runner.rb
|
@@ -77,17 +81,18 @@ files:
|
|
77
81
|
- test/argument_inspector_test.rb
|
78
82
|
- test/bin_runner_test.rb
|
79
83
|
- test/comment_inspector_test.rb
|
84
|
+
- test/config/index.marshal
|
80
85
|
- test/file_library_test.rb
|
81
|
-
- test/index_test.rb
|
82
86
|
- test/loader_test.rb
|
83
87
|
- test/manager_test.rb
|
84
88
|
- test/method_inspector_test.rb
|
85
89
|
- test/option_parser_test.rb
|
90
|
+
- test/pipe_test.rb
|
91
|
+
- test/repo_index_test.rb
|
86
92
|
- test/repo_test.rb
|
87
93
|
- test/runner_test.rb
|
88
94
|
- test/scientist_test.rb
|
89
95
|
- test/test_helper.rb
|
90
|
-
- test/view_test.rb
|
91
96
|
has_rdoc: true
|
92
97
|
homepage: http://tagaholic.me/boson/
|
93
98
|
licenses: []
|
@@ -121,13 +126,13 @@ test_files:
|
|
121
126
|
- test/bin_runner_test.rb
|
122
127
|
- test/comment_inspector_test.rb
|
123
128
|
- test/file_library_test.rb
|
124
|
-
- test/index_test.rb
|
125
129
|
- test/loader_test.rb
|
126
130
|
- test/manager_test.rb
|
127
131
|
- test/method_inspector_test.rb
|
128
132
|
- test/option_parser_test.rb
|
133
|
+
- test/pipe_test.rb
|
134
|
+
- test/repo_index_test.rb
|
129
135
|
- test/repo_test.rb
|
130
136
|
- test/runner_test.rb
|
131
137
|
- test/scientist_test.rb
|
132
138
|
- test/test_helper.rb
|
133
|
-
- test/view_test.rb
|