card-mod-history 0.11.6 → 0.13.1
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 +4 -4
 - data/lib/card/act.rb +1 -1
 - data/lib/card/act/act_renderer.rb +2 -2
 - data/lib/card/action.rb +1 -1
 - data/lib/card/action/action_renderer.rb +1 -1
 - data/lib/card/change.rb +1 -1
 - data/set/all/history/act_listing.rb +3 -1
 - data/set/all/history/events.rb +1 -1
 - metadata +5 -5
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 5fb2aad963e3b2f423399b611ee32688bffa93c0528166f94ddac225ea04db06
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 3d6a0187deb04557c412ab117afc58f4579a82b52e8dccc87a1d303fff198503
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: a2f68e50733bb20c8b417f5508eec48cd3b33eed1ae8339ce7887673903e549964065b4c93559058e50161450056d79895d3a0fcbc993b81745f300ae8132dd4
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 14190a3cfb47635545d09c9078cf0bdfa2b8bb14a4973235ddf664f25fd2443fe43e89100dc007dfb06fb7395c7c689ea0b6225017528239164f5e9a9edf0fcb
         
     | 
    
        data/lib/card/act.rb
    CHANGED
    
    | 
         @@ -16,7 +16,7 @@ class Card 
     | 
|
| 
       16 
16 
     | 
    
         
             
              # - _acted_at_, a timestamp of the action
         
     | 
| 
       17 
17 
     | 
    
         
             
              # - the _ip_address_ of the actor where applicable.
         
     | 
| 
       18 
18 
     | 
    
         
             
              #
         
     | 
| 
       19 
     | 
    
         
            -
              class Act <  
     | 
| 
      
 19 
     | 
    
         
            +
              class Act < Cardio::Record
         
     | 
| 
       20 
20 
     | 
    
         
             
                before_save :assign_actor
         
     | 
| 
       21 
21 
     | 
    
         
             
                has_many :ar_actions, -> { order :id }, foreign_key: :card_act_id,
         
     | 
| 
       22 
22 
     | 
    
         
             
                                                        inverse_of: :act,
         
     | 
| 
         @@ -10,7 +10,7 @@ class Card 
     | 
|
| 
       10 
10 
     | 
    
         
             
                    @context = @args[:act_context]
         
     | 
| 
       11 
11 
     | 
    
         
             
                  end
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
       13 
     | 
    
         
            -
                  include ::Bootstrapper
         
     | 
| 
      
 13 
     | 
    
         
            +
                  include Card::Bootstrapper
         
     | 
| 
       14 
14 
     | 
    
         | 
| 
       15 
15 
     | 
    
         
             
                  def method_missing method_name, *args, &block
         
     | 
| 
       16 
16 
     | 
    
         
             
                    if block_given?
         
     | 
| 
         @@ -31,7 +31,7 @@ class Card 
     | 
|
| 
       31 
31 
     | 
    
         
             
                  end
         
     | 
| 
       32 
32 
     | 
    
         | 
| 
       33 
33 
     | 
    
         
             
                  def header
         
     | 
| 
       34 
     | 
    
         
            -
                     
     | 
| 
      
 34 
     | 
    
         
            +
                    # Card::Bootstrap.new(self).render do
         
     | 
| 
       35 
35 
     | 
    
         
             
                    bs_layout do
         
     | 
| 
       36 
36 
     | 
    
         
             
                      row xs: [10, 2] do
         
     | 
| 
       37 
37 
     | 
    
         
             
                        column do
         
     | 
    
        data/lib/card/action.rb
    CHANGED
    
    
    
        data/lib/card/change.rb
    CHANGED
    
    | 
         @@ -17,7 +17,7 @@ class Card 
     | 
|
| 
       17 
17 
     | 
    
         
             
              # * the new _value_ of that field
         
     | 
| 
       18 
18 
     | 
    
         
             
              # * the {Action action} of which the change is part
         
     | 
| 
       19 
19 
     | 
    
         
             
              #
         
     | 
| 
       20 
     | 
    
         
            -
              class Change <  
     | 
| 
      
 20 
     | 
    
         
            +
              class Change < Cardio::Record
         
     | 
| 
       21 
