template-ruby-parser 0.1.0 → 0.1.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: 67bbbdf0c0e64c96b6f81824ccc09709ebf052c7673534845d603706570d96e8
4
- data.tar.gz: 14f5d04f9e1ca82141d72fbd485b42614d9a89fbd75005f3d0cc9be8b4de48e4
3
+ metadata.gz: 859c3d726a8f7dfaead9a4f1c2e94eb71479f4537bce77cbde4f67c740cc99dd
4
+ data.tar.gz: 5552fe0c506eaae92d4bcdf3d4b238d1ea85d2d245cab828c908ee8ed86d8d55
5
5
  SHA512:
6
- metadata.gz: 26749ce437c50f9c1abb9c736c1b42da827a8bd9eceb00ad5494935fafdf72ae35b6a944fc64a1d4547960467a73ffd43cdad3cf50f8d31374e7a2123f40884c
7
- data.tar.gz: 9c11b4ea8624de55a3388b0b63ffba1605d87d5f7ac535c0e80e30412812b70aade514e04e0618b4aaba1cc3b9c90374e01cd3759968a6e6b8e1d7165ab2005f
6
+ metadata.gz: 7bf5ff496932ec7cd9b7b1fa7e933408088dde19a2c70e0beef6cd01e14269eae6152918c02b5d1e79576086c35aa57636e8b602c57fdabcf469d1a13a4e157a
7
+ data.tar.gz: 9d6b51decff46acc22ffc864adbae981ea4a832972c0caa5cfea081514c05b72369ff2c4b1db233a2bf5647ece0514fb361e17262a84f18b4be3d47d8de73ba5
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ ### 0.1.1 - November 12, 2022
2
+
3
+ - Fix `:even?` and `:update?` strings
4
+
5
+ ### 0.1.0 - November 12, 2022
6
+
7
+ - Initial release
Binary file
@@ -0,0 +1,16 @@
1
+ require_relative "lib/code-ruby-parser"
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "code-ruby-parser"
5
+ s.version = ::Template::Parser::Version
6
+ s.summary = "A parser for the Code programming language"
7
+ s.description =
8
+ "A parser for the Code programming language, like 1 + 1 and user.first_name"
9
+ s.authors = ["Dorian Marié"]
10
+ s.email = "dorian@dorianmarie.fr"
11
+ s.files = `git ls-files`.split($/)
12
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
13
+ s.require_paths = ["lib"]
14
+ s.homepage = "https://github.com/dorianmariefr/template-ruby-parser"
15
+ s.license = "MIT"
16
+ end
@@ -9,6 +9,7 @@ class Code
9
9
  elsif match(COLON) && !next?(SPECIAL)
10
10
  buffer!
11
11
  consume while !next?(SPECIAL) && !end_of_input?
12
+ match(QUESTION_MARK) || match(EXCLAMATION_POINT)
12
13
  { string: buffer }
13
14
  else
14
15
  parse_subclass(::Code::Parser::Number)
@@ -1,6 +1,6 @@
1
1
  class Template
2
2
  class Parser < ::Code::Parser
3
- Version = Gem::Version.new("0.1.0")
3
+ Version = Gem::Version.new("0.1.1")
4
4
 
5
5
  def parse
6
6
  parts = []
@@ -7,6 +7,7 @@ RSpec.describe ::Code::Parser do
7
7
  "''",
8
8
  '""',
9
9
  ":a",
10
+ ":even?",
10
11
  "'Hello Dorian'",
11
12
  '"Hello Dorian"',
12
13
  "'Hello \\' Dorian'",
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: template-ruby-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié
@@ -18,11 +18,14 @@ extra_rdoc_files: []
18
18
  files:
19
19
  - ".gitignore"
20
20
  - ".overcommit.yml"
21
+ - CHANGELOG.md
21
22
  - Gemfile
22
23
  - Gemfile.lock
23
24
  - bin/code-parser
24
25
  - bin/format
25
26
  - bin/template-parser
27
+ - code-ruby-parser-0.1.0.gem
28
+ - code-ruby-parser.gemspec
26
29
  - docs/class.code
27
30
  - docs/meetup.code
28
31
  - docs/rain.code
@@ -109,6 +112,7 @@ files:
109
112
  - spec/code/parser/while_spec.rb
110
113
  - spec/spec_helper.rb
111
114
  - spec/template/parser_spec.rb
115
+ - template-ruby-parser-0.1.0.gem
112
116
  - template-ruby-parser.gemspec
113
117
  homepage: https://github.com/dorianmariefr/template-ruby-parser
114
118
  licenses: