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 +4 -4
- data/lib/pansophy/config_synchronizer.rb +8 -0
- data/lib/pansophy/tasks.rb +1 -1
- data/lib/pansophy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 163e7cea8d9313d452f1aa7bf5090b94a988acb3
|
4
|
+
data.tar.gz: 5c93e4e0dd215ed37aa76a589b7d7f31bcd1b6a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/pansophy/tasks.rb
CHANGED
data/lib/pansophy/version.rb
CHANGED
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.
|
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
|
11
|
+
date: 2015-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog
|