1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
diff -BurN tmuxinator-3.1.2.orig/lib/tmuxinator/config.rb tmuxinator-3.1.2/lib/tmuxinator/config.rb
--- tmuxinator-3.1.2.orig/lib/tmuxinator/config.rb 2024-02-16 15:37:37.000000000 -0800
+++ tmuxinator-3.1.2/lib/tmuxinator/config.rb 2024-02-17 21:25:24.745199728 -0800
@@ -29,7 +29,7 @@
# a custom value. (e.g. if $XDG_CONFIG_HOME is set to ~/my-config, the
# return value will be ~/my-config/tmuxinator)
def xdg
- XDG["CONFIG"].to_s + "/tmuxinator"
+ XDG::Config.new.home.to_s + "/tmuxinator"
end
def xdg?
diff -BurN tmuxinator-3.1.2.orig/spec/lib/tmuxinator/config_spec.rb tmuxinator-3.1.2/spec/lib/tmuxinator/config_spec.rb
--- tmuxinator-3.1.2.orig/spec/lib/tmuxinator/config_spec.rb 2024-02-16 15:37:37.000000000 -0800
+++ tmuxinator-3.1.2/spec/lib/tmuxinator/config_spec.rb 2024-02-17 21:25:24.745199728 -0800
@@ -53,7 +53,8 @@
Dir.mktmpdir do |dir|
config_parent = "#{dir}/non_existent_parent/s"
- allow(XDG).to receive(:[]).with("CONFIG").and_return config_parent
+ allow(XDG::Config).to receive_message_chain(:new, :home, :to_s).
+ and_return config_parent
expect(described_class.directory).
to eq "#{config_parent}/tmuxinator"
expect(File.directory?("#{config_parent}/tmuxinator")).to be true
@@ -134,7 +135,8 @@
describe "#xdg" do
it "is $XDG_CONFIG_HOME/tmuxinator" do
- expect(described_class.xdg).to eq "#{XDG['CONFIG_HOME']}/tmuxinator"
+ config_home = XDG::Config.new.home.to_s
+ expect(described_class.xdg).to eq "#{config_home}/tmuxinator"
end
end
diff -BurN tmuxinator-3.1.2.orig/tmuxinator.gemspec tmuxinator-3.1.2/tmuxinator.gemspec
--- tmuxinator-3.1.2.orig/tmuxinator.gemspec 2024-02-16 15:37:37.000000000 -0800
+++ tmuxinator-3.1.2/tmuxinator.gemspec 2024-02-17 21:25:24.745199728 -0800
@@ -41,7 +41,7 @@
s.add_dependency "erubis", "~> 2.6"
s.add_dependency "thor", "~> 1.3.0"
- s.add_dependency "xdg", "~> 2.2", ">= 2.2.5"
+ s.add_dependency "xdg", ">= 4.3.0"
s.add_development_dependency "activesupport", "< 5.0.0" # Please see issue #432
s.add_development_dependency "awesome_print", "~> 1.2"
|