mitie 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: ddea728d3e6814fe8e9841e96f9aaab39a13d8b9573331136ff5236d9abfd364
4
- data.tar.gz: 391430fe23874d3a6aed47b8d0fd54ea517a85cf7331834a2732a0216bdc63e3
3
+ metadata.gz: e0ceaa2d4609a2a1b3b4056d67d88a1b0f55616ac8fd1a0509f070c352a96ea1
4
+ data.tar.gz: 0b90eba1027ca5a46a405a97411d2b5fe193d20666ee8c8bad347bb2c79c225b
5
5
  SHA512:
6
- metadata.gz: fe566863d8c89b08be5538bd736bc6e6131ca728aea221585d81bf6f21228f55e660e0c93d58b8517255383bc5e961d3dfd47f3f28c351ba6c46f71893b6d5e0
7
- data.tar.gz: 355018b0c8bedf1216ef66061758073f57a3574075084e73d54bb277c73aad48c41079c90d5621165479fafca998ae1a913bb2fd79802bf001e76f87eeedc564
6
+ metadata.gz: 8281e51659e08157d305535f3cd242082d4173368c36fa167716771b008a82233d02e43d1015c39e27c4c704ae0ec53935834eb0fefb71dac3b515962987d7eb
7
+ data.tar.gz: 96d3564684f8197651f93238876f2bbeb69f860a8a373f36dcafb578db698555153b320f2bd0c799cd8d5d939ad05c3746c59e907d4ad62cfa4917fbb7ec2313
@@ -1,3 +1,7 @@
1
+ ## 0.1.5 (2021-01-29)
2
+
3
+ - Fixed issue with multibyte characters
4
+
1
5
  ## 0.1.4 (2020-12-28)
2
6
 
3
7
  - Added ARM shared library for Mac
@@ -48,8 +48,8 @@ module Mitie
48
48
 
49
49
  entity = {}
50
50
  if offset
51
- finish = tok[-1][1] + tok[-1][0].size
52
- entity[:text] = text[offset...finish]
51
+ finish = tok[-1][1] + tok[-1][0].bytesize
52
+ entity[:text] = text.byteslice(offset...finish)
53
53
  else
54
54
  entity[:text] = tok.map(&:first)
55
55
  end
@@ -1,3 +1,3 @@
1
1
  module Mitie
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mitie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-29 00:00:00.000000000 Z
11
+ date: 2021-01-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@chartkick.com