gless 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/TODO +2 -0
  2. data/lib/gless/config.rb +7 -3
  3. data/lib/gless.rb +1 -1
  4. 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
@@ -6,7 +6,7 @@
6
6
  # project.
7
7
  module Gless
8
8
  # The current version number.
9
- VERSION = '1.0.1'
9
+ VERSION = '1.0.2'
10
10
 
11
11
  # Sets up the config, logger and browser instances, the ordering
12
12
  # of which is slightly tricky.
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.1
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: 2012-12-27 00:00:00.000000000 Z
12
+ date: 2013-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec