mos-eisley 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mos-eisley/version.rb +1 -1
- data/lib/s3po/action.rb +11 -0
- 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: dccba7b79cfa5244c9899489dcfca225295e4305
|
4
|
+
data.tar.gz: 09490b2417dc99ecdd4847f8e8cce29bad87837a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39739d44f32317642d544aba3c1add85d0be19e00598df73b8db48bc431a15575eb1db218dce2a9a005e112bba90841f6be1cb8636ebc0628d80c2e4538aef31
|
7
|
+
data.tar.gz: 9697eca42ff51a05366635767eb0b3d34e3f053b6a5fdf2dfd04e218b868d28cc19112f92429f37eccc08ed83aa93f9ab792a75303b95bc6337d8490692c3d72
|
data/lib/mos-eisley/version.rb
CHANGED
data/lib/s3po/action.rb
CHANGED
@@ -39,6 +39,17 @@ module MosEisley
|
|
39
39
|
event[:actions][0]
|
40
40
|
end
|
41
41
|
|
42
|
+
def action_value
|
43
|
+
v = nil
|
44
|
+
case action[:type].to_sym
|
45
|
+
when :button
|
46
|
+
v = action[:value]
|
47
|
+
when :select
|
48
|
+
v = action[:selected_options][0][:value]
|
49
|
+
end
|
50
|
+
return v
|
51
|
+
end
|
52
|
+
|
42
53
|
def callback_id
|
43
54
|
event[:callback_id]
|
44
55
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mos-eisley
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken J.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: em-http-request
|