casino_core 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- casino_core (1.0.11)
4
+ casino_core (1.0.12)
5
5
  activerecord (~> 3.2.9)
6
6
  addressable (~> 2.3)
7
7
  useragent (~> 0.4)
@@ -13,12 +13,13 @@ module CASinoCore
13
13
  class << self
14
14
  def setup(environment = nil, options = {})
15
15
  @environment = environment || 'development'
16
+ root_path = options[:application_root] || '.'
16
17
  require 'active_record'
17
18
  require 'yaml'
18
19
  YAML::ENGINE.yamler = 'syck'
19
- ActiveRecord::Base.establish_connection YAML.load_file('config/database.yml')[@environment]
20
+ ActiveRecord::Base.establish_connection YAML.load_file(File.join(root_path, 'config/database.yml'))[@environment]
20
21
 
21
- config = YAML.load_file('config/cas.yml')[@environment].symbolize_keys
22
+ config = YAML.load_file(File.join(root_path, 'config/cas.yml'))[@environment].symbolize_keys
22
23
  recursive_symbolize_keys!(config)
23
24
  CASinoCore::Settings.init config
24
25
  end
@@ -7,10 +7,6 @@ module CASinoCore
7
7
  CASinoCore::RakeTasks.load_tasks
8
8
  end
9
9
 
10
- initializer 'casino_core.load_configuration' do
11
- CASinoCore.setup Rails.env
12
- end
13
-
14
10
  initializer 'casino_core.setup_logger' do
15
11
  CASinoCore::Settings.logger = Rails.logger
16
12
  end
@@ -1,3 +1,3 @@
1
1
  module CASinoCore
2
- VERSION = '1.0.11'
2
+ VERSION = '1.0.12'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: casino_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-01 00:00:00.000000000 Z
12
+ date: 2013-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -328,7 +328,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
328
328
  version: '0'
329
329
  segments:
330
330
  - 0
331
- hash: 779174048466373249
331
+ hash: 1278753813307290410
332
332
  required_rubygems_version: !ruby/object:Gem::Requirement
333
333
  none: false
334
334
  requirements:
@@ -337,7 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
337
337
  version: '0'
338
338
  segments:
339
339
  - 0
340
- hash: 779174048466373249
340
+ hash: 1278753813307290410
341
341
  requirements: []
342
342
  rubyforge_project:
343
343
  rubygems_version: 1.8.24