consistent_company 0.0.8 → 0.0.10

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6ad2bff7cd6346927164ebaa465d71e39aca2e33f8a9ef8451c260d80e535394
4
+ data.tar.gz: f18f030d34abe8d9b7e998f0b783a42beae7ac198bab3bac89fcaafa99e9241c
5
+ SHA512:
6
+ metadata.gz: 23b783c31e224b5ea2c46dd936451343bebafdaee9eb3222da04b744ef391d670dc8bb35c978ef214195e9c16fd85ecb9362123aa83f2d426371b11cb07a6c00
7
+ data.tar.gz: 6ccfd6854bd815f61acb4c17a780935cee8df697e09465f7580e3d41d1365184cce7993641c66a845079700a1bfa6aafb89e639feb169910f9d9592106edf395
@@ -27,7 +27,7 @@ static VALUE rb_CompanyNamer(VALUE self)
27
27
  // calc size of work strings
28
28
  // while processing we turn & = AND, + = PLUS
29
29
  // and we add space at front and back
30
- while (s = strpbrk(s, "&+"))
30
+ while ((s = strpbrk(s, "&+")))
31
31
  {
32
32
  workLen +=3; // worst case we add 3 chars
33
33
  s++;
@@ -352,7 +352,9 @@ int IsCompanyWord(char * inWord)
352
352
  strcmp(inWord, "PRODUCTIONS") == 0 ||
353
353
  strcmp(inWord, "PRODUCTS") == 0 ||
354
354
  strcmp(inWord, "TR") == 0 ||
355
- strcmp(inWord, "TRADE") == 0)
355
+ strcmp(inWord, "TRADE") == 0 ||
356
+ strcmp(inWord, "PBC") == 0 ||
357
+ strcmp(inWord, "LP") == 0)
356
358
  return 1;
357
359
  else
358
360
  return 0;
@@ -391,7 +393,7 @@ char * trimwhitespace(char *str)
391
393
  char * str_replace(char *orig, const char *rep, const char *with)
392
394
  {
393
395
  char * s = orig;
394
- while (s=strstr(s, rep))
396
+ while ((s=strstr(s, rep)))
395
397
  {
396
398
  memmove(s, with, strlen(with));
397
399
  memmove(s+strlen(with), s+strlen(rep), strlen(s+strlen(rep))+1);
@@ -2,7 +2,7 @@ module ConsistentCompany
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 8
5
+ PATCH = 10
6
6
  BUILD = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,62 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consistent_company
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
5
- prerelease:
4
+ version: 0.0.10
6
5
  platform: ruby
7
6
  authors:
8
7
  - Doug Cleven
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-03-24 00:00:00.000000000 Z
11
+ date: 2023-01-30 00:00:00.000000000 Z
13
12
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: bundler
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '1.2'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- version: '1.2'
30
13
  - !ruby/object:Gem::Dependency
31
14
  name: jeweler
32
15
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
16
  requirements:
35
- - - ~>
17
+ - - "~>"
36
18
  - !ruby/object:Gem::Version
37
- version: 1.6.4
38
- type: :runtime
19
+ version: 2.3.9
20
+ type: :development
39
21
  prerelease: false
40
22
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
23
  requirements:
43
- - - ~>
24
+ - - "~>"
44
25
  - !ruby/object:Gem::Version
45
- version: 1.6.4
26
+ version: 2.3.9
46
27
  - !ruby/object:Gem::Dependency
47
28
  name: rake-compiler
48
29
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
30
  requirements:
51
- - - ~>
31
+ - - ">="
52
32
  - !ruby/object:Gem::Version
53
33
  version: 0.7.6
54
- type: :runtime
34
+ type: :development
55
35
  prerelease: false
56
36
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
37
  requirements:
59
- - - ~>
38
+ - - ">="
60
39
  - !ruby/object:Gem::Version
61
40
  version: 0.7.6
62
41
  description: Ruby C Extension to normalize a company name. Useful when company names
@@ -69,38 +48,33 @@ extra_rdoc_files:
69
48
  - LICENSE.txt
70
49
  - README.md
71
50
  files:
72
- - ext/consistent_company/consistent_company.c
73
- - lib/consistent_company.rb
74
- - lib/consistent_company/version.rb
75
51
  - LICENSE.txt
76
52
  - README.md
53
+ - ext/consistent_company/consistent_company.c
77
54
  - ext/consistent_company/extconf.rb
55
+ - lib/consistent_company.rb
56
+ - lib/consistent_company/version.rb
78
57
  homepage: http://github.com/dcleven/consistent_company
79
58
  licenses:
80
59
  - MIT
81
- post_install_message:
60
+ metadata: {}
61
+ post_install_message:
82
62
  rdoc_options: []
83
63
  require_paths:
84
64
  - lib
85
65
  required_ruby_version: !ruby/object:Gem::Requirement
86
- none: false
87
66
  requirements:
88
- - - ! '>='
67
+ - - ">="
89
68
  - !ruby/object:Gem::Version
90
69
  version: '0'
91
- segments:
92
- - 0
93
- hash: -3971625551316819672
94
70
  required_rubygems_version: !ruby/object:Gem::Requirement
95
- none: false
96
71
  requirements:
97
- - - ! '>='
72
+ - - ">="
98
73
  - !ruby/object:Gem::Version
99
74
  version: '0'
100
75
  requirements: []
101
- rubyforge_project:
102
- rubygems_version: 1.8.24
103
- signing_key:
104
- specification_version: 3
76
+ rubygems_version: 3.1.4
77
+ signing_key:
78
+ specification_version: 4
105
79
  summary: Normalize a company name for consistent matching
106
80
  test_files: []