card-mod-history 0.15.4 → 0.15.6
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:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 25c27ecc9ba46a12b532848c3f5de95eefb7b7ba6fe85c0a81065c9ad5f38755
         | 
| 4 | 
            +
              data.tar.gz: 557b9c4be1d076955b4e7edb710e32ee0a28e2a4821a26f41c16d3a23d8faeb4
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 3f5b9f77abd7d504ad6b393c5899fdaf94a436f5be2f95d9421108652175823f8c63ddd9179e7c66239d33fa63526e694950df91374ad7cb1fed6e1181509b8e
         | 
| 7 | 
            +
              data.tar.gz: 90f40990272c3b3ab417b50e17f46d3c1abb582da03f99d637699767a4743d22450fc27e88eafdb35204d43295346121b6ac7de003ee164644ca136daa563877
         | 
| @@ -1,8 +1,8 @@ | |
| 1 1 | 
             
            class Card
         | 
| 2 2 | 
             
              class Act
         | 
| 3 3 | 
             
                class ActRenderer
         | 
| 4 | 
            -
                  # Used for the  | 
| 5 | 
            -
                  class  | 
| 4 | 
            +
                  # Used for the board
         | 
| 5 | 
            +
                  class BoardActRenderer < RelativeActRenderer
         | 
| 6 6 | 
             
                    def title
         | 
| 7 7 | 
             
                      wrap_with(:div, left_title, class: "me-2") +
         | 
| 8 8 | 
             
                        wrap_with(:div, right_title, class: "ms-auto act-summary")
         | 
| @@ -22,9 +22,9 @@ class Card | |
| 22 22 | 
             
                      details
         | 
| 23 23 | 
             
                    end
         | 
| 24 24 |  | 
| 25 | 
            -
                    def  | 
| 26 | 
            -
                      opts = @format. | 
