ultra_marathon 0.1.3 → 0.1.4

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: fb3d6475f8059ad245b2903fe1cd351094518d22
4
- data.tar.gz: e691570e98c3c6988dda441d86812e745bca1991
3
+ metadata.gz: eeaf5162c37cf3b329e463dd86a0df1a4be3acef
4
+ data.tar.gz: 5d216981203f1f12f02eb27b6503ab56b0270824
5
5
  SHA512:
6
- metadata.gz: 37279e51d6363da7efe03738001fd322e2ad09fa7d4223ac6326556860ab68d3f30e62a593b55ccf87c16af988b40427d6a31669d36e2265cdbabbc291dda600
7
- data.tar.gz: 8a19cdd425fa40c3a579e9bae177d2700728a3a3a3a7ee3837b0fab4cf149de893fb2048c8a0c9f8663b5aa6aeb08c9c9b19dc2f872131ea90a43732e956831b
6
+ metadata.gz: 0500ac81dc977c002eea054cd5040e8e4bb6f145d7688525752272e15d868c3535bffe48e9a8a52e2b276c8067f77521d944b6a7ae2ecddd7a5cb9a258f264e6
7
+ data.tar.gz: 638da2d1a4afadaf7ff265fb59040724e1e7f6240a61c6de1f9870bc6f711b33ffd4122d70fb349e6bb47998d5bacf5df4085a34072f053302814fc52530d4a1
@@ -0,0 +1,15 @@
1
+ require "active_support/core_ext/kernel/singleton_class"
2
+
3
+ #originally from active_support/core_ext/proc.rb in Rails 3.2
4
+ class Proc
5
+ def bind(object)
6
+ block, time = self, Time.now
7
+ object.class_eval do
8
+ method_name = "__bind_#{time.to_i}_#{time.usec}"
9
+ define_method(method_name, &block)
10
+ method = instance_method(method_name)
11
+ remove_method(method_name)
12
+ method
13
+ end.bind(object)
14
+ end
15
+ end
@@ -1,6 +1,6 @@
1
1
  require 'set'
2
2
  require 'active_support/concern'
3
- require 'active_support/core_ext/proc'
3
+ require 'core_ext/proc'
4
4
 
5
5
  module UltraMarathon
6
6
  module Callbacks
@@ -1,5 +1,5 @@
1
1
  require 'set'
2
- require 'active_support/core_ext/proc'
2
+ require 'core_ext/proc'
3
3
  require 'ultra_marathon/callbacks'
4
4
  require 'ultra_marathon/instrumentation'
5
5
  require 'ultra_marathon/logging'
@@ -2,7 +2,7 @@ module UltraMarathon
2
2
  class Version
3
3
  MAJOR = 0 unless defined? MAJOR
4
4
  MINOR = 1 unless defined? MINOR
5
- PATCH = 3 unless defined? PATCH
5
+ PATCH = 4 unless defined? PATCH
6
6
  PRE = nil unless defined? PRE
7
7
 
8
8
  class << self
@@ -1,3 +1,4 @@
1
+ require 'core_ext/proc'
1
2
  require 'ultra_marathon/abstract_runner'
2
3
  require 'ultra_marathon/callbacks'
3
4
  require 'ultra_marathon/instrumentation'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultra_marathon
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
  - Chris Maddox
@@ -18,6 +18,7 @@ extra_rdoc_files: []
18
18
  files:
19
19
  - LICENSE.md
20
20
  - README.md
21
+ - lib/core_ext/proc.rb
21
22
  - lib/ultra_marathon.rb
22
23
  - lib/ultra_marathon/abstract_runner.rb
23
24
  - lib/ultra_marathon/callbacks.rb