cecil 0.1.1 → 0.1.3

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: d1a89f6028abc6e128f5fbc6d67dbb9c9a1b0beb1ea472b6eca8d3073efcab70
4
- data.tar.gz: dc4a7e3ab733b35d434ff1f6a0d1c450589750d7f9c2b236005e36c01ffbfe0b
3
+ metadata.gz: 25bc3ea619e4c5ed622fb086dbe51eeef561cbbfb733defad97dff14fd4ac0d5
4
+ data.tar.gz: 1b66b8d83ed649fc3be60789ce0909efd20707a939f8f8a3cd7b7abde5e5c6da
5
5
  SHA512:
6
- metadata.gz: f760364439d9d06477ed154183c75f95c49ce954be21980d86c44080ab7a378915e9f67962d0808909dc07350244fcfce78277ce6224e545b75289260476476f
7
- data.tar.gz: c338532c0843aab66bd287158b9d94503422ebfbcfe4e972abff2409f88b9450a6560dddd4def2ac5717d253d70bc7da9aabc1675ffa266c52b7dc3f9fbce576
6
+ metadata.gz: 6370b9ec275ab1ecc3bfd03487088c89dc31f5c66dc53dc37de99eeda30968bd4ff39c020d4839df318aa302be4ad1e9dcbb843b7f224e34b9352a37f2f6c8f9
7
+ data.tar.gz: 2dcb0a27ffdeef5271df1e222b80dc37908d9226a13b19e8e9427e1f73b85933736b5358e758501982aead5f9341f294e6ac6a9bc5ad4cec1d738bc4d171c5d9
data/.yard/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # Cecil
2
+ [![Yard Documentation](https://img.shields.io/badge/rdoc.info-blue?label=docs)](https://www.rubydoc.info/github/nicholaides/cecil)
3
+ [![Gem Version](https://img.shields.io/gem/v/cecil)](https://rubygems.org/gems/cecil)
2
4
 
3
- An experimental templating library for generating source code.
5
+ An experimental templating library designed specifically for generating source code (especially for languages that aren’t as meta-programmable as Ruby).
4
6
 
5
- Cecil templates look like the source code you want to generate thanks to Ruby's flexible syntax.
7
+ Cecil templates closely resemble the target source code, making templates easier to write, read, and maintain.
6
8
 
7
9
  ## Features
8
10
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cecil (0.1.0)
4
+ cecil (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # Cecil
2
+ [![Yard Documentation](https://img.shields.io/badge/rdoc.info-blue?label=docs)](https://www.rubydoc.info/github/nicholaides/cecil)
3
+ [![Gem Version](https://img.shields.io/gem/v/cecil)](https://rubygems.org/gems/cecil)
2
4
 
3
- An experimental templating library for generating source code.
5
+ An experimental templating library designed specifically for generating source code (especially for languages that aren’t as meta-programmable as Ruby).
4
6
 
5
- Cecil templates look like the source code you want to generate thanks to Ruby's flexible syntax.
7
+ Cecil templates closely resemble the target source code, making templates easier to write, read, and maintain.
6
8
 
7
9
  ## Features
8
10
 
@@ -88,7 +88,7 @@ module Cecil
88
88
  #
89
89
  # @param item [#to_s] A string or any object that responds to `#to_s`
90
90
  # @return [String] A JSON string without quotes
91
- def s(item) = item.to_s.to_json[1...-1].gsub("'", "\\\\'").gsub("`", "\\\\`")
91
+ def s(item) = item.to_s.to_json[1...-1].gsub(/['`\$]/) { "\\#{_1}" }
92
92
  end
93
93
  end
94
94
  end
data/lib/cecil/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cecil
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,18 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cecil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Nicholaides
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-21 00:00:00.000000000 Z
11
+ date: 2024-01-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
- An experimental templating library for generating source code. Cecil templates look like the source code you want
15
- to generate thanks to Ruby's flexible syntax.
14
+ An experimental templating library designed specifically for generating source code (especially for languages that
15
+ aren’t as meta-programmable as Ruby). Cecil templates closely resemble the target source code, making templates
16
+ easier to write, read, and maintain.
16
17
  email:
17
18
  - mike@nicholaides.com
18
19
  executables: []
@@ -67,5 +68,6 @@ requirements: []
67
68
  rubygems_version: 3.3.26
68
69
  signing_key:
69
70
  specification_version: 4
70
- summary: An experimental templating library for generating source code.
71
+ summary: An experimental templating library designed specifically for generating source
72
+ code.
71
73
  test_files: []