ddollar-textmate 1.0.3 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/textmate/local.rb +10 -2
- data/textmate.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
data/lib/textmate/local.rb
CHANGED
@@ -1,12 +1,19 @@
|
|
1
1
|
class Textmate::Local
|
2
2
|
|
3
3
|
def self.bundle_paths
|
4
|
-
|
4
|
+
bundle_paths = {
|
5
|
+
'Application' => '/Applications/TextMate.app/Contents/SharedSupport/Bundles',
|
5
6
|
'User' => "#{ENV["HOME"]}/Library/Application Support/TextMate/Bundles",
|
6
7
|
'System' => '/Library/Application Support/TextMate/Bundles',
|
7
8
|
'User Pristine' => "#{ENV["HOME"]}/Library/Application Support/TextMate/Pristine Copy/Bundles",
|
8
9
|
'System Pristine' => '/Library/Application Support/TextMate/Pristine Copy/Bundles',
|
9
10
|
}
|
11
|
+
|
12
|
+
# specific to my setup
|
13
|
+
shell_subsystem_dir = "#{ENV["HOME"]}/.bash/config/textmate.d"
|
14
|
+
bundle_paths['User Pristine'] = shell_subsystem_dir if File.exist?(shell_subsystem_dir)
|
15
|
+
|
16
|
+
bundle_paths
|
10
17
|
end
|
11
18
|
|
12
19
|
def self.bundle_install_path
|
@@ -23,7 +30,8 @@ class Textmate::Local
|
|
23
30
|
|
24
31
|
def bundles(search = '')
|
25
32
|
bundle_paths.inject({}) do |hash, (name, path)|
|
26
|
-
hash
|
33
|
+
hash[name] = find_bundles(name, search) if File.exist?(path)
|
34
|
+
hash
|
27
35
|
end
|
28
36
|
end
|
29
37
|
|
data/textmate.gemspec
CHANGED