gless 1.0.1 → 1.0.2
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/TODO +2 -0
- data/lib/gless/config.rb +7 -3
- data/lib/gless.rb +1 -1
- metadata +2 -2
data/TODO
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
+
- add confirmation checking to checkbox.set/clear
|
1
2
|
- it would be nice to retry clicking an elements automatically if the expected
|
2
3
|
page transition doesn't occur ; have a session variable for
|
3
4
|
whether we should retry, and if we should, if .arrived? is false,
|
4
5
|
retry the last action
|
6
|
+
|
data/lib/gless/config.rb
CHANGED
@@ -56,6 +56,12 @@ module Gless
|
|
56
56
|
return get_sub_tree( @config, *args )
|
57
57
|
end
|
58
58
|
|
59
|
+
# Merge arbitrary data back in to the configuration; used to
|
60
|
+
# overwrite values that were pulled out of files or whatever.
|
61
|
+
def merge(hash)
|
62
|
+
@config.merge!(hash)
|
63
|
+
end
|
64
|
+
|
59
65
|
private
|
60
66
|
|
61
67
|
# Recursively does all the heavy lifting for get
|
@@ -63,9 +69,7 @@ module Gless
|
|
63
69
|
# Can't use debug logging here, as it maybe isn't turned on yet
|
64
70
|
# puts "In Gless::EnvConfig, get_sub_tree: items: #{items}, elem: #{elem}, args: #{args}"
|
65
71
|
|
66
|
-
if items.nil?
|
67
|
-
raise "Could not locate '#{elem}' in YAML config" if sub_tree.nil?
|
68
|
-
end
|
72
|
+
raise "Could not locate '#{elem}' in YAML config" if items.nil?
|
69
73
|
|
70
74
|
new_items = items[elem.to_sym]
|
71
75
|
raise "Could not locate '#{elem}' in YAML config" if new_items.nil?
|
data/lib/gless.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|