Skip to content

Commit

Permalink
Consolodate handling of zerg_xcode version (closes #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
eraserhd committed Aug 4, 2012
1 parent 80569df commit 8a1ba44
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Gemfile
Expand Up @@ -2,4 +2,6 @@ source :rubygems
gem 'rspec'
gem 'rake'
gem 'cucumber'
gem 'zerg_xcode', '~> 0.5.0'

load './lib/ios/vim/zerg_xcode_version.rb'
gem 'zerg_xcode', IOS::Vim::WANTED_ZERG_XCODE_VERSION
1 change: 1 addition & 0 deletions lib/ios/vim.rb
Expand Up @@ -10,6 +10,7 @@
require 'ios/vim/shell_command_runner'
require 'ios/vim/x_commands'
require 'ios/vim/xcodeproj_interface'
require 'ios/vim/zerg_xcode_version'

module IOS
module Vim
Expand Down
4 changes: 2 additions & 2 deletions lib/ios/vim/xcodeproj_interface.rb
Expand Up @@ -6,10 +6,10 @@ module Vim
class XcodeprojInterface

def self.instance
gem 'zerg_xcode', '~> 0.4.0'
gem 'zerg_xcode', WANTED_ZERG_XCODE_VERSION
XcodeprojInterface.new
rescue LoadError => e
raise LoadError.new('This feature requires the zerg_xcode gem.')
raise LoadError.new("This feature requires zerg_xcode #{WANTED_ZERG_XCODE_VERSION}.")
end
end

Expand Down
5 changes: 5 additions & 0 deletions lib/ios/vim/zerg_xcode_version.rb
@@ -0,0 +1,5 @@
module IOS
module Vim
WANTED_ZERG_XCODE_VERSION = '~> 0.5.0'
end
end

0 comments on commit 8a1ba44

Please sign in to comment.