salesforce_id 1.3.1 → 1.3.2

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
  SHA1:
3
- metadata.gz: 7a94596d9208f6008265abde3708587189ffb7d3
4
- data.tar.gz: 854f459fede1722c890bf4d51add07fadfcf11de
3
+ metadata.gz: 912c9ad236b8c086fb7d334888350c35c863c2f9
4
+ data.tar.gz: 99cb0828ab0d1334dfa735e11a38e0ee2b7e6037
5
5
  SHA512:
6
- metadata.gz: 2a0f58f1dc2381d15116686156b0b18c9e90604af210fabfb9fe745ede206caa6b0bb81b9381abbbdfbbea9d863953529208bd899d4d3513f4b097a1b8257d30
7
- data.tar.gz: bd7b86ed46c468281ad28d4f38caf9f384705cc40c5801945578b7770adc450f149f4cc8b4ebdfc3a091e75430175c35889c9e33e24ba3096e5a4d4cfee5971c
6
+ metadata.gz: 7be443143e324aae5c099a6635b65082969bfcba7848ef77469ec008c27f52d3f3b87ee7ad7a0c609a05fb428a2d43d5d11099b413e871d3c701fec263efcf6e
7
+ data.tar.gz: dcadda7b393f830271f0528a42a4aa3996699137034e7a5c524b61cccaf1d3a6830dbd2b933822330e5f9894b26eb12359ad759376f0f9c279ada8fb5b5af46c
data/README.md CHANGED
@@ -108,11 +108,11 @@ SalesforceId::Random.invalid_sensitive # => 003G0-0001SUbc4
108
108
 
109
109
  # Generate a **invalid** case-insensitive salesforce id where the first 15
110
110
  # characters are invalid, not the checksum part
111
- SalesforceId::Random.insensitive # => 003-000001SUbc4IAD
111
+ SalesforceId::Random.invalid_insensitive # => 003-000001SUbc4IAD
112
112
 
113
113
  # Generate a **invalid** case-insensitive salesforce id where only the checksum
114
114
  # part (last 3 characters) is invalid
115
- SalesforceId::Random.insensitive # => 003G000001SUbc4I9D
115
+ SalesforceId::Random.invalid_insensitive_checksum # => 003G000001SUbc4I9D
116
116
 
117
117
  # Generate a valid SalesforceId::Safe salesforce id
118
118
  SalesforceId::Random.safe # => #<SalesforceId::Safe:0x007f86f2294c50 @value="003G000001SUbc4IAD">
@@ -115,12 +115,12 @@ VALUE salesforce_id_is_valid(VALUE self, VALUE rb_sId)
115
115
 
116
116
  VALUE salesforce_insensitive_repair_casing(VALUE self, VALUE rb_sId)
117
117
  {
118
- VALUE id = Qnil;
119
118
  // Start for insensitive characters
120
119
  const size_t istart = (size_t)SALESFORCE_ID_SENSITIVE_LENGTH;
121
120
  const size_t sensitive_chars = 3u;
122
121
  const int new_id_size = SALESFORCE_ID_INSENSITIVE_STRING_LENGTH;
123
122
  char* old_id = NULL;
123
+ VALUE id = Qnil;
124
124
  char new_id[SALESFORCE_ID_INSENSITIVE_STRING_LENGTH] = {0};
125
125
 
126
126
  id = rb_obj_as_string(rb_sId);
@@ -1,3 +1,3 @@
1
1
  module SalesforceId
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salesforce_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fire-Dragon-DoL