tickly 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +23 -0
- data/lib/tickly/curve.rb +1 -0
- data/lib/tickly/evaluator.rb +1 -0
- data/lib/tickly/node_processor.rb +1 -0
- data/lib/tickly/parser.rb +4 -3
- data/lib/tickly/version.rb +2 -1
- data/lib/tickly.rb +1 -0
- metadata +2 -2
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ba8b0de3b58032c9d43f236a19e5757aa3185c14d9be5abed4220ef6b2fa41b
|
|
4
|
+
data.tar.gz: e0507eb51d99ff01cd6abf31acb56a00623f1aa1812f4b085ad4d096dbc3199c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b84fa70955320fb67bff6729f5e60185ced38ad54b1c1732ef1b1e0419ae4f694b6f524a41c5985ad0e11d3e955db6d7b6a4615697eee71cc52814070ac79878
|
|
7
|
+
data.tar.gz: 305dca21939f6141099e5e13ec76728886255d6213db375fa8de2aff21191d31278b3c67334dc24dc7a09b46e32752cc69d888d25018caad32733cfff98e4f45
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
- push
|
|
5
|
+
- pull_request
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
name: Ruby ${{ matrix.ruby }}
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
fail-fast: false
|
|
13
|
+
matrix:
|
|
14
|
+
ruby:
|
|
15
|
+
- '2.6'
|
|
16
|
+
- '4.0'
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- uses: ruby/setup-ruby@v1
|
|
20
|
+
with:
|
|
21
|
+
ruby-version: ${{ matrix.ruby }}
|
|
22
|
+
bundler-cache: true
|
|
23
|
+
- run: bundle exec rake test
|
data/lib/tickly/curve.rb
CHANGED
data/lib/tickly/evaluator.rb
CHANGED
data/lib/tickly/parser.rb
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# shareable_constant_value: literal
|
|
2
3
|
require 'stringio'
|
|
3
4
|
|
|
@@ -92,7 +93,7 @@ module Tickly
|
|
|
92
93
|
# A standard stack is an expression that does not evaluate to a string
|
|
93
94
|
expressions = []
|
|
94
95
|
stack = []
|
|
95
|
-
buf = ''
|
|
96
|
+
buf = +''
|
|
96
97
|
|
|
97
98
|
loop do
|
|
98
99
|
char = io.read_one_char
|
|
@@ -110,7 +111,7 @@ module Tickly
|
|
|
110
111
|
elsif char == " " || char == "\n" # Space
|
|
111
112
|
if buf.length > 0
|
|
112
113
|
stack << buf
|
|
113
|
-
buf = ''
|
|
114
|
+
buf = +''
|
|
114
115
|
end
|
|
115
116
|
if TERMINATORS.include?(char) && stack.any? # Introduce a stack separator! This is a new line
|
|
116
117
|
|
|
@@ -149,7 +150,7 @@ module Tickly
|
|
|
149
150
|
|
|
150
151
|
# Parse a string literal, in single or double quotes.
|
|
151
152
|
def parse_str(io, stop_quote)
|
|
152
|
-
buf = ''
|
|
153
|
+
buf = +''
|
|
153
154
|
loop do
|
|
154
155
|
c = io.read_one_char
|
|
155
156
|
if c.nil?
|
data/lib/tickly/version.rb
CHANGED
data/lib/tickly.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tickly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Julik Tarkhanov
|
|
@@ -74,8 +74,8 @@ extra_rdoc_files:
|
|
|
74
74
|
- README.md
|
|
75
75
|
files:
|
|
76
76
|
- ".document"
|
|
77
|
+
- ".github/workflows/ci.yml"
|
|
77
78
|
- ".gitignore"
|
|
78
|
-
- ".travis.yml"
|
|
79
79
|
- Gemfile
|
|
80
80
|
- LICENSE.txt
|
|
81
81
|
- README.md
|