trenni 3.4.0 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -6
- data/lib/trenni/buffer.rb +12 -0
- data/lib/trenni/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3399e30eef6fd6ae4d121c9b74e51eb9a42ee341
|
4
|
+
data.tar.gz: eb5d397625e160c2d3b1cc4d08dff6b866008fae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b499cbed363cecd40b97095439cd747cec8bd3593d9f6c2db10d47423314da5c194dc3a821906f7b2f56713a4671d9fa88dd4de90e408821f0c215cffc3266e0
|
7
|
+
data.tar.gz: aa8c2449315c50e951425305cc8fb693407891c6b39d63787927d80b9ed53d9d0de60dfe80cdebd91c78d371ff64add2245e97f402046cf6e16fc7ae25dc4c36
|
data/README.md
CHANGED
@@ -156,12 +156,6 @@ end.to_s
|
|
156
156
|
# => "<p><strong>Hello</strong> World</p>"
|
157
157
|
```
|
158
158
|
|
159
|
-
### Integration
|
160
|
-
|
161
|
-
There is a [language-trenni](https://atom.io/packages/language-trenni) package for the [Atom text editor](https://atom.io). It provides syntax highlighting and integration when Trenni is used with the [utopia web framework](https://github.com/ioquatix/utopia).
|
162
|
-
|
163
|
-
[Trenni Formatters](https://github.com/ioquatix/trenni-formatters) is a separate gem that uses `Trenni::Builder` to generate HTML forms easily.
|
164
|
-
|
165
159
|
### Testing
|
166
160
|
|
167
161
|
To test the Ruby parsers:
|
@@ -277,6 +271,14 @@ Finished in 28.25 seconds (files took 0.09765 seconds to load)
|
|
277
271
|
3 examples, 0 failures
|
278
272
|
```
|
279
273
|
|
274
|
+
## See Also
|
275
|
+
|
276
|
+
- [language-trenni](https://atom.io/packages/language-trenni) package for the [Atom text editor](https://atom.io). It provides syntax highlighting and integration when Trenni is used with the [utopia web framework](https://github.com/ioquatix/utopia).
|
277
|
+
|
278
|
+
- [vim-trenni](https://github.com/huba/vim-trenni) package for Vim.
|
279
|
+
|
280
|
+
- [Trenni Formatters](https://github.com/ioquatix/trenni-formatters) is a separate gem that uses `Trenni::Builder` to generate HTML forms easily.
|
281
|
+
|
280
282
|
## Contributing
|
281
283
|
|
282
284
|
1. Fork it
|
data/lib/trenni/buffer.rb
CHANGED
@@ -27,6 +27,10 @@ module Trenni
|
|
27
27
|
|
28
28
|
attr :path
|
29
29
|
|
30
|
+
def encoding
|
31
|
+
@string.encoding
|
32
|
+
end
|
33
|
+
|
30
34
|
def read
|
31
35
|
@string
|
32
36
|
end
|
@@ -59,6 +63,10 @@ module Trenni
|
|
59
63
|
|
60
64
|
attr :path
|
61
65
|
|
66
|
+
def encoding
|
67
|
+
read.encoding
|
68
|
+
end
|
69
|
+
|
62
70
|
def read
|
63
71
|
@cache ||= File.read(@path).freeze
|
64
72
|
end
|
@@ -84,6 +92,10 @@ module Trenni
|
|
84
92
|
|
85
93
|
attr :path
|
86
94
|
|
95
|
+
def encoding
|
96
|
+
read.encoding
|
97
|
+
end
|
98
|
+
|
87
99
|
def read
|
88
100
|
@cache ||= @io.read.freeze
|
89
101
|
end
|
data/lib/trenni/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trenni
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.6.
|
174
|
+
rubygems_version: 2.6.12
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: A fast native templating system that compiles directly to Ruby code.
|