dalliance 0.4.0 → 0.5.0

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: d31a75c5a62922080b8fe3c78d8ca1f4269370ae
4
- data.tar.gz: ca8db2678a622de8635ce8b1c3f98071e207a6b9
3
+ metadata.gz: 943354f91ade763470f952de5256f1fbbf4b07b6
4
+ data.tar.gz: e2d5c5d82ad5948f30705bc3ef50d651dc0e1a08
5
5
  SHA512:
6
- metadata.gz: 1193c409c957dde6d9c4fb4d65cd5cc9774fc8450eff1eab6f38791746e13d67f4bd40798e3c3c87ac9f4b3533b4fc013a2c816df6593a3039208e34a2cebd4d
7
- data.tar.gz: 78fc6807ba76c33748fcdc976edc66482caf33c89cd5a61f590c075918b1cede37f33d4d5188a7dfdfa2682bdeebd2e75adf704b9531674ad4de4466618b5cc6
6
+ metadata.gz: 6481b26be15752f9fe3596e137dcb6550f0ca96beaef055975cb73d5b8b0c87c3fcdf5aa18c20ff93a84e99e8e4a27be5d4062257729defd16885f4db797bd37
7
+ data.tar.gz: 210ece123339e57ea8be27697d20a5c2f2c35b33dbfedb712d5385f46a3a3708976bfea7468a73ff6a0a446a1543422fa268205ea7b7c7ab2c821aca6abb93cb
data/Appraisals CHANGED
@@ -13,3 +13,11 @@ end
13
13
  appraise "rails-4.2" do
14
14
  gem "rails", "~> 4.2.0"
15
15
  end
16
+
17
+ appraise "rails-5.0" do
18
+ gem "rails", "~> 5.0.0"
19
+ end
20
+
21
+ appraise "rails-5.1" do
22
+ gem "rails", "~> 5.1.0"
23
+ end
@@ -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.0")
21
+ s.add_dependency('rails', '>= 3.2', "<= 5.1.4")
22
22
 
23
23
  s.add_dependency('state_machine')
24
24
 
@@ -9,4 +9,4 @@ group :development, :test do
9
9
  gem "byebug"
10
10
  end
11
11
 
12
- gemspec :path => "../"
12
+ gemspec path: "../"
@@ -1,8 +1,8 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
4
  dalliance (0.4.0)
5
- rails (>= 3.2, < 5.0)
5
+ rails (>= 3.2, <= 5.1.4)
6
6
  state_machine
7
7
 
8
8
  GEM
@@ -143,4 +143,4 @@ DEPENDENCIES
143
143
  sqlite3
144
144
 
145
145
  BUNDLED WITH
146
- 1.13.1
146
+ 1.16.0
@@ -9,4 +9,4 @@ group :development, :test do
9
9
  gem "byebug"
10
10
  end
11
11
 
12
- gemspec :path => "../"
12
+ gemspec path: "../"
@@ -1,8 +1,8 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
4
  dalliance (0.4.0)
5
- rails (>= 3.2, < 5.0)
5
+ rails (>= 3.2, <= 5.1.4)
6
6
  state_machine
7
7
 
8
8
  GEM
@@ -131,4 +131,4 @@ DEPENDENCIES
131
131
  sqlite3
132
132
 
133
133
  BUNDLED WITH
134
- 1.13.1
134
+ 1.16.0
@@ -9,4 +9,4 @@ group :development, :test do
9
9
  gem "byebug"
10
10
  end
11
11
 
12
- gemspec :path => "../"
12
+ gemspec path: "../"
@@ -1,8 +1,8 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
4
  dalliance (0.4.0)
5
- rails (>= 3.2, < 5.0)
5
+ rails (>= 3.2, <= 5.1.4)
6
6
  state_machine
7
7
 
8
8
  GEM
@@ -137,4 +137,4 @@ DEPENDENCIES
137
137
  sqlite3
138
138
 
139
139
  BUNDLED WITH
140
- 1.13.1
140
+ 1.16.0
@@ -9,4 +9,4 @@ group :development, :test do
9
9
  gem "byebug"
10
10
  end
11
11
 
12
- gemspec :path => "../"
12
+ gemspec path: "../"
@@ -1,8 +1,8 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
4
  dalliance (0.4.0)
5
- rails (>= 3.2, < 5.0)
5
+ rails (>= 3.2, <= 5.1.4)
6
6
  state_machine
7
7
 
8
8
  GEM
@@ -165,4 +165,4 @@ DEPENDENCIES
165
165
  sqlite3
166
166
 
167
167
  BUNDLED WITH
168
- 1.13.1
168
+ 1.16.0
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "rails", "~> 5.0.0"
7
+
8
+ group :development, :test do
9
+ gem "byebug"
10
+ end
11
+
12
+ gemspec path: "../"
@@ -0,0 +1,174 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ dalliance (0.4.0)
5
+ rails (>= 3.2, <= 5.1.4)
6
+ state_machine
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ actioncable (5.0.0)
12
+ actionpack (= 5.0.0)
13
+ nio4r (~> 1.2)
14
+ websocket-driver (~> 0.6.1)
15
+ actionmailer (5.0.0)
16
+ actionpack (= 5.0.0)
17
+ actionview (= 5.0.0)
18
+ activejob (= 5.0.0)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 2.0)
21
+ actionpack (5.0.0)
22
+ actionview (= 5.0.0)
23
+ activesupport (= 5.0.0)
24
+ rack (~> 2.0)
25
+ rack-test (~> 0.6.3)
26
+ rails-dom-testing (~> 2.0)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
+ actionview (5.0.0)
29
+ activesupport (= 5.0.0)
30
+ builder (~> 3.1)
31
+ erubis (~> 2.7.0)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
34
+ activejob (5.0.0)
35
+ activesupport (= 5.0.0)
36
+ globalid (>= 0.3.6)
37
+ activemodel (5.0.0)
38
+ activesupport (= 5.0.0)
39
+ activerecord (5.0.0)
40
+ activemodel (= 5.0.0)
41
+ activesupport (= 5.0.0)
42
+ arel (~> 7.0)
43
+ activesupport (5.0.0)
44
+ concurrent-ruby (~> 1.0, >= 1.0.2)
45
+ i18n (~> 0.7)
46
+ minitest (~> 5.1)
47
+ tzinfo (~> 1.1)
48
+ appraisal (2.2.0)
49
+ bundler
50
+ rake
51
+ thor (>= 0.14.0)
52
+ arel (7.1.4)
53
+ builder (3.2.3)
54
+ byebug (9.1.0)
55
+ concurrent-ruby (1.0.5)
56
+ crass (1.0.3)
57
+ delayed_job (4.1.4)
58
+ activesupport (>= 3.0, < 5.2)
59
+ delayed_job_active_record (4.1.2)
60
+ activerecord (>= 3.0, < 5.2)
61
+ delayed_job (>= 3.0, < 5)
62
+ diff-lcs (1.3)
63
+ erubis (2.7.0)
64
+ globalid (0.4.1)
65
+ activesupport (>= 4.2.0)
66
+ i18n (0.9.1)
67
+ concurrent-ruby (~> 1.0)
68
+ loofah (2.1.1)
69
+ crass (~> 1.0.2)
70
+ nokogiri (>= 1.5.9)
71
+ mail (2.7.0)
72
+ mini_mime (>= 0.1.1)
73
+ method_source (0.9.0)
74
+ mini_mime (1.0.0)
75
+ mini_portile2 (2.3.0)
76
+ minitest (5.11.1)
77
+ mono_logger (1.1.0)
78
+ multi_json (1.12.2)
79
+ mustermann (1.0.1)
80
+ nio4r (1.2.1)
81
+ nokogiri (1.8.1)
82
+ mini_portile2 (~> 2.3.0)
83
+ rack (2.0.3)
84
+ rack-protection (2.0.0)
85
+ rack
86
+ rack-test (0.6.3)
87
+ rack (>= 1.0)
88
+ rails (5.0.0)
89
+ actioncable (= 5.0.0)
90
+ actionmailer (= 5.0.0)
91
+ actionpack (= 5.0.0)
92
+ actionview (= 5.0.0)
93
+ activejob (= 5.0.0)
94
+ activemodel (= 5.0.0)
95
+ activerecord (= 5.0.0)
96
+ activesupport (= 5.0.0)
97
+ bundler (>= 1.3.0, < 2.0)
98
+ railties (= 5.0.0)
99
+ sprockets-rails (>= 2.0.0)
100
+ rails-dom-testing (2.0.3)
101
+ activesupport (>= 4.2.0)
102
+ nokogiri (>= 1.6)
103
+ rails-html-sanitizer (1.0.3)
104
+ loofah (~> 2.0)
105
+ railties (5.0.0)
106
+ actionpack (= 5.0.0)
107
+ activesupport (= 5.0.0)
108
+ method_source
109
+ rake (>= 0.8.7)
110
+ thor (>= 0.18.1, < 2.0)
111
+ rake (12.3.0)
112
+ redis (4.0.1)
113
+ redis-namespace (1.6.0)
114
+ redis (>= 3.0.4)
115
+ resque (1.27.4)
116
+ mono_logger (~> 1.0)
117
+ multi_json (~> 1.0)
118
+ redis-namespace (~> 1.3)
119
+ sinatra (>= 0.9.2)
120
+ vegas (~> 0.1.2)
121
+ rspec (3.7.0)
122
+ rspec-core (~> 3.7.0)
123
+ rspec-expectations (~> 3.7.0)
124
+ rspec-mocks (~> 3.7.0)
125
+ rspec-core (3.7.1)
126
+ rspec-support (~> 3.7.0)
127
+ rspec-expectations (3.7.0)
128
+ diff-lcs (>= 1.2.0, < 2.0)
129
+ rspec-support (~> 3.7.0)
130
+ rspec-mocks (3.7.0)
131
+ diff-lcs (>= 1.2.0, < 2.0)
132
+ rspec-support (~> 3.7.0)
133
+ rspec-support (3.7.0)
134
+ sinatra (2.0.0)
135
+ mustermann (~> 1.0)
136
+ rack (~> 2.0)
137
+ rack-protection (= 2.0.0)
138
+ tilt (~> 2.0)
139
+ sprockets (3.7.1)
140
+ concurrent-ruby (~> 1.0)
141
+ rack (> 1, < 3)
142
+ sprockets-rails (3.2.1)
143
+ actionpack (>= 4.0)
144
+ activesupport (>= 4.0)
145
+ sprockets (>= 3.0.0)
146
+ sqlite3 (1.3.13)
147
+ state_machine (1.2.0)
148
+ thor (0.20.0)
149
+ thread_safe (0.3.6)
150
+ tilt (2.0.8)
151
+ tzinfo (1.2.4)
152
+ thread_safe (~> 0.1)
153
+ vegas (0.1.11)
154
+ rack (>= 1.0.0)
155
+ websocket-driver (0.6.5)
156
+ websocket-extensions (>= 0.1.0)
157
+ websocket-extensions (0.1.3)
158
+
159
+ PLATFORMS
160
+ ruby
161
+
162
+ DEPENDENCIES
163
+ appraisal
164
+ byebug
165
+ dalliance!
166
+ delayed_job (>= 3.0.0)
167
+ delayed_job_active_record
168
+ rails (~> 5.0.0)
169
+ resque
170
+ rspec (>= 3.0.0)
171
+ sqlite3
172
+
173
+ BUNDLED WITH
174
+ 1.16.0
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "rails", "~> 5.1.0"
7
+
8
+ group :development, :test do
9
+ gem "byebug"
10
+ end
11
+
12
+ gemspec path: "../"
@@ -0,0 +1,174 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ dalliance (0.4.0)
5
+ rails (>= 3.2, <= 5.1.4)
6
+ state_machine
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ actioncable (5.1.4)
12
+ actionpack (= 5.1.4)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (~> 0.6.1)
15
+ actionmailer (5.1.4)
16
+ actionpack (= 5.1.4)
17
+ actionview (= 5.1.4)
18
+ activejob (= 5.1.4)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 2.0)
21
+ actionpack (5.1.4)
22
+ actionview (= 5.1.4)
23
+ activesupport (= 5.1.4)
24
+ rack (~> 2.0)
25
+ rack-test (>= 0.6.3)
26
+ rails-dom-testing (~> 2.0)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
+ actionview (5.1.4)
29
+ activesupport (= 5.1.4)
30
+ builder (~> 3.1)
31
+ erubi (~> 1.4)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
+ activejob (5.1.4)
35
+ activesupport (= 5.1.4)
36
+ globalid (>= 0.3.6)
37
+ activemodel (5.1.4)
38
+ activesupport (= 5.1.4)
39
+ activerecord (5.1.4)
40
+ activemodel (= 5.1.4)
41
+ activesupport (= 5.1.4)
42
+ arel (~> 8.0)
43
+ activesupport (5.1.4)
44
+ concurrent-ruby (~> 1.0, >= 1.0.2)
45
+ i18n (~> 0.7)
46
+ minitest (~> 5.1)
47
+ tzinfo (~> 1.1)
48
+ appraisal (2.2.0)
49
+ bundler
50
+ rake
51
+ thor (>= 0.14.0)
52
+ arel (8.0.0)
53
+ builder (3.2.3)
54
+ byebug (9.1.0)
55
+ concurrent-ruby (1.0.5)
56
+ crass (1.0.3)
57
+ delayed_job (4.1.4)
58
+ activesupport (>= 3.0, < 5.2)
59
+ delayed_job_active_record (4.1.2)
60
+ activerecord (>= 3.0, < 5.2)
61
+ delayed_job (>= 3.0, < 5)
62
+ diff-lcs (1.3)
63
+ erubi (1.7.0)
64
+ globalid (0.4.1)
65
+ activesupport (>= 4.2.0)
66
+ i18n (0.9.1)
67
+ concurrent-ruby (~> 1.0)
68
+ loofah (2.1.1)
69
+ crass (~> 1.0.2)
70
+ nokogiri (>= 1.5.9)
71
+ mail (2.7.0)
72
+ mini_mime (>= 0.1.1)
73
+ method_source (0.9.0)
74
+ mini_mime (1.0.0)
75
+ mini_portile2 (2.3.0)
76
+ minitest (5.11.1)
77
+ mono_logger (1.1.0)
78
+ multi_json (1.12.2)
79
+ mustermann (1.0.1)
80
+ nio4r (2.2.0)
81
+ nokogiri (1.8.1)
82
+ mini_portile2 (~> 2.3.0)
83
+ rack (2.0.3)
84
+ rack-protection (2.0.0)
85
+ rack
86
+ rack-test (0.8.2)
87
+ rack (>= 1.0, < 3)
88
+ rails (5.1.4)
89
+ actioncable (= 5.1.4)
90
+ actionmailer (= 5.1.4)
91
+ actionpack (= 5.1.4)
92
+ actionview (= 5.1.4)
93
+ activejob (= 5.1.4)
94
+ activemodel (= 5.1.4)
95
+ activerecord (= 5.1.4)
96
+ activesupport (= 5.1.4)
97
+ bundler (>= 1.3.0)
98
+ railties (= 5.1.4)
99
+ sprockets-rails (>= 2.0.0)
100
+ rails-dom-testing (2.0.3)
101
+ activesupport (>= 4.2.0)
102
+ nokogiri (>= 1.6)
103
+ rails-html-sanitizer (1.0.3)
104
+ loofah (~> 2.0)
105
+ railties (5.1.4)
106
+ actionpack (= 5.1.4)
107
+ activesupport (= 5.1.4)
108
+ method_source
109
+ rake (>= 0.8.7)
110
+ thor (>= 0.18.1, < 2.0)
111
+ rake (12.3.0)
112
+ redis (4.0.1)
113
+ redis-namespace (1.6.0)
114
+ redis (>= 3.0.4)
115
+ resque (1.27.4)
116
+ mono_logger (~> 1.0)
117
+ multi_json (~> 1.0)
118
+ redis-namespace (~> 1.3)
119
+ sinatra (>= 0.9.2)
120
+ vegas (~> 0.1.2)
121
+ rspec (3.7.0)
122
+ rspec-core (~> 3.7.0)
123
+ rspec-expectations (~> 3.7.0)
124
+ rspec-mocks (~> 3.7.0)
125
+ rspec-core (3.7.1)
126
+ rspec-support (~> 3.7.0)
127
+ rspec-expectations (3.7.0)
128
+ diff-lcs (>= 1.2.0, < 2.0)
129
+ rspec-support (~> 3.7.0)
130
+ rspec-mocks (3.7.0)
131
+ diff-lcs (>= 1.2.0, < 2.0)
132
+ rspec-support (~> 3.7.0)
133
+ rspec-support (3.7.0)
134
+ sinatra (2.0.0)
135
+ mustermann (~> 1.0)
136
+ rack (~> 2.0)
137
+ rack-protection (= 2.0.0)
138
+ tilt (~> 2.0)
139
+ sprockets (3.7.1)
140
+ concurrent-ruby (~> 1.0)
141
+ rack (> 1, < 3)
142
+ sprockets-rails (3.2.1)
143
+ actionpack (>= 4.0)
144
+ activesupport (>= 4.0)
145
+ sprockets (>= 3.0.0)
146
+ sqlite3 (1.3.13)
147
+ state_machine (1.2.0)
148
+ thor (0.20.0)
149
+ thread_safe (0.3.6)
150
+ tilt (2.0.8)
151
+ tzinfo (1.2.4)
152
+ thread_safe (~> 0.1)
153
+ vegas (0.1.11)
154
+ rack (>= 1.0.0)
155
+ websocket-driver (0.6.5)
156
+ websocket-extensions (>= 0.1.0)
157
+ websocket-extensions (0.1.3)
158
+
159
+ PLATFORMS
160
+ ruby
161
+
162
+ DEPENDENCIES
163
+ appraisal
164
+ byebug
165
+ dalliance!
166
+ delayed_job (>= 3.0.0)
167
+ delayed_job_active_record
168
+ rails (~> 5.1.0)
169
+ resque
170
+ rspec (>= 3.0.0)
171
+ sqlite3
172
+
173
+ BUNDLED WITH
174
+ 1.16.0
@@ -191,7 +191,11 @@ module Dalliance
191
191
  def validate_dalliance_status
