pansophy 0.2.1 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4900011b0b5962c58a95a1a937b98791b77b12c8
4
- data.tar.gz: 92eace172be8f4e81be0d9d05e42358fd5fc4e34
3
+ metadata.gz: 163e7cea8d9313d452f1aa7bf5090b94a988acb3
4
+ data.tar.gz: 5c93e4e0dd215ed37aa76a589b7d7f31bcd1b6a8
5
5
  SHA512:
6
- metadata.gz: a6526dfe0db2e2d780239ae86d1f0f8b7bab32afe840e0b4ff98834a5007d62085ec29ee5f50cab58ce83ceb03e663d2a0dade9376862588a755f9d76f42c113
7
- data.tar.gz: fc79be8e24959dab9df4d6d7061c96c83fd0738efea30f9096321eff907e92bdd5c25ef819f06d7d5e1875636a62da4dfff571beb716f538b1a51d11bde5dc8e
6
+ metadata.gz: c1f6907811ed329550b9da72864e49e55081f7b8e66ca21ae56a94c854b9b3eb18b92a981faa1c8fbe76a5849217aaa57aa700a4503dcd94d7ddf49b3a7ef9f2
7
+ data.tar.gz: d8218b6cd77614d8850ff25d4bb92c16754a0298bad44d4618ebb61f2833edd8a933e418f2267446d80c00a9648930f664eb7fd5e23cf566edff52115f021bd3
@@ -48,8 +48,16 @@ module Pansophy
48
48
  def self.find!
49
49
  # TODO: Extract this in a Rails specific gem
50
50
  return Rails.root.join('config') if defined?(Rails)
51
+ return sinatra_root_pathname.join('config') if defined?(Sinatra::Application)
52
+
51
53
  fail ConfigSynchronizerError, 'Could not determine location of config folder'
52
54
  end
55
+
56
+ private
57
+
58
+ def self.sinatra_root_pathname
59
+ Pathname.new(Sinatra::Application.settings.root)
60
+ end
53
61
  end
54
62
 
55
63
  class ConfigSynchronizerError < StandardError
@@ -6,7 +6,7 @@ namespace :pansophy do
6
6
  synchronizer = Pansophy::ConfigSynchronizer.new
7
7
  puts "Fetching remote configuration (version #{synchronizer.version})"
8
8
  synchronizer.merge
9
- puts done
9
+ puts "Done"
10
10
  end
11
11
  end
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module Pansophy
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pansophy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Berardi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-04-29 00:00:00.000000000 Z
11
+ date: 2015-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog