devise-async-stretch 0.0.3 → 0.0.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjYwYjhlNmJkMTM3ZjBiOTRjZTcwYTIzNGVhYzJkZWZhOWU3NmM1YQ==
4
+ YjRiMDZjMTE2MzlhZjZiYzlkMGRhM2Q3ZTU3NjExMTgyZDNhMzY5Mw==
5
5
  data.tar.gz: !binary |-
6
- ZDEwMmQzMDAyYTRlOWE4NWE5NzI4MzI0MTQ0M2U3ZjBiYzk1N2Q4YQ==
6
+ ZmFhOGIxOGI0NGZiOGUxYWFkM2ZkZmEzOTA4ZWJlYjE1OGM5ZDhlYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjU2ZGYzZjYxZjE0MjhjYjk4MGE3NzRkN2Y5OGI5NTcyYTVkOTBkZjMzOTZi
10
- NmFlYTc2NWY1ZDg4NGEzOGM2MDU0Yzk5MzAxMTY5YzhhYjY0ZjYzZWI0YmY4
11
- N2RkZWY5OWY0NDViN2JkNjI2ZmE2OTdjYjg1NTMwNWE1ODc2OTg=
9
+ NWFiZTQ3Y2JiNGE1NWE0YjQ0ZDJkZWQ1Y2ZlZmNjZDcxYjgyOWIwZjRiYjhm
10
+ ODVmODkwZTkzN2NjYjA2YzA4MGE4MTkxY2U5ZmQ3NzQwY2NiNDFmNmI2Mjk3
11
+ MWNmODdkYjNjNjkwMzNmYWU4YmYzOTc1ZTIzYmZiZjdhNzczMjM=
12
12
  data.tar.gz: !binary |-
13
- NDFjZjE0YjgyZDVhMDdiNjJjNGJjMDk3MmI2MGQxM2Q3ODNhNmEyYWU5YjVk
14
- YTRjMGMyMDkzMWQ2OGM0NmEyMDM5ZmUyYmMwMWQzMjQxODA2MjI2NTVkNjg2
15
- ZTFmYjIyNjNlYTBhZDZjM2RkNzE5OTJlOWI2NzYwMzRkYTYwYTM=
13
+ MmE1MzIxOTI5NmExODhkMjMzOWVkMGVlMTI1MThlMTZkN2NlODllYmVmMDFi
14
+ MTZhZGQ4NjA5MjE1MmY0NThmOGQzMzExMjMxY2FlMGJlNWVmNGEwZGMzZWRj
15
+ YTg2NTAyZjFhNjE2YTA2ZDA4YjY0ZDJhMmJlYmRhOTY4ODM3Y2I=
data/Gemfile CHANGED
@@ -3,4 +3,13 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in devise-async-stretch.gemspec
4
4
  gemspec
5
5
 
6
- gem "codeclimate-test-reporter", group: :test, require: nil
6
+ group :development do
7
+ gem 'minitest'
8
+ gem 'guard'
9
+ gem 'guard-minitest'
10
+ end
11
+
12
+ group :test do
13
+ gem "codeclimate-test-reporter", require: nil
14
+ gem "test_after_commit"
15
+ end
@@ -0,0 +1,6 @@
1
+ guard :minitest do
2
+ # with Minitest::Unit
3
+ watch(%r{^test/(.*)\/?(.*)_test\.rb$})
4
+ watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}#{m[2]}_test.rb" }
5
+ watch(%r{^test/test_helper\.rb$}) { 'test' }
6
+ end
@@ -5,7 +5,7 @@ module Devise
5
5
 
6
6
  included do
7
7
  # Enhance the stretches!
8
- after_save :enqueue_stretch_worker if Devise::Async::Stretch.enabled
8
+ after_commit :enqueue_stretch_worker, on: [:create, :update] if Devise::Async::Stretch.enabled
9
9
  end
10
10
 
11
11
  def self.required_fields(klass)
@@ -1,7 +1,7 @@
1
1
  module Devise
2
2
  module Async
3
3
  module Stretch
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
6
6
  end
7
7
  end
@@ -41,4 +41,6 @@ Rails.application.configure do
41
41
 
42
42
  # Raises error for missing translations
43
43
  # config.action_view.raise_on_missing_translations = true
44
+
45
+ config.active_record.raise_in_transactional_callbacks = true
44
46
  end
@@ -35,6 +35,8 @@ class ActiveSupport::TestCase
35
35
  setup do
36
36
  Devise::Async::Stretch.enabled = true
37
37
  Devise::Async::Stretch.backend = :sidekiq
38
+
39
+ Sidekiq::Testing.fake!
38
40
  end
39
41
 
40
42
  fixtures :users
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-async-stretch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Westendorf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-06 00:00:00.000000000 Z
11
+ date: 2015-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise
@@ -147,6 +147,7 @@ files:
147
147
  - .gitignore
148
148
  - .travis.yml
149
149
  - Gemfile
150
+ - Guardfile
150
151
  - LICENSE.txt
151
152
  - README.md
152
153
  - Rakefile