192
192
  unless error_or_completed?
193
193
  errors.add(:dalliance_status, :invalid)
194
- return false
194
+ if defined?(Rails) && ::Rails::VERSION::MAJOR == 5 && ::Rails::VERSION::MINOR >= 0
195
+ throw(:abort)
196
+ else
197
+ return false
198
+ end
195
199
  end
196
200
 
197
201
  true
@@ -1,7 +1,7 @@
1
1
  module Dalliance
2
2
  module VERSION
3
3
  MAJOR = 0
4
- MINOR = 4
4
+ MINOR = 5
5
5
  TINY = 0
6
6
  PRE = nil
7
7
 
@@ -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
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
4
4
  class Resque < ::ActiveJob::Base
5
5
  queue_as :dalliance
6
6
 
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.4.0
4
+ version: 0.5.0
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.0'
22
+ version: 5.1.4
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.0'
32
+ version: 5.1.4
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: state_machine
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -141,6 +141,10 @@ files:
141
141
  - gemfiles/rails_4.1.gemfile.lock
142
142
  - gemfiles/rails_4.2.gemfile
143
143
  - gemfiles/rails_4.2.gemfile.lock
144
+ - gemfiles/rails_5.0.gemfile
145
+ - gemfiles/rails_5.0.gemfile.lock
146
+ - gemfiles/rails_5.1.gemfile
147
+ - gemfiles/rails_5.1.gemfile.lock
144
148
  - lib/dalliance.rb
145
149
  - lib/dalliance/engine.rb
146
150
  - lib/dalliance/progress_meter.rb