hamlit 0.6.2 → 1.0.0

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
  SHA1:
3
- metadata.gz: f16b0dcc3dc1e76c8ba6218f808a519780a39870
4
- data.tar.gz: 27bf912e63d3d08194ccac8b55a677cbd718dbda
3
+ metadata.gz: b50a51777e07c1765575e17d91f655ce47a11be6
4
+ data.tar.gz: e22d32256fbd305a75a48bfe6801468da1252f43
5
5
  SHA512:
6
- metadata.gz: a5321dc3369b2336e7850a32b5ea1d60ca9780d7df3a97dd95f640201e3112bdf51a810191f5bf7e1e6bc7b91648c24602e5d5887d0c2805768d6c672d8a9738
7
- data.tar.gz: 4f5488a790b6ef92ac7f499ffabbb014b1b80dcc521dc2faca2ce1ac1afa20aab0abfc15cacbc8ad028405882aaf4475e7c767055a57818c450a7048f6467fb2
6
+ metadata.gz: 3d0436c3c221d564f568ba11ccae65dc1876c048067614a1102612a58028d752d5a69518fc303b10bd5626f6155549ed1b49fde0aa692695f83cfa1bf9f0c701
7
+ data.tar.gz: 2438e651b2b48e2d7158162004f4de35f9a084363331f1684434d5238905ed1a422bfe172720e8919f93c8cd59c94b0c2ceed64460f93c7550eb293c120d5c8c
@@ -1,3 +1,7 @@
1
+ ## v1.0.0
2
+
3
+ - Use escape\_utils gem for faster escape\_html
4
+
1
5
  ## v0.6.2
2
6
 
3
7
  - Don't render falsy attributes
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.add_dependency "escape_utils"
21
22
  spec.add_dependency "temple", "~> 0.7.3"
22
23
  spec.add_dependency "thor"
23
24
  spec.add_dependency "tilt"
@@ -1,7 +1,6 @@
1
1
  require 'hamlit/compilers/attributes'
2
2
  require 'hamlit/compilers/comment'
3
3
  require 'hamlit/compilers/doctype'
4
- require 'hamlit/compilers/dynamic'
5
4
  require 'hamlit/compilers/filter'
6
5
  require 'hamlit/compilers/script'
7
6
  require 'hamlit/compilers/strip'
@@ -13,7 +12,6 @@ module Hamlit
13
12
  include Compilers::Attributes
14
13
  include Compilers::Comment
15
14
  include Compilers::Doctype
16
- include Compilers::Dynamic
17
15
  include Compilers::Filter
18
16
  include Compilers::Script
19
17
  include Compilers::Strip
@@ -2,6 +2,7 @@ require 'temple'
2
2
  require 'hamlit/compiler'
3
3
  require 'hamlit/html'
4
4
  require 'hamlit/parser'
5
+ require 'hamlit/temple'
5
6
 
6
7
  module Hamlit
7
8
  class Engine < Temple::Engine
@@ -0,0 +1,9 @@
1
+ module Hamlit
2
+ module TempleUtilsExtension
3
+ def escape_html_safe(html)
4
+ super(html.to_s)
5
+ end
6
+ end
7
+ end
8
+
9
+ Temple::Utils.send(:extend, Hamlit::TempleUtilsExtension)
@@ -1,3 +1,3 @@
1
1
  module Hamlit
2
- VERSION = "0.6.2"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hamlit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
@@ -10,6 +10,20 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2015-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: escape_utils
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: temple
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -307,7 +321,6 @@ files:
307
321
  - lib/hamlit/compilers/attributes.rb
308
322
  - lib/hamlit/compilers/comment.rb
309
323
  - lib/hamlit/compilers/doctype.rb
310
- - lib/hamlit/compilers/dynamic.rb
311
324
  - lib/hamlit/compilers/filter.rb
312
325
  - lib/hamlit/compilers/new_attribute.rb
313
326
  - lib/hamlit/compilers/old_attribute.rb
@@ -354,6 +367,7 @@ files:
354
367
  - lib/hamlit/parsers/whitespace.rb
355
368
  - lib/hamlit/railtie.rb
356
369
  - lib/hamlit/template.rb
370
+ - lib/hamlit/temple.rb
357
371
  - lib/hamlit/version.rb
358
372
  - spec/Rakefile
359
373
  - spec/hamlit/engine/comment_spec.rb
@@ -1,9 +0,0 @@
1
- module Hamlit
2
- module Compilers
3
- module Dynamic
4
- def on_dynamic(exp)
5
- [:dynamic, "(#{exp}).to_s"]
6
- end
7
- end
8
- end
9
- end