coral_core 0.2.5 → 0.2.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.
- data/VERSION +1 -1
- data/coral_core.gemspec +1 -1
- data/lib/coral_core/core.rb +1 -1
- data/lib/coral_core/memory.rb +4 -4
- data/lib/coral_core/util/data.rb +2 -2
- data/lib/coral_core/util/shell.rb +1 -1
- data/lib/coral_core.rb +4 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.6
|
data/coral_core.gemspec
CHANGED
data/lib/coral_core/core.rb
CHANGED
data/lib/coral_core/memory.rb
CHANGED
@@ -13,6 +13,7 @@ class Memory < Repository
|
|
13
13
|
super(config)
|
14
14
|
|
15
15
|
@absolute_config_file = ''
|
16
|
+
@config_file = ''
|
16
17
|
|
17
18
|
@properties = config.get(:properties, {})
|
18
19
|
|
@@ -22,7 +23,6 @@ class Memory < Repository
|
|
22
23
|
@commit_message = config.get(:commit_message, 'Saving state')
|
23
24
|
|
24
25
|
self.config_file = config.get(:config_file, '')
|
25
|
-
dbg(self, 'memory')
|
26
26
|
end
|
27
27
|
|
28
28
|
#---
|
@@ -53,9 +53,9 @@ class Memory < Repository
|
|
53
53
|
|
54
54
|
#---
|
55
55
|
|
56
|
-
def config_file=
|
57
|
-
unless Util::Data.empty?(
|
58
|
-
@config_file = (
|
56
|
+
def config_file=file
|
57
|
+
unless Util::Data.empty?(file)
|
58
|
+
@config_file = ( file.is_a?(Array) ? file.join(File::SEPARATOR) : string(file) )
|
59
59
|
end
|
60
60
|
|
61
61
|
set_absolute_config_file
|
data/lib/coral_core/util/data.rb
CHANGED
@@ -39,9 +39,9 @@ class Data
|
|
39
39
|
|
40
40
|
def self.empty?(value)
|
41
41
|
if undef?(value) || false?(value) || (value.respond_to?('empty?') && value.empty?)
|
42
|
-
return
|
42
|
+
return true
|
43
43
|
end
|
44
|
-
return
|
44
|
+
return false
|
45
45
|
end
|
46
46
|
|
47
47
|
#-----------------------------------------------------------------------------
|
data/lib/coral_core.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coral_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 6
|
10
|
+
version: 0.2.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Adrian Webb
|