delorean_lang 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +29 -0
- data/.rubocop.yml +30 -1
- data/.rubocop_todo.yml +751 -0
- data/delorean.gemspec +1 -0
- data/lib/delorean/base.rb +3 -1
- data/lib/delorean/delorean.rb +207 -177
- data/lib/delorean/delorean.treetop +5 -0
- data/lib/delorean/nodes.rb +10 -0
- data/lib/delorean/version.rb +1 -1
- data/spec/cache_spec.rb +4 -2
- data/spec/eval_spec.rb +18 -0
- data/spec/ruby/whitelist_spec.rb +1 -1
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dccec41d942326a7ff9ffa4591b0ab36ce305974
|
4
|
+
data.tar.gz: 1fe60929e61d040e7ca33a3672476efc62852b3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7f9d418f8f625dc408c164dd4a0f2447559a392194d8c1a2264e0fa110fd33d616b353074d3e08d4715a96efd0d7eace5c2cedfd0e345ab3adb178658b5f2a2
|
7
|
+
data.tar.gz: 96d147e01620fbb668f3ae4cf8b088628a981862e894c63008fb2dcb8d65b64326991e7d5e1fb5ea88a5959e41cceb1575b8595b36eb7c88ac46ae81e8c743ab
|
data/.gitlab-ci.yml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
image: ruby:2.4.2
|
2
|
+
|
3
|
+
before_script:
|
4
|
+
- gem install bundler
|
5
|
+
- bundle install --jobs $(nproc) --path vendor "${FLAGS[@]}"
|
6
|
+
|
7
|
+
rubocop:
|
8
|
+
stage: test
|
9
|
+
script:
|
10
|
+
- bundle exec rubocop
|
11
|
+
|
12
|
+
rspec:
|
13
|
+
stage: test
|
14
|
+
script:
|
15
|
+
- bundle exec rspec
|
16
|
+
|
17
|
+
cache:
|
18
|
+
key: 'delorean_bundler_cache'
|
19
|
+
paths:
|
20
|
+
- vendor/ruby
|
21
|
+
|
22
|
+
variables:
|
23
|
+
GIT_SSL_NO_VERIFY: "true"
|
24
|
+
BUNDLER_VERSION: "2.0.1"
|
25
|
+
POSTGRES_USER: "runner"
|
26
|
+
POSTGRES_PASSWORD: ""
|
27
|
+
RAILS_ENV: "test"
|
28
|
+
RAILS_DUMP_SCHEMA: "false"
|
29
|
+
|
data/.rubocop.yml
CHANGED
@@ -1,8 +1,37 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
Exclude:
|
5
|
+
- 'db/**/*'
|
6
|
+
- 'spec/dummy/**/*'
|
7
|
+
- 'bin/{rails,rake}'
|
8
|
+
- 'vendor/**/*'
|
9
|
+
- !ruby/regexp /old_and_unused\.rb$/
|
10
|
+
- lib/delorean/delorean.rb
|
11
|
+
|
1
12
|
Style/StringLiterals:
|
2
13
|
Enabled: false
|
3
14
|
|
4
15
|
Metrics/LineLength:
|
5
16
|
Max: 80
|
17
|
+
Exclude:
|
18
|
+
- 'lib/delorean/delorean.rb'
|
19
|
+
- 'spec/func_spec.rb'
|
20
|
+
- 'spec/parse_spec.rb'
|
21
|
+
|
22
|
+
Metrics/ModuleLength:
|
23
|
+
Exclude:
|
24
|
+
- 'spec/eval_spec.rb'
|
25
|
+
|
26
|
+
Metrics/BlockLength:
|
27
|
+
Exclude:
|
28
|
+
- 'spec/eval_spec.rb'
|
29
|
+
|
30
|
+
Style/TrailingCommaInArguments:
|
31
|
+
Enabled: false
|
32
|
+
|
33
|
+
Style/TrailingCommaInArrayLiteral:
|
34
|
+
Enabled: false
|
6
35
|
|
7
|
-
Style/
|
36
|
+
Style/TrailingCommaInHashLiteral:
|
8
37
|
Enabled: false
|