hamlit 2.8.0 → 2.8.1

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: 76bc9ab1e8d7db1673f0e064e6c49df5c90b314f
4
- data.tar.gz: ea809b1885e208feda51f67dedc79c9fb6603f0a
3
+ metadata.gz: 45c9c817fb445372b286dad6f6d91cb2d34ac599
4
+ data.tar.gz: 65dd7e5a3e4779e50c6832ebcb6713abcb523b7d
5
5
  SHA512:
6
- metadata.gz: 5e2e1820481a329f96c02256a0bc106f4ab0fbf10776cb8ac931f30a27c565f5a584da7f5eb77703690d7b77864c50bf7aad0f7d3a2e72f9b493d35f59b2995e
7
- data.tar.gz: 48658e6ad6370dd1d2805755deb800cb576e74102fe1cd3448bf08e6686c99bc78ac183e8da7df576f76dd9fc4022661d755e671c1ad2bb0a5cd12bf020cc37f
6
+ metadata.gz: 46e30855eb79ed33bf267c8063220b86174efcb9a9f9639db5615b04c0d3e7b4f2167f2893cfb1673577e97f50511a00617d431347e527b71a664cdd51735f1f
7
+ data.tar.gz: d656ca8590ac92d82ff795656c39a9880bb57eb054b526b8c820f74e0547095ee41c83661dbb1f270eb3ad1c167c249e3e729c9cef0df977932752aee510e5d8
data/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ 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.1](https://github.com/k0kubun/hamlit/compare/v2.8.0...v2.8.1) - 2017-04-03
8
+
9
+ ### Fixed
10
+
11
+ - Fix SEGV caused by nil in old attributes
12
+ [#101](https://github.com/k0kubun/hamlit/issues/101). *Thanks to @FND*
13
+
14
+ ### Fixed
15
+
7
16
  ## [2.8.0](https://github.com/k0kubun/hamlit/compare/v2.7.5...v2.8.0) - 2017-02-12
8
17
 
9
18
  ### Changed
data/ext/hamlit/hamlit.c CHANGED
@@ -325,6 +325,9 @@ merge_all_attrs(VALUE hashes)
325
325
 
326
326
  for (i = 0; i < RARRAY_LEN(hashes); i++) {
327
327
  hash = rb_ary_entry(hashes, i);
328
+ if (!RB_TYPE_P(hash, T_HASH)) {
329
+ rb_raise(rb_eArgError, "Non-hash object is given to attributes!");
330
+ }
328
331
  rb_hash_foreach(hash, merge_all_attrs_i, merged);
329
332
  }
330
333
  return merged;
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hamlit
3
- VERSION = '2.8.0'
3
+ VERSION = '2.8.1'
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.0
4
+ version: 2.8.1
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-02-12 00:00:00.000000000 Z
11
+ date: 2017-04-03 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.5.1
371
+ rubygems_version: 2.5.2
372
372
  signing_key:
373
373
  specification_version: 4
374
374
  summary: High Performance Haml Implementation