superscript 0.7.1 → 0.8.0

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: ffe0b4ebe0293d4f1929e603f3398beaf595ee2d3ad6b614c59dc418326ffa99
4
- data.tar.gz: 672c01d8cfb4d6fec56a87c22e8c5b1e896c01e41d24938aa5dd6caed095ef02
3
+ metadata.gz: 0bc0b05122c192f2a84ec91cadc082732fed684193b8188f8199bba45028325a
4
+ data.tar.gz: d984d3bf79427a748d7eff8fe5eb52e9be1b79cf8fa4eb2c296876d1e86619e1
5
5
  SHA512:
6
- metadata.gz: 657b3ce56e1e07133822ef98beaafdef6fad8d05313a1a2a2bf1d4f759d9e03943a186b2d9a39d883fd1263c2f58c792f94d6e423ab91a2081fbcee88a2d471c
7
- data.tar.gz: ac53cba3843bdcdd6a1ad5f8ee050c390a9a5f1deaede9bdbc051d6eb096f2a7eb45943745b3cf1116fd04c80b199ef304d9988d8c5f2b9e27b624b6dfef63ae
6
+ metadata.gz: 35ae9ec98919157414db881ab46c8f37038bba5464592539ecb51459d1769d183fa9c734412ca26935444819c0281a8f444d5acbb262bc981511c585a05a439c
7
+ data.tar.gz: 3d17e452859eaea0861b5971dd7f04077689e7920c446a504b6ecacb4034d4092520ba32f99f2b674071376d736cc0f227575f860ca9622eb06b8d27f74e5aee
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- superscript (0.7.1)
4
+ superscript (0.8.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -32,10 +32,12 @@ if ARGV[1]
32
32
  runner = Superscript::Runner.new ARGV[1], options
33
33
  runner.run! ctx
34
34
  else
35
+ require "readline"
36
+
35
37
  runner = Superscript::Runner.new nil, options
36
38
  loop do
37
- print "> "
38
- contents = STDIN.gets
39
+ contents = Readline.readline "> ", true
40
+
39
41
  value = runner.run! ctx, contents: contents
40
42
  puts " => #{value.inspect}"
41
43
  end
@@ -38,7 +38,10 @@ module Superscript
38
38
  if @on_error_exec
39
39
  system("#{@on_error_exec} #{error_message}")
40
40
  end
41
- exit 1
41
+
42
+ unless @path == "<interactive>"
43
+ exit 1
44
+ end
42
45
  end
43
46
 
44
47
  def arm!(reason=nil)
@@ -1,3 +1,3 @@
1
1
  module Superscript
2
- VERSION = "0.7.1"
2
+ VERSION = "0.8.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matti Paksula
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-24 00:00:00.000000000 Z
11
+ date: 2020-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler