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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 943354f91ade763470f952de5256f1fbbf4b07b6
4
- data.tar.gz: e2d5c5d82ad5948f30705bc3ef50d651dc0e1a08
3
+ metadata.gz: b1b54f25395f325b86a3e0ddc050fd1ea2fe3ecf
4
+ data.tar.gz: 37de1cafaf3e8a4876f07ed558f1d1c36caf32e6
5
5
  SHA512:
6
- metadata.gz: 6481b26be15752f9fe3596e137dcb6550f0ca96beaef055975cb73d5b8b0c87c3fcdf5aa18c20ff93a84e99e8e4a27be5d4062257729defd16885f4db797bd37
7
- data.tar.gz: 210ece123339e57ea8be27697d20a5c2f2c35b33dbfedb712d5385f46a3a3708976bfea7468a73ff6a0a446a1543422fa268205ea7b7c7ab2c821aca6abb93cb
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', "<= 5.1.4")
21
+ s.add_dependency('rails', '>= 3.2', "< 5.2")
22
22
 
23
23
  s.add_dependency('state_machine')
24
24
 
@@ -2,7 +2,7 @@ module Dalliance
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- TINY = 0
5
+ TINY = 1
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
@@ -1,6 +1,6 @@
1
1
  module Dalliance
2
2
  module Workers
3
- if defined?(Rails) && ::Rails::VERSION::MAJOR >= 4 && ::Rails::VERSION::MINOR >= 2
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 >= 4 && ::Rails::VERSION::MINOR >= 2
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.0
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.1.4
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.1.4
32
+ version: '5.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: state_machine
35
35
  requirement: !ruby/object:Gem::Requirement