bg 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 701fc3678ec92e6f30a6df96f361b447c4e9a73b
4
- data.tar.gz: f882ff93d30fe5c0e77c7e3e585933b28015fa82
3
+ metadata.gz: c9e60fe8556df41a4f6c110b705b01468f5028ff
4
+ data.tar.gz: 02f1248cb0922f0574cce67be91686f101822f42
5
5
  SHA512:
6
- metadata.gz: 9bbbc79e1998a606803a4ce94d2e9213561ff6576998a67c5fc72a700c165ea854a9b2cf6ab1407c324a9c59ca4f57f289314d802d051dd9a82e44668903ad8c
7
- data.tar.gz: dc287ca50eb890ddb1b0a827300d5f0b1d634000af02500de4e308060e340484954d412c91aa7ee389abc94168bbf65724c1deb374de83095cee4de7ad92120c
6
+ metadata.gz: 4134f2a8341716975bc058ba67e16a1776fc86d41dd54448844d60d35f10d0afd3ec2dde8d3f1f9babf26d816a256c7894d634f86c1167ef3283561a02b08ce1
7
+ data.tar.gz: c9ec7d2e1901e04efa435319b817e0b0907071d4a37a74abb519020a8aa98c050fc3f4a26238b04d3eea71f15af6fb00525330b8ec2a85dd123b8903efaf68a1
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
3
  # Declare your gem's dependencies in bg.gemspec.
4
4
  # Bundler will treat runtime dependencies like base dependencies, and
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bg (0.0.2)
4
+ bg (0.0.3)
5
5
  activejob (>= 5.0)
6
6
  activerecord (>= 5.0)
7
7
  concurrent-ruby (>= 1.0)
data/README.md CHANGED
@@ -57,8 +57,7 @@ user = User.find(params[:id])
57
57
  user.name = "new value" # in memory changes will not be available in Bg invoked methods
58
58
 
59
59
  user.async.do_hard_work do
60
- # this is dangerous... you better know what you're doing
61
- # best to avoid
60
+ # blocks are not supported
62
61
  end
63
62
 
64
63
  user.defer.do_hard_work :foo, Time.now # args won't marshal properly
data/lib/bg/asyncable.rb CHANGED
@@ -34,7 +34,6 @@ module Bg
34
34
 
35
35
  def initialize(object, delay: 0)
36
36
  raise ::ArgumentError unless object.is_a?(::GlobalID::Identification)
37
- super()
38
37
  @object = object
39
38
  @delay = delay.to_f
40
39
  end
data/lib/bg/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bg
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins