weel 1.99.31 → 1.99.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/weel.rb +8 -4
  3. data/weel.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1526542afca601b109f15f3d1e0fcd6e71d88f9
4
- data.tar.gz: 59fa06ed6a9404e4e577f13a3c38b13aac3af327
3
+ metadata.gz: 206c5c413579c2bdf3b38cf894ba3cbfbae08ea5
4
+ data.tar.gz: 1775598deeafc406af186169440a4a2a2d8d22e4
5
5
  SHA512:
6
- metadata.gz: 1fe5bef75074f1b90cb509bf8bb3fc8d3706b7e102f7b5e19c3331bd698c3ba7ac327adcdedfadb01fe0d03cada14d92abc1b448206ceb441bf45c5e0b12d9d6
7
- data.tar.gz: e75e5213943affdc8777bc12271cb132b2f84f64229cbf0adefd0d1894b79513b69714ca0d8ce20bed32bcfbc92533d78391d373aaeec0a9b0b4d0e6e1f6dd14
6
+ metadata.gz: c8f409a23f06aeffe59f02f5b576438a5d4f392273d78206a0acc1f60ea9522c942808e3a235a19d5cd372e0543a23ed3389c42fda0c250fc7535e505662d33e
7
+ data.tar.gz: 44919914b4cf67cf2ec3575a64acae387a93277a47acde146f3476de6d2b62facb728f153ef767c3b6c183b8f9786aa76b010518f1b12d4ba8bf31b2ddf5c091
data/lib/weel.rb CHANGED
@@ -163,8 +163,9 @@ class WEEL
163
163
  end #}}}
164
164
 
165
165
  class ReadHash # {{{
166
- def initialize(values)
166
+ def initialize(values,sim=false)
167
167
  @__weel_values = values
168
+ @__weel_sim = sim
168
169
  end
169
170
 
170
171
  def to_json(*args)
@@ -172,9 +173,12 @@ class WEEL
172
173
  end
173
174
 
174
175
  def method_missing(name,*args)
175
- temp = nil
176
176
  if args.empty? && @__weel_values.has_key?(name)
177
- @__weel_values[name]
177
+ if @__weel_sim
178
+ "➤#{name}"
179
+ else
180
+ @__weel_values[name]
181
+ end
178
182
  #TODO dont let user change stuff e.g. if return value is an array (deep clone and/or deep freeze it?)
179
183
  else
180
184
  nil
@@ -525,7 +529,7 @@ class WEEL
525
529
  @__weel_status
526
530
  end # }}}
527
531
  def data # {{{
528
- ReadHash.new(@__weel_data)
532
+ ReadHash.new(@__weel_data,__weel_sim)
529
533
  end # }}}
530
534
  def endpoints # {{{
531
535
  ReadHash.new(@__weel_endpoints)
data/weel.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "weel"
3
- s.version = "1.99.31"
3
+ s.version = "1.99.32"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3"
6
6
  s.summary = "Preliminary release of the Workflow Execution Engine Library (WEEL)"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.99.31
4
+ version: 1.99.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-26 00:00:00.000000000 Z
12
+ date: 2014-09-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: see http://cpee.org
15
15
  email: juergen.mangler@gmail.com