global_uid 3.5.0 → 3.6.0

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
- SHA1:
3
- metadata.gz: a75efa773de9a27edd860de29b6c79d133b5f605
4
- data.tar.gz: 7ddf18d558f580e5adf934a9d6b6dc2b5c49adda
2
+ SHA256:
3
+ metadata.gz: d777084ae99e79edf375ecab371a986842190c0174ca642a33b991f16f6ec9e5
4
+ data.tar.gz: b8b40fbd66d08922e1273463242e31150d992c29b8356b4beb2770faa33c9c34
5
5
  SHA512:
6
- metadata.gz: 0c2752c562b662ded70c5feb9e038fcfe89ec66b30181ee1f788a66e97e47c8cc85d827819a6d70a20ad48e71a0a50aa241551d133eea2428ebc7fd1d495acd3
7
- data.tar.gz: d7e5fb1924ab616148f33f1ac7f10f7906a6d6d8fc0b50035fe7c46dcb0b368b37adfdabf47094a7a39e2ba0d41b5d7752e2700e5a155bff8cdf5816141aab96
6
+ metadata.gz: 62c1223f764f5da7c0e4e8624d4c0ba7d120a23d2f60aecdaef52d2c29dbea93d3b63d380ce1d48ff31167db4f1e2c739723561e41ab18681e2b8b5759bfc390
7
+ data.tar.gz: 1bf88bff1d89f79c9856847eabaef862e8cd1ca833bb7521388f2ad4b20d4648efc3491c902c800229c6962e5df5f71f0f2f8bf8b17fad00c45b3438ba317497
@@ -38,12 +38,10 @@ module GlobalUid
38
38
  end
39
39
 
40
40
  def generate_uid(options = {})
41
- ensure_global_uid_table
42
41
  GlobalUid::Base.get_uid_for_class(self, options)
43
42
  end
44
43
 
45
44
  def generate_many_uids(count, options = {})
46
- ensure_global_uid_table
47
45
  GlobalUid::Base.get_many_uids_for_class(self, count, options)
48
46
  end
49
47
 
@@ -58,18 +56,6 @@ module GlobalUid
58
56
  def global_uid_table
59
57
  GlobalUid::Base.id_table_from_name(self.table_name)
60
58
  end
61
-
62
- def ensure_global_uid_table
63
- return @global_uid_table_exists if defined?(@global_uid_table_exists) && @global_uid_table_exists
64
- GlobalUid::Base.with_connections do |connection|
65
- if ActiveRecord::VERSION::MAJOR >= 5
66
- raise "Global UID table #{global_uid_table} not found!" unless connection.schema_cache.data_source_exists?(global_uid_table.to_s)
67
- else
68
- raise "Global UID table #{global_uid_table} not found!" unless connection.schema_cache.table_exists?(global_uid_table.to_s)
69
- end
70
- end
71
- @global_uid_table_exists = true
72
- end
73
59
  end
74
60
  end
75
61
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: global_uid
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Osheroff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-17 00:00:00.000000000 Z
11
+ date: 2018-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  version: '0'
204
204
  requirements: []
205
205
  rubyforge_project:
206
- rubygems_version: 2.6.14.1
206
+ rubygems_version: 2.7.6
207
207
  signing_key:
208
208
  specification_version: 4
209
209
  summary: GUID