ruboty-wandbox 0.0.1.1 → 0.0.1.2

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: 07d43b7672043afc75eef06b5e01e3e51efe8371
4
- data.tar.gz: 326ab0a934c2f4019707738d617f8df007ed6408
3
+ metadata.gz: 0b5f9d8740976714b9084dd7d3ae314007e7edd4
4
+ data.tar.gz: 24dca3648c9c58d2dbc33c9c6a111e9ea82710b1
5
5
  SHA512:
6
- metadata.gz: 8e681642e8c78fecf3d49b4dc8ec76fd70ec7ab6989edee1fe8e95c3d12fb11226991027cfe8e021f2bf57d16d1fe64894eaee478261d4f982642cb1479e9f4d
7
- data.tar.gz: 26ab21ef01105c8db8c2c95bd983de357c08bbbbd7d2f290dd57a566f2184a231377205a33fbd149e9ee6a7be5ef300ff1b37301d4fba7d3a6c7c5dc937cb42f
6
+ metadata.gz: 1b358aa1b57d5fafc230846b818160310762bf53db2ddfa6067f6be6cbff987202ecda8083829b5e936e9499b357238b162fc154a9652ef9a82e08569114c0a2
7
+ data.tar.gz: 50c78b60a2994ad41fe86b1e3a2fb644820a5c612c2a95b8d46a8911f25a5c40f6d82ef643f81c1036b1c847513dcb87de9b54148cd1b38e2540793738d62022
@@ -21,7 +21,9 @@ module Ruboty
21
21
  @compiler_list ||= lambda{
22
22
  lst=JSON.parse Net::HTTP.get URI.parse @base_uri+'api/list.json'
23
23
  Hash[*lst.flat_map{|e|
24
- [e['name'],e['switches'].flat_map{|f|(f['options']||[]).map{|g|g['name']}}]
24
+ [e['name'],e['switches'].flat_map{|f|
25
+ f['options'] ? f['options'].map{|g|g['name']} : [f['name']]
26
+ }]
25
27
  }]
26
28
  }.call
27
29
  end
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Wandbox
3
- VERSION = "0.0.1.1"
3
+ VERSION = "0.0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-wandbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.1
4
+ version: 0.0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - cielavenir