nkf 0.1.0 → 0.1.1

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
2
  SHA256:
3
- metadata.gz: 58b94b86db23f7c0d37177682e6518b12e268f419c0cbbff8f8ba80840227a1c
4
- data.tar.gz: 92de3688e975436deeed4bfabe31b3a12316a95666b15555143ed756c415f90e
3
+ metadata.gz: d91d0012de880dc327a501e8cbcf616c0bf94f3631a7ffcfe7d312df4ee234d3
4
+ data.tar.gz: '0305883ba08acedfca7e3ecfbedd6046519130091e297e84b31f2c164cd557a1'
5
5
  SHA512:
6
- metadata.gz: df67191af5aefe0f1064376a3a77019c385004173f2b89499aa3d4ada0a702be84a5cf7f095f5a982eed2915cae87fac70018c6cf8c22f427a27584aed13dadd
7
- data.tar.gz: f999e10fba1b9e82e69512f2bbfdc1bb26e01de4c393652fa5f55591375641d9073f06788cd7a7ee889d701a81f4cbb3c5562eae03e62161c77d12a5d713f8a1
6
+ metadata.gz: 1e4d3a3a8d83b61eb5cd2800ffa606f288af719d09b936ed5357a84d2913f33629e2a752a03bb3bf53f59f3bdd5a0e9e1311110266aba448d873e54a34ce03d6
7
+ data.tar.gz: fc812b17abfdf9aea0e9eeacb62721e42974ba39749c5625be1022e743e030c2888f160101f79bcf02bd3a260bbc5007336802bba7fd32fd493a26a8cd64f6da
@@ -7,18 +7,16 @@ jobs:
7
7
  name: build (${{ matrix.ruby }} / ${{ matrix.os }})
8
8
  strategy:
9
9
  matrix:
10
- ruby: [ 2.7, 2.6, 2.5, head ]
10
+ ruby: [ '3.0', 2.7, 2.6, 2.5, head ]
11
11
  os: [ ubuntu-latest, macos-latest ]
12
12
  runs-on: ${{ matrix.os }}
13
13
  steps:
14
- - uses: actions/checkout@master
14
+ - uses: actions/checkout@v2
15
15
  - name: Set up Ruby
16
16
  uses: ruby/setup-ruby@v1
17
17
  with:
18
18
  ruby-version: ${{ matrix.ruby }}
19
19
  - name: Install dependencies
20
- run: |
21
- gem install bundler --no-document
22
- bundle install
20
+ run: bundle install
23
21
  - name: Run test
24
22
  run: rake compile test
@@ -30,7 +30,7 @@
30
30
  /* --exec-in, --exec-out option
31
31
  * require pipe, fork, execvp and so on.
32
32
  * please undef this on MS-DOS, MinGW
33
- * this is still buggy arround child process
33
+ * this is still buggy around child process
34
34
  */
35
35
  /* #define EXEC_IO */
36
36
 
@@ -581,7 +581,7 @@ static const unsigned char cv[]= {
581
581
  0x00,0x00};
582
582
 
583
583
 
584
- /* X0201 kana conversion table for daguten */
584
+ /* X0201 kana conversion table for dakuten */
585
585
  /* 90-9F A0-DF */
586
586
  static const unsigned char dv[]= {
587
587
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
@@ -602,7 +602,7 @@ static const unsigned char dv[]= {
602
602
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
603
603
  0x00,0x00};
604
604
 
605
- /* X0201 kana conversion table for han-daguten */
605
+ /* X0201 kana conversion table for han-dakuten */
606
606
  /* 90-9F A0-DF */
607
607
  static const unsigned char ev[]= {
608
608
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
@@ -623,7 +623,7 @@ static const unsigned char ev[]= {
623
623
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
624
624
  0x00,0x00};
625
625
 
626
- /* X0201 kana to X0213 conversion table for han-daguten */
626
+ /* X0201 kana to X0213 conversion table for han-dakuten */
627
627
  /* 90-9F A0-DF */
628
628
  static const unsigned char ev_x0213[]= {
629
629
  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
@@ -3817,7 +3817,7 @@ oconv_newline(void (*func)(nkf_char, nkf_char))
3817
3817
  LF new line
3818
3818
  SP space
3819
3819
 
3820
- This fold algorthm does not preserve heading space in a line.
3820
+ This fold algorithm does not preserve heading space in a line.
3821
3821
  This is the main difference from fmt.
3822
3822
  */
3823
3823
 
@@ -6787,7 +6787,7 @@ options(unsigned char *cp)
6787
6787
  case 'S': /* Shift_JIS input */
6788
6788
  input_encoding = nkf_enc_from_index(SHIFT_JIS);
6789
6789
  continue;
6790
- case 'Z': /* Convert X0208 alphabet to asii */
6790
+ case 'Z': /* Convert X0208 alphabet to ascii */
6791
6791
  /* alpha_f
6792
6792
  bit:0 Convert JIS X 0208 Alphabet to ASCII
6793
6793
  bit:1 Convert Kankaku to one space
@@ -16,8 +16,8 @@
16
16
  #define X0201_DEFAULT TRUE
17
17
  #endif
18
18
 
19
- #if DEFAULT_NEWLINE == 0x0D0A
20
- #elif DEFAULT_NEWLINE == 0x0D
19
+ #if defined(DEFAULT_NEWLINE) && DEFAULT_NEWLINE == 0x0D0A
20
+ #elif defined(DEFAULT_NEWLINE) && DEFAULT_NEWLINE == 0x0D
21
21
  #else
22
22
  #define DEFAULT_NEWLINE 0x0A
23
23
  #endif
data/ext/nkf/nkf.c CHANGED
@@ -458,7 +458,7 @@ rb_nkf_guess(VALUE obj, VALUE src)
458
458
  * with this and -x option, nkf can be used as UTF converter.
459
459
  * (In other words, without this and -x option, nkf doesn't save some characters)
460
460
  *
461
- * When nkf convert string which related to path, you should use this opion.
461
+ * When nkf convert string which related to path, you should use this option.
462
462
  *
463
463
  * === --cap-input
464
464
  *
data/nkf.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "nkf"
3
- spec.version = "0.1.0"
3
+ spec.version = "0.1.1"
4
4
  spec.authors = ["NARUSE Yui"]
5
5
  spec.email = ["naruse@airemix.jp"]
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nkf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - NARUSE Yui
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-18 00:00:00.000000000 Z
11
+ date: 2021-10-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby extension for Network Kanji Filter
14
14
  email:
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  requirements: []
59
- rubygems_version: 3.2.0.rc.1
59
+ rubygems_version: 3.2.22
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: Ruby extension for Network Kanji Filter