Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4e9f017e
Commit
4e9f017e
authored
Feb 21, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename tokens to lexemes in pipeline expressions
parent
2125d6fa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
9 deletions
+5
-9
lib/gitlab/ci/pipeline/expression/equals.rb
lib/gitlab/ci/pipeline/expression/equals.rb
+1
-1
lib/gitlab/ci/pipeline/expression/lexeme.rb
lib/gitlab/ci/pipeline/expression/lexeme.rb
+1
-5
lib/gitlab/ci/pipeline/expression/null.rb
lib/gitlab/ci/pipeline/expression/null.rb
+1
-1
lib/gitlab/ci/pipeline/expression/string.rb
lib/gitlab/ci/pipeline/expression/string.rb
+1
-1
lib/gitlab/ci/pipeline/expression/variable.rb
lib/gitlab/ci/pipeline/expression/variable.rb
+1
-1
No files found.
lib/gitlab/ci/pipeline/expression/equals.rb
View file @
4e9f017e
...
...
@@ -2,7 +2,7 @@ module Gitlab
module
Ci
module
Pipeline
module
Expression
class
Equals
<
Expression
::
Token
class
Equals
<
Expression
::
Lexeme
PATTERN
=
/==/
.
freeze
def
initialize
(
left
,
right
)
...
...
lib/gitlab/ci/pipeline/expression/
token
.rb
→
lib/gitlab/ci/pipeline/expression/
lexeme
.rb
View file @
4e9f017e
...
...
@@ -2,15 +2,11 @@ module Gitlab
module
Ci
module
Pipeline
module
Expression
class
Token
class
Lexeme
def
evaluate
(
**
variables
)
raise
NotImplementedError
end
def
self
.
build
(
string
)
raise
NotImplementedError
end
def
self
.
scan
(
scanner
)
scanner
.
scan
(
PATTERN
)
end
...
...
lib/gitlab/ci/pipeline/expression/null.rb
View file @
4e9f017e
...
...
@@ -2,7 +2,7 @@ module Gitlab
module
Ci
module
Pipeline
module
Expression
class
Null
<
Expression
::
Token
class
Null
<
Expression
::
Lexeme
PATTERN
=
/null/
.
freeze
def
initialize
(
value
)
...
...
lib/gitlab/ci/pipeline/expression/string.rb
View file @
4e9f017e
...
...
@@ -2,7 +2,7 @@ module Gitlab
module
Ci
module
Pipeline
module
Expression
class
String
<
Expression
::
Token
class
String
<
Expression
::
Lexeme
PATTERN
=
/("|')(?<value>.+)('|")/
.
freeze
def
initialize
(
value
)
...
...
lib/gitlab/ci/pipeline/expression/variable.rb
View file @
4e9f017e
...
...
@@ -2,7 +2,7 @@ module Gitlab
module
Ci
module
Pipeline
module
Expression
class
Equality
<
Expression
::
Token
class
Equality
<
Expression
::
Lexeme
PATTERN
=
/$(?<name>\w+)/
.
freeze
def
initialize
(
value
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment