rush_job_mongoid 1.1.0 → 1.2.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
  SHA256:
3
- metadata.gz: e76bab6e36e104771096dc0375e91ad5169b7de0bd5f459dec7a33399eaab02f
4
- data.tar.gz: d2539734ed9936ce7290a81aae162b3480e58a0af81ffe1a7a80fcf17084c575
3
+ metadata.gz: bfe3e243025032efc67c34edd6acc243999d62de370ffbd8773d483ccccb639d
4
+ data.tar.gz: 687116c6dad0b2fd37b23e63d21ef08da63d2236f3ced42335d1fdaca31ece9e
5
5
  SHA512:
6
- metadata.gz: 7340d9f60d4d2c1de8293f029fe441d39e315a208fa4108bb21b52d3c5c3f270e50b151e0d01f6130e28d8a0de5ad5846431943ed23147f6eb2f4e31bd6d7903
7
- data.tar.gz: 8ff687f743d53fa5bfba46d0b092ee2a49b56a31bd58b2d1390ca097e9b2abc937d9a3fffbf1994cc0ea4d7cb629b6742894191319e694de4a9bb3c0e7254840
6
+ metadata.gz: ec16e5c8b09cd397694ae254ce88452d31f21328f4e3508924ef5a274eb52e1dbe6a9886e9f23a35d14476b9f61ec80b617c3d40e3c809d647cafb2488995202
7
+ data.tar.gz: 6562c846568c565c98c24ccd2cd2f5e5ffebd5c084f05cba0ffcdd9833e99f4786dad70142bf6ecd35d9f5493a21d22321c3fbf5cf115d5f4c1f94b2cf64710e
data/README.md CHANGED
@@ -30,7 +30,7 @@ Queues on the dashboard are eager loaded. If there are lots of queues this can a
30
30
  Add this line to your Ruby on Rails application's Gemfile:
31
31
 
32
32
  ```ruby
33
- gem 'rush_job_mongoid', '~> 1.1.0'
33
+ gem 'rush_job_mongoid', '~> 1.2.0'
34
34
  ```
35
35
 
36
36
  And then execute:
@@ -21,7 +21,7 @@ module RushJobMongoid
21
21
  flash[:success] = t(:updated_job, job_id: @job.id)
22
22
  redirect_to rush_jobs_path(doc_id: @job.id)
23
23
  else
24
- flash[:danger] = t(:unable_to_update, errors: @job.errors.full_messages.to_sentence)
24
+ flash.now[:danger] = t(:unable_to_update, errors: @job.error_message)
25
25
  render :edit, status: :unprocessable_entity
26
26
  end
27
27
  end
@@ -69,6 +69,10 @@ module RushJobMongoid
69
69
  .by_queue(filter_params[:queue])
70
70
  end
71
71
 
72
+ def error_message
73
+ errors.full_messages.to_sentence
74
+ end
75
+
72
76
  private
73
77
 
74
78
  def handler_hash
@@ -1,3 +1,3 @@
1
1
  module RushJobMongoid
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rush_job_mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - JavaKoala
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-01 00:00:00.000000000 Z
11
+ date: 2024-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -39,89 +39,89 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '7.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: importmap-rails
42
+ name: delayed_job
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.0'
47
+ version: '4.1'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.0'
54
+ version: '4.1'
55
55
  - !ruby/object:Gem::Dependency
56
- name: mongoid
56
+ name: delayed_job_mongoid
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '8.1'
61
+ version: '3.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '8.1'
68
+ version: '3.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: sassc-rails
70
+ name: importmap-rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '2.1'
75
+ version: '2.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '2.1'
82
+ version: '2.0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: turbo-rails
84
+ name: mongoid
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '2.0'
89
+ version: '9.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '2.0'
96
+ version: '9.0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: delayed_job
98
+ name: sassc-rails
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '4.1'
103
+ version: '2.1'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '4.1'
110
+ version: '2.1'
111
111
  - !ruby/object:Gem::Dependency
112
- name: delayed_job_mongoid
112
+ name: turbo-rails
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '3.0'
117
+ version: '2.0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '3.0'
124
+ version: '2.0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: brakeman
127
127
  requirement: !ruby/object:Gem::Requirement