forked from plamoni/SiriProxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
32 lines (27 loc) · 1.29 KB
/
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
26
27
28
29
30
31
32
source 'https://rubygems.org'
gemspec
# load plugins
require 'yaml'
require 'ostruct'
config_file = File.expand_path(File.join('~', '.siriproxy', 'config.yml'));
unless File.exists?(config_file)
default_config = config_file
config_file = File.expand_path(File.join(File.dirname(__FILE__), 'config.example.yml'))
puts "[Notice - Configuration] ==================== Important Configuration Notice =========================="
puts "[Notice - Configuration] '#{default_config}' not found. Using '#{config_file}'"
puts "[Notice - Configuration] "
puts "[Notice - Configuration] Remove this message by copying '#{config_file}' into '~/.siriproxy/'"
puts "[Notice - Configuration] =============================================================================="
end
gem 'cora', '0.0.4'
config = OpenStruct.new(YAML.load_file(File.expand_path(config_file)))
if config.plugins
puts "[Info - Configuration] Loading plugins -- If any fail to load, run `siriproxy bundle` (not `bundle install`) to resolve."
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