vcs2json 2.0.0 → 2.0.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: c3dfd8c30d50ef1760dd38b36725e30be0b09d9f
4
- data.tar.gz: 842566ac9e598784693c76cc60c8a3531ca8b218
3
+ metadata.gz: 84a154a7c2e157db3170b0d03203eee8e5d192d8
4
+ data.tar.gz: df869d699ad341ce444c2f1a09e815798bb7280d
5
5
  SHA512:
6
- metadata.gz: 74e7b098604e6437ef3df2a51af00e013c84c790b47502352d2c1bb8c251892c71d22fb65035a6dbd1217e4d27499dd8abd5d2c50f4668d0fe0dfed407ff4725
7
- data.tar.gz: d53aa615168906592464caa112cf55ac0ff8f36a0a7274c3b98317e2c898588142034564f683d0f7a0670b53c78aa947eecbe5d7ea44d8a820702a758c3204de
6
+ metadata.gz: ba3fc6feba3b1a9f7d946af2353d79e99558b521e0682c10815bb2533891e9b3a9764e876f36b1c98b27eeea10dadd0c1c592109c425049f54dcd5c1b8e7fc52
7
+ data.tar.gz: 114a22bce682633767cce7cfba3b4bf52df8b951a14d48c7bc7f6a82650fbb81057313ed175631abafe35124746d8cfc9b895aba99c9e6ba471a32dbe56b16bc
data/lib/srcML/srcml.rb CHANGED
@@ -17,9 +17,11 @@ module SrcML
17
17
  '.c' => 'C'}
18
18
 
19
19
  # Check that SrcML is available
20
- if system("srcml", '--version')
21
- SRCML = "srcml"
22
- else
20
+ begin
21
+ version,e,s = Open3.capture3("srcml --version")
22
+ $stderr.puts version
23
+ SRCML = "srcml"
24
+ rescue Errno::ENOENT
23
25
  $stderr.puts "SrcML is required, please install from www.srcml.com"
24
26
  exit
25
27
  end
@@ -1,3 +1,3 @@
1
1
  module Vcs2Json
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcs2json
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Rolfsnes