trenni 3.4.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8aacca081534b203fa5fdd210a00ee0c210ffa07
4
- data.tar.gz: e282f15f551f80076412cb30e1b88cb5f6792d5e
3
+ metadata.gz: 3399e30eef6fd6ae4d121c9b74e51eb9a42ee341
4
+ data.tar.gz: eb5d397625e160c2d3b1cc4d08dff6b866008fae
5
5
  SHA512:
6
- metadata.gz: df91c7bc9eb696ed94cdea57564303bc9e3bbda0e1c87afd022267d00b2fae1c4a1899229d81eb90ee13210f65cc7ea9ee2077146734f157e40de6304c94e921
7
- data.tar.gz: e2164f93ff15fc37cb0e60eb531a159ffe262d9b38a3392067734c2f7d6e97c02f6280fd31738071a0a97eea68c06dfe0f66743fc4eb5203478001ef7d223aee
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
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Trenni
22
- VERSION = "3.4.0"
22
+ VERSION = "3.5.0"
23
23
  end
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.0
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: 2017-07-03 00:00:00.000000000 Z
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.10
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.