fast_camelize 0.1.3 → 0.1.4

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: 87479ef8d83e461302cdc6b9d55798132e943fbd905619bfa86775665c992c19
4
- data.tar.gz: 2e7f66dbb9f0b80822dc7052b07eed1c05e6730a3d954c9949fb2f354470ecce
3
+ metadata.gz: 75e1ec145c7ae7341fda1226b4df269a6020148c44bdee5847df21559b2c6331
4
+ data.tar.gz: '0906c6c49283677041ff8e67b976b564a9fc645ca982617e70bba37b4726fe85'
5
5
  SHA512:
6
- metadata.gz: f0855f661b5f7dad03f145dad5a502b3b3ebbccb89235f27f96699a13d5b76ca0d1fb72b67365e7b6db8af36bd6815b9c77cf0f36543c6f257ce6a3e1de90693
7
- data.tar.gz: 4fc5f717b52abd6746736f9a5cfa6e50980add081f921e51fe2ffd21ab8123b1281b9ad90ab17d86e0851de1077d05ad408c538ba143695fedcc58702bba8ab5
6
+ metadata.gz: 4ac5b42056aa887f3d91508d7fb215157e1c3bc4f2ff868a1f4aa0d16e3a713c0e8758ad58986f5b013a2064b6ce431b33aafbe34ea69cbd40bb1fa95ec5e8d4
7
+ data.tar.gz: 464197ac75a362dff0b1931090637b5b1cb77f1d3dec4d4743c6e6d3814596a42dfaa18ae8fac5cea3880a952b75ce53890e6061d967548fa7c7810893b53c94
data/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.1.4] - 2021-12-09
10
+
11
+ ### Changed
12
+
13
+ - Change `strncpy` instances to `memcpy` when the string isn't null terminated to avoid warnings.
14
+
9
15
  ## [0.1.3] - 2021-11-17
10
16
 
11
17
  ### Changed
@@ -30,7 +36,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
30
36
 
31
37
  - 🎉 Initial release! 🎉
32
38
 
33
- [unreleased]: https://github.com/kddnewton/fast_camelize/compare/v0.1.3...HEAD
39
+ [unreleased]: https://github.com/kddnewton/fast_camelize/compare/v0.1.4...HEAD
40
+ [0.1.4]: https://github.com/kddnewton/fast_camelize/compare/v0.1.3...v0.1.4
34
41
  [0.1.3]: https://github.com/kddnewton/fast_camelize/compare/v0.1.2...v0.1.3
35
42
  [0.1.2]: https://github.com/kddnewton/fast_camelize/compare/v0.1.1...v0.1.2
36
43
  [0.1.1]: https://github.com/kddnewton/fast_camelize/compare/v0.1.0...v0.1.1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fast_camelize (0.1.3)
4
+ fast_camelize (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -25,17 +25,17 @@ GEM
25
25
  rb-inotify (~> 0.9, >= 0.9.10)
26
26
  minitest (5.14.4)
27
27
  parallel (1.21.0)
28
- parser (3.0.2.0)
28
+ parser (3.0.3.2)
29
29
  ast (~> 2.4.1)
30
30
  rainbow (3.0.0)
31
31
  rake (13.0.6)
32
- rake-compiler (1.1.1)
32
+ rake-compiler (1.1.3)
33
33
  rake
34
34
  rb-fsevent (0.11.0)
35
35
  rb-inotify (0.10.1)
36
36
  ffi (~> 1.0)
37
- rbs (1.7.0)
38
- regexp_parser (2.1.1)
37
+ rbs (1.7.1)
38
+ regexp_parser (2.2.0)
39
39
  rexml (3.2.5)
40
40
  rubocop (1.23.0)
41
41
  parallel (~> 1.10)
@@ -46,7 +46,7 @@ GEM
46
46
  rubocop-ast (>= 1.12.0, < 2.0)
47
47
  ruby-progressbar (~> 1.7)
48
48
  unicode-display_width (>= 1.4.0, < 3.0)
49
- rubocop-ast (1.13.0)
49
+ rubocop-ast (1.14.0)
50
50
  parser (>= 3.0.1.1)
51
51
  ruby-progressbar (1.11.0)
52
52
  simplecov (0.21.2)
@@ -55,14 +55,14 @@ GEM
55
55
  simplecov_json_formatter (~> 0.1)
56
56
  simplecov-html (0.12.3)
57
57
  simplecov_json_formatter (0.1.3)
58
- steep (0.46.0)
58
+ steep (0.47.0)
59
59
  activesupport (>= 5.1)
60
60
  language_server-protocol (>= 3.15, < 4.0)
61
61
  listen (~> 3.0)
62
62
  parallel (>= 1.0.0)
63
63
  parser (>= 3.0)
64
64
  rainbow (>= 2.2.2, < 4.0)
65
- rbs (>= 1.2.0)
65
+ rbs (~> 1.7.0)
66
66
  terminal-table (>= 2, < 4)
67
67
  terminal-table (3.0.2)
68
68
  unicode-display_width (>= 1.1.1, < 3)
@@ -112,7 +112,7 @@ static VALUE camelize(VALUE string, VALUE kwargs) {
112
112
  copy_segment(result, &result_size, segment, &segment_size, acronyms, false);
113
113
  }
114
114
  if (codepoint == '/') {
115
- strncpy(result + result_size, "::", 2);
115
+ memcpy(result + result_size, "::", 2);
116
116
  result_size += 2;
117
117
  }
118
118
  state = STATE_SEGSTART;
@@ -123,7 +123,7 @@ static VALUE camelize(VALUE string, VALUE kwargs) {
123
123
  if (codepoint == '_') {
124
124
  // do nothing
125
125
  } else if (codepoint == '/') {
126
- strncpy(result + result_size, "::", 2);
126
+ memcpy(result + result_size, "::", 2);
127
127
  result_size += 2;
128
128
  } else if (isasciialnum(codepoint)) {
129
129
  segment[segment_size++] = codepoint;
@@ -143,7 +143,7 @@ static VALUE camelize(VALUE string, VALUE kwargs) {
143
143
  if (codepoint == '_') {
144
144
  state = STATE_SEGSTART;
145
145
  } else if (codepoint == '/') {
146
- strncpy(result + result_size, "::", 2);
146
+ memcpy(result + result_size, "::", 2);
147
147
  result_size += 2;
148
148
  state = STATE_SEGSTART;
149
149
  } else {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FastCamelize
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_camelize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Newton
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-17 00:00:00.000000000 Z
11
+ date: 2021-12-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Provides a C-optimized method for camelizing a string
14
14
  email:
@@ -44,7 +44,7 @@ licenses:
44
44
  - MIT
45
45
  metadata:
46
46
  bug_tracker_uri: https://github.com/kddnewton/fast_camelize/issues
47
- changelog_uri: https://github.com/kddnewton/fast_camelize/blob/v0.1.3/CHANGELOG.md
47
+ changelog_uri: https://github.com/kddnewton/fast_camelize/blob/v0.1.4/CHANGELOG.md
48
48
  source_code_uri: https://github.com/kddnewton/fast_camelize
49
49
  rubygems_mfa_required: 'true'
50
50
  post_install_message: