wmls 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +2 -0
  2. data/bin/wmls +4 -0
  3. metadata +2 -2
data/README CHANGED
@@ -10,6 +10,7 @@ Usage: wmls [options]
10
10
  -Dvariable=value Replace occurrences of %variable% with value, in the query template
11
11
  -v, --verbose Run verbosely
12
12
  -r, --url url URL of the WITSML service
13
+ -t, --timeout seconds timeout in seconds (optional, default 60)
13
14
  -u, --username USER HTTP user name
14
15
  -p, --password PASS HTTP password
15
16
  -q, --query QUERYFILE Path to file containing query, delete, add or update template
@@ -34,3 +35,4 @@ History:
34
35
  04 May 2012 -- added support for a headers parameter to all calls (0.1.11)
35
36
  07 May 2012 -- fix headers param to get_cap (default should be {}) (0.1.13)
36
37
  14 Jun 2012 -- return values to shell from wmls script (0.1.14)
38
+ 14 Aug 2012 -- add timeout option to wmls script
data/bin/wmls CHANGED
@@ -31,6 +31,9 @@ opts =OptionParser.new do |o|
31
31
  o.on("-r", "--url url", "URL of the WITSML service") do |v|
32
32
  options[:url] = v
33
33
  end
34
+ o.on("-t", "--timeout seconds", "timeout in seconds (optional, default 60)") do |v|
35
+ options[:timeout] = v
36
+ end
34
37
  o.on("-u", "--username USER", "HTTP user name (optional)") do |v|
35
38
  options[:user_name] = v
36
39
  end
@@ -82,6 +85,7 @@ end
82
85
  template= get_file_as_string(options[:query], options[:defs] ) unless options[:action] == :cap
83
86
 
84
87
  wmls = Wmls.new options[:url], options[:user_name], options[:password]
88
+ wmls.timeout = options[:timeout].to_i if (options[:timeout])
85
89
 
86
90
  case options[:action]
87
91
  when :add
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wmls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
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-06-08 00:00:00.000000000 Z
12
+ date: 2012-08-14 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Wmls calls GetCap, GetFromStore, AddToStore, UpdateInStore, or DeleteFromStore
15
15
  on a WITSML server.