nkf 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/ext/nkf/nkf.c +3 -0
  3. data/nkf.gemspec +12 -1
  4. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fca8170e316160daab166a56fa34027d27e4abce7521ab2513bdefcf9d3adf4
4
- data.tar.gz: 1a6aef8236f11b7ba4f193246046e7998794120e720a551a00c97e07c0ac58a0
3
+ metadata.gz: 99fe300695064529e277ba99c695e957548f0e636b2901e7eba88a4a62ac5c6c
4
+ data.tar.gz: 74a4a2835c227cb45348608c0bb2a206ff8462dfae5df7b803638e254e05572d
5
5
  SHA512:
6
- metadata.gz: 8662cd84b89ec4a88a294b49eebd3d8decfeee1775e6beba4b0340c0e40d4aa6fad36be6a2cdf738bbacb61464330af29a3496e8c387fb5f8030de51acd4015f
7
- data.tar.gz: 03da0dc729753c36564d36e1c50b31d46006f38d94b0e39eb033bd186709c62da83d04164c3d9f72e90a013e31c65df3f18b56e0393cbd965400e520f6245136
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 = "0.1.2"
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.2
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: 2022-12-05 00:00:00.000000000 Z
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.4.0.dev
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