command_proposal 1.0.16 → 1.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/command_proposal/comment.rb +1 -1
- data/app/models/command_proposal/iteration.rb +3 -3
- data/app/models/command_proposal/service/json_wrapper.rb +1 -1
- data/app/models/command_proposal/task.rb +1 -1
- data/lib/command_proposal/version.rb +1 -1
- data/lib/command_proposal.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dbd53b2d7555e22a1bb1bcdf14c539619a2b42c11d8ff1227ea32250677ede0
|
4
|
+
data.tar.gz: 3ab236de6349d32a749f2d476ca64978da1dacf4e9ad987b9cc0b22cc86a9455
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c839bec79b65cc4ba0e69c7217ebe8ba2e0e6c0ff2be424dc92cb7187d948f2bd9fcc9d4bca95cf101e9bb9bd0489e8da46f8c33bf03f5a2a8498eae7bd8bf0
|
7
|
+
data.tar.gz: 8557062f6d45c23b17ca99a9f80a0c380df0a992b7caa4612935b9ed168ccce554f5547886f3725b54ea7e4731b3a8e478649970f02de891d4b2566cf7d9fd13
|
@@ -9,6 +9,6 @@ class ::CommandProposal::Comment < ApplicationRecord
|
|
9
9
|
self.table_name = :command_proposal_comments
|
10
10
|
include ::CommandProposal::Service::ExternalBelong
|
11
11
|
|
12
|
-
belongs_to :iteration, optional: true
|
12
|
+
belongs_to :iteration, optional: true, class_name: "CommandProposal::Iteration"
|
13
13
|
external_belongs_to :author
|
14
14
|
end
|
@@ -18,14 +18,14 @@ require_dependency "command_proposal/service/json_wrapper"
|
|
18
18
|
|
19
19
|
class ::CommandProposal::Iteration < ApplicationRecord
|
20
20
|
self.table_name = :command_proposal_iterations
|
21
|
-
serialize :args, ::CommandProposal::Service::
|
21
|
+
serialize :args, ::CommandProposal::Service::JsonWrapper
|
22
22
|
include ::CommandProposal::Service::ExternalBelong
|
23
23
|
|
24
24
|
TRUNCATE_COUNT = 2000
|
25
25
|
# Also hardcoded in JS: app/assets/javascripts/command_proposal/console.js
|
26
26
|
|
27
|
-
has_many :comments
|
28
|
-
belongs_to :task
|
27
|
+
has_many :comments, class_name: "CommandProposal::Comment"
|
28
|
+
belongs_to :task, class_name: "CommandProposal::Task"
|
29
29
|
external_belongs_to :requester
|
30
30
|
external_belongs_to :approver
|
31
31
|
|
@@ -9,7 +9,7 @@ class ::CommandProposal::Task < ApplicationRecord
|
|
9
9
|
self.table_name = :command_proposal_tasks
|
10
10
|
attr_accessor :user, :skip_approval
|
11
11
|
|
12
|
-
has_many :iterations
|
12
|
+
has_many :iterations, class_name: "CommandProposal::Iteration"
|
13
13
|
has_many :ordered_iterations, -> { order(created_at: :desc) }, class_name: "CommandProposal::Iteration"
|
14
14
|
|
15
15
|
scope :search, ->(text) {
|
data/lib/command_proposal.rb
CHANGED
@@ -26,8 +26,8 @@ module CommandProposal
|
|
26
26
|
|
27
27
|
def self.engine_name
|
28
28
|
@engine_name ||= begin
|
29
|
-
`rails routes | grep command_proposal_engine
|
30
|
-
end
|
29
|
+
`bundle exec rails routes | grep command_proposal_engine`.to_s[/\w*command_proposal_engine/]
|
30
|
+
end || "command_proposal_engine"
|
31
31
|
end
|
32
32
|
|
33
33
|
def self.configure
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: command_proposal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rocco Nicholls
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|