[DRE-commits] [ruby-omniauth-azure-oauth2] 05/05: Make tests run

Balasankar C balasankarc-guest at moszumanska.debian.org
Thu Jan 14 18:04:06 UTC 2016


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

balasankarc-guest pushed a commit to branch master
in repository ruby-omniauth-azure-oauth2.

commit 47550e635a1993138f9b6155eebddd69cefffcbf
Author: Balasankar C <balasankarc at autistici.org>
Date:   Thu Jan 14 23:31:14 2016 +0530

    Make tests run
---
 debian/patches/remove-bundler.patch     | 12 ++++++++++++
 debian/patches/remove-git-gemspec.patch | 17 +++++++++++++++++
 debian/patches/series                   |  2 ++
 debian/ruby-tests.rake                  |  1 +
 4 files changed, 32 insertions(+)

diff --git a/debian/patches/remove-bundler.patch b/debian/patches/remove-bundler.patch
new file mode 100644
index 0000000..6111979
--- /dev/null
+++ b/debian/patches/remove-bundler.patch
@@ -0,0 +1,12 @@
+Description: Remove usage of bundler in tests
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2016-01-14
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,2 +1 @@
+-require File.join('bundler', 'setup')
+-require 'rspec'
+\ No newline at end of file
++require 'rspec'
diff --git a/debian/patches/remove-git-gemspec.patch b/debian/patches/remove-git-gemspec.patch
new file mode 100644
index 0000000..6163cbc
--- /dev/null
+++ b/debian/patches/remove-git-gemspec.patch
@@ -0,0 +1,17 @@
+Description: Remove usage of git in gemspec
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2016-01-14
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/omniauth-azure-oauth2.gemspec
++++ b/omniauth-azure-oauth2.gemspec
+@@ -8,9 +8,6 @@
+   gem.summary       = %q{An Windows Azure Active Directory OAuth2 strategy for OmniAuth}
+   gem.homepage      = "https://github.com/KonaTeam/omniauth-azure-oauth2"
+ 
+-  gem.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+-  gem.files         = `git ls-files`.split("\n")
+-  gem.test_files    = `git ls-files -- {spec}/*`.split("\n")
+   gem.name          = "omniauth-azure-oauth2"
+   gem.require_paths = ["lib"]
+   gem.version       = OmniAuth::AzureOauth2::VERSION
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0b96ea8
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+remove-git-gemspec.patch
+remove-bundler.patch
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index cf1591e..5bbc7c2 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,5 +1,6 @@
 require 'gem2deb/rake/spectask'
 
 Gem2Deb::Rake::RSpecTask.new do |spec|
+  $: << 'lib' << 'spec'
   spec.pattern = './spec/**/*_spec.rb'
 end

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



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