nay 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c418f7807bfc7a6dd3128f971285c6960f747ba2caa729245ded05dfe075d789
4
+ data.tar.gz: 1175b196aff3ec2c2c49263a81d1d009b4ad891e6cf135e31486b815458eafb8
5
+ SHA512:
6
+ metadata.gz: 2e8337ea4773f836997bc69054d3e97c37749b70d174b8d1cfc15f2be2594590df979889d1ce389e9925a0dc0f3b3ea59471b0b88533791cafcc794dc5874876
7
+ data.tar.gz: ff9ece5aee3797615c4b213ef320ce133816edd4fe1b8029681401daa65921b0f354a84f6e5bd9a9a8bf075d07949ccdb3b1fd6d89949ffcd3ff6c3babe8d48a
data/.editorconfig ADDED
@@ -0,0 +1,8 @@
1
+ # See http://editorconfig.org/
2
+
3
+ [*]
4
+ trim_trailing_whitespace = true
5
+ indent_style = space
6
+ indent_size = 2
7
+ insert_final_newline = true
8
+ end_of_line = lf
@@ -0,0 +1,29 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version: ['2.6', '2.7', '3.0']
15
+
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Set up Ruby
19
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
20
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
21
+ # uses: ruby/setup-ruby@v1
22
+ uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
23
+ with:
24
+ ruby-version: ${{ matrix.ruby-version }}
25
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
26
+ - name: Run tests
27
+ run: bundle exec rake
28
+ - name: Security audit dependencies
29
+ run: bundle exec bundler-audit check --update
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ .DS_Store
2
+ *.gem
3
+ /tmp
4
+ /coverage
5
+ Gemfile.lock
6
+ /pkg
data/.rubocop.yml ADDED
@@ -0,0 +1,18 @@
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+
5
+ AllCops:
6
+ NewCops: enable
7
+ TargetRubyVersion: 2.6
8
+
9
+ Metrics/BlockLength:
10
+ Max: 30
11
+ IgnoredMethods:
12
+ - describe
13
+
14
+ Metrics/MethodLength:
15
+ Max: 20
16
+
17
+ RSpec/ExampleLength:
18
+ Max: 10
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 2.6.6
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ #### 0.0.1 - February 17th, 2022
2
+
3
+ * Initial version.
@@ -0,0 +1,73 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported. All complaints will be reviewed and investigated and will result in a response that
59
+ is deemed necessary and appropriate to the circumstances. The project team is
60
+ obligated to maintain confidentiality with regard to the reporter of an incident.
61
+ Further details of specific enforcement policies may be posted separately.
62
+
63
+ Project maintainers who do not follow or enforce the Code of Conduct in good
64
+ faith may face temporary or permanent repercussions as determined by other
65
+ members of the project's leadership.
66
+
67
+ ## Attribution
68
+
69
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
70
+ available at [http://contributor-covenant.org/version/1/4][version]
71
+
72
+ [homepage]: http://contributor-covenant.org
73
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
data/Guardfile ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ guard :rspec, cmd: 'DISABLE_SIMPLECOV=true bundle exec rspec --format=documentation' do
4
+ require 'guard/rspec/dsl'
5
+ dsl = Guard::RSpec::Dsl.new(self)
6
+
7
+ # RSpec files
8
+ rspec = dsl.rspec
9
+ watch(rspec.spec_helper) { rspec.spec_dir }
10
+ watch(rspec.spec_support) { rspec.spec_dir }
11
+ watch(rspec.spec_files)
12
+
13
+ # Ruby files
14
+ ruby = dsl.ruby
15
+ dsl.watch_spec_files_for(ruby.lib_files)
16
+ end
data/LICENSE ADDED
@@ -0,0 +1,5 @@
1
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2
+
3
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
4
+
5
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,95 @@
1
+ # Nay
2
+
3
+ #### Lightweight and simple string templating library
4
+
5
+ [![Gem Version](https://badge.fury.io/rb/nay.svg)](https://badge.fury.io/rb/nay) [![Ruby Gem CI](https://github.com/mattruggio/nay/actions/workflows/rubygem.yml/badge.svg)](https://github.com/mattruggio/nay/actions/workflows/rubygem.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/4703f8c46f94685afc29/maintainability)](https://codeclimate.com/github/mattruggio/nay/maintainability) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
+
7
+ Supplies a simple interface for evaluating string templates with objects.
8
+
9
+ ## Installation
10
+
11
+ To install through Rubygems:
12
+
13
+ ````
14
+ gem install nay
15
+ ````
16
+
17
+ You can also add this to your Gemfile using:
18
+
19
+ ````
20
+ bundle add nay
21
+ ````
22
+
23
+ ## Examples
24
+
25
+ ````ruby
26
+ animal = {
27
+ 'animal' => {
28
+ 'speed' => 'quick',
29
+ 'type' => 'fox'
30
+ }
31
+ }
32
+
33
+ string = 'A << animal.speed >> << animal.type >> jumps over the fence!'
34
+ compiled = Nay.evaluate(string, animal)
35
+ ````
36
+
37
+ This would set `compiled` to: `# yields: 'A quick fox jumps over the fence!'`
38
+
39
+ Notes:
40
+
41
+ * Tokens are passed through #[] method for the passed in object. Any object providing a brackets interface will work.
42
+ * if a token needs to contain a period in its name then you can qualify it with double quotes (i.e. `hello, << person."first name" >>`)
43
+
44
+ ## Contributing
45
+
46
+ ### Development Environment Configuration
47
+
48
+ Basic steps to take to get this repository compiling:
49
+
50
+ 1. Install [Ruby](https://www.ruby-lang.org/en/documentation/installation/) (check nay.gemspec for versions supported)
51
+ 2. Install bundler (gem install bundler)
52
+ 3. Clone the repository (git clone git@github.com:mattruggio/nay.git)
53
+ 4. Navigate to the root folder (cd nay)
54
+ 5. Install dependencies (bundle)
55
+
56
+ ### Running Tests
57
+
58
+ To execute the test suite run:
59
+
60
+ ````bash
61
+ bundle exec rspec spec --format documentation
62
+ ````
63
+
64
+ Alternatively, you can have Guard watch for changes:
65
+
66
+ ````bash
67
+ bundle exec guard
68
+ ````
69
+
70
+ Also, do not forget to run Rubocop:
71
+
72
+ ````bash
73
+ bundle exec rubocop
74
+ ````
75
+
76
+ ### Publishing
77
+
78
+ Note: ensure you have proper authorization before trying to publish new versions.
79
+
80
+ After code changes have successfully gone through the Pull Request review process then the following steps should be followed for publishing new versions:
81
+
82
+ 1. Merge Pull Request into main
83
+ 2. Update `version.rb` using [semantic versioning](https://semver.org/)
84
+ 3. Install dependencies: `bundle`
85
+ 4. Update `CHANGELOG.md` with release notes
86
+ 5. Commit & push main to remote and ensure CI builds main successfully
87
+ 6. Run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
88
+
89
+ ## Code of Conduct
90
+
91
+ Everyone interacting in this codebase, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/mattruggio/nay/blob/main/CODE_OF_CONDUCT.md).
92
+
93
+ ## License
94
+
95
+ This project is MIT Licensed.
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+ require 'rubocop/rake_task'
6
+
7
+ RSpec::Core::RakeTask.new(:spec)
8
+ RuboCop::RakeTask.new
9
+
10
+ task default: %i[rubocop spec]
data/bin/console ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'nay'
6
+ require 'pry'
7
+
8
+ Pry.start
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nay
4
+ # Knows how to take a stream of lexically analyzed tokens along with an input hash and
5
+ # evaluate interpolated key paths.
6
+ class Evaluator
7
+ attr_reader :lexer
8
+
9
+ def initialize(lexer)
10
+ @lexer = lexer
11
+ end
12
+
13
+ def evaluate(input = {})
14
+ io = StringIO.new
15
+ pointer = input
16
+
17
+ while (token = lexer.next_token)
18
+ case token.type
19
+ when Lexer::CONTENT
20
+ io << token.literal
21
+ when Lexer::OPEN_EXPRESSION
22
+ pointer = input
23
+ when Lexer::IDENTIFIER
24
+ pointer = traverse(pointer, token.literal)
25
+ when Lexer::CLOSE_EXPRESSION
26
+ io << pointer.to_s
27
+ end
28
+ end
29
+
30
+ io.string
31
+ end
32
+
33
+ private
34
+
35
+ def traverse(input, value)
36
+ input[value] if input.respond_to?(:[])
37
+ end
38
+ end
39
+ end
data/lib/nay/lexer.rb ADDED
@@ -0,0 +1,105 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'state'
4
+ require_relative 'token'
5
+
6
+ module Nay
7
+ # Read in a string and generate Token instances.
8
+ class Lexer
9
+ # Stack States
10
+ EXPRESSION = :expression
11
+ EXPRESSION_LITERAL = :expression_literal
12
+
13
+ # Token Types
14
+ CLOSE_EXPRESSION = :close_expression
15
+ CONTENT = :content
16
+ END_EXPRESSION_LITERAL = :end_expression_literal
17
+ IDENTIFIER = :identifier
18
+ IGNORE = :ignore
19
+ OPEN_EXPRESSION = :open_expression
20
+ OPEN_EXPRESSION_LITERAL = :open_expression_literal
21
+
22
+ attr_reader :scanner, :state
23
+
24
+ def initialize(string)
25
+ @scanner = StringScanner.new(string)
26
+ @state = State.new
27
+ end
28
+
29
+ def rest
30
+ [].tap do |tokens|
31
+ while (token = next_token)
32
+ tokens << token
33
+ end
34
+ end
35
+ end
36
+
37
+ def next_token
38
+ return nil if scanner.eos?
39
+
40
+ case state.current
41
+ when State::DEFAULT
42
+ default
43
+ when EXPRESSION
44
+ expression
45
+ when EXPRESSION_LITERAL
46
+ expression_literal
47
+ end
48
+ end
49
+
50
+ private
51
+
52
+ # rubocop:disable Metrics/AbcSize
53
+ def default
54
+ token = nil
55
+
56
+ if scanner.scan(/<</)
57
+ state.push(EXPRESSION)
58
+ token = Token.new(OPEN_EXPRESSION, scanner.matched)
59
+ elsif scanner.scan_until(/.*?(?=<<)/m)
60
+ token = Token.new(CONTENT, scanner.matched)
61
+ else
62
+ token = Token.new(CONTENT, scanner.rest)
63
+ scanner.terminate
64
+ end
65
+
66
+ token
67
+ end
68
+
69
+ def expression
70
+ token = nil
71
+
72
+ if scanner.scan(/\s+/) || scanner.scan(/\./)
73
+ token = Token.new(IGNORE, scanner.matched)
74
+ elsif scanner.scan(/>>/)
75
+ token = Token.new(CLOSE_EXPRESSION, scanner.matched)
76
+ state.pop
77
+ elsif scanner.scan(/"/)
78
+ state.push(EXPRESSION_LITERAL)
79
+ token = Token.new(OPEN_EXPRESSION_LITERAL, scanner.matched)
80
+ elsif scanner.scan_until(/[a-zA-Z0-9]*?(?=\s|\.|>>)/m)
81
+ token = Token.new(IDENTIFIER, scanner.matched)
82
+ else
83
+ scanner.terminate
84
+ end
85
+
86
+ token
87
+ end
88
+ # rubocop:enable Metrics/AbcSize
89
+
90
+ def expression_literal
91
+ token = nil
92
+
93
+ if scanner.scan(/"/)
94
+ state.pop
95
+ token = Token.new(:end_expression_literal, scanner.matched)
96
+ elsif scanner.scan_until(/.*?(?=")/m)
97
+ token = Token.new(IDENTIFIER, scanner.matched)
98
+ else
99
+ scanner.terminate
100
+ end
101
+
102
+ token
103
+ end
104
+ end
105
+ end
data/lib/nay/state.rb ADDED
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nay
4
+ # Basic stack implementation for storing a basic state machine flow.
5
+ class State
6
+ DEFAULT = :default
7
+
8
+ attr_reader :stack
9
+
10
+ def initialize
11
+ @stack = []
12
+ end
13
+
14
+ def current
15
+ stack.last || DEFAULT
16
+ end
17
+
18
+ def push(state)
19
+ stack.push(state)
20
+ end
21
+
22
+ def pop
23
+ stack.pop
24
+ end
25
+ end
26
+ end
data/lib/nay/token.rb ADDED
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nay
4
+ # Describes the output of the Lexer.
5
+ class Token
6
+ attr_reader :type, :literal
7
+
8
+ def initialize(type, literal = nil)
9
+ @type = type.to_sym
10
+ @literal = literal
11
+
12
+ freeze
13
+ end
14
+
15
+ def to_s
16
+ "['#{type}', '#{literal}']"
17
+ end
18
+
19
+ def ==(other)
20
+ other.type == type && other.literal == literal
21
+ end
22
+ alias eql? ==
23
+ end
24
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nay
4
+ VERSION = '0.0.1'
5
+ end
data/lib/nay.rb ADDED
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'stringio'
4
+ require 'strscan'
5
+
6
+ require_relative 'nay/evaluator'
7
+ require_relative 'nay/lexer'
8
+
9
+ # Top-level API
10
+ module Nay
11
+ class << self
12
+ def evaluate(string = '', input = {})
13
+ lexer = Lexer.new(string)
14
+ evaluator = Evaluator.new(lexer)
15
+
16
+ evaluator.evaluate(input)
17
+ end
18
+ end
19
+ end
data/nay.gemspec ADDED
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ require './lib/nay/version'
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = 'nay'
7
+ s.version = Nay::VERSION
8
+ s.summary = 'Lightweight and simple string templating library'
9
+
10
+ s.description = <<-DESCRIPTION
11
+ Compile template strings with values from objects.
12
+ DESCRIPTION
13
+
14
+ s.authors = ['Matthew Ruggio']
15
+ s.email = ['mattruggio@icloud.com']
16
+ s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ s.bindir = 'exe'
18
+ s.executables = %w[]
19
+ s.homepage = 'https://github.com/mattruggio/nay'
20
+ s.license = 'MIT'
21
+ s.metadata = {
22
+ 'bug_tracker_uri' => 'https://github.com/mattruggio/nay/issues',
23
+ 'changelog_uri' => 'https://github.com/mattruggio/nay/blob/main/CHANGELOG.md',
24
+ 'documentation_uri' => 'https://www.rubydoc.info/gems/nay',
25
+ 'homepage_uri' => s.homepage,
26
+ 'source_code_uri' => s.homepage,
27
+ 'rubygems_mfa_required' => 'true'
28
+ }
29
+
30
+ s.required_ruby_version = '>= 2.6'
31
+
32
+ s.add_dependency('strscan', '~>3.0')
33
+
34
+ s.add_development_dependency('bundler-audit')
35
+ s.add_development_dependency('guard-rspec')
36
+ s.add_development_dependency('pry')
37
+ s.add_development_dependency('rake')
38
+ s.add_development_dependency('rspec')
39
+ s.add_development_dependency('rubocop')
40
+ s.add_development_dependency('rubocop-rake')
41
+ s.add_development_dependency('rubocop-rspec')
42
+ s.add_development_dependency('simplecov')
43
+ s.add_development_dependency('simplecov-console')
44
+ end
metadata ADDED
@@ -0,0 +1,223 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nay
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Matthew Ruggio
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-02-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: strscan
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler-audit
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: guard-rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-rake
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: simplecov
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: simplecov-console
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ description: " Compile template strings with values from objects.\n"
168
+ email:
169
+ - mattruggio@icloud.com
170
+ executables: []
171
+ extensions: []
172
+ extra_rdoc_files: []
173
+ files:
174
+ - ".editorconfig"
175
+ - ".github/workflows/rubygem.yml"
176
+ - ".gitignore"
177
+ - ".rubocop.yml"
178
+ - ".tool-versions"
179
+ - CHANGELOG.md
180
+ - CODE_OF_CONDUCT.md
181
+ - Gemfile
182
+ - Guardfile
183
+ - LICENSE
184
+ - README.md
185
+ - Rakefile
186
+ - bin/console
187
+ - lib/nay.rb
188
+ - lib/nay/evaluator.rb
189
+ - lib/nay/lexer.rb
190
+ - lib/nay/state.rb
191
+ - lib/nay/token.rb
192
+ - lib/nay/version.rb
193
+ - nay.gemspec
194
+ homepage: https://github.com/mattruggio/nay
195
+ licenses:
196
+ - MIT
197
+ metadata:
198
+ bug_tracker_uri: https://github.com/mattruggio/nay/issues
199
+ changelog_uri: https://github.com/mattruggio/nay/blob/main/CHANGELOG.md
200
+ documentation_uri: https://www.rubydoc.info/gems/nay
201
+ homepage_uri: https://github.com/mattruggio/nay
202
+ source_code_uri: https://github.com/mattruggio/nay
203
+ rubygems_mfa_required: 'true'
204
+ post_install_message:
205
+ rdoc_options: []
206
+ require_paths:
207
+ - lib
208
+ required_ruby_version: !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ version: '2.6'
213
+ required_rubygems_version: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - ">="
216
+ - !ruby/object:Gem::Version
217
+ version: '0'
218
+ requirements: []
219
+ rubygems_version: 3.0.3
220
+ signing_key:
221
+ specification_version: 4
222
+ summary: Lightweight and simple string templating library
223
+ test_files: []