gloo-lang 1.4.2 → 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: e93a62bcb460c203ebb55969f9f9f306ef2941c658bd10a14b77190c964a8fcd
4
- data.tar.gz: ad419c4c81fe9e39057fa2acf263c953d0399c1b50ab85ef69cc2d49d803e80c
3
+ metadata.gz: dde9a02687e65800ff3718d1d7f5ac56d56700dcdb39020d1d61c37fd181348d
4
+ data.tar.gz: 25cfdd3b1c8cce79cd0a0b08ee9859ab62ffacafba745cddda1653f9318f57f1
5
5
  SHA512:
6
- metadata.gz: a350ae51529250bbc6ab5c3a204c0d5e9c7e48192dbf184d985bbcd65bdf368a9943897340aace6b0e9bbc873e903a305e9704cdcc0d000813aba792e011313f
7
- data.tar.gz: 60cce3d79486ff09cf2e264259d0a6a9403d23caf6d82d19a361642a9d62531d2a99369129050793769483cc3272d42299757d86d315aba6881701d2bc15656c
6
+ metadata.gz: 3afde5b5d704d87fe4751ed71866359d0a022a568f733f846a43d1503c54462eb92a6b2ce644d7a046eedcc7becb8a92128504c59f3538c106d65463171989e8
7
+ data.tar.gz: 3974e17fae2cff7b98fb32b8b719d7cf33636d94a6fde4bd2ab7af4ef3ea740ec6c0a08821a379aa2fababb7f4d75b52e4fadff6b394bc7a49ddc0ab97f83729
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.2
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_names 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.2
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-02 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