21 
     | 
    
         
             
                belongs_to :action, foreign_key: :card_action_id,
         
     | 
| 
       22 
22 
     | 
    
         
             
                                    inverse_of: :card_changes
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
         @@ -88,7 +88,9 @@ format :html do 
     | 
|
| 
       88 
88 
     | 
    
         
             
                return unless controller.request # paginate requires a request
         
     | 
| 
       89 
89 
     | 
    
         | 
| 
       90 
90 
     | 
    
         
             
                wrap_with :div, class: "slotter btn-sm" do
         
     | 
| 
       91 
     | 
    
         
            -
                   
     | 
| 
      
 91 
     | 
    
         
            +
                  # normally we let method_missing handle the action_view stuff,
         
     | 
| 
      
 92 
     | 
    
         
            +
                  # but that doesn't handle **arguments yet
         
     | 
| 
      
 93 
     | 
    
         
            +
                  action_view.send :paginate, current_page_acts(acts), **act_paging_opts(context)
         
     | 
| 
       92 
94 
     | 
    
         
             
                end
         
     | 
| 
       93 
95 
     | 
    
         
             
              end
         
     | 
| 
       94 
96 
     | 
    
         | 
    
        data/set/all/history/events.rb
    CHANGED
    
    | 
         @@ -18,7 +18,7 @@ def actionable? 
     | 
|
| 
       18 
18 
     | 
    
         
             
            end
         
     | 
| 
       19 
19 
     | 
    
         | 
| 
       20 
20 
     | 
    
         
             
            event :detect_conflict, :validate, on: :update, when: :edit_conflict? do
         
     | 
| 
       21 
     | 
    
         
            -
              errors.add :conflict,  
     | 
| 
      
 21 
     | 
    
         
            +
              errors.add :conflict, ::I18n.t(:history_error_not_latest_revision)
         
     | 
| 
       22 
22 
     | 
    
         
             
            end
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
       24 
24 
     | 
    
         
             
            def edit_conflict?
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: card-mod-history
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.13.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Ethan McCutchen
         
     | 
| 
         @@ -10,7 +10,7 @@ authors: 
     | 
|
| 
       10 
10 
     | 
    
         
             
            autorequire:
         
     | 
| 
       11 
11 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       12 
12 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       13 
     | 
    
         
            -
            date: 2021- 
     | 
| 
      
 13 
     | 
    
         
            +
            date: 2021-08-06 00:00:00.000000000 Z
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies:
         
     | 
| 
       15 
15 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       16 
16 
     | 
    
         
             
              name: card
         
     | 
| 
         @@ -18,14 +18,14 @@ dependencies: 
     | 
|
| 
       18 
18 
     | 
    
         
             
                requirements:
         
     | 
| 
       19 
19 
     | 
    
         
             
                - - '='
         
     | 
| 
       20 
20 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       21 
     | 
    
         
            -
                    version: 1. 
     | 
| 
      
 21 
     | 
    
         
            +
                    version: 1.103.1
         
     | 
| 
       22 
22 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       23 
23 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       24 
24 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       25 
25 
     | 
    
         
             
                requirements:
         
     | 
| 
       26 
26 
     | 
    
         
             
                - - '='
         
     | 
| 
       27 
27 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       28 
     | 
    
         
            -
                    version: 1. 
     | 
| 
      
 28 
     | 
    
         
            +
                    version: 1.103.1
         
     | 
| 
       29 
29 
     | 
    
         
             
            description: ''
         
     | 
| 
       30 
30 
     | 
    
         
             
            email:
         
     | 
| 
       31 
31 
     | 
    
         
             
            - info@decko.org
         
     | 
| 
         @@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       78 
78 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       79 
79 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       80 
80 
     | 
    
         
             
            requirements: []
         
     | 
| 
       81 
     | 
    
         
            -
            rubygems_version: 3.1. 
     | 
| 
      
 81 
     | 
    
         
            +
            rubygems_version: 3.1.6
         
     | 
| 
       82 
82 
     | 
    
         
             
            signing_key:
         
     | 
| 
       83 
83 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       84 
84 
     | 
    
         
             
            summary: Revision histories in acts, actions, and changes
         
     |