triplet 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0c2ae911efdf5e51950b9ea7cb3e0f87ab0120372ae95228efdd2e3ffa71e95a
4
+ data.tar.gz: 0b5cdb5f35ab5b190f28717ece455929a6925e255e7037a36fe0e70a198f2e01
5
+ SHA512:
6
+ metadata.gz: 0e94b7bc419fad2252c66f3ce993d604d45bf50e48c24e674d27b917b0e29a9c17c36261a604df31f69ac330814829f7e49ec15fad827d4275a792882a1d8b01
7
+ data.tar.gz: 42ea02614e766814218ca5c25c56098d817c1e605b6bc9bf851ebe2e4d15ed0805040c687d055f11f972ce69eb861ed2d7bb8b3a647349eaed4d69a34f30301a
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.7.1
6
+ before_install: gem install bundler -v 2.1.4
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in triplet.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
7
+ gem "minitest", "~> 5.0"
@@ -0,0 +1,171 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ triplet (0.1.0)
5
+ actionview (>= 5.0.0, < 7.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (6.1.0)
11
+ actionpack (= 6.1.0)
12
+ activesupport (= 6.1.0)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (6.1.0)
16
+ actionpack (= 6.1.0)
17
+ activejob (= 6.1.0)
18
+ activerecord (= 6.1.0)
19
+ activestorage (= 6.1.0)
20
+ activesupport (= 6.1.0)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.1.0)
23
+ actionpack (= 6.1.0)
24
+ actionview (= 6.1.0)
25
+ activejob (= 6.1.0)
26
+ activesupport (= 6.1.0)
27
+ mail (~> 2.5, >= 2.5.4)
28
+ rails-dom-testing (~> 2.0)
29
+ actionpack (6.1.0)
30
+ actionview (= 6.1.0)
31
+ activesupport (= 6.1.0)
32
+ rack (~> 2.0, >= 2.0.9)
33
+ rack-test (>= 0.6.3)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
+ actiontext (6.1.0)
37
+ actionpack (= 6.1.0)
38
+ activerecord (= 6.1.0)
39
+ activestorage (= 6.1.0)
40
+ activesupport (= 6.1.0)
41
+ nokogiri (>= 1.8.5)
42
+ actionview (6.1.0)
43
+ activesupport (= 6.1.0)
44
+ builder (~> 3.1)
45
+ erubi (~> 1.4)
46
+ rails-dom-testing (~> 2.0)
47
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
+ activejob (6.1.0)
49
+ activesupport (= 6.1.0)
50
+ globalid (>= 0.3.6)
51
+ activemodel (6.1.0)
52
+ activesupport (= 6.1.0)
53
+ activerecord (6.1.0)
54
+ activemodel (= 6.1.0)
55
+ activesupport (= 6.1.0)
56
+ activestorage (6.1.0)
57
+ actionpack (= 6.1.0)
58
+ activejob (= 6.1.0)
59
+ activerecord (= 6.1.0)
60
+ activesupport (= 6.1.0)
61
+ marcel (~> 0.3.1)
62
+ mimemagic (~> 0.3.2)
63
+ activesupport (6.1.0)
64
+ concurrent-ruby (~> 1.0, >= 1.0.2)
65
+ i18n (>= 1.6, < 2)
66
+ minitest (>= 5.1)
67
+ tzinfo (~> 2.0)
68
+ zeitwerk (~> 2.3)
69
+ addressable (2.7.0)
70
+ public_suffix (>= 2.0.2, < 5.0)
71
+ builder (3.2.4)
72
+ capybara (3.34.0)
73
+ addressable
74
+ mini_mime (>= 0.1.3)
75
+ nokogiri (~> 1.8)
76
+ rack (>= 1.6.0)
77
+ rack-test (>= 0.6.3)
78
+ regexp_parser (~> 1.5)
79
+ xpath (~> 3.2)
80
+ coderay (1.1.3)
81
+ concurrent-ruby (1.1.7)
82
+ crass (1.0.6)
83
+ erubi (1.10.0)
84
+ globalid (0.4.2)
85
+ activesupport (>= 4.2.0)
86
+ i18n (1.8.5)
87
+ concurrent-ruby (~> 1.0)
88
+ loofah (2.8.0)
89
+ crass (~> 1.0.2)
90
+ nokogiri (>= 1.5.9)
91
+ mail (2.7.1)
92
+ mini_mime (>= 0.1.1)
93
+ marcel (0.3.3)
94
+ mimemagic (~> 0.3.2)
95
+ method_source (1.0.0)
96
+ mimemagic (0.3.5)
97
+ mini_mime (1.0.2)
98
+ mini_portile2 (2.4.0)
99
+ minitest (5.14.2)
100
+ nio4r (2.5.4)
101
+ nokogiri (1.10.10)
102
+ mini_portile2 (~> 2.4.0)
103
+ pry (0.13.1)
104
+ coderay (~> 1.1)
105
+ method_source (~> 1.0)
106
+ public_suffix (4.0.6)
107
+ rack (2.2.3)
108
+ rack-test (1.1.0)
109
+ rack (>= 1.0, < 3)
110
+ rails (6.1.0)
111
+ actioncable (= 6.1.0)
112
+ actionmailbox (= 6.1.0)
113
+ actionmailer (= 6.1.0)
114
+ actionpack (= 6.1.0)
115
+ actiontext (= 6.1.0)
116
+ actionview (= 6.1.0)
117
+ activejob (= 6.1.0)
118
+ activemodel (= 6.1.0)
119
+ activerecord (= 6.1.0)
120
+ activestorage (= 6.1.0)
121
+ activesupport (= 6.1.0)
122
+ bundler (>= 1.15.0)
123
+ railties (= 6.1.0)
124
+ sprockets-rails (>= 2.0.0)
125
+ rails-dom-testing (2.0.3)
126
+ activesupport (>= 4.2.0)
127
+ nokogiri (>= 1.6)
128
+ rails-html-sanitizer (1.3.0)
129
+ loofah (~> 2.3)
130
+ railties (6.1.0)
131
+ actionpack (= 6.1.0)
132
+ activesupport (= 6.1.0)
133
+ method_source
134
+ rake (>= 0.8.7)
135
+ thor (~> 1.0)
136
+ rake (12.3.3)
137
+ regexp_parser (1.8.2)
138
+ sprockets (4.0.2)
139
+ concurrent-ruby (~> 1.0)
140
+ rack (> 1, < 3)
141
+ sprockets-rails (3.2.2)
142
+ actionpack (>= 4.0)
143
+ activesupport (>= 4.0)
144
+ sprockets (>= 3.0.0)
145
+ thor (1.0.1)
146
+ tzinfo (2.0.4)
147
+ concurrent-ruby (~> 1.0)
148
+ view_component (2.23.2)
149
+ activesupport (>= 5.0.0, < 7.0)
150
+ websocket-driver (0.7.3)
151
+ websocket-extensions (>= 0.1.0)
152
+ websocket-extensions (0.1.5)
153
+ xpath (3.2.0)
154
+ nokogiri (~> 1.8)
155
+ zeitwerk (2.4.2)
156
+
157
+ PLATFORMS
158
+ ruby
159
+
160
+ DEPENDENCIES
161
+ actionpack (> 6.0)
162
+ capybara (~> 3.0)
163
+ minitest (~> 5.0)
164
+ pry (~> 0.13)
165
+ rails (>= 6.1)
166
+ rake (~> 12.0)
167
+ triplet!
168
+ view_component (~> 2.23)
169
+
170
+ BUNDLED WITH
171
+ 2.1.4
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Blake Williams
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,99 @@
1
+ # Triplet
2
+
3
+ A simple Ruby DSL for defining templates. (Maybe) useful for defining single file [view
4
+ components](https://github.com/github/view_component).
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'triplet'
12
+ ```
13
+
14
+ And then execute: `bundle install` in your shell.
15
+
16
+ ## Usage
17
+
18
+ ```ruby
19
+ nav_items = { "home": "/", "Sign Up": "/sign-up" }
20
+ template = Template.new # Create a new template
21
+
22
+ template.eval do
23
+ nav class: "max-w-3xl mx-auto flex" do
24
+ h1(class: "font-3xl") { "My App" }
25
+
26
+ ul class: "" do
27
+ nav_items.each do |name, link|
28
+ li class: "bold font-xl" do
29
+ a href: link.html_safe { name }
30
+ end
31
+ end
32
+ end
33
+ end
34
+
35
+ text "Hello"
36
+ span(class: "bold") { "world" }
37
+ end
38
+ ```
39
+
40
+ Will output the equivalent HTML:
41
+
42
+ ```html
43
+ <nav class="max-w-3xl mx-auto flex">
44
+ <h1 class="font-3xl">My App</h1>
45
+ <ul class="">
46
+ <li class="bold font-xl"><a href="/"></a></li>
47
+ <li class="bold font-xl"><a href="/sign-up"></a></li>
48
+ </ul>
49
+ </nav>
50
+ Hello<span class="bold">world</span>
51
+ ```
52
+
53
+ If you need a custom tag, you can use the `tag` helper method:
54
+
55
+ ```ruby
56
+ tag("my-tag", "custom-attribute" => "value") { "body content" }
57
+ # <my-tag custom-attribute="value">body content</my-tag>
58
+ ```
59
+
60
+ To output strings with no wrapping tag, use the `text` helper:
61
+
62
+ ```ruby
63
+ text "hello "
64
+ b { "world" }
65
+ # hello <b>world</b>
66
+ ```
67
+
68
+ ### View Component Support
69
+
70
+ To use in view components, include the `Triplet::ViewComponent` module and
71
+ define a `template` method. The module will handle the rest.
72
+
73
+ ```ruby
74
+ class NavComponent < ::ViewComponent::Base
75
+ include Triplet::ViewComponent
76
+
77
+ def template
78
+ h1 { "hello world" }
79
+
80
+ render NavItemComponent.new(title: "Home", path: "/")
81
+ render NavItemComponent.new(title: "Pricing", path: "/pricing")
82
+ end
83
+ end
84
+ ```
85
+
86
+ ## Development
87
+
88
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
89
+
90
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then 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).
91
+
92
+ ## Contributing
93
+
94
+ Bug reports and pull requests are welcome on GitHub at https://github.com/BlakeWilliams/triplet.
95
+
96
+
97
+ ## License
98
+
99
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "triplet"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "action_view" # Necessary for output buffer
4
+
5
+ require "triplet/version"
6
+ require "triplet/template"
7
+ require "triplet/dsl"
8
+
9
+ module Triplet
10
+ class Error < StandardError; end
11
+
12
+ def self.template(&block)
13
+ Template.new.run(&block)
14
+ end
15
+ end
@@ -0,0 +1,90 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Triplet
4
+ module DSL
5
+ TAGS = [
6
+ :a, :abbr, :address, :area, :article, :aside, :audio,
7
+ :b, :base, :bdi, :bdo, :blockquote, :body, :br, :button,
8
+ :canvas, :caption, :cite, :code, :col, :colgroup,
9
+ :data, :datalist, :dd, :del, :details, :dfn, :dialog, :div, :dl, :dt,
10
+ :em, :embed,
11
+ :fieldset, :figure, :footer, :form,
12
+ :h1, :h2, :h3, :h4, :h5, :h6, :head, :header, :hgroup, :hr, :html,
13
+ :i, :iframe, :img, :input, :ins,
14
+ :kbd, :keygen,
15
+ :label, :legend, :li, :link,
16
+ :main, :map, :mark, :menu, :menuitem, :meta, :meter,
17
+ :nav, :noscript,
18
+ :object, :ol, :optgroup, :option, :output,
19
+ :p, :param, :pre, :progress,
20
+ :q,
21
+ :rb, :rp, :rt, :rtc, :ruby,
22
+ :s, :samp, :script, :section, :select, :small, :source, :span, :strong, :style, :sub, :summary, :sup,
23
+ :table, :tbody, :td, :template, :textarea, :tfoot, :th, :thead, :time, :title, :tr, :track,
24
+ :u, :ul,
25
+ :var, :video,
26
+ :wbr
27
+ ].freeze
28
+ VOID_TAGS = [:area, :base, :br, :col, :embed, :hr, :img, :input, :link, :meta, :param, :source, :track, :wbr].freeze
29
+
30
+ # TODO handle VOID_TAGS specially
31
+ TAGS.each do |tag|
32
+ define_method tag do |attrs = {}, &block|
33
+ tag(tag, attrs, &block)
34
+ end
35
+ end
36
+
37
+ def text(text)
38
+ @output_buffer << text
39
+ end
40
+
41
+ def tag(tag, attrs = {}, &block)
42
+ @output_buffer.safe_concat "<#{tag}"
43
+ @output_buffer.safe_concat " " unless attrs.empty?
44
+ _write_attributes(attrs)
45
+ @output_buffer.safe_concat ">"
46
+
47
+ if block
48
+ value = nil
49
+ result = capture do
50
+ value = block.call
51
+ end
52
+
53
+ # Supports returning a string directlycfrom blocks
54
+ if result.length == 0 && value
55
+ @output_buffer << value
56
+ else
57
+ @output_buffer << result
58
+ end
59
+ end
60
+
61
+ @output_buffer.safe_concat "</#{tag}>"
62
+ end
63
+
64
+ private
65
+
66
+ def _write_attributes(attrs)
67
+ attrs.each_with_index do |(k,v), i|
68
+ @output_buffer << k.to_s
69
+ @output_buffer.safe_concat '="'
70
+ @output_buffer << v.to_s
71
+ @output_buffer.safe_concat '"'
72
+ @output_buffer.safe_concat ' ' if i != attrs.length - 1
73
+ end
74
+ end
75
+
76
+ def capture
77
+ original_output_buffer = @output_buffer
78
+
79
+ begin
80
+ @output_buffer = ActionView::OutputBuffer.new
81
+ yield
82
+ @output_buffer
83
+ ensure
84
+ @output_buffer = original_output_buffer
85
+ end
86
+ end
87
+ end
88
+ end
89
+
90
+ Triplet::Template.include(Triplet::DSL)
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Triplet
4
+ class Template
5
+ def initialize(output_buffer = ActionView::OutputBuffer.new, &block)
6
+ @output_buffer = output_buffer
7
+
8
+ instance_eval(&block)
9
+ end
10
+
11
+ def to_s
12
+ @output_buffer.to_s
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,3 @@
1
+ module Triplet
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "view_component"
4
+
5
+ module Triplet
6
+ module ViewComponent
7
+ include Triplet::DSL
8
+
9
+ def self.included(klass)
10
+ klass.define_method(:call) do
11
+ @output_buffer ||= ActionView::OutputBuffer.new
12
+ template
13
+ end
14
+ end
15
+
16
+ def template
17
+ raise "#template method not implemented"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,33 @@
1
+ require_relative 'lib/triplet/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "triplet"
5
+ spec.version = Triplet::VERSION
6
+ spec.authors = ["Blake Williams"]
7
+ spec.email = ["blake@blakewilliams.me"]
8
+
9
+ spec.summary = %q{Pure Ruby template language}
10
+ spec.description = %q{Pure Ruby template language}
11
+ spec.homepage = "https://github.com/blakewilliams/triplet"
12
+ spec.license = "MIT"
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
+
15
+ spec.metadata["homepage_uri"] = spec.homepage
16
+ spec.metadata["source_code_uri"] = "https://github.com/blakewilliams/triplet"
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
21
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ end
23
+ spec.bindir = "exe"
24
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ["lib"]
26
+
27
+ spec.add_runtime_dependency "actionview", [">= 5.0.0", "< 7.0"]
28
+ spec.add_development_dependency "pry", "~> 0.13"
29
+ spec.add_development_dependency "view_component", "~> 2.23"
30
+ spec.add_development_dependency "rails", ">= 6.1"
31
+ spec.add_development_dependency "actionpack", "> 6.0"
32
+ spec.add_development_dependency "capybara", "~> 3.0"
33
+ end
metadata ADDED
@@ -0,0 +1,150 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: triplet
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Blake Williams
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-12-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: actionview
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 5.0.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 5.0.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '7.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: pry
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.13'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0.13'
47
+ - !ruby/object:Gem::Dependency
48
+ name: view_component
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '2.23'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '2.23'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rails
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '6.1'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '6.1'
75
+ - !ruby/object:Gem::Dependency
76
+ name: actionpack
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">"
80
+ - !ruby/object:Gem::Version
81
+ version: '6.0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">"
87
+ - !ruby/object:Gem::Version
88
+ version: '6.0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: capybara
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '3.0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '3.0'
103
+ description: Pure Ruby template language
104
+ email:
105
+ - blake@blakewilliams.me
106
+ executables: []
107
+ extensions: []
108
+ extra_rdoc_files: []
109
+ files:
110
+ - ".gitignore"
111
+ - ".travis.yml"
112
+ - Gemfile
113
+ - Gemfile.lock
114
+ - LICENSE.txt
115
+ - README.md
116
+ - Rakefile
117
+ - bin/console
118
+ - bin/setup
119
+ - lib/triplet.rb
120
+ - lib/triplet/dsl.rb
121
+ - lib/triplet/template.rb
122
+ - lib/triplet/version.rb
123
+ - lib/triplet/view_component.rb
124
+ - triplet.gemspec
125
+ homepage: https://github.com/blakewilliams/triplet
126
+ licenses:
127
+ - MIT
128
+ metadata:
129
+ homepage_uri: https://github.com/blakewilliams/triplet
130
+ source_code_uri: https://github.com/blakewilliams/triplet
131
+ post_install_message:
132
+ rdoc_options: []
133
+ require_paths:
134
+ - lib
135
+ required_ruby_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: 2.3.0
140
+ required_rubygems_version: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ requirements: []
146
+ rubygems_version: 3.1.2
147
+ signing_key:
148
+ specification_version: 4
149
+ summary: Pure Ruby template language
150
+ test_files: []