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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84fc69dbbbcec1f30a09e9bfe2e628739873a1943f8ed083ee2ea7b5ee3f1402
4
- data.tar.gz: 8b73945da9ec7a8bff04c4cea00299fc7de5b15d5b418b9043300efec20ca41d
3
+ metadata.gz: 9ba8b0de3b58032c9d43f236a19e5757aa3185c14d9be5abed4220ef6b2fa41b
4
+ data.tar.gz: e0507eb51d99ff01cd6abf31acb56a00623f1aa1812f4b085ad4d096dbc3199c
5
5
  SHA512:
6
- metadata.gz: bb277be3b1a06de64d144f0fbf745bf9eee3b74f8623ef09005f15712bef540b3dbdaa20d69da31efa9ca22098e0418e68b8370c7b46a29ba57c4ca43b35ea7e
7
- data.tar.gz: e3ffde08e7ec5ef7b4e9424cb247b2d85a29246d0163e3257c54ac824aca765fb9d93218fe53a97f14380662fd835382cf9875d12c6404f829c52884c19006e8
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
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # shareable_constant_value: literal
2
3
  module Tickly
3
4
  # A shorthand class for Nuke's animation curves.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Tickly
2
3
  # Evaluates a passed TCL expression without expanding it's inner arguments.
3
4
  # The TCL should look like Nuke's node commands:
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Tickly
2
3
  # A combination of a Parser and an Evaluator
3
4
  # Evaluates a passed Nuke script without expanding it's inner arguments.
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?
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Tickly
2
- VERSION = "2.2.0"
3
+ VERSION = "2.2.1"
3
4
  end
data/lib/tickly.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require File.dirname(__FILE__) + "/tickly/parser"
2
3
  require File.dirname(__FILE__) + "/tickly/evaluator"
3
4
  require File.dirname(__FILE__) + "/tickly/curve"
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.0
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
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- rvm:
2
- - 1.9.3
3
- - 2.5.0
4
- cache: bundler
5
- sudo: false