morning_glory 0.0.2 → 0.0.3

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.
@@ -8,17 +8,16 @@ module MorningGlory
8
8
  end
9
9
 
10
10
  begin
11
- # puts "hello"
12
- # directory = FILE.dirname(__FILE__)
13
- # puts "directory = #{directory} "
14
- MORNING_GLORY_CONFIG = YAML.load_file("#{Rails.root}/config/morning_glory.yml") if !defined? MORNING_GLORY_CONFIG
11
+ # MORNING_GLORY_CONFIG = YAML.load_file("#{Rails.root}/config/morning_glory.yml") if !defined? MORNING_GLORY_CONFIG
12
+ MORNING_GLORY_CONFIG = YAML.load_file("config/morning_glory.yml") if !defined? MORNING_GLORY_CONFIG
15
13
  #rescue
16
14
  raise "Error loading MorningGlory configuration files. Please check config/morning_glory.yml is configured correctly."
17
15
  end
18
16
 
19
17
  begin
20
18
  if (!ENV['S3_KEY'] && !ENV['S3_SECRET'])
21
- S3_CONFIG = YAML.load_file("#{Rails.root}/config/s3.yml")[Rails.env] if !defined? S3_CONFIG
19
+ # S3_CONFIG = YAML.load_file("#{Rails.root}/config/s3.yml")[Rails.env] if !defined? S3_CONFIG
20
+ S3_CONFIG = YAML.load_file("config/s3.yml")[Rails.env] if !defined? S3_CONFIG
22
21
  end
23
22
 
24
23
  rescue
@@ -1,3 +1,3 @@
1
1
  module MorningGlory
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -7,11 +7,8 @@ namespace :morning_glory do
7
7
  @@scm_commit_required = false
8
8
 
9
9
  begin
10
- # puts "path = #{path}"
11
- # directory = FILE.dirname(__FILE__)
12
- # puts "directory = #{directory} "
13
- MORNING_GLORY_CONFIG = YAML.load_file("#{Rails.root}/config/morning_glory.yml") if !defined? MORNING_GLORY_CONFIG
14
- # puts "morning glory loaded"
10
+ # MORNING_GLORY_CONFIG = YAML.load_file("#{Rails.root}/config/morning_glory.yml") if !defined? MORNING_GLORY_CONFIG
11
+ MORNING_GLORY_CONFIG = YAML.load_file("config/morning_glory.yml") if !defined? MORNING_GLORY_CONFIG
15
12
  rescue
16
13
  end
17
14
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: morning_glory
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Adam Burmister