rspec-instafail 0.1.8 → 0.1.9
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/Rakefile +20 -17
- data/Readme.md +1 -1
- data/lib/rspec/instafail.rb +1 -1
- data/lib/rspec/instafail/version.rb +2 -0
- data/rspec-instafail.gemspec +9 -41
- metadata +8 -8
- data/VERSION +0 -1
data/Rakefile
CHANGED
@@ -1,20 +1,23 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Spec::Rake::SpecTask.new {|t| t.spec_opts = ['--color --backtrace --debug']}
|
1
|
+
require "bundler"
|
2
|
+
Bundler::GemHelper.install_tasks
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
task :default do
|
5
|
+
sh "cd spec/rspec_1 && (bundle || bundle install) > /dev/null"
|
6
|
+
sh "cd spec/rspec_2 && (bundle || bundle install) > /dev/null"
|
7
|
+
sh "rspec spec/"
|
8
|
+
end
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
gem.summary = "Show failing specs instantly"
|
12
|
-
gem.email = "grosser.michael@gmail.com"
|
13
|
-
gem.homepage = "http://github.com/grosser/#{project_name}"
|
14
|
-
gem.authors = ["Michael Grosser"]
|
15
|
-
end
|
10
|
+
rule /^version:bump:.*/ do |t|
|
11
|
+
file = 'lib/rspec/instafail/version.rb'
|
16
12
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
13
|
+
sh "git status | grep 'nothing to commit'" # ensure we are not dirty
|
14
|
+
index = ['major', 'minor','patch'].index(t.name.split(':').last)
|
15
|
+
|
16
|
+
version_file = File.read(file)
|
17
|
+
old_version, *version_parts = version_file.match(/(\d+)\.(\d+)\.(\d+)/).to_a
|
18
|
+
version_parts[index] = version_parts[index].to_i + 1
|
19
|
+
new_version = version_parts * '.'
|
20
|
+
File.open(file,'w'){|f| f.write(version_file.sub(old_version, new_version)) }
|
21
|
+
|
22
|
+
sh "git add #{file} && git commit -m 'bump version to #{new_version}'"
|
23
|
+
end
|
data/Readme.md
CHANGED
data/lib/rspec/instafail.rb
CHANGED
data/rspec-instafail.gemspec
CHANGED
@@ -1,44 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
|
2
|
+
name = 'rspec-instafail'
|
3
|
+
require "rspec/instafail/version"
|
5
4
|
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.
|
8
|
-
s.version = "0.1.8"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
5
|
+
Gem::Specification.new name, RSpec::Instafail::VERSION do |s|
|
6
|
+
s.summary = "Show failing specs instantly"
|
11
7
|
s.authors = ["Michael Grosser"]
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.files =
|
15
|
-
|
16
|
-
"Readme.md",
|
17
|
-
"VERSION",
|
18
|
-
"lib/rspec/instafail.rb",
|
19
|
-
"lib/rspec/instafail/rspec_1.rb",
|
20
|
-
"lib/rspec/instafail/rspec_2.rb",
|
21
|
-
"rspec-instafail.gemspec",
|
22
|
-
"spec/instafail_spec.rb",
|
23
|
-
"spec/rspec_1/Gemfile",
|
24
|
-
"spec/rspec_1/Gemfile.lock",
|
25
|
-
"spec/rspec_1/a_test.rb",
|
26
|
-
"spec/rspec_2/Gemfile",
|
27
|
-
"spec/rspec_2/Gemfile.lock",
|
28
|
-
"spec/rspec_2/a_test.rb"
|
29
|
-
]
|
30
|
-
s.homepage = %q{http://github.com/grosser/rspec-instafail}
|
31
|
-
s.require_paths = ["lib"]
|
32
|
-
s.rubygems_version = %q{1.6.2}
|
33
|
-
s.summary = %q{Show failing specs instantly}
|
34
|
-
|
35
|
-
if s.respond_to? :specification_version then
|
36
|
-
s.specification_version = 3
|
37
|
-
|
38
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
39
|
-
else
|
40
|
-
end
|
41
|
-
else
|
42
|
-
end
|
8
|
+
s.email = "michael@grosser.it"
|
9
|
+
s.homepage = "http://github.com/grosser/#{name}"
|
10
|
+
s.files = `git ls-files`.split("\n")
|
11
|
+
s.license = "MIT"
|
43
12
|
end
|
44
|
-
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-instafail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 9
|
10
|
+
version: 0.1.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Grosser
|
@@ -15,12 +15,12 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-10-27 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
22
22
|
description:
|
23
|
-
email:
|
23
|
+
email: michael@grosser.it
|
24
24
|
executables: []
|
25
25
|
|
26
26
|
extensions: []
|
@@ -30,10 +30,10 @@ extra_rdoc_files: []
|
|
30
30
|
files:
|
31
31
|
- Rakefile
|
32
32
|
- Readme.md
|
33
|
-
- VERSION
|
34
33
|
- lib/rspec/instafail.rb
|
35
34
|
- lib/rspec/instafail/rspec_1.rb
|
36
35
|
- lib/rspec/instafail/rspec_2.rb
|
36
|
+
- lib/rspec/instafail/version.rb
|
37
37
|
- rspec-instafail.gemspec
|
38
38
|
- spec/instafail_spec.rb
|
39
39
|
- spec/rspec_1/Gemfile
|
@@ -44,8 +44,8 @@ files:
|
|
44
44
|
- spec/rspec_2/a_test.rb
|
45
45
|
has_rdoc: true
|
46
46
|
homepage: http://github.com/grosser/rspec-instafail
|
47
|
-
licenses:
|
48
|
-
|
47
|
+
licenses:
|
48
|
+
- MIT
|
49
49
|
post_install_message:
|
50
50
|
rdoc_options: []
|
51
51
|
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.1.8
|