nkf 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/nkf/nkf.c +3 -0
- data/nkf.gemspec +12 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99fe300695064529e277ba99c695e957548f0e636b2901e7eba88a4a62ac5c6c
|
4
|
+
data.tar.gz: 74a4a2835c227cb45348608c0bb2a206ff8462dfae5df7b803638e254e05572d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7f58fd74f820302552e7c83271857e63df0d0e622f950570fd1c934efb6f334cc23cf69e8195a26ad79310721a0bb0a06461e098c073c2fefe5be664ae36072
|
7
|
+
data.tar.gz: 54289152cd0158f6f07d5cbfac794175aa75b510ca20ab7f7d6b13b9a01b76eb78e02d81ae2498ddae5be3565f90f175da0b1686945c6a24f19211ea65f697f6
|
data/ext/nkf/nkf.c
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
|
10
10
|
#define RUBY_NKF_REVISION "$Revision$"
|
11
11
|
#define RUBY_NKF_VERSION NKF_VERSION " (" NKF_RELEASE_DATE ")"
|
12
|
+
#define NKF_GEM_VERSION "0.1.3"
|
12
13
|
|
13
14
|
#include "ruby/ruby.h"
|
14
15
|
#include "ruby/encoding.h"
|
@@ -500,4 +501,6 @@ Init_nkf(void)
|
|
500
501
|
rb_define_const(mNKF, "NKF_VERSION", rb_str_new2(NKF_VERSION));
|
501
502
|
/* Release date of nkf */
|
502
503
|
rb_define_const(mNKF, "NKF_RELEASE_DATE", rb_str_new2(NKF_RELEASE_DATE));
|
504
|
+
/* Version of nkf library */
|
505
|
+
rb_define_const(mNKF, "GEM_VERSION", rb_str_new_cstr(NKF_GEM_VERSION));
|
503
506
|
}
|
data/nkf.gemspec
CHANGED
@@ -1,6 +1,16 @@
|
|
1
|
+
source_version = ["", "ext/nkf/"].find do |dir|
|
2
|
+
begin
|
3
|
+
break File.open(File.join(__dir__, "#{dir}nkf.c")) {|f|
|
4
|
+
f.gets("\n#define NKF_GEM_VERSION ")
|
5
|
+
f.gets[/\s*"(.+)"/, 1]
|
6
|
+
}
|
7
|
+
rescue Errno::ENOENT
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
1
11
|
Gem::Specification.new do |spec|
|
2
12
|
spec.name = "nkf"
|
3
|
-
spec.version =
|
13
|
+
spec.version = source_version
|
4
14
|
spec.authors = ["NARUSE Yui"]
|
5
15
|
spec.email = ["naruse@airemix.jp"]
|
6
16
|
|
@@ -21,4 +31,5 @@ Gem::Specification.new do |spec|
|
|
21
31
|
spec.bindir = "exe"
|
22
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
33
|
spec.require_paths = ["lib"]
|
34
|
+
spec.extensions = ["ext/nkf/extconf.rb"]
|
24
35
|
end
|
metadata
CHANGED
@@ -1,20 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nkf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NARUSE Yui
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby extension for Network Kanji Filter
|
14
14
|
email:
|
15
15
|
- naruse@airemix.jp
|
16
16
|
executables: []
|
17
|
-
extensions:
|
17
|
+
extensions:
|
18
|
+
- ext/nkf/extconf.rb
|
18
19
|
extra_rdoc_files: []
|
19
20
|
files:
|
20
21
|
- ".git-blame-ignore-revs"
|
@@ -58,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
59
|
- !ruby/object:Gem::Version
|
59
60
|
version: '0'
|
60
61
|
requirements: []
|
61
|
-
rubygems_version: 3.
|
62
|
+
rubygems_version: 3.5.0.dev
|
62
63
|
signing_key:
|
63
64
|
specification_version: 4
|
64
65
|
summary: Ruby extension for Network Kanji Filter
|