unf_ext 0.0.6 → 0.0.7.1

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: 3766b052147e9a6666f478e0b897311dcb0b9b35
4
+ data.tar.gz: 5f1a5c27db0f30b0137b362047e6d121bbea4b6a
5
+ SHA512:
6
+ metadata.gz: 6b19cccf3babf5276b6b6b53deaa3d2c8db8edb8f5c818c20b55b95454f85657c1559ed37801d80c6f2afe28faf234614ae6c4623cae7d716c757df521926be9
7
+ data.tar.gz: ba50cf798136d0f20fe873bc4cda5da6ccec240a6e21c08170722b1b4e8232e7d9a8cff107fdadf417899da978abacbf9c6c31fb6cab2caa7eb176aed7478332
@@ -0,0 +1,18 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - ree
5
+ - 1.9.3
6
+ - 2.0.0
7
+ - 2.1.6
8
+ - 2.2.2
9
+ - ruby-head
10
+ - rbx-18mode
11
+ - rbx-19mode
12
+ matrix:
13
+ allow_failures:
14
+ - rvm: ruby-head
15
+ - rvm: rbx-18mode
16
+ - rvm: rbx-19mode
17
+ before_script:
18
+ - rake compile
@@ -0,0 +1,20 @@
1
+ ## 0.0.7.1 (2015-04-18)
2
+
3
+ - Windows fat binary gems no longer require libstd++ to
4
+ run, which are statically linked.
5
+
6
+ - Add a fat binary gem for x64-mingw32 (64bit Windows).
7
+
8
+ - Windows fat binary gems now include binaries for Ruby up to 2.2.
9
+
10
+ ## 0.0.6 (2013-02-16)
11
+
12
+ - Migrate from Jeweler to Bundler.
13
+
14
+ ## 0.0.5 (2012-05-30)
15
+
16
+ - Fix a type error for strict compilers.
17
+
18
+ ## 0.0.4 (2011-12-08)
19
+
20
+ - Release under the current name of `unf_ext`.
@@ -1,7 +1,7 @@
1
1
  The MIT License
2
2
 
3
3
  Copyright (c) 2010 Takeru Ohta <phjgt308@gmail.com>
4
- Copyright (c) 2011, 2012, 2013 Akinori MUSHA <knu@idaemons.org> (extended Ruby support)
4
+ Copyright (c) 2011-2015 Akinori MUSHA <knu@idaemons.org> (extended Ruby support)
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -52,7 +52,7 @@ License
52
52
  -------
53
53
 
54
54
  Copyright (c) 2010 Takeru Ohta
55
- Copyright (c) 2011, 2012, 2013 Akinori MUSHA
55
+ Copyright (c) 2011-2015 Akinori MUSHA
56
56
 
57
57
  Licensed under the MIT license.
58
58
  See `LICENSE` for details.
data/Rakefile CHANGED
@@ -5,8 +5,9 @@ gemspec = Bundler::GemHelper.gemspec
5
5
 
6
6
  require 'rake/extensiontask'
7
7
  Rake::ExtensionTask.new('unf_ext', gemspec) do |ext|
8
- ext.cross_compile = true
9
- ext.cross_platform = 'x86-mingw32'
8
+ ext.cross_compile = true
9
+ ext.cross_platform = %w[x86-mingw32 x64-mingw32]
10
+ ext.cross_config_options << '--with-ldflags="-static-libgcc"' << '--with-static-libstdc++'
10
11
  end
11
12
 
12
13
  require 'rake/testtask'
@@ -1,6 +1,11 @@
1
1
  require 'mkmf'
2
- have_library('stdc++')
3
- have_header('ruby/encoding.h')
2
+
3
+ if with_config('static-libstdc++')
4
+ $LDFLAGS << ' ' << `#{CONFIG['CC']} -print-file-name=libstdc++.a`.chomp
5
+ else
6
+ have_library('stdc++')
7
+ end
8
+
4
9
  create_makefile 'unf_ext'
5
10
 
6
11
  unless CONFIG['CXX']
@@ -1,5 +1,5 @@
1
1
  module UNF
2
2
  class Normalizer
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7.1"
4
4
  end
5
5
  end
@@ -8,7 +8,6 @@ rescue Bundler::BundlerError => e
8
8
  exit e.status_code
9
9
  end
10
10
  require 'test/unit'
11
- require 'shoulda'
12
11
 
13
12
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
13
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..'))
@@ -3,12 +3,12 @@ require 'helper'
3
3
  require 'pathname'
4
4
 
5
5
  class TestUnf < Test::Unit::TestCase
6
- should "raise ArgumentError if an unknown normalization form is given" do
6
+ test "raise ArgumentError if an unknown normalization form is given" do
7
7
  normalizer = UNF::Normalizer.new
