hamlit 2.8.5 → 2.8.6

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
- SHA1:
3
- metadata.gz: c425b65463464503f25f1b70bd3dc05d002006f3
4
- data.tar.gz: 13ac4271de0ab1ce93e6f69165c7b66e8e66b626
2
+ SHA256:
3
+ metadata.gz: a81acbe27600ac91e5a827a8ce114666a78a6d4e6d4928ead844f6d45dd36e3b
4
+ data.tar.gz: 83021e624060ae3a5bac115e8bb4f0134208bd34b1e3f2deec23d815973cf2e6
5
5
  SHA512:
6
- metadata.gz: 4d5c054ac1de86c2362839be478ff94e3b20d88db0f3d1c96337d71c78e51b8556a66c9eead574560d3dc5cd59672293e2e08838584049ef8a8afed34c40801c
7
- data.tar.gz: 562df2c7640a4deedacfd89ec2c098c6a8c2252fc2aa8fd853d3f0c0d2c4d03f4d3342e74468a7bcd77df4ea0f7f2bdb42cbeb111009d8afb767c27e041c9875
6
+ metadata.gz: 11a5de507de1470d1c615446454ad3f32595ee55ca2ea8183f594d3fc92095f5f0fe78980e0c4f000b221743a3afd5d87b5f94411c5b1f1c532c538e3c6bb47e
7
+ data.tar.gz: f29126f085e3148e9d79147a6f12b4b4a94d03e4ea64999027bd01474af8b526f8038104698f96c0d2a6cedb5b57ca662cdfdfa559219e4f843604b4d7dd3986
@@ -4,7 +4,7 @@ branches:
4
4
  only:
5
5
  - master
6
6
  script:
7
- - "BACKTRACE=1 bundle exec rake $TASK"
7
+ - "RUBYOPT='-w' bundle exec rake $TASK"
8
8
  matrix:
9
9
  include:
10
10
  - rvm: 2.1.10
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. This
4
4
  project adheres to [Semantic Versioning](http://semver.org/). This change log is based upon
5
5
  [keep-a-changelog](https://github.com/olivierlacan/keep-a-changelog).
6
6
 
7
+ ## [2.8.6](https://github.com/k0kubun/hamlit/compare/v2.8.5...v2.8.6) - 2017-12-22
8
+
9
+ ### Fixed
10
+
11
+ - Fix some unused-variable / method-redefinition warnings
12
+
7
13
  ## [2.8.5](https://github.com/k0kubun/hamlit/compare/v2.8.4...v2.8.5) - 2017-11-06
8
14
 
9
15
  ### Fixed
@@ -150,6 +156,12 @@ project adheres to [Semantic Versioning](http://semver.org/). This change log is
150
156
 
151
157
  - `:coffeescript` filter's internal class name is changed from `Coffee` to `CoffeeScript`
152
158
 
159
+ ## [2.2.4](https://github.com/k0kubun/hamlit/compare/v2.2.3...v2.2.4) - 2017-12-05
160
+
161
+ ### Fixed
162
+
163
+ - Fix to work with Ruby 2.5. This version is usable with both 2.0 and 2.5.
164
+
153
165
  ## [2.2.3](https://github.com/k0kubun/hamlit/compare/v2.2.2...v2.2.3) - 2016-03-10
154
166
 
155
167
  ### Added
data/Gemfile CHANGED
@@ -16,6 +16,9 @@ gem 'benchmark-ips', '2.3.0'
16
16
  gem 'm'
17
17
  gem 'pry-byebug'
18
18
 
19
+ # To resolve circular require warning
20
+ gem 'redcarpet', github: 'vmg/redcarpet'
21
+
19
22
  if RUBY_PLATFORM !~ /mswin|mingw|bccwin|wince/
20
23
  gem 'faml'
21
24
  gem 'stackprof'
@@ -72,7 +72,7 @@ ensure_allocated(char *buf, size_t size, size_t *asize)
72
72
  size_t
73
73
  hesc_escape_html(char **dest, const char *buf, size_t size)
74
74
  {
75
- size_t asize = 0, esc_i, esize = 0, i = 0, rbuf_end = 0;
75
+ size_t asize = 0, esc_i = 0, esize = 0, i = 0, rbuf_end = 0;
76
76
  const char *esc;
77
77
  char *rbuf = NULL;
78
78
 
@@ -76,7 +76,7 @@ module Hamlit
76
76
  paren_open = 0
77
77
 
78
78
  tokens.each do |token|
79
- (row, col), type, str = token
79
+ _, type, _ = token
80
80
  case type
81
81
  when :on_comma
82
82
  if array_open == 0 && brace_open == 0 && paren_open == 0
@@ -72,7 +72,7 @@ module Hamlit
72
72
  handler = Hamlit::RailsTemplate.new
73
73
  template = ActionView::Template.new(template, 'inline template', handler, { locals: [] })
74
74
  code = handler.call(template)
75
- source = <<-end_src
75
+ <<-end_src
76
76
  def _inline_template___2144273726781623612_70327218547300(local_assigns, output_buffer)
77
77
  _old_virtual_path, @virtual_path = @virtual_path, nil;_old_output_buffer = @output_buffer;;#{code}
78
78
  ensure
@@ -1,5 +1,4 @@
1
1
  require 'hamlit/parser/haml_error'
2
- require 'hamlit/parser/haml_buffer'
3
2
  require 'hamlit/parser/haml_options'
4
3
  require 'hamlit/parser/haml_compiler'
5
4
  require 'hamlit/parser/haml_parser'
@@ -724,4 +723,5 @@ class Object
724
723
  def is_haml?
725
724
  false
726
725
  end
726
+ alias :is_haml? :is_haml?
727
727
  end
@@ -1,6 +1,5 @@
1
1
  require 'strscan'
2
2
  require 'hamlit/parser/haml_util'
3
- require 'hamlit/parser/haml_buffer'
4
3
  require 'hamlit/parser/haml_error'
5
4
 
6
5
  module Hamlit
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hamlit
3
- VERSION = '2.8.5'
3
+ VERSION = '2.8.6'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hamlit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.5
4
+ version: 2.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-06 00:00:00.000000000 Z
11
+ date: 2017-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: temple
@@ -368,7 +368,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
368
368
  version: '0'
369
369
  requirements: []
370
370
  rubyforge_project:
371
- rubygems_version: 2.6.13
371
+ rubygems_version: 2.7.3
372
372
  signing_key:
373
373
  specification_version: 4
374
374
  summary: High Performance Haml Implementation