command_proposal 1.0.16 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43e714b8d84f486d67fabcf4d171cc38f6fe3e97c1e4cd776b558ef9feef2bb0
4
- data.tar.gz: 5107629d432ed32fb26bd3fbfe56094287b1a9a0eb2feaf72b1e9f493b3d1dfd
3
+ metadata.gz: 9dbd53b2d7555e22a1bb1bcdf14c539619a2b42c11d8ff1227ea32250677ede0
4
+ data.tar.gz: 3ab236de6349d32a749f2d476ca64978da1dacf4e9ad987b9cc0b22cc86a9455
5
5
  SHA512:
6
- metadata.gz: 283e95ed280a541f6e607e2802068664244d532186448cafe42850763bb318159335b33b64e5411c729a65cbd427de94b6e672154efe0231487a71ba8023e659
7
- data.tar.gz: bbece28324234cfee33481dbdeef5fdadd0b90ff982bb3eeabeaa76e6732c558298ed8dd7a0e313f9304b574dc7559e13187c4bdc3e7cec0a3ed7c0c85102e9c
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::JSONWrapper
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
 
@@ -1,6 +1,6 @@
1
1
  module CommandProposal
2
2
  module Service
3
- class JSONWrapper
3
+ class JsonWrapper
4
4
  # Allows directly setting pre-stringified JSON.
5
5
  def self.dump(obj)
6
6
  return obj if obj.is_a?(String)
@@ -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) {
@@ -1,3 +1,3 @@
1
1
  module CommandProposal
2
- VERSION = "1.0.16"
2
+ VERSION = "1.0.19"
3
3
  end
@@ -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`[/\w*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.16
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-03-11 00:00:00.000000000 Z
11
+ date: 2022-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails