weel 1.99.31 → 1.99.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/weel.rb +8 -4
- data/weel.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 206c5c413579c2bdf3b38cf894ba3cbfbae08ea5
|
4
|
+
data.tar.gz: 1775598deeafc406af186169440a4a2a2d8d22e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
@
|
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
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.
|
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-
|
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
|