kaiser-ruby 0.4.2 → 0.5

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: b00ca7f4d8ab7606f8a9933971ccdaec79b33c49bdbeb1eca54a812d1ca001d3
4
- data.tar.gz: a30cea8a7445ec593eef4eac9ef33e0598b7b762d17081c692e7ea7c9da69066
3
+ metadata.gz: 3fec1d393ae0367779ee0f751d01ba63a5900451e60577ddd5b22561f66d36f8
4
+ data.tar.gz: e82013bff9756f24aa4a4df025c18bfb847a769ae34afa177f8bdd694afbaea9
5
5
  SHA512:
6
- metadata.gz: 433f27ff2a343efd7ffd467a3d618f2c8d9c203d457da59da80b2ad56d87a353d1d1047ab96825607754dec23fe14d2aff882e7742f7fbed7a1455b27d3fa9ea
7
- data.tar.gz: 9bc1c414c8607297b046ec89d9f47a8617e6a0a526fb4e6990ed1797c16528bc242e8d0d00e9513485a60efc8c4fa924300ce8f7d01bbc730d3bd93504322c5a
6
+ metadata.gz: 04ad1c0bc40b029eb1c2fa44593bfb66140fbe8893b535723564948f7f4e0506cfb4015517413aa3e66d652d75cb84e21d47863c372db0cfb70dbbeaafb0d967
7
+ data.tar.gz: ccf85b08e73b29f02c69694bd56152ee62cd8609776ef04d0e67f866cf635c7086186680e1108f0a3d90c5e965f0df9f18399eaf0920c1444685b07975143422
@@ -0,0 +1 @@
1
+ 2.5.1
@@ -1,5 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.5.0
4
+ - 2.3.7
5
+ - 2.4.4
6
+ - 2.5.1
5
7
  before_install: gem install bundler -v 1.16.1
@@ -50,3 +50,10 @@ Other stuff:
50
50
  - [x] Suppressed warning about eval from Thor
51
51
  - [x] Move nesting indentation from main module to transformer
52
52
  - [x] Celsius to Fahrenheit example
53
+
54
+ 0.5
55
+
56
+ Other stuff
57
+
58
+ - [x] Updated the REPL to work on Ruby versions earlier than 2.5 (2.3 is the minimum supported version)
59
+ - [x] Travis CI tests on all supported Ruby versions
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kaiser-ruby (0.4.2)
4
+ kaiser-ruby (0.5)
5
5
  parslet (~> 1.8)
6
6
  thor (~> 0.20)
7
7
 
data/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ [![Build Status](https://travis-ci.org/marcinruszkiewicz/kaiser-ruby.svg?branch=master)](https://travis-ci.org/marcinruszkiewicz/kaiser-ruby)
2
+ [![Gem Version](https://badge.fury.io/rb/kaiser-ruby.svg)](https://badge.fury.io/rb/kaiser-ruby)
3
+
1
4
  # KaiserRuby - a Rockstar to Ruby transpiler
2
5
 
3
6
  This tool translates a file containing a program written in the [Rockstar language](https://github.com/dylanbeattie/rockstar) to Ruby code.
@@ -12,6 +15,10 @@ Install the gem by issuing the following command.
12
15
  $ gem install kaiser-ruby
13
16
  ```
14
17
 
18
+ This gem works best on a current Ruby version and requires Ruby 2.3 at minimum. Running it on 2.3 has the downside of metal umlauts not being entirely correct as that Ruby version doesn't know how to `.downcase` a capital umlaut letter, which was fixed in 2.4.
19
+
20
+ If you're not using the umlauts, all should be fine otherwise.
21
+
15
22
  ## Usage
16
23
 
17
24
  The most common usage of this gem is to transpile (or transpile and run immediately) Rockstar code into Ruby code.
@@ -1,4 +1,3 @@
1
-
2
1
  lib = File.expand_path("../lib", __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require "kaiser_ruby/version"
@@ -20,6 +19,8 @@ Gem::Specification.new do |spec|
20
19
  spec.executables = ['kaiser-ruby']
21
20
  spec.require_paths = ["lib"]
22
21
 
22
+ spec.required_ruby_version = '>= 2.3'
23
+
23
24
  spec.add_development_dependency "bundler", "~> 1.16"
24
25
  spec.add_development_dependency "rake", "~> 10.0"
25
26
  spec.add_development_dependency "rspec", "~> 3.0"
@@ -44,16 +44,18 @@ module KaiserRuby
44
44
  b = binding
45
45
 
46
46
  loop do
47
- input = ask('\m/>')
48
- break if input == 'exit'
49
-
50
- code = KaiserRuby.transpile(input)
51
- say "\\m/> #{code}", :blue if options[:debug]
52
- output = b.eval(code)
53
- output = 'nil' if output.nil?
54
- say " => #{output}\n"
55
- rescue
56
- say "THE STAGE IS ON FIRE!"
47
+ begin
48
+ input = ask('\m/>')
49
+ break if input == 'exit'
50
+
51
+ code = KaiserRuby.transpile(input)
52
+ say "\\m/> #{code}", :blue if options[:debug]
53
+ output = b.eval(code)
54
+ output = 'nil' if output.nil?
55
+ say " => #{output}\n"
56
+ rescue
57
+ say "THE STAGE IS ON FIRE!"
58
+ end
57
59
  end
58
60
  end
59
61
  end
@@ -1,3 +1,3 @@
1
1
  module KaiserRuby
2
- VERSION = "0.4.2"
2
+ VERSION = "0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaiser-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: '0.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Ruszkiewicz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-15 00:00:00.000000000 Z
11
+ date: 2018-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -104,6 +104,7 @@ extra_rdoc_files: []
104
104
  files:
105
105
  - ".gitignore"
106
106
  - ".rspec"
107
+ - ".ruby-version"
107
108
  - ".travis.yml"
108
109
  - CHANGELOG.md
109
110
  - Gemfile
@@ -133,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
134
  requirements:
134
135
  - - ">="
135
136
  - !ruby/object:Gem::Version
136
- version: '0'
137
+ version: '2.3'
137
138
  required_rubygems_version: !ruby/object:Gem::Requirement
138
139
  requirements:
139
140
  - - ">="