Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-tmuxinator for openSUSE:Factory checked in at 2021-06-25 15:01:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-tmuxinator (Old) and /work/SRC/openSUSE:Factory/.rubygem-tmuxinator.new.2625 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-tmuxinator" Fri Jun 25 15:01:22 2021 rev:8 rq:902190 version:3.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-tmuxinator/rubygem-tmuxinator.changes 2021-04-17 23:24:58.361594825 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-tmuxinator.new.2625/rubygem-tmuxinator.changes 2021-06-25 15:02:04.728205799 +0200 @@ -1,0 +2,6 @@ +Thu Jun 24 18:05:04 UTC 2021 - Stephan Kulow <[email protected]> + +updated to version 3.0.1 + no changelog found + +------------------------------------------------------------------- Old: ---- tmuxinator-2.0.3.gem New: ---- tmuxinator-3.0.1.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-tmuxinator.spec ++++++ --- /var/tmp/diff_new_pack.O9XTVf/_old 2021-06-25 15:02:05.176206346 +0200 +++ /var/tmp/diff_new_pack.O9XTVf/_new 2021-06-25 15:02:05.176206346 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-tmuxinator -Version: 2.0.3 +Version: 3.0.1 Release: 0 %define mod_name tmuxinator %define mod_full_name %{mod_name}-%{version} @@ -35,7 +35,7 @@ %endif # /MANUAL BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{ruby >= 2.5.8} +BuildRequires: %{ruby >= 2.6.7} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 BuildRequires: update-alternatives ++++++ tmuxinator-2.0.3.gem -> tmuxinator-3.0.1.gem ++++++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/tmuxinator/cli.rb new/lib/tmuxinator/cli.rb --- old/lib/tmuxinator/cli.rb 2021-04-14 15:16:50.000000000 +0200 +++ new/lib/tmuxinator/cli.rb 2021-06-15 19:37:54.000000000 +0200 @@ -21,7 +21,7 @@ for project reuse) or a path to a project config file (via the -p flag) }.join(" "), stop: "Stop a tmux session using a project's tmuxinator config", - local: "Start a tmux session using ./.tmuxinator.yml", + local: "Start a tmux session using ./.tmuxinator.y[a]ml", debug: "Output the shell commands that are generated by tmuxinator", copy: %w{ Copy an existing project to a new project and @@ -160,7 +160,7 @@ def config_path(name, local = false) if local - Tmuxinator::Config::LOCAL_DEFAULT + Tmuxinator::Config::LOCAL_DEFAULTS[0] else Tmuxinator::Config.default_project(name) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/tmuxinator/config.rb new/lib/tmuxinator/config.rb --- old/lib/tmuxinator/config.rb 2021-04-14 15:16:50.000000000 +0200 +++ new/lib/tmuxinator/config.rb 2021-06-15 19:37:54.000000000 +0200 @@ -1,6 +1,6 @@ module Tmuxinator class Config - LOCAL_DEFAULT = "./.tmuxinator.yml".freeze + LOCAL_DEFAULTS = ["./.tmuxinator.yml", "./.tmuxinator.yaml"].freeze NO_LOCAL_FILE_MSG = "Project file at ./.tmuxinator.yml doesn't exist.".freeze NO_PROJECT_FOUND_MSG = "Project could not be found.".freeze @@ -94,7 +94,7 @@ end def local_project - [LOCAL_DEFAULT].detect { |f| File.exist?(f) } + LOCAL_DEFAULTS.detect { |f| File.exist?(f) } end def default_project(name) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/tmuxinator/project.rb new/lib/tmuxinator/project.rb --- old/lib/tmuxinator/project.rb 2021-04-14 15:16:50.000000000 +0200 +++ new/lib/tmuxinator/project.rb 2021-06-15 19:37:54.000000000 +0200 @@ -48,7 +48,7 @@ @args = args content = Erubis::Eruby.new(raw_content).result(binding) - YAML.safe_load(content, [], [], true) + YAML.safe_load(content, aliases: true) rescue SyntaxError, StandardError => error raise "Failed to parse config file: #{error.message}" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/tmuxinator/tmux_version.rb new/lib/tmuxinator/tmux_version.rb --- old/lib/tmuxinator/tmux_version.rb 2021-04-14 15:16:50.000000000 +0200 +++ new/lib/tmuxinator/tmux_version.rb 2021-06-15 19:37:54.000000000 +0200 @@ -1,6 +1,7 @@ module Tmuxinator module TmuxVersion SUPPORTED_TMUX_VERSIONS = [ + "3.2a", 3.2, "3.1c", "3.1b", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/tmuxinator/version.rb new/lib/tmuxinator/version.rb --- old/lib/tmuxinator/version.rb 2021-04-14 15:16:50.000000000 +0200 +++ new/lib/tmuxinator/version.rb 2021-06-15 19:37:54.000000000 +0200 @@ -1,3 +1,3 @@ module Tmuxinator - VERSION = "2.0.3".freeze + VERSION = "3.0.1".freeze end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2021-04-14 15:16:50.000000000 +0200 +++ new/metadata 2021-06-15 19:37:54.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: tmuxinator version: !ruby/object:Gem::Version - version: 2.0.3 + version: 3.0.1 platform: ruby authors: - Allen Bargi @@ -9,7 +9,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2021-04-14 00:00:00.000000000 Z +date: 2021-06-15 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: erubis @@ -295,7 +295,7 @@ requirements: - - ">=" - !ruby/object:Gem::Version - version: 2.5.8 + version: 2.6.7 required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ">=" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/lib/tmuxinator/cli_spec.rb new/spec/lib/tmuxinator/cli_spec.rb --- old/spec/lib/tmuxinator/cli_spec.rb 2021-04-14 15:16:50.000000000 +0200 +++ new/spec/lib/tmuxinator/cli_spec.rb 2021-06-15 19:37:54.000000000 +0200 @@ -501,7 +501,7 @@ end context "file exists" do - let(:path) { Tmuxinator::Config::LOCAL_DEFAULT } + let(:path) { Tmuxinator::Config::LOCAL_DEFAULTS[0] } before do expect(File).to receive(:exist?).with(path) { true } end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/lib/tmuxinator/config_spec.rb new/spec/lib/tmuxinator/config_spec.rb --- old/spec/lib/tmuxinator/config_spec.rb 2021-04-14 15:16:50.000000000 +0200 +++ new/spec/lib/tmuxinator/config_spec.rb 2021-06-15 19:37:54.000000000 +0200 @@ -213,12 +213,14 @@ describe "#default?" do let(:directory) { described_class.directory } - let(:local_default) { described_class::LOCAL_DEFAULT } + let(:local_yml_default) { described_class::LOCAL_DEFAULTS[0] } + let(:local_yaml_default) { described_class::LOCAL_DEFAULTS[1] } let(:proj_default) { described_class.default } context "when the file exists" do before do - allow(File).to receive(:exist?).with(local_default) { false } + allow(File).to receive(:exist?).with(local_yml_default) { false } + allow(File).to receive(:exist?).with(local_yaml_default) { false } allow(File).to receive(:exist?).with(proj_default) { true } end @@ -229,7 +231,8 @@ context "when the file doesn't exist" do before do - allow(File).to receive(:exist?).with(local_default) { false } + allow(File).to receive(:exist?).with(local_yml_default) { false } + allow(File).to receive(:exist?).with(local_yaml_default) { false } allow(File).to receive(:exist?).with(proj_default) { false } end @@ -309,14 +312,14 @@ describe "#local?" do it "checks if the given project exists" do - path = described_class::LOCAL_DEFAULT + path = described_class::LOCAL_DEFAULTS[0] expect(File).to receive(:exist?).with(path) { true } expect(described_class.local?).to be_truthy end end describe "#local_project" do - let(:default) { described_class::LOCAL_DEFAULT } + let(:default) { described_class::LOCAL_DEFAULTS[0] } context "with a project yml" do it "gets the project as path to the yml file" do @@ -334,7 +337,7 @@ describe "#project" do let(:directory) { described_class.directory } - let(:default) { described_class::LOCAL_DEFAULT } + let(:default) { described_class::LOCAL_DEFAULTS[0] } context "with an non-local project yml" do before do @@ -363,7 +366,8 @@ end describe "#validate" do - let(:default) { described_class::LOCAL_DEFAULT } + let(:local_yml_default) { described_class::LOCAL_DEFAULTS[0] } + let(:local_yaml_default) { described_class::LOCAL_DEFAULTS[1] } context "when a project config file is provided" do it "should raise if the project config file can't be found" do @@ -412,19 +416,42 @@ context "when no project name is provided" do it "should raise if the local project file doesn't exist" do - expect(File).to receive(:exist?).with(default) { false } + expect(File).to receive(:exist?).with(local_yml_default) { false } + expect(File).to receive(:exist?).with(local_yaml_default) { false } expect do described_class.validate end.to raise_error RuntimeError, %r{Project.+doesn't.exist} end - it "should load and validate the project" do - content = File.read(File.join(fixtures_dir, "sample.yml")) - - expect(File).to receive(:exist?).with(default).at_least(:once) { true } - expect(File).to receive(:read).with(default).and_return(content) - - expect(described_class.validate).to be_a Tmuxinator::Project + context "and tmuxinator.yml exists" do + it "should load and validate the local project" do + content = File.read(File.join(fixtures_dir, "sample.yml")) + + expect(File).to receive(:exist?). + with(local_yml_default). + at_least(:once) { true } + expect(File).to receive(:read). + with(local_yml_default). + and_return(content) + expect(described_class.validate).to be_a Tmuxinator::Project + end + end + + context "and tmuxinator.yaml exists" do + it "should load and validate the local project" do + content = File.read(File.join(fixtures_dir, "sample.yml")) + + expect(File).to receive(:exist?). + with(local_yml_default). + at_least(:once) { false } + expect(File).to receive(:exist?). + with(local_yaml_default). + at_least(:once) { true } + expect(File).to receive(:read). + with(local_yaml_default). + and_return(content) + expect(described_class.validate).to be_a Tmuxinator::Project + end end end
