traceur 0.0.2 → 0.0.3
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/.rspec +1 -0
- data/lib/traceur/traceur.rb +3 -2
- data/lib/traceur/version.rb +1 -1
- data/spec/spec_helper.rb +3 -0
- data/spec/traceur_spec.rb +13 -0
- data/traceur.gemspec +1 -4
- metadata +22 -3
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color --format documentation
|
data/lib/traceur/traceur.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
+
class NoBlockError < StandardError; end
|
2
|
+
|
1
3
|
class Traceur
|
2
4
|
|
3
|
-
class NoBlockError < StandardError; end
|
4
5
|
##
|
5
6
|
# The traceur class provides methods to trace the execution
|
6
7
|
# of the Ruby interpreter and writes an SVG file into the
|
@@ -18,7 +19,7 @@ class Traceur
|
|
18
19
|
EOSVG
|
19
20
|
|
20
21
|
def self.watch_paths(expr, output_dir)
|
21
|
-
raise NoBlockError "You must call this method with a block" unless block_given?
|
22
|
+
raise NoBlockError, "You must call this method with a block" unless block_given?
|
22
23
|
block = Proc.new #this grabs the block
|
23
24
|
|
24
25
|
raise SystemCallError "Directory does not exist" unless Dir.exists?(output_dir)
|
data/lib/traceur/version.rb
CHANGED
data/spec/spec_helper.rb
ADDED
data/traceur.gemspec
CHANGED
@@ -17,8 +17,5 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
|
-
|
21
|
-
# specify any dependencies here; for example:
|
22
|
-
# s.add_development_dependency "rspec"
|
23
|
-
# s.add_runtime_dependency "rest-client"
|
20
|
+
s.add_development_dependency "rspec"
|
24
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: traceur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,24 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
13
|
-
dependencies:
|
12
|
+
date: 2013-03-23 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
14
30
|
description: ! ' An experimental library to trace method calls using SVG '
|
15
31
|
email:
|
16
32
|
- blessedbyvirtuosity@gmail.com
|
@@ -19,12 +35,15 @@ extensions: []
|
|
19
35
|
extra_rdoc_files: []
|
20
36
|
files:
|
21
37
|
- .gitignore
|
38
|
+
- .rspec
|
22
39
|
- Gemfile
|
23
40
|
- README.md
|
24
41
|
- Rakefile
|
25
42
|
- lib/traceur.rb
|
26
43
|
- lib/traceur/traceur.rb
|
27
44
|
- lib/traceur/version.rb
|
45
|
+
- spec/spec_helper.rb
|
46
|
+
- spec/traceur_spec.rb
|
28
47
|
- traceur.gemspec
|
29
48
|
homepage: ''
|
30
49
|
licenses: []
|