harfbuzz 0.3 → 0.4

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: 91353145ce3cd90e818ed73cc55f3c04eca4c2f4
4
- data.tar.gz: 1cce672a648ef09d704538e8ca54b76e40bee79a
2
+ SHA256:
3
+ metadata.gz: 4401c3c179f2d103fb41c0b754774021af45cc7af0de5526e378e28939e43378
4
+ data.tar.gz: c4c2d68da5da9f48bd5521706a17debec1a41d772cc442f0493753b6ab18bd6a
5
5
  SHA512:
6
- metadata.gz: 3992107ed59cae7f51a3049f7ea4d9782a3664f3cb30b114689b135f86250fe004f8ce26e1328542f4ecd7018d24e038ba6a6183e4457be9de81a288d0c4ea9a
7
- data.tar.gz: 26bfdce861b3d20c8875df4434af889b071b8990247ca7e1e2d7fc2603d00b2a110303c1ca270209731bd7b71135751c9430be2db7834d32da050b454f9da419
6
+ metadata.gz: 93df44f68443d7bef5e959e1f331138e46d1c359a6e0231511376ee07813f77662d19fa021c60c7110b21ec6508b617d550cd0cf07abbd19fdd144f202fcba06
7
+ data.tar.gz: fdaf1f46f8a3eddab026be6d259bb74ee0f6a7654e27a119e7867ebc04b67f04ef56a7d7881c23f9806030c85ae0853fa8784c7e288f4ebb0bc82b6e0960e6b9
data/.gitignore CHANGED
@@ -1,3 +1,2 @@
1
1
  .DS_Store
2
- Gemfile.lock
3
- pkg/
2
+ *.gem
@@ -2,6 +2,11 @@
2
2
 
3
3
  Only important or user-facing changes are listed here. See commit log for typos, refactoring, documentation tweaks, etc.
4
4
 
5
+ ## 0.4 / 2018-01-08
6
+
7
+ - Modernize/simplify gem structure.
8
+ - Improve exception messages.
9
+
5
10
  ## 0.3 / 2016-05-10
6
11
 
7
12
  - Add new Harfbuzz bindings:
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
- require 'bundler'
2
- require 'bundler/gem_tasks'
1
+ require 'rubygems/tasks'
3
2
  require 'rake/testtask'
4
3
 
4
+ Gem::Tasks.new
5
5
  Rake::TestTask.new
6
6
 
7
7
  desc 'Run benchmark'
@@ -1,22 +1,22 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'harfbuzz'
3
- s.version = '0.3'
3
+ s.version = '0.4'
4
4
  s.summary = 'Ruby interface to the Harfbuzz text shaping engine'
5
5
  s.author = 'John Labovitz'
6
6
  s.email = 'johnl@johnlabovitz.com'
7
7
  s.description = %q{
8
8
  Harfbuzz is a Ruby interface to the Harfbuzz text shaping engine.
9
9
  }
10
+ s.license = 'MIT'
10
11
  s.homepage = 'http://github.com/jslabovitz/harfbuzz-gem'
11
12
  s.files = `git ls-files`.split("\n")
12
13
  s.test_files = `git ls-files -- test/*`.split("\n")
13
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
14
- s.require_paths = %w{lib}
14
+ s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
15
+ s.require_path = 'lib'
15
16
 
16
- s.add_dependency 'ffi'
17
+ s.add_dependency 'ffi', '~> 1.9'
17
18
 
18
- s.add_development_dependency 'bundler'
19
- s.add_development_dependency 'rake'
20
- s.add_development_dependency 'minitest'
21
- s.add_development_dependency 'minitest-power_assert'
19
+ s.add_development_dependency 'rake', '~> 12.3'
20
+ s.add_development_dependency 'minitest', '~> 5.11'
21
+ s.add_development_dependency 'minitest-power_assert', '~> 0.3'
22
22
  end
@@ -91,7 +91,7 @@ module Harfbuzz
91
91
  end
92
92
 
93
93
  def add_utf8(text, offset=0, length=-1)
94
- raise "expected text in UTF-8 encoding, but received #{text.encoding}" unless text.encoding == Encoding::UTF_8
94
+ raise "Expected text in UTF-8 encoding, but received #{text.encoding} (#{text.inspect})" unless text.encoding == Encoding::UTF_8
95
95
  text_ptr = FFI::MemoryPointer.new(:char, text.bytesize)
96
96
  text_ptr.put_bytes(0, text)
97
97
  Harfbuzz.hb_buffer_add_utf8(@hb_buffer, text_ptr, text.bytesize, offset, length)
metadata CHANGED
@@ -1,85 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harfbuzz
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Labovitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-10 00:00:00.000000000 Z
11
+ date: 2018-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.9'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
26
+ version: '1.9'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rake
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
- - - ">="
31
+ - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '0'
33
+ version: '12.3'
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - ">="
38
+ - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: '0'
40
+ version: '12.3'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: minitest
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
- - - ">="
45
+ - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: '0'
47
+ version: '5.11'
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
- - - ">="
52
+ - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: '0'
54
+ version: '5.11'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: minitest-power_assert
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - ">="
59
+ - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: '0'
61
+ version: '0.3'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - ">="
66
+ - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '0'
68
+ version: '0.3'
83
69
  description: "\n Harfbuzz is a Ruby interface to the Harfbuzz text shaping engine.\n
84
70
  \ "
85
71
  email: johnl@johnlabovitz.com
@@ -89,7 +75,6 @@ extra_rdoc_files: []
89
75
  files:
90
76
  - ".gitignore"
91
77
  - CHANGELOG.md
92
- - Gemfile
93
78
  - LICENSE.txt
94
79
  - README.md
95
80
  - Rakefile
@@ -114,7 +99,8 @@ files:
114
99
  - test/test_shaper.rb
115
100
  - test/test_version.rb
116
101
  homepage: http://github.com/jslabovitz/harfbuzz-gem
117
- licenses: []
102
+ licenses:
103
+ - MIT
118
104
  metadata: {}
119
105
  post_install_message:
120
106
  rdoc_options: []
@@ -132,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
118
  version: '0'
133
119
  requirements: []
134
120
  rubyforge_project:
135
- rubygems_version: 2.6.4
121
+ rubygems_version: 2.7.4
136
122
  signing_key:
137
123
  specification_version: 4
138
124
  summary: Ruby interface to the Harfbuzz text shaping engine
@@ -144,4 +130,3 @@ test_files:
144
130
  - test/test_general.rb
145
131
  - test/test_shaper.rb
146
132
  - test/test_version.rb
147
- has_rdoc:
data/Gemfile DELETED
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # # use local FFI gem
4
- # gem 'ffi', path: '~/src/ffi'
5
-
6
- # Specify your gem's dependencies in itinerary.gemspec
7
- gemspec