[DRE-commits] [ruby-raindrops] 04/05: Add patch to set a proper gem version in gemspec

Hleb Valoshka tsfgnu-guest at moszumanska.debian.org
Fri Aug 18 11:47:24 UTC 2017


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

tsfgnu-guest pushed a commit to branch master
in repository ruby-raindrops.

commit d366cfc027eeee64f98836739867ab3777b9af72
Author: Hleb Valoshka <375gnu at gmail.com>
Date:   Fri Aug 18 14:43:18 2017 +0300

    Add patch to set a proper gem version in gemspec
---
 ...Make-gemspec-work-without-make-and-olddoc.patch | 46 ----------------------
 .../0003-Set-proper-version-in-gemspec.patch       | 21 ++++++++++
 debian/patches/series                              |  2 +-
 3 files changed, 22 insertions(+), 47 deletions(-)

diff --git a/debian/patches/0003-Make-gemspec-work-without-make-and-olddoc.patch b/debian/patches/0003-Make-gemspec-work-without-make-and-olddoc.patch
deleted file mode 100644
index 225328e..0000000
--- a/debian/patches/0003-Make-gemspec-work-without-make-and-olddoc.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From: Hleb Valoshka <375gnu at gmail.com>
-Date: Mon, 8 Aug 2016 13:47:06 +0300
-Subject: Make gemspec work without make and olddoc
-
----
- raindrops.gemspec | 19 ++++++++++---------
- 1 file changed, 10 insertions(+), 9 deletions(-)
-
-diff --git a/raindrops.gemspec b/raindrops.gemspec
-index 356bff2..1bda002 100644
---- a/raindrops.gemspec
-+++ b/raindrops.gemspec
-@@ -1,23 +1,24 @@
- # -*- encoding: binary -*-
--ENV["VERSION"] or abort "VERSION= must be specified"
- manifest = File.readlines('.manifest').map! { |x| x.chomp! }
- test_files = manifest.grep(%r{\Atest/test_.*\.rb\z})
--require 'olddoc'
--extend Olddoc::Gemspec
--name, summary, title = readme_metadata
- 
- Gem::Specification.new do |s|
-   s.name = %q{raindrops}
--  s.version = ENV["VERSION"].dup
-+  s.version = '0.17.0'
- 
-   s.authors = ["raindrops hackers"]
--  s.description = readme_description
-+  s.description = <<-END
-+raindrops is a real-time stats toolkit to show statistics for Rack HTTP
-+servers.  It is designed for preforking servers such as unicorn, but
-+should support any Rack HTTP server on platforms supporting POSIX shared
-+memory.  It may also be used as a generic scoreboard for sharing atomic
-+counters across multiple processes.
-+  END
-   s.email = %q{raindrops at bogomips.org}
-   s.extensions = %w(ext/raindrops/extconf.rb)
--  s.extra_rdoc_files = extra_rdoc_files(manifest)
-   s.files = manifest
--  s.homepage = Olddoc.config['rdoc_url']
--  s.summary = summary
-+  s.homepage = 'https://bogomips.org/raindrops/'
-+  s.summary = 'real-time stats for preforking Rack servers'
-   s.test_files = test_files
-   s.add_development_dependency('aggregate', '~> 0.2')
-   s.add_development_dependency('test-unit', '~> 3.0')
diff --git a/debian/patches/0003-Set-proper-version-in-gemspec.patch b/debian/patches/0003-Set-proper-version-in-gemspec.patch
new file mode 100644
index 0000000..723a736
--- /dev/null
+++ b/debian/patches/0003-Set-proper-version-in-gemspec.patch
@@ -0,0 +1,21 @@
+From: Hleb Valoshka <375gnu at gmail.com>
+Date: Fri, 18 Aug 2017 14:41:39 +0300
+Subject: Set proper version in gemspec
+
+---
+ raindrops.gemspec | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/raindrops.gemspec b/raindrops.gemspec
+index 80ee957..3397f53 100644
+--- a/raindrops.gemspec
++++ b/raindrops.gemspec
+@@ -5,7 +5,7 @@
+ 
+ Gem::Specification.new do |s|
+   s.name = %q{raindrops}
+-  s.version = (ENV["VERSION"] ||= '0.18.0').dup
++  s.version = '0.19.0'
+   s.authors = ["raindrops hackers"]
+   s.description = File.read('README').split("\n\n")[1]
+   s.email = %q{raindrops-public at bogomips.org}
diff --git a/debian/patches/series b/debian/patches/series
index ed01fda..7d7b6bd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,3 @@
 0001-Invoke-unix_listener_stats-conditionally.patch
 0002-Disable-tests-which-require-inet_diag-or-tcp_diag-ke.patch
-0003-Make-gemspec-work-without-make-and-olddoc.patch
+0003-Set-proper-version-in-gemspec.patch

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



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