[DRE-commits] [ruby-rspec-instafail] 05/126: add VERSION file and RSpec::Instafail::VERSION
Hideki Yamane
henrich at moszumanska.debian.org
Sun Nov 15 19:14:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
henrich pushed a commit to branch debian/sid
in repository ruby-rspec-instafail.
commit 136327597145c9fa6a68a53121ef1f9d8eee5077
Author: grosser <grosser.michael at gmail.com>
Date: Sun Aug 15 17:54:34 2010 +0200
add VERSION file and RSpec::Instafail::VERSION
---
VERSION | 1 +
lib/rspec/instafail.rb | 6 +++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/VERSION b/VERSION
new file mode 100644
index 0000000..6c6aa7c
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+0.1.0
\ No newline at end of file
diff --git a/lib/rspec/instafail.rb b/lib/rspec/instafail.rb
index d3ce366..3c7653a 100644
--- a/lib/rspec/instafail.rb
+++ b/lib/rspec/instafail.rb
@@ -1,5 +1,5 @@
module RSpec
- if defined? Spec
+ klass = if defined? Spec
# rspec 1.x
require 'spec/runner/formatter/progress_bar_formatter'
class Instafail < Spec::Runner::Formatter::ProgressBarFormatter
@@ -10,6 +10,7 @@ module RSpec
output.flush
end
end
+ Instafail
else
# rspec 2.x
require 'rspec'
@@ -24,5 +25,8 @@ module RSpec
output.flush
end
end
+ Instafail
end
+
+ klass::VERSION = File.read( File.join(File.dirname(__FILE__),'..','..','VERSION') ).strip
end
\ No newline at end of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rspec-instafail.git
More information about the Pkg-ruby-extras-commits
mailing list