exemplor 2010.0.0 → 2010.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/exemplor.rb +1 -1
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2010.0.0
1
+ 2010.0.1
data/lib/exemplor.rb CHANGED
@@ -280,8 +280,8 @@ end
280
280
  # Examples.examples ordered hash, the key is the name, the body is the example
281
281
  # code
282
282
  def eg(name = nil, &example)
283
- Exemplor.extract_example_file caller # only runs once
284
283
  return Exemplor::ExampleEnv if name.nil? && example.nil?
284
+ Exemplor.extract_example_file caller # only runs once
285
285
  if name.nil?
286
286
  file, line_number = caller.first.match(/^(.+):(\d+)/).captures
287
287
  line = File.readlines(file)[line_number.to_i - 1].strip
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exemplor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2010.0.0
4
+ version: 2010.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Myles Byrne
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-25 00:00:00 +11:00
12
+ date: 2010-01-06 00:00:00 +11:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency