rsanheim-beholder 0.6.0 → 0.6.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.textile +3 -1
- data/examples/example_helper.rb +2 -2
- data/examples/lib/beholder_example.rb +4 -4
- data/lib/beholder.rb +4 -2
- metadata +8 -10
data/README.textile
CHANGED
@@ -62,4 +62,6 @@ map_for(:beholders_lair) do |wizard|
|
|
62
62
|
# You could set the list of all examples to be run after pressing ctrl-c once
|
63
63
|
# it defaults to any files in examples, spec, and test
|
64
64
|
wizard.all_examples = Dir['your/path/**/*_here.rb']
|
65
|
-
end
|
65
|
+
end
|
66
|
+
|
67
|
+
Treasure maps are automatically reloaded when you change them, so you can fire up Beholder and start iterating on the config live.
|
data/examples/example_helper.rb
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path)
|
|
4
4
|
require 'beholder'
|
5
5
|
require 'rubygems'
|
6
6
|
require 'micronaut'
|
7
|
-
gem
|
7
|
+
gem 'rr', '>=0.7.0'
|
8
8
|
require 'log_buddy'
|
9
9
|
LogBuddy.init
|
10
10
|
|
@@ -17,4 +17,4 @@ Micronaut.configure do |c|
|
|
17
17
|
c.mock_with :rr
|
18
18
|
c.color_enabled = not_in_editor?
|
19
19
|
c.filter_run :focused => true
|
20
|
-
end
|
20
|
+
end
|
@@ -151,7 +151,7 @@ describe Beholder do
|
|
151
151
|
|
152
152
|
describe "read_map_at" do
|
153
153
|
|
154
|
-
it "rescues exceptions from instance_eval'ing the map, and
|
154
|
+
it "rescues exceptions from instance_eval'ing the map, and carries on" do
|
155
155
|
beholder = Beholder.new
|
156
156
|
stub(File).exist? { true }
|
157
157
|
mock(File).readlines("my_map.rb") { ["!and this is invalid Ruby;end\nand more"] }
|
@@ -161,9 +161,9 @@ describe Beholder do
|
|
161
161
|
|
162
162
|
end
|
163
163
|
|
164
|
-
describe "
|
164
|
+
describe "say" do
|
165
165
|
|
166
|
-
it "
|
166
|
+
it "puts to stdout if verbose is true" do
|
167
167
|
begin
|
168
168
|
ARGV.push("-v")
|
169
169
|
beholder = Beholder.new
|
@@ -175,4 +175,4 @@ describe Beholder do
|
|
175
175
|
end
|
176
176
|
end
|
177
177
|
|
178
|
-
end
|
178
|
+
end
|
data/lib/beholder.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
gem
|
2
|
+
gem 'fsevents'
|
3
3
|
require 'fsevents'
|
4
4
|
|
5
5
|
class Beholder
|
@@ -71,7 +71,9 @@ class Beholder
|
|
71
71
|
def build_cmd(paths)
|
72
72
|
classes = paths.map { |p| p.gsub(".rb", "") }.join(" ")
|
73
73
|
puts "\nRunning #{paths.join(', ').inspect}"
|
74
|
+
|
74
75
|
execute = %[-e "%w[#{classes}].each { |f| require f }"]
|
76
|
+
# Pickup command from treasure map here, probably
|
75
77
|
cmd = "ruby #{execute}"
|
76
78
|
say cmd
|
77
79
|
cmd
|
@@ -198,4 +200,4 @@ class Beholder
|
|
198
200
|
puts msg if verbose
|
199
201
|
end
|
200
202
|
|
201
|
-
end
|
203
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsanheim-beholder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chad Humphries, Rob Sanheim
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-04-17 00:00:00 -07:00
|
13
13
|
default_executable: beholder
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -29,24 +29,21 @@ executables:
|
|
29
29
|
extensions: []
|
30
30
|
|
31
31
|
extra_rdoc_files:
|
32
|
-
- README.textile
|
33
32
|
- LICENSE
|
33
|
+
- README.textile
|
34
34
|
- TODO
|
35
35
|
files:
|
36
36
|
- LICENSE
|
37
37
|
- README.textile
|
38
38
|
- Rakefile
|
39
39
|
- TODO
|
40
|
-
- lib/beholder.rb
|
41
40
|
- examples/example_helper.rb
|
42
|
-
- examples/lib
|
43
41
|
- examples/lib/beholder_example.rb
|
44
|
-
-
|
42
|
+
- lib/beholder.rb
|
45
43
|
has_rdoc: true
|
46
44
|
homepage: http://github.com/rsanheim/beholder
|
47
45
|
post_install_message:
|
48
46
|
rdoc_options:
|
49
|
-
- --inline-source
|
50
47
|
- --charset=UTF-8
|
51
48
|
require_paths:
|
52
49
|
- lib
|
@@ -67,7 +64,8 @@ requirements: []
|
|
67
64
|
rubyforge_project:
|
68
65
|
rubygems_version: 1.2.0
|
69
66
|
signing_key:
|
70
|
-
specification_version:
|
67
|
+
specification_version: 3
|
71
68
|
summary: An ancient beholder that watches your treasure, and deals with thiefs
|
72
|
-
test_files:
|
73
|
-
|
69
|
+
test_files:
|
70
|
+
- examples/example_helper.rb
|
71
|
+
- examples/lib/beholder_example.rb
|