[DRE-commits] [ruby-tdiff] 01/01: debian/*

Abhijith PA abhijithpa-guest at moszumanska.debian.org
Sat Nov 14 15:04:03 UTC 2015


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

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

commit e688ff21651be487b8ae98039e666add17cea764
Author: Abhijith PA <abhijith at openmailbox.org>
Date:   Sat Nov 14 20:32:24 2015 +0530

    debian/*
---
 debian/changelog                      |   5 ++
 debian/compat                         |   1 +
 debian/control                        |  26 +++++++
 debian/copyright                      |  31 +++++++++
 debian/patches/series                 |   1 +
 debian/patches/test-rspec3-port.patch | 124 ++++++++++++++++++++++++++++++++++
 debian/ruby-tdiff.docs                |   2 +
 debian/ruby-tests.rake                |   7 ++
 debian/rules                          |  15 ++++
 debian/source/format                  |   1 +
 debian/tests/control.ex               |  13 ++++
 debian/watch                          |   2 +
 12 files changed, 228 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..659f3b8
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ruby-tdiff (0.3.3-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #805088)
+
+ -- Abhijith PA <abhijith at openmailbox.org>  Sat, 26 Sep 2015 13:36:39 +0530
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..56ee526
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,26 @@
+Source: ruby-tdiff
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: Abhijith PA <abhijith at openmailbox.org>
+Section: ruby
+Testsuite: autopkgtest
+Priority: optional
+Build-Depends: debhelper (>= 7.0.50~),
+               gem2deb,
+               ruby-rspec,
+               rake,
+               yard
+Standards-Version: 3.9.6
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-tdiff.git
+Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-tdiff.git
+Homepage: https://github.com/postmodern/tdiff
+XS-Ruby-Versions: all
+
+Package: ruby-tdiff
+Architecture: all
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         ruby | ruby-interpreter
+Description: Calculates the differences between two tree-like structures
+ Tdiff calculates the differences between two tree-like structures. 
+ It is similar to Rubys built-in TSort module.
+XB-Ruby-Versions: ${ruby:Versions}
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e2facc8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: tdiff
+Source: https://github.com/postmodern/tdiff
+
+Files: *
+Copyright: 2010 Postmodern <postmodern.mod3 at gmail.com>
+License: Expat
+
+Files: debian/*
+Copyright: 2015 Abhijith PA <abhijith at openmailbox.org>
+License: Expat
+Comment: the Debian packaging is licensed under the same terms as the original package.
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..da7fbea
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+test-rspec3-port.patch
diff --git a/debian/patches/test-rspec3-port.patch b/debian/patches/test-rspec3-port.patch
new file mode 100644
index 0000000..e7b44ae
--- /dev/null
+++ b/debian/patches/test-rspec3-port.patch
@@ -0,0 +1,124 @@
+Author: Balasankar C<balasankarc at autistici.org.org>
+
+---
+Date: <14/11/2015>
+
+--- ruby-tdiff-0.3.3.orig/spec/spec_helper.rb
++++ ruby-tdiff-0.3.3/spec/spec_helper.rb
+@@ -1,4 +1,4 @@
+-gem 'rspec', '~> 2.4'
++#gem 'rspec', '~> 2.4'
+ require 'rspec'
+ 
+ require 'helpers/trees'
+--- ruby-tdiff-0.3.3.orig/spec/tdiff_examples.rb
++++ ruby-tdiff-0.3.3/spec/tdiff_examples.rb
+@@ -5,36 +5,36 @@ shared_examples_for 'TDiff' do |method|
+   include Helpers::Trees
+ 
+   it "should tell if two trees are identical" do
+-    @tree.send(method, at tree).all? { |change,node|
++    expect(@tree.send(method, at tree).all? { |change,node|
+       change == ' '
+-    }.should == true
++    }).to eq(true)
+   end
+ 
+   it "should stop if the root nodes have changed" do
+     changes = @tree.send(method, at different_root).to_a
+ 
+-    changes.length.should == 2
++    expect(changes.length).to eq(2)
+ 
+-    changes[0][0].should == '-'
+-    changes[0][1].should == @tree
++    expect(changes[0][0]).to eq('-')
++    expect(changes[0][1]).to eq(@tree)
+ 
+-    changes[1][0].should == '+'
+-    changes[1][1].should == @different_root
++    expect(changes[1][0]).to eq('+')
++    expect(changes[1][1]).to eq(@different_root)
+   end
+ 
+   it "should tell when sub-nodes are added" do
+     changes = @tree.send(method, at added).select { |change,node| change == '+' }
+ 
+-    changes.length.should == 1
+-    changes[0][0].should == '+'
+-    changes[0][1].should == @added.children[0].children[1]
++    expect(changes.length).to eq(1)
++    expect(changes[0][0]).to eq('+')
++    expect(changes[0][1]).to eq(@added.children[0].children[1])
+   end
+ 
+   it "should tell when sub-nodes are removed" do
+     changes = @tree.send(method, at removed).select { |change,node| change == '-' }
+ 
+-    changes.length.should == 1
+-    changes[0][0].should == '-'
+-    changes[0][1].should == @tree.children[0].children[1]
++    expect(changes.length).to eq(1)
++    expect(changes[0][0]).to eq('-')
++    expect(changes[0][1]).to eq(@tree.children[0].children[1])
+   end
+ end
+--- ruby-tdiff-0.3.3.orig/spec/tdiff_spec.rb
++++ ruby-tdiff-0.3.3/spec/tdiff_spec.rb
+@@ -11,24 +11,24 @@ describe TDiff do
+   it "should detect when the order of children has changed" do
+     changes = @tree.tdiff(@changed_order).to_a
+ 
+-    changes.length.should == 6
++    expect(changes.length).to eq(6)
+ 
+-    changes[0][0].should == ' '
+-    changes[0][1].should == @tree
++    expect(changes[0][0]).to eq(' ')
++    expect(changes[0][1]).to eq(@tree)
+ 
+-    changes[1][0].should == '-'
+-    changes[1][1].should == @tree.children[0]
++    expect(changes[1][0]).to eq('-')
++    expect(changes[1][1]).to eq(@tree.children[0])
+ 
+-    changes[2][0].should == ' '
+-    changes[2][1].should == @tree.children[1]
++    expect(changes[2][0]).to eq(' ')
++    expect(changes[2][1]).to eq(@tree.children[1])
+ 
+-    changes[3][0].should == '+'
+-    changes[3][1].should == @changed_order.children[1]
++    expect(changes[3][0]).to eq('+')
++    expect(changes[3][1]).to eq(@changed_order.children[1])
+ 
+-    changes[4][0].should == ' '
+-    changes[4][1].should == @tree.children[1].children[0]
++    expect(changes[4][0]).to eq(' ')
++    expect(changes[4][1]).to eq(@tree.children[1].children[0])
+ 
+-    changes[5][0].should == ' '
+-    changes[5][1].should == @tree.children[1].children[1]
++    expect(changes[5][0]).to eq(' ')
++    expect(changes[5][1]).to eq(@tree.children[1].children[1])
+   end
+ end
+--- ruby-tdiff-0.3.3.orig/spec/unordered_spec.rb
++++ ruby-tdiff-0.3.3/spec/unordered_spec.rb
+@@ -11,7 +11,7 @@ describe TDiff::Unordered do
+       include TDiff::Unordered
+     end
+ 
+-    base.should include(TDiff)
++    expect(base).to include(TDiff)
+   end
+ 
+   it_should_behave_like 'TDiff', :tdiff_unordered
+@@ -21,6 +21,6 @@ describe TDiff::Unordered do
+       change != ' '
+     end
+ 
+-    changes.should be_empty
++    expect(changes).to be_empty
+   end
+ end
diff --git a/debian/ruby-tdiff.docs b/debian/ruby-tdiff.docs
new file mode 100644
index 0000000..07b3c9e
--- /dev/null
+++ b/debian/ruby-tdiff.docs
@@ -0,0 +1,2 @@
+# FIXME: READMEs found
+# README.md
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..99987ae
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,7 @@
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new(:spec) do |spec|
+  spec.pattern = './spec/*_spec.rb'
+end
+
+task :default => :spec
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d81794d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+#
+# Uncomment to ignore all test failures (but the tests will run anyway)
+#export DH_RUBY_IGNORE_TESTS=all
+#
+# Uncomment to ignore some test failures (but the tests will run anyway).
+# Valid values:
+#export DH_RUBY_IGNORE_TESTS=ruby2.1 require-rubygems
+#
+# If you need to specify the .gemspec (eg there is more than one)
+#export DH_RUBY_GEMSPEC=gem.gemspec
+
+%:
+	dh $@ --buildsystem=ruby --with ruby
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control.ex b/debian/tests/control.ex
new file mode 100644
index 0000000..429a392
--- /dev/null
+++ b/debian/tests/control.ex
@@ -0,0 +1,13 @@
+# AUTOGENERATED FILE
+#
+# As of autopkgtest 3.5, Ruby packages that use gem2deb are automatically
+# detected, and if debian/tests/control does not exist the contents below will
+# be assumed (with the exception of gem2deb being filtered out from
+# @builddeps@):
+
+Test-Command: gem2deb-test-runner --autopkgtest 2>&1
+Depends: @, @builddeps@, gem2deb-test-runner
+
+# if you would need to change something to the above, to that and rename this
+# file to `control`. Otherwise, you should probably delete this file
+# (recommended).
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..a2931f1
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/tdiff .*/tdiff-(.*).tar.gz

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



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