dalliance 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dalliance.gemspec +1 -1
- data/lib/dalliance/version.rb +1 -1
- data/lib/dalliance/workers/delayed_job.rb +1 -1
- data/lib/dalliance/workers/resque.rb +1 -1
- data/spec/support/active_record.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1b54f25395f325b86a3e0ddc050fd1ea2fe3ecf
|
4
|
+
data.tar.gz: 37de1cafaf3e8a4876f07ed558f1d1c36caf32e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 404b031c57c507a14c3081871c9bb0ecc0c5a2fcb611e29321c63402665764841e60329e2349e12997c7e0fb5afb811b5b24cc135097209e6d6149331c9fb930
|
7
|
+
data.tar.gz: f5eff30fc65c24297b33681d0b0dc06be3649a343ce26c39c164650e5faae7273e94441d2c214fe9cd046ab95995b049bdd210cd2492ea1fca83de88e214508d
|
data/dalliance.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.add_dependency('rails', '>= 3.2', "
|
21
|
+
s.add_dependency('rails', '>= 3.2', "< 5.2")
|
22
22
|
|
23
23
|
s.add_dependency('state_machine')
|
24
24
|
|
data/lib/dalliance/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Dalliance
|
2
2
|
module Workers
|
3
|
-
if defined?(Rails) && ::Rails::VERSION::MAJOR
|
3
|
+
if defined?(Rails) && ((::Rails::VERSION::MAJOR == 4 && ::Rails::VERSION::MINOR >= 2) || ::Rails::VERSION::MAJOR >= 5)
|
4
4
|
class DelayedJob < ::ActiveJob::Base
|
5
5
|
queue_as :dalliance
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Dalliance
|
2
2
|
module Workers
|
3
|
-
if defined?(Rails) && ::Rails::VERSION::MAJOR
|
3
|
+
if defined?(Rails) && ((::Rails::VERSION::MAJOR == 4 && ::Rails::VERSION::MINOR >= 2) || ::Rails::VERSION::MAJOR >= 5)
|
4
4
|
class Resque < ::ActiveJob::Base
|
5
5
|
queue_as :dalliance
|
6
6
|
|
@@ -6,7 +6,7 @@ ActiveRecord::Migration.verbose = false
|
|
6
6
|
|
7
7
|
ActiveRecord::Schema.define do
|
8
8
|
create_table :dalliance_progress_meters, :force => true do |t|
|
9
|
-
t.belongs_to :dalliance_progress_model, :polymorphic => true
|
9
|
+
t.belongs_to :dalliance_progress_model, :polymorphic => true, index: { name: "by_dalliance_progress_model" }
|
10
10
|
|
11
11
|
t.integer :current_count
|
12
12
|
t.integer :total_count
|
@@ -15,7 +15,7 @@ ActiveRecord::Schema.define do
|
|
15
15
|
t.timestamps null: false
|
16
16
|
end
|
17
17
|
|
18
|
-
add_index :dalliance_progress_meters, [:dalliance_progress_model_id, :dalliance_progress_model_type], :name => 'by_dalliance_progress_model'
|
18
|
+
# add_index :dalliance_progress_meters, [:dalliance_progress_model_id, :dalliance_progress_model_type], :name => 'by_dalliance_progress_model'
|
19
19
|
|
20
20
|
create_table :delayed_jobs, :force => true do |table|
|
21
21
|
table.integer :priority, :default => 0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dalliance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Sullivan
|
@@ -17,9 +17,9 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.2'
|
20
|
-
- - "
|
20
|
+
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 5.
|
22
|
+
version: '5.2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +27,9 @@ dependencies:
|
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '3.2'
|
30
|
-
- - "
|
30
|
+
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 5.
|
32
|
+
version: '5.2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: state_machine
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|