kaiser-ruby 0.8 → 0.8.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
  SHA256:
3
- metadata.gz: 040ea9398c1f1cb0499f3a5d21038b9ee52434a9370145ec8efd5e1217264431
4
- data.tar.gz: b7eb871f93fb4f68570685d9376c75698ca23e16b12752e6157cd046acacc6ff
3
+ metadata.gz: 98456a94ad40df956f05ea922b57442b5b5ba9892d16471bb1ba24ee6b289b02
4
+ data.tar.gz: c41cb669d3b082f8847888524fcf11eec6cb164725e239fb9d5af2ac7c2b3785
5
5
  SHA512:
6
- metadata.gz: bdd9abbab639f244d3a97799a25dc8c0ef5b5dfc582011a6b1d3cc02df804c7ca2d3ca8746214ba5b7df101af8967021e9fe20a010e86c8121bd122b68ea98f0
7
- data.tar.gz: 3c04422053c184d14c59740bceb57212b4f8b1d3483c916ee8c131128af2315cf30a2040dbf0c431dd31c27100372b858580b3180739975f593a639e6f336945
6
+ metadata.gz: fbca4c5d6c61771bcf6aa5d9a6df6cd411d69ac09015006247ed308347395b6eaf0ee3f7b2dd0563433f75fc8ac2140ebf9cd00ad74e01b94cf414ea09cbf66b
7
+ data.tar.gz: 3af6f628516d6aa0baecff82d62c1d77ff97c13732427c179d6d327b9520056a9acfbb8140daa86951784875fcf5526c563dedbd83e932682ee55835ebd1ce67
@@ -1,11 +1,26 @@
1
1
  AllCops:
2
2
  TargetRubyVersion: 2.3
3
+ Exclude:
4
+ - 'examples/**/*' # generated examples aren't exactly the pinnacle of Ruby good practices
3
5
 
4
6
  Metrics:
5
7
  Enabled: false
6
8
 
9
+ Layout/LineLength:
10
+ Enabled: false
11
+
12
+ Security/Eval:
13
+ Enabled: false # yes, we actually have a reason to use eval, stop whining
14
+
15
+ Lint/UnifiedInteger:
16
+ Enabled: false # yes, using Fixnum in refinements is on purpose
17
+
7
18
  Style/RescueModifier:
8
19
  Enabled: false
9
20
 
10
21
  Lint/InterpolationCheck:
11
22
  Enabled: false
23
+
24
+ Style/RedundantSelf:
25
+ Exclude:
26
+ - lib/kaiser_ruby/refinements.rb
@@ -1 +1 @@
1
- 2.6.2
1
+ 2.6.5
@@ -2,7 +2,8 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - 2.3.8
5
- - 2.4.5
6
- - 2.5.5
7
- - 2.6.2
8
- before_install: gem install bundler
5
+ - 2.4.9
6
+ - 2.5.7
7
+ - 2.6.5
8
+ - 2.7.0
9
+ before_install: gem install bundler -v 2.1.2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kaiser-ruby (0.8)
4
+ kaiser-ruby (0.8.1)
5
5
  hashie
6
6
  thor
7
7
 
@@ -11,50 +11,51 @@ GEM
11
11
  ast (2.4.0)
12
12
  coderay (1.1.2)
13
13
  diff-lcs (1.3)
14
- hashie (3.6.0)
15
- jaro_winkler (1.5.2)
14
+ hashie (4.0.0)
15
+ jaro_winkler (1.5.4)
16
16
  method_source (0.9.2)
17
- parallel (1.15.0)
18
- parser (2.6.2.0)
17
+ parallel (1.19.1)
18
+ parser (2.7.0.1)
19
19
  ast (~> 2.4.0)
20
20
  pry (0.12.2)
21
21
  coderay (~> 1.1.0)
22
22
  method_source (~> 0.9.0)
23
- psych (3.1.0)
24
23
  rainbow (3.0.0)
25
- rake (12.3.2)
26
- rspec (3.8.0)
27
- rspec-core (~> 3.8.0)
28
- rspec-expectations (~> 3.8.0)
29
- rspec-mocks (~> 3.8.0)
30
- rspec-core (3.8.0)
31
- rspec-support (~> 3.8.0)
32
- rspec-expectations (3.8.2)
24
+ rake (13.0.1)
25
+ rspec (3.9.0)
26
+ rspec-core (~> 3.9.0)
27
+ rspec-expectations (~> 3.9.0)
28
+ rspec-mocks (~> 3.9.0)
29
+ rspec-core (3.9.1)
30
+ rspec-support (~> 3.9.1)
31
+ rspec-expectations (3.9.0)
33
32
  diff-lcs (>= 1.2.0, < 2.0)
