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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4690494a37ed6dcce4ee882424dbd867a851964
4
- data.tar.gz: bad0f837d3de124d2dd0e450f3918c409ae59da2
3
+ metadata.gz: dccba7b79cfa5244c9899489dcfca225295e4305
4
+ data.tar.gz: 09490b2417dc99ecdd4847f8e8cce29bad87837a
5
5
  SHA512:
6
- metadata.gz: 655c79f4948cf2246b2ecf14c245ae28c4977b0a26bfebed0ab4ae863461a8bde1c50667490d8c3a4a84657661902731920b43954163de82e7e49916b45e30a7
7
- data.tar.gz: 1ce19780922c1cffcfce09163c4783bd84d10ca1de8ea28639b286be1f0ecb3ff677a9db32e1e225c53686e93e765e9409c6e9f740b7087e20b16490c2ff3da8
6
+ metadata.gz: 39739d44f32317642d544aba3c1add85d0be19e00598df73b8db48bc431a15575eb1db218dce2a9a005e112bba90841f6be1cb8636ebc0628d80c2e4538aef31
7
+ data.tar.gz: 9697eca42ff51a05366635767eb0b3d34e3f053b6a5fdf2dfd04e218b868d28cc19112f92429f37eccc08ed83aa93f9ab792a75303b95bc6337d8490692c3d72
@@ -1,5 +1,5 @@
1
1
  module MosEisley
2
2
 
3
- VERSION = '0.3.0'.freeze
3
+ VERSION = '0.3.1'.freeze
4
4
 
5
5
  end
@@ -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.0
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-02-27 00:00:00.000000000 Z
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