effective_events 0.19.0 → 0.19.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
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: b5b3feac5b9f393375a9e93df6bed8aaa3db611ced3dcb8dfa9a2a585ec6cfb5
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 7e071a9e0906b0fef5856be8d89b9de74dd201506d8ef740ed8df5b4f92a8d5f
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 9b251b9c7e3334462eb15e80cc208b78ec2173437ad31462e906da59ab027d4140179b6cbf525c5abd4c48be53e3843182a2c4b50f1b5c22acf4876becd600c3
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 880ce99932a1e32bf8a6f3953aed66b4b98b0ae8af33af19d81e0a927d2cc9f676d39450db8e96f9f47c6f2f5b262e90e967faee49f463f511409d62be0336ad
         
     | 
| 
         @@ -164,7 +164,7 @@ module EffectiveEventsEventRegistration 
     | 
|
| 
       164 
164 
     | 
    
         | 
| 
       165 
165 
     | 
    
         
             
                def required_steps
         
     | 
| 
       166 
166 
     | 
    
         
             
                  return self.class.test_required_steps if Rails.env.test? && self.class.test_required_steps.present?
         
     | 
| 
       167 
     | 
    
         
            -
                  event&.event_products.present? ? wizard_step_keys : (wizard_step_keys - [:addons])
         
     | 
| 
      
 167 
     | 
    
         
            +
                  event&.event_products.unarchived.present? ? wizard_step_keys : (wizard_step_keys - [:addons])
         
     | 
| 
       168 
168 
     | 
    
         
             
                end
         
     | 
| 
       169 
169 
     | 
    
         | 
| 
       170 
170 
     | 
    
         
             
                def find_or_build_submit_fees
         
     | 
| 
         @@ -6,15 +6,11 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            - any_member_only_tickets = tickets.any? { |ticket| ticket.member_only? }
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
            = card do
         
     | 
| 
       9 
     | 
    
         
            -
              %p This event has the following tickets available for purchase:
         
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
9 
     | 
    
         
             
              %table.table.table-sm.table-striped
         
     | 
| 
       12 
10 
     | 
    
         
             
                %thead
         
     | 
| 
       13 
11 
     | 
    
         
             
                  %tr
         
     | 
| 
       14 
12 
     | 
    
         
             
                    %th Ticket
         
     | 
| 
       15 
     | 
    
         
            -
                     
     | 
| 
       16 
     | 
    
         
            -
                      %th Member Price
         
     | 
| 
       17 
     | 
    
         
            -
                    %th #{'Regular ' if member_column}Price
         
     | 
| 
      
 13 
     | 
    
         
            +
                    %th Price
         
     | 
| 
       18 
14 
     | 
    
         | 
| 
       19 
15 
     | 
    
         
             
                %tbody
         
     | 
| 
       20 
16 
     | 
    
         
             
                  - tickets.each do |ticket|
         
     | 
| 
         @@ -28,17 +24,34 @@ 
     | 
|
| 
       28 
24 
     | 
    
         
             
                            - if ticket.waitlist?
         
     | 
| 
       29 
25 
     | 
    
         
             
                              before waitlist
         
     | 
| 
       30 
26 
     | 
    
         | 
| 
       31 
     | 
    
         
            -
                      - if member_column
         
     | 
| 
       32 
     | 
    
         
            -
                        %td
         
     | 
| 
       33 
     | 
    
         
            -
                          - if ticket.member_price.present?
         
     | 
| 
       34 
     | 
    
         
            -
                            = price_to_currency(ticket.member_price)
         
     | 
| 
       35 
     | 
    
         
            -
                          - else
         
     | 
| 
       36 
     | 
    
         
            -
                            = '-'
         
     | 
| 
       37 
27 
     | 
    
         
             
                      %td
         
     | 
| 
       38 
     | 
    
         
            -
                        - 
     | 
| 
       39 
     | 
    
         
            -
                           
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
      
 28 
     | 
    
         
            +
                        %ul.list-unstyled.mb-0
         
     | 
| 
      
 29 
     | 
    
         
            +
                          - if resource.event.early_bird? && ticket.early_bird_price.present? && ticket.early_bird_price != 0 && ticket.early_bird_price != ticket.member_price && ticket.early_bird_price != ticket.regular_price
         
     | 
| 
      
 30 
     | 
    
         
            +
                            %li
         
     | 
| 
      
 31 
     | 
    
         
            +
                              - if ticket.regular_price.present? && ticket.regular_price != 0
         
     | 
| 
      
 32 
     | 
    
         
            +
                                %div
         
     | 
| 
      
 33 
     | 
    
         
            +
                                  %s.mr-2.text-muted
         
     | 
| 
      
 34 
     | 
    
         
            +
                                    = price_to_currency(ticket.regular_price)
         
     | 
| 
      
 35 
     | 
    
         
            +
             
     | 
| 
      
 36 
     | 
    
         
            +
                              - if ticket.member_price.present? && ticket.member_price != 0
         
     | 
| 
      
 37 
     | 
    
         
            +
                                %div
         
     | 
| 
      
 38 
     | 
    
         
            +
                                  %s.text-muted
         
     | 
| 
      
 39 
     | 
    
         
            +
                                    = price_to_currency(ticket.member_price)
         
     | 
| 
      
 40 
     | 
    
         
            +
                                  .badge.badge-secondary.mr-2 Members
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
                              %div
         
     | 
| 
      
 43 
     | 
    
         
            +
                                = price_to_currency(ticket.early_bird_price)
         
     | 
| 
      
 44 
     | 
    
         
            +
                                .badge.badge-warning Early Bird
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
                          - else
         
     | 
| 
      
 47 
     | 
    
         
            +
                            - if ticket.regular_price.present?
         
     | 
| 
      
 48 
     | 
    
         
            +
                              %li
         
     | 
| 
      
 49 
     | 
    
         
            +
                                = price_to_currency(ticket.regular_price)
         
     | 
| 
      
 50 
     | 
    
         
            +
             
     | 
| 
      
 51 
     | 
    
         
            +
                            - if ticket.member_price.present?
         
     | 
| 
      
 52 
     | 
    
         
            +
                              %li
         
     | 
| 
      
 53 
     | 
    
         
            +
                                = price_to_currency(ticket.member_price)
         
     | 
| 
      
 54 
     | 
    
         
            +
                                .badge.badge-secondary Members
         
     | 
| 
       42 
55 
     | 
    
         | 
| 
       43 
56 
     | 
    
         
             
              - if waitlist
         
     | 
| 
       44 
57 
     | 
    
         
             
                %p If the ticket capacity has been reached you will be added to the waitlist.
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: effective_events
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.19. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.19.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Code and Effect
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2024-08- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2024-08-14 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: rails
         
     |