character_set 1.6.0-java → 1.7.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/BENCHMARK.md +32 -32
- data/CHANGELOG.md +15 -1
- data/README.md +1 -1
- data/Rakefile +2 -123
- data/character_set.gemspec +0 -7
- data/ext/character_set/character_set.c +64 -43
- data/lib/character_set/parser.rb +8 -4
- data/lib/character_set/predefined_sets/assigned.cps +73 -52
- data/lib/character_set/predefined_sets/emoji.cps +10 -9
- data/lib/character_set/ruby_fallback/character_set_methods.rb +15 -14
- data/lib/character_set/ruby_fallback/set_methods.rb +4 -18
- data/lib/character_set/ruby_fallback/vendored_set_classes.rb +492 -0
- data/lib/character_set/ruby_fallback.rb +2 -6
- data/lib/character_set/shared_methods.rb +2 -2
- data/lib/character_set/version.rb +1 -1
- data/tasks/benchmark.rake +20 -0
- data/tasks/benchmarks/shared.rb +28 -0
- data/tasks/sync_casefold_data.rake +20 -0
- data/tasks/sync_predefined_sets.rake +9 -0
- data/tasks/sync_ruby_spec.rake +65 -0
- metadata +19 -28
- data/benchmarks/shared.rb +0 -30
- /data/{benchmarks → tasks/benchmarks}/count_in.rb +0 -0
- /data/{benchmarks → tasks/benchmarks}/cover.rb +0 -0
- /data/{benchmarks → tasks/benchmarks}/delete_in.rb +0 -0
- /data/{benchmarks → tasks/benchmarks}/keep_in.rb +0 -0
- /data/{benchmarks → tasks/benchmarks}/scan.rb +0 -0
- /data/{benchmarks → tasks/benchmarks}/used_by.rb +0 -0
- /data/{benchmarks → tasks/benchmarks}/z_add.rb +0 -0
- /data/{benchmarks → tasks/benchmarks}/z_delete.rb +0 -0
- /data/{benchmarks → tasks/benchmarks}/z_merge.rb +0 -0
- /data/{benchmarks → tasks/benchmarks}/z_minmax.rb +0 -0
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: character_set
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Janosch Müller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: sorted_set
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: range_compressor
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,17 +45,6 @@ files:
|
|
59
45
|
- LICENSE.txt
|
60
46
|
- README.md
|
61
47
|
- Rakefile
|
62
|
-
- benchmarks/count_in.rb
|
63
|
-
- benchmarks/cover.rb
|
64
|
-
- benchmarks/delete_in.rb
|
65
|
-
- benchmarks/keep_in.rb
|
66
|
-
- benchmarks/scan.rb
|
67
|
-
- benchmarks/shared.rb
|
68
|
-
- benchmarks/used_by.rb
|
69
|
-
- benchmarks/z_add.rb
|
70
|
-
- benchmarks/z_delete.rb
|
71
|
-
- benchmarks/z_merge.rb
|
72
|
-
- benchmarks/z_minmax.rb
|
73
48
|
- bin/console
|
74
49
|
- bin/setup
|
75
50
|
- character_set.gemspec
|
@@ -105,10 +80,26 @@ files:
|
|
105
80
|
- lib/character_set/ruby_fallback.rb
|
106
81
|
- lib/character_set/ruby_fallback/character_set_methods.rb
|
107
82
|
- lib/character_set/ruby_fallback/set_methods.rb
|
83
|
+
- lib/character_set/ruby_fallback/vendored_set_classes.rb
|
108
84
|
- lib/character_set/set_method_adapters.rb
|
109
85
|
- lib/character_set/shared_methods.rb
|
110
86
|
- lib/character_set/version.rb
|
111
87
|
- lib/character_set/writer.rb
|
88
|
+
- tasks/benchmark.rake
|
89
|
+
- tasks/benchmarks/count_in.rb
|
90
|
+
- tasks/benchmarks/cover.rb
|
91
|
+
- tasks/benchmarks/delete_in.rb
|
92
|
+
- tasks/benchmarks/keep_in.rb
|
93
|
+
- tasks/benchmarks/scan.rb
|
94
|
+
- tasks/benchmarks/shared.rb
|
95
|
+
- tasks/benchmarks/used_by.rb
|
96
|
+
- tasks/benchmarks/z_add.rb
|
97
|
+
- tasks/benchmarks/z_delete.rb
|
98
|
+
- tasks/benchmarks/z_merge.rb
|
99
|
+
- tasks/benchmarks/z_minmax.rb
|
100
|
+
- tasks/sync_casefold_data.rake
|
101
|
+
- tasks/sync_predefined_sets.rake
|
102
|
+
- tasks/sync_ruby_spec.rake
|
112
103
|
homepage: https://github.com/jaynetics/character_set
|
113
104
|
licenses:
|
114
105
|
- MIT
|
@@ -128,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
119
|
- !ruby/object:Gem::Version
|
129
120
|
version: '0'
|
130
121
|
requirements: []
|
131
|
-
rubygems_version: 3.4.
|
122
|
+
rubygems_version: 3.4.1
|
132
123
|
signing_key:
|
133
124
|
specification_version: 4
|
134
125
|
summary: Build, read, write and compare sets of Unicode codepoints.
|
data/benchmarks/shared.rb
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
lib = File.expand_path('../lib', __dir__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
|
4
|
-
require 'benchmark/ips'
|
5
|
-
require 'character_set'
|
6
|
-
if RUBY_VERSION.to_f >= 3.0 && !RUBY_PLATFORM[/java/i]
|
7
|
-
require 'sorted_set'
|
8
|
-
else
|
9
|
-
require 'set'
|
10
|
-
end
|
11
|
-
|
12
|
-
def benchmark(caption: nil, cases: {})
|
13
|
-
puts caption
|
14
|
-
|
15
|
-
report = Benchmark.ips do |x|
|
16
|
-
cases.each do |label, callable|
|
17
|
-
x.report(label, &callable)
|
18
|
-
end
|
19
|
-
x.compare!
|
20
|
-
end
|
21
|
-
|
22
|
-
return unless $store_comparison_results
|
23
|
-
|
24
|
-
old_stdout = $stdout.clone
|
25
|
-
captured_stdout = StringIO.new
|
26
|
-
$stdout = captured_stdout
|
27
|
-
report.run_comparison
|
28
|
-
$store_comparison_results[caption] = captured_stdout.string
|
29
|
-
$stdout = old_stdout
|
30
|
-
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|