[DRE-commits] [ruby-beautify] 05/10: Fixed autotest issues.

Tomasz Nitecki tnnn-guest at moszumanska.debian.org
Thu Apr 9 14:35:21 UTC 2015


This is an automated email from the git hooks/post-receive script.

tnnn-guest pushed a commit to branch master
in repository ruby-beautify.

commit 5be4889f5937959d7dad3e68eaf24daf18574dda
Author: Tomasz Nitecki <tnnn at tnnn.pl>
Date:   Thu Apr 9 11:16:08 2015 +0200

    Fixed autotest issues.
    
    - disabled codeclimate-test-reporter
    - removed unnecessary bundler usage
---
 .../0010_disable_codeclimate_test_reporter.patch   | 16 +++++++
 .../0020_remove_unnecessary_bundler_usage.patch    | 54 ++++++++++++++++++++++
 debian/patches/series                              |  2 +
 3 files changed, 72 insertions(+)

diff --git a/debian/patches/0010_disable_codeclimate_test_reporter.patch b/debian/patches/0010_disable_codeclimate_test_reporter.patch
new file mode 100644
index 0000000..991db78
--- /dev/null
+++ b/debian/patches/0010_disable_codeclimate_test_reporter.patch
@@ -0,0 +1,16 @@
+Description: This patch disables codeclimate-test-reporter.
+Author: Tomasz Nitecki <tnnn at tnnn.pl>
+Last-Update: 2015-04-08
+
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,7 +1,7 @@
+ require 'digest/md5'
+ 
+-require "codeclimate-test-reporter"
+-CodeClimate::TestReporter.start
++#require "codeclimate-test-reporter"
++#CodeClimate::TestReporter.start
+ 
+ require 'ruby-beautify'
+ 
diff --git a/debian/patches/0020_remove_unnecessary_bundler_usage.patch b/debian/patches/0020_remove_unnecessary_bundler_usage.patch
new file mode 100644
index 0000000..007285c
--- /dev/null
+++ b/debian/patches/0020_remove_unnecessary_bundler_usage.patch
@@ -0,0 +1,54 @@
+Description: This patch removes unnecassary bundler calls.
+Author: Tomasz Nitecki <tnnn at tnnn.pl>
+Last-Update: 2015-04-08
+
+--- a/spec/bin/ruby-beautify_spec.rb
++++ b/spec/bin/ruby-beautify_spec.rb
+@@ -22,12 +22,12 @@
+ 
+ 	it "will work" do
+ 		small_md5_sum = Digest::MD5.hexdigest File.read(@small_file)
+-		md5_sum = Digest::MD5.hexdigest `bundle exec #{BEAUTIFY_BIN} #{@small_file}`
++		md5_sum = Digest::MD5.hexdigest `exec #{BEAUTIFY_BIN} #{@small_file}`
+ 		expect(md5_sum).to eq small_md5_sum
+ 	end
+ 
+ 	it "will do multiple files" do
+-		md5_sum = Digest::MD5.hexdigest `bundle exec #{BEAUTIFY_BIN} #{@small_file} #{@small_file}`
++		md5_sum = Digest::MD5.hexdigest `exec #{BEAUTIFY_BIN} #{@small_file} #{@small_file}`
+ 		doubled_md5_sum = Digest::MD5.hexdigest File.read(@doubled_file)
+ 		expect(md5_sum).to eq doubled_md5_sum
+ 	end
+@@ -36,7 +36,7 @@
+ 	it "will update files (overwrite) in place" do
+ 		FileUtils.mkdir_p File.dirname @overwrite_target_file
+ 		FileUtils.cp @overwrite_file, @overwrite_target_file
+-		`bundle exec #{BEAUTIFY_BIN} --overwrite #{@overwrite_target_file}`
++		`exec #{BEAUTIFY_BIN} --overwrite #{@overwrite_target_file}`
+ 		md5_sum = Digest::MD5.hexdigest File.read @overwrite_target_file
+ 	 	overwrite_md5_sum = Digest::MD5.hexdigest File.read(@overwrite_pretty_file)
+ 		expect(md5_sum).to eq overwrite_md5_sum
+@@ -44,12 +44,12 @@
+ 	end
+ 
+ 	it "will honor --spaces" do
+-		beautified_sum = Digest::MD5.hexdigest `bundle exec #{BEAUTIFY_BIN} --spaces #{@space_before}`
++		beautified_sum = Digest::MD5.hexdigest `exec #{BEAUTIFY_BIN} --spaces #{@space_before}`
+ 		expect(beautified_sum).to eq(@space_after_sum)
+ 	end
+ 
+ 	it "will honor the ident_count prefix" do
+-		beautified_sum = Digest::MD5.hexdigest `bundle exec #{BEAUTIFY_BIN} --indent_count=3 #{@count_before}`
++		beautified_sum = Digest::MD5.hexdigest `exec #{BEAUTIFY_BIN} --indent_count=3 #{@count_before}`
+ 		count_after_sum = Digest::MD5.hexdigest File.read @count_after
+ 		expect(beautified_sum).to eq(count_after_sum)
+ 	end
+@@ -57,7 +57,7 @@
+ 	it "will use a .ruby-beautify config file" do
+ 		FileUtils.cp "spec/ruby-beautify.dotfile", "tmp/.ruby-beautify"
+ 		Dir.chdir "tmp"
+-		beautified_sum = Digest::MD5.hexdigest `bundle exec #{BEAUTIFY_BIN} ../#{@space_before}`
++		beautified_sum = Digest::MD5.hexdigest `exec #{BEAUTIFY_BIN} ../#{@space_before}`
+ 		Dir.chdir ".."
+ 		FileUtils.rm "tmp/.ruby-beautify"
+ 		expect(beautified_sum).to eq(@space_after_sum)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..12abd9b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+0010_disable_codeclimate_test_reporter.patch
+0020_remove_unnecessary_bundler_usage.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-beautify.git



More information about the Pkg-ruby-extras-commits mailing list