[DRE-commits] [ruby-secure-headers] 01/01: patches

Abhijith PA abhijithpa-guest at moszumanska.debian.org
Fri Jun 2 14:52:28 UTC 2017


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

abhijithpa-guest pushed a commit to branch master
in repository ruby-secure-headers.

commit 37f9b589028777fbf8744c6ec62d66d391eaf05a
Author: Abhijith PA <abhijith at openmailbox.org>
Date:   Fri Jun 2 20:20:35 2017 +0530

    patches
---
 debian/control                               |  7 ++++---
 debian/patches/01-remove-pry-nav.patch       | 18 ++++++++++++++++++
 debian/patches/02-require-securerandom.patch | 18 ++++++++++++++++++
 debian/patches/series                        |  2 ++
 4 files changed, 42 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 3b27d18..8ff2345 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,8 @@ Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.al
 Uploaders: Abhijith PA <abhijith at openmailbox.org>
 Build-Depends: debhelper (>= 9~), 
                gem2deb, 
-               ruby-rspec, 
+               ruby-rspec,
+               ruby-useragent, 
                rake
 Standards-Version: 3.9.8
 Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-secure-headers.git
@@ -19,8 +20,8 @@ Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
 Depends: ${shlibs:Depends}, 
          ${misc:Depends}, 
-         ruby | ruby-interpreter
-         rake 
+         ruby | ruby-interpreter,
+         ruby-useragent 
 Description: Security related headers all in one gem
  Add easily configured security headers to responses including 
  content-security-policy, x-frame-options, strict-transport-security, etc.
diff --git a/debian/patches/01-remove-pry-nav.patch b/debian/patches/01-remove-pry-nav.patch
new file mode 100644
index 0000000..33302a8
--- /dev/null
+++ b/debian/patches/01-remove-pry-nav.patch
@@ -0,0 +1,18 @@
+Description: disable the use of pry-nav in test.
+pry-nav is not packaged in debian yet. It is a primitive debugger. 
+Author: Abhijith PA <abhijith at openmailbox.org>
+Forwarded: not-needed
+Last-Update: 2017-06-02
+
+
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,7 +1,7 @@
+ require 'rubygems'
+ require 'rspec'
+ require 'rack'
+-require 'pry-nav'
++# require 'pry-nav'
+ 
+ require 'coveralls'
+ Coveralls.wear!
diff --git a/debian/patches/02-require-securerandom.patch b/debian/patches/02-require-securerandom.patch
new file mode 100644
index 0000000..8897c17
--- /dev/null
+++ b/debian/patches/02-require-securerandom.patch
@@ -0,0 +1,18 @@
+Description: require-securerandom.
+securerandom is a inbuilt library in ruby. Calling it explicitly to the scope. 
+Thanks to Shanavas <shanavas at disroot.org>. 
+Author: Abhijith PA <abhijith at openmailbox.org>
+Forwarded: not-needed
+Last-Update: 2017-06-02
+
+
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -5,6 +5,7 @@
+ 
+ require 'coveralls'
+ Coveralls.wear!
++require 'securerandom'
+ 
+ require File.join(File.dirname(__FILE__), '..', 'lib', 'secure_headers')
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..62076ea
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+01-require-securerandom.patch
+02-remove-pry-nav.patch

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



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