| 27 | 
            -
                        path: { act_id: @act.id, view: : | 
| 25 | 
            +
                    def board_link
         | 
| 26 | 
            +
                      opts = @format.board_link_opts(
         | 
| 27 | 
            +
                        path: { act_id: @act.id, view: :board_act, act_seq: @args[:act_seq] },
         | 
| 28 28 | 
             
                        "data-bs-toggle": "pill"
         | 
| 29 29 | 
             
                      )
         | 
| 30 30 | 
             
                      add_class opts, "d-flex nav-link"
         | 
| @@ -122,8 +122,8 @@ format :html do | |
| 122 122 | 
             
                case context
         | 
| 123 123 | 
             
                when :absolute
         | 
| 124 124 | 
             
                  Act::ActRenderer::AbsoluteActRenderer
         | 
| 125 | 
            -
                when : | 
| 126 | 
            -
                  Act::ActRenderer:: | 
| 125 | 
            +
                when :board
         | 
| 126 | 
            +
                  Act::ActRenderer::BoardActRenderer
         | 
| 127 127 | 
             
                else # relative
         | 
| 128 128 | 
             
                  Act::ActRenderer::RelativeActRenderer
         | 
| 129 129 | 
             
                end
         | 
| @@ -15,7 +15,7 @@ format :html do | |
| 15 15 | 
             
                "Updated by #{links}"
         | 
| 16 16 | 
             
              end
         | 
| 17 17 |  | 
| 18 | 
            -
              def  | 
| 18 | 
            +
              def acts_board_layout acts, context=:board
         | 
| 19 19 | 
             
                output [
         | 
| 20 20 | 
             
                  _render_creator_credit,
         | 
| 21 21 | 
             
                  act_link_list(acts, context),
         | 
| @@ -27,26 +27,26 @@ format :html do | |
| 27 27 | 
             
                items = acts_for_accordion(acts, context) do |act, seq|
         | 
| 28 28 | 
             
                  act_link_list_item act, seq, context
         | 
| 29 29 | 
             
                end
         | 
| 30 | 
            -
                 | 
| 30 | 
            +
                board_pills items
         | 
| 31 31 | 
             
              end
         | 
| 32 32 |  | 
| 33 33 | 
             
              def act_link_list_item act, seq=nil, _context=nil
         | 
| 34 34 | 
             
                opts = act_listing_opts_from_params(seq)
         | 
| 35 35 | 
             
                opts[:slot_class] = "revision-#{act.id} history-slot nav-item"
         | 
| 36 | 
            -
                act_renderer(: | 
| 36 | 
            +
                act_renderer(:board).new(self, act, opts).board_link
         | 
| 37 37 | 
             
              end
         | 
| 38 38 |  | 
| 39 39 | 
             
              def act_list_group acts, context, &block
         | 
| 40 40 | 
             
                list_group acts_for_accordion(acts, context, &block), class: "clear-both"
         | 
| 41 41 | 
             
              end
         | 
| 42 42 |  | 
| 43 | 
            -
              view : | 
| 43 | 
            +
              view :board_act, cache: :never do
         | 
| 44 44 | 
             
                opts = act_listing_opts_from_params(nil)
         | 
| 45 45 | 
             
                act = act_from_context
         | 
| 46 | 
            -
                ar = act_renderer(: | 
| 46 | 
            +
                ar = act_renderer(:board).new(self, act, opts)
         | 
| 47 47 | 
             
                class_up "action-list", "my-3"
         | 
| 48 48 | 
             
                wrap_with_overlay title: ar.overlay_title, slot: breadcrumb_data("History") do
         | 
| 49 | 
            -
                  act_listing(act, opts[:act_seq], : | 
| 49 | 
            +
                  act_listing(act, opts[:act_seq], :board)
         | 
| 50 50 | 
             
                end
         | 
| 51 51 | 
             
              end
         | 
| 52 52 |  | 
    
        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.15. | 
| 4 | 
            +
              version: 0.15.6
         | 
| 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: 2023- | 
| 13 | 
            +
            date: 2023-05-02 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.105. | 
| 21 | 
            +
                    version: 1.105.6
         | 
| 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.105. | 
| 28 | 
            +
                    version: 1.105.6
         | 
| 29 29 | 
             
            description: ''
         | 
| 30 30 | 
             
            email:
         | 
| 31 31 | 
             
            - info@decko.org
         | 
| @@ -40,7 +40,7 @@ files: | |
| 40 40 | 
             
            - lib/card/act.rb
         | 
| 41 41 | 
             
            - lib/card/act/act_renderer.rb
         | 
| 42 42 | 
             
            - lib/card/act/act_renderer/absolute_act_renderer.rb
         | 
| 43 | 
            -
            - lib/card/act/act_renderer/ | 
| 43 | 
            +
            - lib/card/act/act_renderer/board_act_renderer.rb
         | 
| 44 44 | 
             
            - lib/card/act/act_renderer/relative_act_renderer.rb
         | 
| 45 45 | 
             
            - lib/card/action.rb
         | 
| 46 46 | 
             
            - lib/card/action/action_renderer.rb
         | 
| @@ -58,7 +58,7 @@ files: | |
| 58 58 | 
             
            - set/all/history/revision.rb
         | 
| 59 59 | 
             
            - set/all/history/selected.rb
         | 
| 60 60 | 
             
            - set/all/history/views.rb
         | 
| 61 | 
            -
            - set/all/ | 
| 61 | 
            +
            - set/all/history_board.rb
         | 
| 62 62 | 
             
            homepage: https://decko.org
         | 
| 63 63 | 
             
            licenses:
         | 
| 64 64 | 
             
            - GPL-3.0
         | 
| @@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 85 85 | 
             
                - !ruby/object:Gem::Version
         | 
| 86 86 | 
             
                  version: '0'
         | 
| 87 87 | 
             
            requirements: []
         | 
| 88 | 
            -
            rubygems_version: 3. | 
| 88 | 
            +
            rubygems_version: 3.2.33
         | 
| 89 89 | 
             
            signing_key:
         | 
| 90 90 | 
             
            specification_version: 4
         | 
| 91 91 | 
             
            summary: Revision histories in acts, actions, and changes
         |