waveformjson 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,8 +41,15 @@ begin
41
41
  end
42
42
 
43
43
  json = Waveformjson.generate(ARGV[0], options)
44
- File.open(output) do |f|
45
- f << json.to_s
44
+ File.open(output, 'w') do |f|
45
+ f << '['
46
+
47
+ json.each_with_index do |d, index|
48
+ f << d
49
+ f << ', ' unless index == json.size - 1
50
+ end
51
+
52
+ f << ']'
46
53
  end
47
54
  rescue ArgumentError => e
48
55
  puts e.message + "\n\n"
@@ -1,3 +1,3 @@
1
1
  class Waveformjson
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waveformjson
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: