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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/textmate/local.rb +10 -2
  3. data/textmate.gemspec +1 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.1.0
@@ -1,12 +1,19 @@
1
1
  class Textmate::Local
2
2
 
3
3
  def self.bundle_paths
4
- { 'Application' => '/Applications/TextMate.app/Contents/SharedSupport/Bundles',
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.update(name => find_bundles(name, search))
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{textmate}
8
- s.version = "1.0.3"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Dollar"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddollar-textmate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Dollar