vault-tools 0.4.14 → 0.4.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vault-tools.rb +4 -4
- data/lib/vault-tools/version.rb +1 -1
- metadata +4 -4
data/lib/vault-tools.rb
CHANGED
@@ -20,19 +20,19 @@ module Vault
|
|
20
20
|
|
21
21
|
# adds ./lib dir to the load path
|
22
22
|
def self.load_path
|
23
|
-
$stderr.puts "Adding './lib' to path..."
|
23
|
+
$stderr.puts "Adding './lib' to path..." if ENV['DEBUG']
|
24
24
|
$LOAD_PATH.unshift(File.expand_path('./lib'))
|
25
25
|
end
|
26
26
|
|
27
27
|
# sets TZ to UTC and Sequel timezone to :utc
|
28
28
|
def self.set_timezones
|
29
|
-
$stderr.puts "Setting timezones to UTC..."
|
29
|
+
$stderr.puts "Setting timezones to UTC..." if ENV['DEBUG']
|
30
30
|
Sequel.default_timezone = :utc if defined? Sequel
|
31
31
|
ENV['TZ'] = 'UTC'
|
32
32
|
end
|
33
33
|
|
34
34
|
def self.hack_time_class
|
35
|
-
$stderr.puts "Modifying Time#to_s to use #iso8601..."
|
35
|
+
$stderr.puts "Modifying Time#to_s to use #iso8601..." if ENV['DEBUG']
|
36
36
|
# use send to call private method
|
37
37
|
Time.send(:define_method, :to_s) do
|
38
38
|
self.iso8601
|
@@ -40,7 +40,7 @@ module Vault
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def self.override_global_config
|
43
|
-
$stderr.puts "Set Config to Vault::Config..."
|
43
|
+
$stderr.puts "Set Config to Vault::Config..." if ENV['DEBUG']
|
44
44
|
Object.send(:remove_const, :Config)
|
45
45
|
Object.const_set(:Config, Vault::Config)
|
46
46
|
end
|
data/lib/vault-tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vault-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.15
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-01-
|
13
|
+
date: 2014-01-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: scrolls
|
@@ -239,7 +239,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
239
239
|
version: '0'
|
240
240
|
segments:
|
241
241
|
- 0
|
242
|
-
hash:
|
242
|
+
hash: -2680217358305856175
|
243
243
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
244
244
|
none: false
|
245
245
|
requirements:
|
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
248
|
version: '0'
|
249
249
|
segments:
|
250
250
|
- 0
|
251
|
-
hash:
|
251
|
+
hash: -2680217358305856175
|
252
252
|
requirements: []
|
253
253
|
rubyforge_project:
|
254
254
|
rubygems_version: 1.8.23
|