mulang 4.2.0 → 4.2.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
  SHA256:
3
- metadata.gz: 10f46ad8fb2a5e2dc54682f816d96c6b8e0bf808c652658c379fb8c88bac41a9
4
- data.tar.gz: f61f36f24d7bccf5c1ac2cd29574d090503a884bb7243805f569803eba24ee41
3
+ metadata.gz: 754ca2003eff870fb712cdf7dd988a1987d8a239f476c14aee0e19f2110764ba
4
+ data.tar.gz: eed65b12542d63151f43d74198f4122550caf7512dcaa2ea5eef5a9ea3541749
5
5
  SHA512:
6
- metadata.gz: 108cdf64eac3114f6aac424e734ad42a70e966cb01cbf3b4f286b4732d0384a834142d3b6e5abc20bfd1e82d17e72b67226737236845136b8e2e0f8ce6b9377e
7
- data.tar.gz: bc2b49a05bfa388e6dba48ea883f73685a4f0d41cb72a511863096ccb536bea1d0f99283c82f8bb613c6f0d177903a3737ddf593bb80bca8e34114d3e7671ce5
6
+ metadata.gz: 48dd463d24321d92889c06a9a97ff4b0433cdfbef43bd8f01e7b1344b16578f4df8925fe1f1cfb08cd52974300adb9854fa2b48f3817a7c2f7f329fd5a27d896
7
+ data.tar.gz: 94843f9f0788d993ab70ea4ab9594e6e91cbd2040c9c084bf58f699135e482ba5798ae8489fa9634576540fb44f74c870f0335339b4a3dd2dfee4c36409c9f34
data/bin/mulang CHANGED
Binary file
@@ -1,4 +1,5 @@
1
1
  require 'active_support/all'
2
+ require 'open3'
2
3
 
3
4
  require_relative './mulang/version'
4
5
 
@@ -7,7 +8,11 @@ module Mulang
7
8
  File.join(__dir__, '..', 'bin', 'mulang')
8
9
  end
9
10
  def self.analyse(analysis)
10
- IO.popen([bin_path, analysis.to_json]) { |f| JSON.parse f.read }
11
+ Open3.popen2(bin_path, '-s') do |input, output, _thread|
12
+ input.puts analysis.to_json
13
+ input.close
14
+ JSON.parse output.read
15
+ end
11
16
  end
12
17
  end
13
18
 
@@ -1,4 +1,4 @@
1
1
  module Mulang
2
- VERSION = "4.2.0"
3
- MULANG_VERSION = "4.2.0"
2
+ VERSION = "4.2.1"
3
+ MULANG_VERSION = "4.2.1"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mulang
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-24 00:00:00.000000000 Z
11
+ date: 2018-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 2.7.7
104
+ rubygems_version: 2.7.8
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Gem wrapper for mulang tool