sanford 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Sanford
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
data/lib/sanford.rb CHANGED
@@ -9,7 +9,7 @@ require 'sanford/server'
9
9
  require 'sanford/service_handler'
10
10
  require 'sanford/version'
11
11
 
12
- ENV['SANFORD_SERVICES_CONFIG'] ||= 'config/services'
12
+ ENV['SANFORD_SERVICES_FILE'] ||= 'config/services'
13
13
 
14
14
  module Sanford
15
15
 
@@ -32,13 +32,12 @@ module Sanford
32
32
 
33
33
  def self.init
34
34
  @hosts ||= Hosts.new
35
- require self.config.services_config
35
+ require self.config.services_file
36
36
  end
37
37
 
38
38
  module Config
39
39
  include NsOptions::Proxy
40
-
41
- option :services_config, Pathname, :default => ENV['SANFORD_SERVICES_CONFIG']
40
+ option :services_file, Pathname, :default => ENV['SANFORD_SERVICES_FILE']
42
41
 
43
42
  end
44
43
 
data/test/helper.rb CHANGED
@@ -7,7 +7,7 @@ ROOT = File.expand_path('../..', __FILE__)
7
7
  require 'sanford'
8
8
 
9
9
  Sanford.configure do |config|
10
- config.services_config = File.join(ROOT, 'test/support/services')
10
+ config.services_file = File.join(ROOT, 'test/support/services')
11
11
  end
12
12
  Sanford.init
13
13
 
@@ -6,7 +6,7 @@ module Sanford::Config
6
6
  desc "Sanford::Config"
7
7
  subject{ Sanford::Config }
8
8
 
9
- should have_instance_methods :services_config
9
+ should have_instance_methods :services_file
10
10
  end
11
11
 
12
12
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sanford
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
8
+ - 3
9
9
  - 0
10
- version: 0.2.0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Collin Redding