diff options
| author | Alexander GQ Gerasiov <gq@debian.org> | 2021-01-05 18:49:49 +0300 |
|---|---|---|
| committer | git-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com> | 2021-01-06 23:01:14 +0000 |
| commit | 56fdb93c5fa7362c0b388e880432cd5f48bf238c (patch) | |
| tree | 7725bc1cf822acbd9ce8f88a457586431d1fa88a | |
| parent | 0a9b048e6209a6237c0ff90eddecbe2d2e49b58d (diff) | |
2.0.2-1 (patches unapplied)import/2.0.2-1ubuntu/plucky-develubuntu/pluckyubuntu/oracular-develubuntu/oracularubuntu/noble-develubuntu/nobleubuntu/mantic-develubuntu/manticubuntu/lunar-develubuntu/lunarubuntu/kinetic-develubuntu/kineticubuntu/jammy-develubuntu/jammyubuntu/impish-develubuntu/impishubuntu/hirsute-proposedubuntu/hirsute-develubuntu/hirsutedebian/bullseyedebian/bookworm
Imported using git-ubuntu import.
Notes
Notes:
[ Cédric Boutillier ]
* Bump debhelper compatibility level to 9
* Use https:// in Vcs-* fields
* Bump Standards-Version to 3.9.7 (no changes needed)
* Run wrap-and-sort on packaging files
[ Utkarsh Gupta ]
* Add salsa-ci.yml
[ Debian Janitor ]
* Use secure copyright file specification URI.
* Use secure URI in debian/watch.
* Bump debhelper from old 9 to 12.
* Set debhelper-compat version in Build-Depends.
* Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
Repository-Browse.
* Update Vcs-* headers from URL redirect.
* Use canonical URL in Vcs-Git.
[ Cédric Boutillier ]
* [ci skip] Update team name
* [ci skip] Add .gitattributes to keep unwanted files out of the source
package
[ Alexander Gerasiov ]
* d/control: Bump Standards-Version (no changes needed.)
* New upstream version 2.0.2
* d/watch: Use gemwatch.debian.net instead of alioth.
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | CHANGELOG.md | 4 | ||||
| -rw-r--r-- | LICENSE.txt | 2 | ||||
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | debian/changelog | 33 | ||||
| -rw-r--r-- | debian/compat | 1 | ||||
| -rw-r--r-- | debian/control | 17 | ||||
| -rw-r--r-- | debian/copyright | 2 | ||||
| -rw-r--r-- | debian/ruby-test-construct.examples | 2 | ||||
| -rw-r--r-- | debian/salsa-ci.yml | 4 | ||||
| -rw-r--r-- | debian/upstream/metadata | 4 | ||||
| -rw-r--r-- | debian/watch | 2 | ||||
| -rw-r--r-- | lib/test_construct/pathname_extensions.rb | 3 | ||||
| -rw-r--r-- | lib/test_construct/version.rb | 2 | ||||
| -rw-r--r-- | metadata.yml | 136 | ||||
| -rw-r--r-- | test/test_construct_test.rb | 13 | ||||
| -rw-r--r-- | test/test_helper.rb | 2 | ||||
| -rw-r--r-- | test_construct.gemspec | 2 |
18 files changed, 75 insertions, 159 deletions
@@ -3,6 +3,7 @@ .bundle .config .yardoc +.ruby-version Gemfile.lock InstalledFiles _yardoc diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e04985..fa57867 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # TestConstruct Changelog +## v2.0.2 + +* Fixes line endings on Windows (@MSP-Greg) + ## v2.0.1 * Adds support for RSpec 3 (@jcouball) diff --git a/LICENSE.txt b/LICENSE.txt index 6624f0b..e53ad5c 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright (c) 2013 Ben Brinckerhoff +Copyright (c) 2013-2019 Ben Brinckerhoff MIT License @@ -1,3 +1,5 @@ +[](https://badge.fury.io/rb/test_construct) + # TestConstruct > "This is the construct. It's our loading program. We can load anything, from clothing to equipment, weapons, and training simulations, anything we need" -- Morpheus @@ -126,7 +128,7 @@ If you disable, automatic chdir, note that your old assertions will not work: ``` within_construct(:chdir => false) do |construct| construct.file("foo.txt") - # Fails. foo.txt was created in construct, but + # Fails. foo.txt was created in construct, but # the current directory is not the construct! assert File.exists?("foo.txt") end diff --git a/debian/changelog b/debian/changelog index 891182c..399c242 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,36 @@ +ruby-test-construct (2.0.2-1) unstable; urgency=medium + + [ Cédric Boutillier ] + * Bump debhelper compatibility level to 9 + * Use https:// in Vcs-* fields + * Bump Standards-Version to 3.9.7 (no changes needed) + * Run wrap-and-sort on packaging files + + [ Utkarsh Gupta ] + * Add salsa-ci.yml + + [ Debian Janitor ] + * Use secure copyright file specification URI. + * Use secure URI in debian/watch. + * Bump debhelper from old 9 to 12. + * Set debhelper-compat version in Build-Depends. + * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository, + Repository-Browse. + * Update Vcs-* headers from URL redirect. + * Use canonical URL in Vcs-Git. + + [ Cédric Boutillier ] + * [ci skip] Update team name + * [ci skip] Add .gitattributes to keep unwanted files out of the source + package + + [ Alexander Gerasiov ] + * d/control: Bump Standards-Version (no changes needed.) + * New upstream version 2.0.2 + * d/watch: Use gemwatch.debian.net instead of alioth. + + -- Alexander GQ Gerasiov <gq@debian.org> Tue, 05 Jan 2021 18:49:49 +0300 + ruby-test-construct (2.0.1-1) unstable; urgency=medium * New upstream version 2.0.1 diff --git a/debian/compat b/debian/compat deleted file mode 100644 index 7f8f011..0000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -7 diff --git a/debian/control b/debian/control index ca56a14..dc73227 100644 --- a/debian/control +++ b/debian/control @@ -1,12 +1,15 @@ Source: ruby-test-construct Section: ruby Priority: optional -Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org> +Maintainer: Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org> Uploaders: Alexander GQ Gerasiov <gq@debian.org> -Build-Depends: debhelper (>= 7.0.50~), gem2deb, ruby-minitest, ruby-mocha -Standards-Version: 3.9.6 -Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-test-construct.git -Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-test-construct.git;a=summary +Build-Depends: debhelper-compat (= 12), + gem2deb, + ruby-minitest, + ruby-mocha +Standards-Version: 4.5.1 +Vcs-Git: https://salsa.debian.org/ruby-team/ruby-test-construct.git +Vcs-Browser: https://salsa.debian.org/ruby-team/ruby-test-construct Homepage: https://github.com/bhb/test_construct Testsuite: autopkgtest-pkg-ruby XS-Ruby-Versions: all @@ -14,7 +17,9 @@ XS-Ruby-Versions: all Package: ruby-test-construct Architecture: all XB-Ruby-Versions: ${ruby:Versions} -Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter +Depends: ruby | ruby-interpreter, + ${misc:Depends}, + ${shlibs:Depends} Description: Ruby library that creates temporary files and directories for testing TestConstruct is a DSL for creating temporary files and directories during testing. diff --git a/debian/copyright b/debian/copyright index 806bfcf..517f944 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,4 +1,4 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: test_construct Source: https://github.com/bhb/test_construct diff --git a/debian/ruby-test-construct.examples b/debian/ruby-test-construct.examples index d970cc8..4cd72a7 100644 --- a/debian/ruby-test-construct.examples +++ b/debian/ruby-test-construct.examples @@ -1,3 +1,3 @@ -# FIXME: examples/ dir found in source. Consider installing the examples. # Examples: +# FIXME: examples/ dir found in source. Consider installing the examples. # examples/* diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..33c3a64 --- /dev/null +++ b/debian/salsa-ci.yml @@ -0,0 +1,4 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..1f42d6d --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,4 @@ +Bug-Database: https://github.com/bhb/test_construct/issues +Bug-Submit: https://github.com/bhb/test_construct/issues/new +Repository: https://github.com/bhb/test_construct.git +Repository-Browse: https://github.com/bhb/test_construct diff --git a/debian/watch b/debian/watch index 972eed4..d7a833c 100644 --- a/debian/watch +++ b/debian/watch @@ -1,2 +1,2 @@ version=3 -http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/test_construct .*/test_construct-(.*).tar.gz +https://gemwatch.debian.net/test_construct .*/test_construct-(.*).tar.gz diff --git a/lib/test_construct/pathname_extensions.rb b/lib/test_construct/pathname_extensions.rb index cd8a642..5289ed0 100644 --- a/lib/test_construct/pathname_extensions.rb +++ b/lib/test_construct/pathname_extensions.rb @@ -17,7 +17,8 @@ module TestConstruct def file(filepath, contents = nil, &block) path = (self+filepath) path.dirname.mkpath - File.open(path,'w') do |f| + mode = RUBY_PLATFORM =~ /mingw|mswin/ ? 'wb:UTF-8' : 'w' + File.open(path, mode) do |f| if(block) if(block.arity==1) block.call(f) diff --git a/lib/test_construct/version.rb b/lib/test_construct/version.rb index 34983fb..a2cbd7e 100644 --- a/lib/test_construct/version.rb +++ b/lib/test_construct/version.rb @@ -1,3 +1,3 @@ module TestConstruct - VERSION = "2.0.1" + VERSION = "2.0.2" end diff --git a/metadata.yml b/metadata.yml deleted file mode 100644 index df279a0..0000000 --- a/metadata.yml +++ /dev/null @@ -1,136 +0,0 @@ ---- !ruby/object:Gem::Specification -name: test_construct -version: !ruby/object:Gem::Version - version: 2.0.1 -platform: ruby -authors: -- Ben Brinckerhoff -- Avdi Grimm -autorequire: -bindir: bin -cert_chain: [] -date: 2015-02-25 00:00:00.000000000 Z -dependencies: -- !ruby/object:Gem::Dependency - name: bundler - requirement: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: '1.3' - type: :development - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: '1.3' -- !ruby/object:Gem::Dependency - name: rake - requirement: !ruby/object:Gem::Requirement - requirements: - - - ">=" - - !ruby/object:Gem::Version - version: '0' - type: :development - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - ">=" - - !ruby/object:Gem::Version - version: '0' -- !ruby/object:Gem::Dependency - name: minitest - requirement: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: 5.0.8 - type: :development - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: 5.0.8 -- !ruby/object:Gem::Dependency - name: mocha - requirement: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: 0.14.0 - type: :development - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: 0.14.0 -- !ruby/object:Gem::Dependency - name: rspec - requirement: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: '3.0' - type: :development - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: '3.0' -description: Creates temporary files and directories for testing. -email: -- ben@bbrinck.com -- avdi@avdi.org -executables: [] -extensions: [] -extra_rdoc_files: [] -files: -- ".gitignore" -- CHANGELOG.md -- Gemfile -- LICENSE.txt -- README.md -- Rakefile -- examples/foobar_spec.rb -- examples/foobar_test.rb -- lib/test_construct.rb -- lib/test_construct/helpers.rb -- lib/test_construct/pathname_extensions.rb -- lib/test_construct/rspec_integration.rb -- lib/test_construct/version.rb -- test/rspec_integration_test.rb -- test/test_construct_test.rb -- test/test_helper.rb -- test_construct.gemspec -homepage: '' -licenses: -- MIT -metadata: {} -post_install_message: -rdoc_options: [] -require_paths: -- lib -required_ruby_version: !ruby/object:Gem::Requirement - requirements: - - - ">=" - - !ruby/object:Gem::Version - version: '0' -required_rubygems_version: !ruby/object:Gem::Requirement - requirements: - - - ">=" - - !ruby/object:Gem::Version - version: '0' -requirements: [] -rubyforge_project: -rubygems_version: 2.2.2 -signing_key: -specification_version: 4 -summary: Creates temporary files and directories for testing. -test_files: -- test/rspec_integration_test.rb -- test/test_construct_test.rb -- test/test_helper.rb diff --git a/test/test_construct_test.rb b/test/test_construct_test.rb index cf0c77e..3b2e05c 100644 --- a/test/test_construct_test.rb +++ b/test/test_construct_test.rb @@ -103,7 +103,7 @@ class TestConstructTest < Minitest::Test test 'exists while in construct block' do within_construct do |construct| construct.file('foo.txt') - assert File.exists?(construct + 'foo.txt') + assert File.exist?(construct + 'foo.txt') end end @@ -112,7 +112,7 @@ class TestConstructTest < Minitest::Test within_construct do |construct| filepath = construct.file('foo.txt') end - assert !File.exists?(filepath) + assert !File.exist?(filepath) end test 'has empty file contents by default' do @@ -306,7 +306,6 @@ Contents test 'overrides construct default' do within_construct(:chdir => false) do |construct| - old_pwd = Dir.pwd construct.directory('foo', :chdir => true) do |dir| assert_equal dir.to_s, Dir.pwd end @@ -357,7 +356,7 @@ Contents within_construct do |construct| construct.directory('bar') do |dir| dir.file('foo.txt') - assert File.exists?('foo.txt') + assert File.exist?('foo.txt') end end end @@ -418,7 +417,7 @@ Contents test 'checking for a file is relative to container' do within_construct do |construct| construct.file('foo.txt') - assert File.exists?('foo.txt') + assert File.exist?('foo.txt') end end @@ -518,7 +517,7 @@ Contents rescue => e error = e end - assert_equal "bad stuff\nTestConstruct files kept at: #{path}", e.message + assert_equal "bad stuff\nTestConstruct files kept at: #{path}", error.message end end @@ -534,7 +533,7 @@ Contents testing 'name option' do test 'used in generation of the directory name' do within_construct(name: "My best test ever!") do |container| - assert_match /my-best-test-ever-$/, container.basename.to_s + assert_match(/my-best-test-ever-$/, container.basename.to_s) end end end diff --git a/test/test_helper.rb b/test/test_helper.rb index 74321df..6ace748 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -14,7 +14,7 @@ class Minitest::Test def self.test(name, &block) name = name.strip.gsub(/\s\s+/, " ") - group = "#{@group}: " if @group + group = "#{@group}: " if defined? @group test_name = "test_: #{group}#{name}".to_sym defined = instance_methods.include? test_name raise "#{test_name} is already defined in #{self}" if defined diff --git a/test_construct.gemspec b/test_construct.gemspec index ea4a7f5..38c86c9 100644 --- a/test_construct.gemspec +++ b/test_construct.gemspec @@ -10,7 +10,7 @@ Gem::Specification.new do |spec| spec.email = ["ben@bbrinck.com", "avdi@avdi.org"] spec.description = %q{Creates temporary files and directories for testing.} spec.summary = %q{Creates temporary files and directories for testing.} - spec.homepage = "" + spec.homepage = "https://github.com/bhb/test_construct" spec.license = "MIT" spec.files = `git ls-files`.split($/) |
