gloo-lang 1.4.1 → 1.4.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
  SHA256:
3
- metadata.gz: 88ed378c66726646a394b8dd00de44f7d41c7ae31f141d95ece292d827caad81
4
- data.tar.gz: 856f6958f2f55e5c4d6c1002d8ea89a297b7070ad55f9bc8b314bca268d57a95
3
+ metadata.gz: dde9a02687e65800ff3718d1d7f5ac56d56700dcdb39020d1d61c37fd181348d
4
+ data.tar.gz: 25cfdd3b1c8cce79cd0a0b08ee9859ab62ffacafba745cddda1653f9318f57f1
5
5
  SHA512:
6
- metadata.gz: 94d5ce627bd7958eddb1308c4771b718ebf86f71ad6697bbf8e7031d628f7d478f6e0ec7d0995f0245f35a2f1d55f2495a31809c4f0fe6ca53931cb34864a055
7
- data.tar.gz: 4920b8d24b4a13e5906d7c66e39ec3b61553c2bdec049ab7bd24ceac33a46cb9d22bb5c23a75539e503f047d1cd5c5e928923faec1d8b1c6889b3c3ffd94c966
6
+ metadata.gz: 3afde5b5d704d87fe4751ed71866359d0a022a568f733f846a43d1503c54462eb92a6b2ce644d7a046eedcc7becb8a92128504c59f3538c106d65463171989e8
7
+ data.tar.gz: 3974e17fae2cff7b98fb32b8b719d7cf33636d94a6fde4bd2ab7af4ef3ea740ec6c0a08821a379aa2fababb7f4d75b52e4fadff6b394bc7a49ddc0ab97f83729
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 1.4.3
@@ -25,11 +25,7 @@ module GlooLang
25
25
  # Save one object to the file.
26
26
  #
27
27
  def save( name = '' )
28
- if name.nil? || name.strip.empty?
29
- save_all
30
- else
31
- save_one name
32
- end
28
+ name.blank? ? save_all : save_one( name )
33
29
  end
34
30
 
35
31
  #
@@ -45,8 +41,8 @@ module GlooLang
45
41
  def save_one( name )
46
42
  ref = GlooLang::Core::Pn.new( @engine, name )
47
43
  obj = ref.resolve
48
- pn = get_full_path_name name
49
- fs = GlooLang::Persist::FileStorage.new( @engine, pn, obj )
44
+
45
+ fs = find_file_storage( obj )
50
46
  fs.save
51
47
  end
52
48
 
@@ -107,7 +103,7 @@ module GlooLang
107
103
  #
108
104
  def find_file_storage( obj )
109
105
  @maps.each do |o|
110
- return o if o.obj.pn === obj.pn
106
+ return o if ( o.obj.pn === obj.pn )
111
107
  end
112
108
 
113
109
  # It was not found, so return nil.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gloo-lang
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Crane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-01 00:00:00.000000000 Z
11
+ date: 2023-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler