ood_appkit 0.3.5 → 0.3.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d5a7cba12af941351c6f6f541d9071bbb622ddd
4
- data.tar.gz: c95df13a1f1eee87d9fbcf9f41278433caf94af0
3
+ metadata.gz: 850674682fcbe959939aca02f9a20171d4a8571a
4
+ data.tar.gz: e206532de1309dff2dff6558707c907f41a56db5
5
5
  SHA512:
6
- metadata.gz: bdbb141eb8b3a4a897d029fb1fe48cf473bcee248c78420868a83bd4df7b112ac49e565519cdff38f919b79b7fd4c1603e6c7dae3ccdeab362ee0479b46590aa
7
- data.tar.gz: 9b89980aaf2dbca948117994bc9bffddd9c887c34674682a47392ca698f9efea52c742bb2b48232d482984d304b2de67af1f4f24a4d71b4de6f45b8ad5b10259
6
+ metadata.gz: a40fe490ed48c377fa3ec0db0de57b1915d5e44be529f71eac3800316e78a6731698cbaa0b7ed53481b9d07ff1a3b4498ffc65b965fb818f3cfe7f2de4f0027f
7
+ data.tar.gz: 14f764aca4ebde3697dae62b4dc0661df5264cae9958771990639a837e59a68dca838885483ed0ae1b21ee8738b5fa2ea4d3f8b44f5a8b7df66c3ac86a8a5688
@@ -7,7 +7,7 @@ module OodAppkit
7
7
  # Location where app data is stored on local filesystem
8
8
  # @return [Pathname, nil] path to app data
9
9
  def dataroot
10
- Pathname.new(@dataroot) if @dataroot
10
+ Pathname.new(@dataroot).expand_path if @dataroot
11
11
  end
12
12
  attr_writer :dataroot
13
13
 
@@ -63,6 +63,7 @@ module OodAppkit
63
63
  def set_default_configuration
64
64
  ActiveSupport::Deprecation.warn("The environment variable RAILS_DATAROOT will be deprecated in an upcoming release, please use OOD_DATAROOT instead.") if ENV['RAILS_DATAROOT']
65
65
  self.dataroot = ENV['OOD_DATAROOT'] || ENV['RAILS_DATAROOT']
66
+ self.dataroot ||= "~/#{ENV['OOD_PORTAL'] || "ondemand"}/data/#{ENV['APP_TOKEN']}" if ENV['APP_TOKEN']
66
67
 
67
68
  # Initialize list of available clusters
68
69
  c_config = Pathname.new(ENV['OOD_CLUSTERS'] || '/etc/ood/config/clusters.d')
@@ -1,4 +1,4 @@
1
1
  module OodAppkit
2
2
  # The current version of OodAppkit
3
- VERSION = "0.3.5"
3
+ VERSION = "0.3.6"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ood_appkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Franz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-06 00:00:00.000000000 Z
11
+ date: 2017-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails