ruby-igv 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/igv.rb +6 -3
  3. data/lib/igv/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9610c6073f8aa07bc0a6d72ad5ea885caf0bca0810633cc51da6f56fdedb9162
4
- data.tar.gz: 3e547657f35d6df732e555260cf3be51182eb1c153967aa18ed98f7896e85c28
3
+ metadata.gz: 475797ed38ba6259aa3810c00937620548829ae8d173d8f9d5831267f4251413
4
+ data.tar.gz: ddc1aafe06f597cbb8715d0533222572e2453870871dae2e35ab0664f446fdcd
5
5
  SHA512:
6
- metadata.gz: f41a575c7c740a008d099b3941a880b15a62c9b54bb3c2969677f36a98819f1fafcb16a0475a2da86c88bcfcf0d79dea149ca3f429a06bd49ac7a980d67c6582
7
- data.tar.gz: 0126ef0bebc9e1b89d761a2f1acebd1f896498692320623fa27190cfcb91e17c8c08dbb8fbc39897a7957fde332534602abade7814b8694f8f02b80e2c230c84
6
+ metadata.gz: 0f8de5afd14e5d12af5c85eef8e7059924bf1282bbd985d3ad645545069699c0e51707b5dac18a1f2ec9c9ce88034312ae31332b1b5b1deaf354b16fa2242d7d
7
+ data.tar.gz: 00dc6e66fbf3483209a5982cd455bd3569222dacbc302e667b48e69d8cd7fe3ea81e1036133b5209e461a3c503c574330220c574ccff1f8b5fc38575f39b5552
data/lib/igv.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  require 'igv/version'
2
2
  require 'socket'
3
3
  require 'fileutils'
4
- require 'pathname'
5
4
 
6
5
  class IGV
7
6
  class Error < StandardError; end
@@ -72,11 +71,15 @@ class IGV
72
71
  send 'clear'
73
72
  end
74
73
 
74
+ def exit
75
+ send 'exit'
76
+ end
77
+ alias quit exit
78
+
75
79
  def send(cmd)
76
80
  @commands << cmd
77
- cmd += "\n"
78
81
  @socket.puts(cmd.encode(Encoding::UTF_8))
79
- @socket.readline.chomp("\n")
82
+ @socket.gets&.chomp("\n")
80
83
  end
81
84
 
82
85
  def save(file_path = nil)
@@ -1,3 +1,3 @@
1
1
  class IGV
2
- VERSION = '0.0.2'.freeze
2
+ VERSION = '0.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-igv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - kojix2
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-21 00:00:00.000000000 Z
11
+ date: 2020-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler