forked from jimmykane/The-Three-Little-Pigs-Siri-Proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
25 lines (20 loc) · 709 Bytes
/
Gemfile
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
source :gemcutter
gemspec
# load plugins
require 'yaml'
require 'ostruct'
if !File.exists?(File.expand_path('~/.siriproxy/config.yml'))
$stderr.puts "config.yml not found. Copy config.example.yml to config.yml, then modify it."
exit 1
end
gem 'cora', :git => "git://github.com/chendo/cora.git"
config = OpenStruct.new(YAML.load_file(File.expand_path('~/.siriproxy/config.yml')))
if config.plugins
config.plugins.each do |plugin|
if plugin.is_a? String
gem "siriproxy-#{plugin.downcase}"
else
gem "siriproxy-#{plugin['gem'] || plugin['name'].downcase}", :path => plugin['path'], :git => plugin['git'], :branch => plugin['branch'], :require => plugin['require']
end
end
end