34
- rspec-support (~> 3.8.0)
35
- rspec-mocks (3.8.0)
33
+ rspec-support (~> 3.9.0)
34
+ rspec-mocks (3.9.0)
36
35
  diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.8.0)
38
- rspec-support (3.8.0)
39
- rubocop (0.66.0)
36
+ rspec-support (~> 3.9.0)
37
+ rspec-support (3.9.2)
38
+ rubocop (0.78.0)
40
39
  jaro_winkler (~> 1.5.1)
41
40
  parallel (~> 1.10)
42
- parser (>= 2.5, != 2.5.1.1)
43
- psych (>= 3.1.0)
41
+ parser (>= 2.6)
44
42
  rainbow (>= 2.2.2, < 4.0)
45
43
  ruby-progressbar (~> 1.7)
46
- unicode-display_width (>= 1.4.0, < 1.6)
47
- ruby-progressbar (1.10.0)
48
- thor (0.20.3)
49
- unicode-display_width (1.5.0)
44
+ unicode-display_width (>= 1.4.0, < 1.7)
45
+ ruby-progressbar (1.10.1)
46
+ thor (1.0.1)
47
+ unicode-display_width (1.6.0)
50
48
 
51
49
  PLATFORMS
52
50
  ruby
53
51
 
54
52
  DEPENDENCIES
55
- bundler (~> 1.17.0)
53
+ bundler
56
54
  kaiser-ruby!
57
55
  pry
58
56
  rake
59
57
  rspec
60
58
  rubocop
59
+
60
+ BUNDLED WITH
61
+ 2.1.2
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://travis-ci.org/marcinruszkiewicz/kaiser-ruby.svg?branch=master)](https://travis-ci.org/marcinruszkiewicz/kaiser-ruby)
1
+ [![Build Status](https://travis-ci.com/marcinruszkiewicz/kaiser-ruby.svg?branch=master)](https://travis-ci.com/marcinruszkiewicz/kaiser-ruby)
2
2
  [![Gem Version](https://badge.fury.io/rb/kaiser-ruby.svg)](https://badge.fury.io/rb/kaiser-ruby)
3
3
 
4
4
  # KaiserRuby - a Rockstar to Ruby transpiler
data/TODO.md CHANGED
@@ -1,14 +1,22 @@
1
1
  # TODO notes for KaiserRuby transpiler
2
2
 
3
- ## Language Implementation
3
+ # 0.9
4
4
 
5
- ## Examples
5
+ Language implementation
6
+
7
+ - [ ] Support for lists
8
+ - [ ] Support executing treesort.rock - nested functions are actually objects, so if they get passed around to
9
+ other functions they need to be called using `.call()` not `name()`... or just `.call` everything so
10
+ it's easier.
6
11
 
7
- - [ ] Should be able to run the [Cellular Rockomata](https://github.com/Rifhutch/cellular-rocktomata)
8
- - [ ] Math module https://gist.github.com/wrenoud/6be6f7509c88a3d8f9867ae782fb768f
9
12
 
10
- ## Other stuff
13
+ # Other stuff
11
14
 
15
+ Examples
16
+
17
+ - [ ] Should be able to run the [Cellular Rockomata](https://github.com/Rifhutch/cellular-rocktomata)
18
+ - [ ] Math module https://gist.github.com/wrenoud/6be6f7509c88a3d8f9867ae782fb768f
12
19
  - [ ] Add code history to the REPL
13
20
  - [ ] Make REPL work with multiline input also, not only singular lines
14
- - [ ] Make a demo visitor that evals the code and waits a bit between commands, so it's more music video-ish. Maybe should change the console colors while at it?
21
+ - [ ] Make a demo visitor that evals the code and waits a bit between commands, so it's more music video-ish.
22
+ Maybe should change the console colors while at it?
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.required_ruby_version = '>= 2.3'
25
25
 
26
- spec.add_development_dependency 'bundler', '~> 1.17.0'
26
+ spec.add_development_dependency 'bundler'
27
27
  spec.add_development_dependency 'pry'
28
28
  spec.add_development_dependency 'rake'
29
29
  spec.add_development_dependency 'rspec'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- # rubocop:disable Style/RedundantSelf
2
+
3
3
  module KaiserRuby
4
4
  # Rockstar introduces a new type that is similar to JS' undefined
5
5
  # Ruby obviously doesn't have that so we have to make our own
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KaiserRuby
4
- VERSION = '0.8'
4
+ VERSION = '0.8.1'
5
5
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaiser-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.8'
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Ruszkiewicz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-25 00:00:00.000000000 Z
11
+ date: 2019-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.17.0
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 1.17.0
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry
29
29
  requirement: !ruby/object:Gem::Requirement