semian 0.5.4 → 0.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
2
  SHA1:
3
- metadata.gz: c1ffed9d1601fb91a0d5579d66a157eee85a76c8
4
- data.tar.gz: 381ecde06da15a6335706210963d5b3e6f5f94a6
3
+ metadata.gz: 5f129376bb8de391e650f09c9c5bd7fdc0b59522
4
+ data.tar.gz: fb49ab21418fc18bf30c20b79c510c1db310a015
5
5
  SHA512:
6
- metadata.gz: 17f92a8349c85112da4b7ca480ff6c37bbc345255e4953e7005916a74bb28f1a2e2a88b255777fe61edba2246bb927ab595e24cdad58659cb04f97b1a3ba42c8
7
- data.tar.gz: de1b129c12ebb074670662c1c5d0c007455892519019f9450560e41e1ab23636496540000c3acea8a83b4530408dc88bd5f44f576831046e35a951cf88c4414e
6
+ metadata.gz: 4dbfd5d330c92ab3c3bb74a6b0b083903a5aaec0453423d05c53e9ef615125e76e3c5578a5b3b23975916261915ab7e2a5b0707312173f166b6508bd7acfa5c3
7
+ data.tar.gz: 2cb0dc4d9765fa70cd7fd7572a532306aba89a4cea16c228634874c1e0ccc12776661c2e9579e284a874d9f47eb25dbee1ac192ef4b1f06bf7e3c94c79da1b79
@@ -173,3 +173,9 @@ if Semian.semaphores_enabled?
173
173
  else
174
174
  Semian::MAX_TICKETS = 0
175
175
  end
176
+
177
+ if defined? ActiveSupport
178
+ ActiveSupport.on_load :active_record do
179
+ require 'semian/rails'
180
+ end
181
+ end
@@ -0,0 +1,7 @@
1
+ require 'active_record/connection_adapters/abstract_adapter'
2
+
3
+ class ActiveRecord::ConnectionAdapters::AbstractAdapter
4
+ def semian_resource
5
+ @connection.semian_resource
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Semian
2
- VERSION = '0.5.4'
2
+ VERSION = '0.6.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Francis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-09-12 00:00:00.000000000 Z
12
+ date: 2016-10-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler
@@ -151,6 +151,7 @@ files:
151
151
  - lib/semian/net_http.rb
152
152
  - lib/semian/platform.rb
153
153
  - lib/semian/protected_resource.rb
154
+ - lib/semian/rails.rb
154
155
  - lib/semian/redis.rb
155
156
  - lib/semian/resource.rb
156
157
  - lib/semian/simple_integer.rb