traceur 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color --format documentation
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Traceur
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -0,0 +1,3 @@
1
+ $:.unshift(File.expand_path('../lib', File.dirname(__FILE__)))
2
+ $:.unshift(File.expand_path('./spec/support'))
3
+
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+ require 'traceur'
3
+
4
+ describe Traceur do
5
+
6
+ describe ".watch_paths" do
7
+ it "expects a block" do
8
+ expect{ Traceur.watch_paths('.+', ".")}.to raise_error NoBlockError
9
+ end
10
+ end
11
+ end
12
+
13
+
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.2
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-21 00:00:00.000000000 Z
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: []