gloo 0.7.3 → 0.7.4
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gloo/app/info.rb +1 -1
- data/lib/gloo/help/objs/system/file.txt +7 -0
- data/lib/gloo/objs/system/file_handle.rb +10 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86384bdaceb688e8ce21ccceea1d51795bc76f1e8db187f04caed2dcd87ec7fb
|
4
|
+
data.tar.gz: 4770f98bdbc6529e89c6a613f2aadff646210aa3574f132c84bdaea017febc65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e99639d6828f815a891d55478e494624e2306aac02e445294d39919f10570fa800da6535702f67e5c011d44e926ba08791ed4bde0876643561c3fe66e32cef7
|
7
|
+
data.tar.gz: b1c5b4580804e77c80f50814f6d5b743450007b8896c721f1f11dd2c9bc4c1375f0ea28e8a5180a7bb6d070e311dba3d4c485af4300b040b675988152e26958b
|
data/Gemfile.lock
CHANGED
data/lib/gloo/app/info.rb
CHANGED
@@ -24,6 +24,8 @@ FILE OBJECT TYPE
|
|
24
24
|
regular file. <It> will be true or false.
|
25
25
|
check_is_dir - Check to see if the file specified is a
|
26
26
|
diretory. <It> will be true or false.
|
27
|
+
find_match - Look for the existence of a file matching
|
28
|
+
the file's pattern. <It> will be true or false.
|
27
29
|
|
28
30
|
EXAMPLE
|
29
31
|
|
@@ -38,4 +40,9 @@ FILE OBJECT TYPE
|
|
38
40
|
tell exists.f to check_is_file
|
39
41
|
show "is a file? " + it
|
40
42
|
|
43
|
+
f [file] : /Users/me/gloo/*.gemspec
|
44
|
+
pattern [script] :
|
45
|
+
tell f to find_match
|
46
|
+
show it
|
47
|
+
|
41
48
|
SEE ALSO
|
@@ -36,8 +36,9 @@ module Gloo
|
|
36
36
|
def self.messages
|
37
37
|
basic = %w[read write]
|
38
38
|
checks = %w[check_exists check_is_file check_is_dir]
|
39
|
+
search = %w[find_match]
|
39
40
|
show = %w[show page open]
|
40
|
-
return super + basic + show + checks
|
41
|
+
return super + basic + show + checks + search
|
41
42
|
end
|
42
43
|
|
43
44
|
#
|
@@ -124,6 +125,14 @@ module Gloo
|
|
124
125
|
$engine.heap.it.set_to result
|
125
126
|
end
|
126
127
|
|
128
|
+
#
|
129
|
+
# Look for any file matching pattern.
|
130
|
+
#
|
131
|
+
def msg_find_match
|
132
|
+
result = ! Dir.glob( value ).empty?
|
133
|
+
$engine.heap.it.set_to result
|
134
|
+
end
|
135
|
+
|
127
136
|
end
|
128
137
|
end
|
129
138
|
end
|