8
8
  assert_raises(ArgumentError) { normalizer.normalize("が", :nfck) }
9
9
  end
10
10
 
11
- should "pass all tests bundled with the original unf" do
11
+ test "pass all tests bundled with the original unf" do
12
12
  normalizer = UNF::Normalizer.new
13
13
  open(Pathname(__FILE__).dirname + 'normalization-test.txt', 'r:utf-8').each_slice(6) { |lines|
14
14
  flunk "broken test file" if lines.size != 6 || lines.pop !~ /^$/
@@ -24,9 +24,15 @@ Gem::Specification.new do |gem|
24
24
  "README.md"
25
25
  ]
26
26
 
27
- gem.add_development_dependency("shoulda", [">= 0"])
27
+ if RUBY_VERSION < "1.9"
28
+ gem.add_development_dependency('i18n', '< 0.7.0')
29
+ # Cap dependency on activesupport with < 4.0 on behalf of
30
+ # shoulda-matchers to satisfy bundler.
31
+ gem.add_development_dependency("activesupport", ["< 4.0"])
32
+ end
33
+ gem.add_development_dependency("rake", [">= 0.9.2.2"])
28
34
  gem.add_development_dependency("rdoc", ["> 2.4.2"])
29
35
  gem.add_development_dependency("bundler", [">= 1.2"])
30
36
  gem.add_development_dependency("rake-compiler", [">= 0.7.9"])
31
-
37
+ gem.add_development_dependency 'test-unit'
32
38
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unf_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
5
- prerelease:
4
+ version: 0.0.7.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Takeru Ohta
@@ -10,72 +9,78 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-02-16 00:00:00.000000000 Z
12
+ date: 2015-04-17 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
- name: shoulda
15
+ name: rake
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - ">="
21
19
  - !ruby/object:Gem::Version
22
- version: '0'
20
+ version: 0.9.2.2
23
21
  type: :development
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - ">="
29
26
  - !ruby/object:Gem::Version
30
- version: '0'
27
+ version: 0.9.2.2
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: rdoc
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>'
32
+ - - ">"
37
33
  - !ruby/object:Gem::Version
38
34
  version: 2.4.2
39
35
  type: :development
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>'
39
+ - - ">"
45
40
  - !ruby/object:Gem::Version
46
41
  version: 2.4.2
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: bundler
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ! '>='
46
+ - - ">="
53
47
  - !ruby/object:Gem::Version
54
48
  version: '1.2'
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ! '>='
53
+ - - ">="
61
54
  - !ruby/object:Gem::Version
62
55
  version: '1.2'
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: rake-compiler
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
- - - ! '>='
60
+ - - ">="
69
61
  - !ruby/object:Gem::Version
70
62
  version: 0.7.9
71
63
  type: :development
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
- - - ! '>='
67
+ - - ">="
77
68
  - !ruby/object:Gem::Version
78
69
  version: 0.7.9
70
+ - !ruby/object:Gem::Dependency
71
+ name: test-unit
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
79
84
  description: Unicode Normalization Form support library for CRuby
80
85
  email:
81
86
  - knu@idaemons.org
@@ -86,8 +91,10 @@ extra_rdoc_files:
86
91
  - LICENSE.txt
87
92
  - README.md
88
93
  files:
89
- - .document
90
- - .gitignore
94
+ - ".document"
95
+ - ".gitignore"
96
+ - ".travis.yml"
97
+ - CHANGELOG.md
91
98
  - Gemfile
92
99
  - LICENSE.txt
93
100
  - README.md
@@ -109,27 +116,27 @@ files:
109
116
  homepage: https://github.com/knu/ruby-unf_ext
110
117
  licenses:
111
118
  - MIT
119
+ metadata: {}
112
120
  post_install_message:
113
121
  rdoc_options: []
114
122
  require_paths:
115
123
  - lib
116
124
  required_ruby_version: !ruby/object:Gem::Requirement
117
- none: false
118
125
  requirements:
119
- - - ! '>='
126
+ - - ">="
120
127
  - !ruby/object:Gem::Version
121
128
  version: '0'
122
129
  required_rubygems_version: !ruby/object:Gem::Requirement
123
- none: false
124
130
  requirements:
125
- - - ! '>='
131
+ - - ">="
126
132
  - !ruby/object:Gem::Version
127
133
  version: '0'
128
134
  requirements: []
129
135
  rubyforge_project:
130
- rubygems_version: 1.8.24
136
+ rubygems_version: 2.4.5
131
137
  signing_key:
132
- specification_version: 3
138
+ specification_version: 4
133
139
  summary: Unicode Normalization Form support library for CRuby
134
140
  test_files:
135
141
  - test/test_unf_ext.rb
142
+ has_rdoc: