svn-campfire-notifier 0.2.2 → 0.2.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.
Files changed (2) hide show
  1. data/lib/svn_campfire_notifier.rb +5 -8
  2. metadata +3 -3
@@ -5,11 +5,6 @@ require 'json'
5
5
  require 'svn_campfire_notifier/core_ext'
6
6
 
7
7
  class SVNCampfireNotifier
8
- CONFIGURATION_CANDIDATES = [
9
- File.expand_path('~/.svn_campfire_notifier.yml'),
10
- '/etc/svn_campfire_notifier.yml'
11
- ]
12
-
13
8
  class ConfigurationError < StandardError; end
14
9
 
15
10
  autoload :GoogleImage, 'svn_campfire_notifier/google_image'
@@ -33,9 +28,11 @@ class SVNCampfireNotifier
33
28
  end
34
29
 
35
30
  def configuration_filename
36
- CONFIGURATION_CANDIDATES.detect do |candidate|
37
- File.exist?(candidate)
38
- end || CONFIGURATION_CANDIDATES.last
31
+ begin
32
+ return File.expand_path('~/.svn_campfire_notifier.yml')
33
+ rescue ArgumentError
34
+ end
35
+ '/etc/svn_campfire_notifier.yml'
39
36
  end
40
37
 
41
38
  def test_mode?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svn-campfire-notifier
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Manfred Stienstra