respec 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.1.1 2012-09-27
2
+
3
+ * Handle file name arguments with line number suffixes.
4
+
1
5
  == 0.1.0 2012-06-08
2
6
 
3
7
  * Remove c, d, x/X shortcuts.
data/lib/respec/app.rb CHANGED
@@ -74,7 +74,7 @@ module Respec
74
74
  args = []
75
75
  files = []
76
76
  @args.each do |arg|
77
- if File.exist?(arg)
77
+ if File.exist?(arg.sub(/:\d+\z/, ''))
78
78
  files << arg
79
79
  elsif arg =~ /\A(--)?help\z/
80
80
  @help_only = true
@@ -1,5 +1,5 @@
1
1
  module Respec
2
- VERSION = [0, 1, 0]
2
+ VERSION = [0, 1, 1]
3
3
 
4
4
  class << VERSION
5
5
  include Comparable
@@ -99,6 +99,12 @@ describe Respec::App do
99
99
  app.generated_args.should == ["#{tmp}/existing.rb"]
100
100
  end
101
101
 
102
+ it "should pass existing file names with line numbers directly to rspec" do
103
+ FileUtils.touch "#{tmp}/existing.rb"
104
+ app = Respec::App.new("#{tmp}/existing.rb:123")
105
+ app.generated_args.should == ["#{tmp}/existing.rb:123"]
106
+ end
107
+
102
108
  it "should treat other arguments as example names" do
103
109
  FileUtils.touch "#{tmp}/FILE"
104
110
  app = Respec::App.new("#{tmp}/FILE")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: respec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-08 00:00:00.000000000 Z
12
+ date: 2012-09-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -98,7 +98,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  segments:
100
100
  - 0
101
- hash: -4339172724933482558
101
+ hash: 1462009004299331695
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  none: false
104
104
  requirements:
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  segments:
109
109
  - 0
110
- hash: -4339172724933482558
110
+ hash: 1462009004299331695
111
111
  requirements: []
112
112
  rubyforge_project:
113
113
  rubygems_version: 1.8.24