ft2-ruby 0.1.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 49860fd9d1913af4affc04b5f3ccd63bceefb2eb
4
+ data.tar.gz: 49f6d71a8805b3bb34e142c4369c8429097b4420
5
+ SHA512:
6
+ metadata.gz: 1a4f302c3b88a0e7f087e4c79586b08d53141590e93dd65eb5f3ca75aadea76b7ff1d508f9685c12a229c67270ab90190a34b7703b8756b37dab9efcdcd041e2
7
+ data.tar.gz: 004c452cea4cd3ab294e96379e9cb104e760bc9abdf2cbcf0ad24ca2ac1238fe6504d1a3a9d57eb071c783b2bde2dc24272dfb9f33188fb82d4973cc0b9f847e
@@ -1,5 +1,9 @@
1
1
  # ft2-ruby changelog #
2
2
 
3
+ ## 1.0.0 ##
4
+ ### Wed Nov 20 13:28:20 2013 by [mpeteuil](http://www.github.com/mpeteuil) ###
5
+ - Now raises FT2::Error instead of Exception
6
+
3
7
  ## 0.1.4 ##
4
8
  ### Fri Apr 27 11:39:28 2012 by [sethvargo](http://www.github.com/sethvargo) ###
5
9
  - Added MIT license
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Paul Duncan
1
+ Copyright (c) 2013 CustomInk
2
2
 
3
3
  MIT License
4
4
 
@@ -47,6 +47,8 @@ static VALUE mFt2,
47
47
  mPixelMode,
48
48
  mRenderMode,
49
49
 
50
+ eFt2Error,
51
+
50
52
  cBitmap,
51
53
  cBitmapGlyph,
52
54
  cCharMap,
@@ -83,9 +85,9 @@ static void handle_error(FT_Error err) {
83
85
 
84
86
  for (i = 0; ((unsigned int) i) < sizeof(errors) / sizeof(errors[0]); i++)
85
87
  if (err == errors[i].code)
86
- rb_raise(rb_eException, "FreeType2 Error: %s.", errors[i].str);
88
+ rb_raise(eFt2Error, "FreeType2 Error: %s.", errors[i].str);
87
89
 
88
- rb_raise(rb_eException, "FreeType2 Error: Unknown error %d.", err);
90
+ rb_raise(eFt2Error, "FreeType2 Error: Unknown error %d.", err);
89
91
  }
90
92
 
91
93
  static double ft_fixed_to_double(FT_Fixed fixed) {
@@ -2864,6 +2866,8 @@ void Init_ft2(void) {
2864
2866
  /* define top-level FT2 module */
2865
2867
  mFt2 = rb_define_module("FT2");
2866
2868
 
2869
+ eFt2Error = rb_define_class_under(mFt2, "Error", rb_eStandardError);
2870
+
2867
2871
  rb_define_singleton_method(mFt2, "version", ft_version, 0);
2868
2872
 
2869
2873
  define_constants();
@@ -15,4 +15,5 @@ Gem::Specification.new do |gem|
15
15
  gem.name = "ft2-ruby"
16
16
  gem.require_paths = ["lib"]
17
17
  gem.version = FT2::VERSION
18
+ gem.license = "MIT"
18
19
  end
@@ -1,3 +1,3 @@
1
1
  module FT2
2
- VERSION = "0.1.4"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ft2-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
5
- prerelease:
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Paul Duncan
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-10 00:00:00.000000000 Z
11
+ date: 2013-11-20 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: FreeType2 bindings for Ruby 1.8 and 1.9
15
14
  email:
@@ -33,27 +32,27 @@ files:
33
32
  - ft2-ruby.gemspec
34
33
  - lib/ft2-ruby/version.rb
35
34
  homepage: https://github.com/customink/ft2-ruby
36
- licenses: []
35
+ licenses:
36
+ - MIT
37
+ metadata: {}
37
38
  post_install_message:
38
39
  rdoc_options: []
39
40
  require_paths:
40
41
  - lib
41
42
  required_ruby_version: !ruby/object:Gem::Requirement
42
- none: false
43
43
  requirements:
44
- - - ! '>='
44
+ - - '>='
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  required_rubygems_version: !ruby/object:Gem::Requirement
48
- none: false
49
48
  requirements:
50
- - - ! '>='
49
+ - - '>='
51
50
  - !ruby/object:Gem::Version
52
51
  version: '0'
53
52
  requirements: []
54
53
  rubyforge_project:
55
- rubygems_version: 1.8.23
54
+ rubygems_version: 2.0.3
56
55
  signing_key:
57
- specification_version: 3
56
+ specification_version: 4
58
57
  summary: FreeType2 bindings for Ruby
59
58
  test_files: []