ruby_header_parser 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/CONFIG.md +1 -1
- data/README.md +4 -3
- data/config/default.yml +1 -0
- data/lib/ruby_header_parser/config.rb +1 -1
- data/lib/ruby_header_parser/enum_definition.rb +1 -1
- data/lib/ruby_header_parser/parser.rb +5 -5
- data/lib/ruby_header_parser/version.rb +1 -1
- data/rbs_collection.lock.yaml +14 -10
- data/rbs_collection.yaml +1 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc0d75280b017f256e41827e1f14c8b8b0d18cf52c491c017d64039242a22197
|
4
|
+
data.tar.gz: 4f11bceded579fced47f92c709e69aad913e65a245347e7dd9a0c734b25568f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9c1bd0ec1816fe63836a3d7fb957b7f197daf3152d61e012410e46da36a724fc3ffd38c0e4cc46ebf8bbf46ed63f0291701b29cb2b027051afbff2b9a607d5d
|
7
|
+
data.tar.gz: ab355926c53b980c1a0895531cfe8cf09c7410c68e433e6767db0cac1bf3a25af0d7546e4d6c4d5737184b5325e02730464f262d946ff60578231d8fbd86da98
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
## [Unreleased]
|
2
|
+
[full changelog](http://github.com/ruby-go-gem/ruby_header_parser/compare/v0.3.0...main)
|
2
3
|
|
3
|
-
## [0.
|
4
|
+
## [0.3.0](https://github.com/ruby-go-gem/ruby_header_parser/releases/tag/v0.3.0) - 2024-11-24
|
5
|
+
[full changelog](http://github.com/ruby-go-gem/ruby_header_parser/compare/v0.2.0...v0.3.0)
|
6
|
+
|
7
|
+
* Support `RARRAY_` https://github.com/ruby-go-gem/ruby_header_parser/pull/21
|
8
|
+
|
9
|
+
## [0.2.0](https://github.com/ruby-go-gem/ruby_header_parser/releases/tag/v0.2.0) - 2024-10-21
|
10
|
+
[full changelog](http://github.com/ruby-go-gem/ruby_header_parser/compare/v0.1.0...v0.2.0)
|
11
|
+
|
12
|
+
* Transfer to ruby-go-gem org https://github.com/ruby-go-gem/ruby_header_parser/pull/17
|
13
|
+
|
14
|
+
## [0.1.0](https://github.com/ruby-go-gem/ruby_header_parser/releases/tag/v0.1.0) - 2024-10-14
|
4
15
|
|
5
16
|
- Initial release
|
data/CONFIG.md
CHANGED
@@ -45,7 +45,7 @@ enum:
|
|
45
45
|
```
|
46
46
|
|
47
47
|
## Full configuration file
|
48
|
-
[config/default.yml](config/default.yml) is used by https://github.com/
|
48
|
+
[config/default.yml](config/default.yml) is used by https://github.com/ruby-go-gem/go-gem-wrapper to generate bindings for Go.
|
49
49
|
|
50
50
|
## `function.include_name`, `struct.include_name`, `type.include_name`, `enum.include_name`
|
51
51
|
Return functions and structures that match the condition with a [RubyHeaderParser::Parser](lib/ruby_header_parser/parser.rb)
|
data/README.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# RubyHeaderParser
|
2
2
|
Parser for `ruby.h`
|
3
3
|
|
4
|
-
[![
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/ruby_header_parser.svg)](https://badge.fury.io/rb/ruby_header_parser)
|
5
|
+
[![test](https://github.com/ruby-go-gem/ruby_header_parser/actions/workflows/test.yml/badge.svg)](https://github.com/ruby-go-gem/ruby_header_parser/actions/workflows/test.yml)
|
5
6
|
|
6
7
|
## Installation
|
7
8
|
|
@@ -48,7 +49,7 @@ enum_definitions = parser.extract_enum_definitions
|
|
48
49
|
|
49
50
|
See below for details.
|
50
51
|
|
51
|
-
https://
|
52
|
+
https://ruby-go-gem.github.io/ruby_header_parser/RubyHeaderParser/Parser.html
|
52
53
|
|
53
54
|
See [CONFIG.md](CONFIG.md) for config file details
|
54
55
|
|
@@ -60,7 +61,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
60
61
|
|
61
62
|
## Contributing
|
62
63
|
|
63
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
64
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby-go-gem/ruby_header_parser.
|
64
65
|
|
65
66
|
## License
|
66
67
|
|
data/config/default.yml
CHANGED
@@ -4,19 +4,19 @@ module RubyHeaderParser
|
|
4
4
|
# parse `ruby.h` using `ctags`
|
5
5
|
class Parser # rubocop:disable Metrics/ClassLength
|
6
6
|
# @!attribute [r] header_file
|
7
|
-
#
|
7
|
+
# @return [String]
|
8
8
|
attr_reader :header_file
|
9
9
|
|
10
10
|
# @!attribute [r] include_paths
|
11
|
-
#
|
11
|
+
# @return [Array<String>]
|
12
12
|
attr_reader :include_paths
|
13
13
|
|
14
14
|
# @!attribute [r] dist_preprocessed_header_file
|
15
|
-
#
|
15
|
+
# @return [String]
|
16
16
|
attr_reader :dist_preprocessed_header_file
|
17
17
|
|
18
|
-
# @!attribute [r]
|
19
|
-
#
|
18
|
+
# @!attribute [r] config
|
19
|
+
# @return [RubyHeaderParser::Config]
|
20
20
|
attr_reader :config
|
21
21
|
|
22
22
|
DEFAULT_HEADER_FILE = "#{RbConfig::CONFIG["rubyhdrdir"]}/ruby.h".freeze
|
data/rbs_collection.lock.yaml
CHANGED
@@ -6,7 +6,7 @@ gems:
|
|
6
6
|
source:
|
7
7
|
type: git
|
8
8
|
name: ruby/gem_rbs_collection
|
9
|
-
revision:
|
9
|
+
revision: 63c49dc63d905ff6f55bd3b19e576108da423b2b
|
10
10
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
11
11
|
repo_dir: gems
|
12
12
|
- name: binding_of_caller
|
@@ -14,7 +14,7 @@ gems:
|
|
14
14
|
source:
|
15
15
|
type: git
|
16
16
|
name: ruby/gem_rbs_collection
|
17
|
-
revision:
|
17
|
+
revision: 63c49dc63d905ff6f55bd3b19e576108da423b2b
|
18
18
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
19
19
|
repo_dir: gems
|
20
20
|
- name: dbm
|
@@ -26,7 +26,7 @@ gems:
|
|
26
26
|
source:
|
27
27
|
type: git
|
28
28
|
name: ruby/gem_rbs_collection
|
29
|
-
revision:
|
29
|
+
revision: 63c49dc63d905ff6f55bd3b19e576108da423b2b
|
30
30
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
31
31
|
repo_dir: gems
|
32
32
|
- name: fileutils
|
@@ -42,7 +42,7 @@ gems:
|
|
42
42
|
source:
|
43
43
|
type: git
|
44
44
|
name: ruby/gem_rbs_collection
|
45
|
-
revision:
|
45
|
+
revision: 63c49dc63d905ff6f55bd3b19e576108da423b2b
|
46
46
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
47
47
|
repo_dir: gems
|
48
48
|
- name: parser
|
@@ -50,7 +50,7 @@ gems:
|
|
50
50
|
source:
|
51
51
|
type: git
|
52
52
|
name: ruby/gem_rbs_collection
|
53
|
-
revision:
|
53
|
+
revision: 63c49dc63d905ff6f55bd3b19e576108da423b2b
|
54
54
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
55
55
|
repo_dir: gems
|
56
56
|
- name: pstore
|
@@ -66,7 +66,7 @@ gems:
|
|
66
66
|
source:
|
67
67
|
type: git
|
68
68
|
name: ruby/gem_rbs_collection
|
69
|
-
revision:
|
69
|
+
revision: 63c49dc63d905ff6f55bd3b19e576108da423b2b
|
70
70
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
71
71
|
repo_dir: gems
|
72
72
|
- name: rake
|
@@ -74,7 +74,7 @@ gems:
|
|
74
74
|
source:
|
75
75
|
type: git
|
76
76
|
name: ruby/gem_rbs_collection
|
77
|
-
revision:
|
77
|
+
revision: 63c49dc63d905ff6f55bd3b19e576108da423b2b
|
78
78
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
79
79
|
repo_dir: gems
|
80
80
|
- name: regexp_parser
|
@@ -82,7 +82,7 @@ gems:
|
|
82
82
|
source:
|
83
83
|
type: git
|
84
84
|
name: ruby/gem_rbs_collection
|
85
|
-
revision:
|
85
|
+
revision: 63c49dc63d905ff6f55bd3b19e576108da423b2b
|
86
86
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
87
87
|
repo_dir: gems
|
88
88
|
- name: rspec-parameterized-core
|
@@ -98,7 +98,7 @@ gems:
|
|
98
98
|
source:
|
99
99
|
type: git
|
100
100
|
name: ruby/gem_rbs_collection
|
101
|
-
revision:
|
101
|
+
revision: 63c49dc63d905ff6f55bd3b19e576108da423b2b
|
102
102
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
103
103
|
repo_dir: gems
|
104
104
|
- name: rubocop-ast
|
@@ -106,9 +106,13 @@ gems:
|
|
106
106
|
source:
|
107
107
|
type: git
|
108
108
|
name: ruby/gem_rbs_collection
|
109
|
-
revision:
|
109
|
+
revision: 63c49dc63d905ff6f55bd3b19e576108da423b2b
|
110
110
|
remote: https://github.com/ruby/gem_rbs_collection.git
|
111
111
|
repo_dir: gems
|
112
|
+
- name: tmpdir
|
113
|
+
version: '0'
|
114
|
+
source:
|
115
|
+
type: stdlib
|
112
116
|
- name: yaml
|
113
117
|
version: '0'
|
114
118
|
source:
|
data/rbs_collection.yaml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_header_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -176,14 +176,14 @@ files:
|
|
176
176
|
- sig/ruby_header_parser/type_definition.rbs
|
177
177
|
- sig/ruby_header_parser/typeref_definition.rbs
|
178
178
|
- sig/ruby_header_parser/util.rbs
|
179
|
-
homepage: https://github.com/
|
179
|
+
homepage: https://github.com/ruby-go-gem/ruby_header_parser
|
180
180
|
licenses:
|
181
181
|
- MIT
|
182
182
|
metadata:
|
183
|
-
homepage_uri: https://github.com/
|
184
|
-
source_code_uri: https://github.com/
|
185
|
-
changelog_uri: https://github.com/
|
186
|
-
documentation_uri: https://
|
183
|
+
homepage_uri: https://github.com/ruby-go-gem/ruby_header_parser
|
184
|
+
source_code_uri: https://github.com/ruby-go-gem/ruby_header_parser
|
185
|
+
changelog_uri: https://github.com/ruby-go-gem/ruby_header_parser/blob/main/CHANGELOG.md
|
186
|
+
documentation_uri: https://ruby-go-gem.github.io/ruby_header_parser/
|
187
187
|
rubygems_mfa_required: 'true'
|
188
188
|
post_install_message:
|
189
189
|
rdoc_options: []
|