rucy 0.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c0b7b7213f348219974af330be0736100deb8a4cfdf64c4d054f9fc1805d987
4
- data.tar.gz: 4a310f68ba7ea36f7bbcc50c6877faaed482373961e30b0739f1d32028677d5c
3
+ metadata.gz: 56529aaf0f2ed74b9dd36e7d9e95897b7bd9267bae66b633e106ea482bb2459a
4
+ data.tar.gz: 91c637b05fe1fd957a44ec5e668f171601d25421d867392ffdd9fbf91b0f8cb0
5
5
  SHA512:
6
- metadata.gz: e860567f261af864e356afa4f1696daea25250df6bb16ad9d47b8fd8056b8f69a383af5bb1f7a6faab619f873510392978dff2789cefd26a07fe7562c952b321
7
- data.tar.gz: 4afb44af2a00612432ded96767d7ffa398788d95c4176151c2834b96c410af5aecb86a8ba133d3866911d3414cc56e00c2494d4870d05346990b36992b793d11
6
+ metadata.gz: 61b4117c22f4eb8a10b18c6471a57f4570598d4d1d51f590e903a90dbbe9ceb53e9207c47714ee07ce8abb5ce2db9b4d6c652b07dfbcb6591dccc6d9a7848ed7
7
+ data.tar.gz: dc448333935c1171108fbb6a40ee5b5521f6686fcfbd1fa5607e427e10d4ff03d853f50b2d8690531e076a0a2bd8b3c4cc13282aaef0805ae027b2d89e020812
data/ChangeLog.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # rucy ChangeLog
2
2
 
3
3
 
4
+ ## [v0.3.1] - 2025-01-13
5
+
6
+ - Update LICENSE
7
+ - is_kind_of() -> is_a()
8
+
9
+
4
10
  ## [v0.3] - 2024-07-06
5
11
 
6
12
  - Support Windows
data/Gemfile.lock CHANGED
@@ -9,7 +9,7 @@ GEM
9
9
 
10
10
  PLATFORMS
11
11
  arm64-darwin-21
12
- arm64-darwin-22
12
+ arm64-darwin-23
13
13
 
14
14
  DEPENDENCIES
15
15
  rake
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 xord.org
3
+ Copyright (c) 2011 xord.org
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/Rakefile CHANGED
@@ -1,6 +1,5 @@
1
1
  # -*- mode: ruby -*-
2
2
 
3
-
4
3
  %w[../xot .]
5
4
  .map {|s| File.expand_path "#{s}/lib", __dir__}
6
5
  .each {|s| $:.unshift s if !$:.include?(s) && File.directory?(s)}
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3
1
+ 0.3.1
@@ -108,7 +108,7 @@ namespace Rucy
108
108
 
109
109
  Value klass () const;
110
110
 
111
- bool is_kind_of (Value klass) const;
111
+ bool is_a (Value klass) const;
112
112
 
113
113
  Value inspect () const;
114
114
 
data/rucy.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.platform = Gem::Platform::RUBY
26
26
  s.required_ruby_version = '>= 3.0.0'
27
27
 
28
- s.add_runtime_dependency 'xot', '~> 0.3'
28
+ s.add_runtime_dependency 'xot', '~> 0.3.1'
29
29
 
30
30
  s.files = `git ls-files`.split $/
31
31
  s.executables = s.files.grep(%r{^bin/}) {|f| File.basename f}
data/src/extension.cpp CHANGED
@@ -15,7 +15,7 @@ namespace Rucy
15
15
  if (!klass)
16
16
  argument_error(__FILE__, __LINE__);
17
17
 
18
- if (!obj.is_kind_of(klass))
18
+ if (!obj.is_a(klass))
19
19
  {
20
20
  RUCY_SYMBOL(clas, "class");
21
21
  RUCY_SYM(name);
@@ -33,7 +33,9 @@ namespace Rucy
33
33
  int n1, int n2, int n3, int n4, int n5,
34
34
  int n6, int n7, int n8, int n9, int n10)
35
35
  {
36
- if (nargs < 0 || nargs_expected_n0 < 0)
36
+ if (nargs < 0)
37
+ argument_error(__FILE__, __LINE__);
38
+ if (nargs_expected_n0 < 0)
37
39
  argument_error(__FILE__, __LINE__);
38
40
 
39
41
  if (
data/src/value.cpp.erb CHANGED
@@ -106,13 +106,13 @@ namespace Rucy
106
106
  bool
107
107
  Value::is_i () const
108
108
  {
109
- return FIXNUM_P(val) || type() == RUBY_T_BIGNUM || is_kind_of(rb_cInteger);
109
+ return FIXNUM_P(val) || type() == RUBY_T_BIGNUM || is_a(rb_cInteger);
110
110
  }
111
111
 
112
112
  bool
113
113
  Value::is_f () const
114
114
  {
115
- return RB_FLOAT_TYPE_P(val) || is_kind_of(rb_cFloat);
115
+ return RB_FLOAT_TYPE_P(val) || is_a(rb_cFloat);
116
116
  }
117
117
 
118
118
  bool
@@ -124,25 +124,25 @@ namespace Rucy
124
124
  bool
125
125
  Value::is_s () const
126
126
  {
127
- return type() == RUBY_T_STRING || is_kind_of(rb_cString);
127
+ return type() == RUBY_T_STRING || is_a(rb_cString);
128
128
  }
129
129
 
130
130
  bool
131
131
  Value::is_sym () const
132
132
  {
133
- return SYMBOL_P(val) || is_kind_of(rb_cSymbol);
133
+ return SYMBOL_P(val) || is_a(rb_cSymbol);
134
134
  }
135
135
 
136
136
  bool
137
137
  Value::is_array () const
138
138
  {
139
- return type() == RUBY_T_ARRAY || is_kind_of(rb_cArray);
139
+ return type() == RUBY_T_ARRAY || is_a(rb_cArray);
140
140
  }
141
141
 
142
142
  bool
143
143
  Value::is_hash () const
144
144
  {
145
- return type() == RUBY_T_HASH || is_kind_of(rb_cHash);
145
+ return type() == RUBY_T_HASH || is_a(rb_cHash);
146
146
  }
147
147
 
148
148
  bool
@@ -308,7 +308,7 @@ namespace Rucy
308
308
  }
309
309
 
310
310
  bool
311
- Value::is_kind_of (Value klass) const
311
+ Value::is_a (Value klass) const
312
312
  {
313
313
  return rb_obj_is_kind_of(val, klass);
314
314
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rucy
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - xordog
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-05 00:00:00.000000000 Z
11
+ date: 2025-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xot
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: 0.3.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.3'
26
+ version: 0.3.1
27
27
  description: This library helps you to develop Ruby Extension by C++.
28
28
  email: xordog@gmail.com
29
29
  executables: