klastera 1.4.4.2 → 1.5.1.0
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: 61a79a2721fa98f78eadba5923e1a70855deb644b762041d17ae0b1d2cef84bc
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c5f06481ea66b9d2bf97b4468427fd993245858299e2fe5bb2aaaed9260a10bf
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 8e0a26f3694409caaf317a3fe0ae2744bb1f9af1208550a61824d9111ba3698c7e7f006a88d3de349a95dea09d24a08eb69274ac812a3a769dfb6c6c4f9799ee
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 72187adb26c6b554e13d097b14c55c75fe9ac1eece07aa5355c516affcacf11e401fa539d3e123b7aaec5eb3c557131aa68c8d077135740df228556eedb2471e
         
     | 
| 
         
            File without changes
         
     | 
| 
         @@ -6,7 +6,7 @@ module Klastera::Concerns::Clusterizable 
     | 
|
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
                belongs_to :cluster
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
                has_many :cluster_entities, as: :entity, class_name: Klastera::ClusterEntity
         
     | 
| 
      
 9 
     | 
    
         
            +
                has_many :cluster_entities, as: :entity, class_name: "Klastera::ClusterEntity"
         
     | 
| 
       10 
10 
     | 
    
         
             
                accepts_nested_attributes_for :cluster_entities, reject_if: :all_blank, allow_destroy: true
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
                validates :cluster_id, presence: true, if: -> { cluster_id.present? && organization.present? && organization.required_suborganization_mode? }
         
     | 
    
        data/lib/klastera.rb
    CHANGED
    
    | 
         @@ -36,8 +36,8 @@ module Klastera 
     | 
|
| 
       36 
36 
     | 
    
         
             
                  active_record_collection = active_record_collection.order(order: :asc)
         
     | 
| 
       37 
37 
     | 
    
         | 
| 
       38 
38 
     | 
    
         
             
                  if include_unclustered && organization.optional_suborganization_mode? # For show and use modes only
         
     | 
| 
       39 
     | 
    
         
            -
                    active_record_collection.append(
         
     | 
| 
       40 
     | 
    
         
            -
                      ::Cluster.new({nid: UNCLUSTERED_ENTITY, name: I18n.t("klastera.#{UNCLUSTERED_ENTITY}") 
     | 
| 
      
 39 
     | 
    
         
            +
                    active_record_collection.to_a.append(
         
     | 
| 
      
 40 
     | 
    
         
            +
                      ::Cluster.new({nid: UNCLUSTERED_ENTITY, name: I18n.t("klastera.#{UNCLUSTERED_ENTITY}"), order: UNCLUSTERED_POSITION })
         
     | 
| 
       41 
41 
     | 
    
         
             
                    )
         
     | 
| 
       42 
42 
     | 
    
         
             
                  end
         
     | 
| 
       43 
43 
     | 
    
         
             
                  active_record_collection
         
     | 
| 
         @@ -54,7 +54,7 @@ module Klastera 
     | 
|
| 
       54 
54 
     | 
    
         
             
                  end
         
     | 
| 
       55 
55 
     | 
    
         
             
                  _cluster_entities.map do |ce|
         
     | 
| 
       56 
56 
     | 
    
         
             
                    ce.cluster.try(attribute)
         
     | 
| 
       57 
     | 
    
         
            -
                  end.sort. 
     | 
| 
      
 57 
     | 
    
         
            +
                  end.compact.sort.join(separator)
         
     | 
| 
       58 
58 
     | 
    
         
             
                end
         
     | 
| 
       59 
59 
     | 
    
         | 
| 
       60 
60 
     | 
    
         
             
                ##
         
     | 
    
        data/lib/klastera/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,29 +1,29 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: klastera
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.5.1.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Gino Barahona
         
     | 
| 
       8 
     | 
    
         
            -
            autorequire:
         
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-03-08 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: rails
         
     | 
| 
       15 
15 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       16 
16 
     | 
    
         
             
                requirements:
         
     | 
| 
       17 
     | 
    
         
            -
                - - " 
     | 
| 
      
 17 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       18 
18 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       19 
     | 
    
         
            -
                    version:  
     | 
| 
      
 19 
     | 
    
         
            +
                    version: 5.0.7.2
         
     | 
| 
       20 
20 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       21 
21 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       22 
22 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       23 
23 
     | 
    
         
             
                requirements:
         
     | 
| 
       24 
     | 
    
         
            -
                - - " 
     | 
| 
      
 24 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       25 
25 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       26 
     | 
    
         
            -
                    version:  
     | 
| 
      
 26 
     | 
    
         
            +
                    version: 5.0.7.2
         
     | 
| 
       27 
27 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       28 
28 
     | 
    
         
             
              name: pg
         
     | 
| 
       29 
29 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -38,7 +38,7 @@ dependencies: 
     | 
|
| 
       38 
38 
     | 
    
         
             
                - - ">="
         
     | 
| 
       39 
39 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       40 
40 
     | 
    
         
             
                    version: '0'
         
     | 
| 
       41 
     | 
    
         
            -
            description: A simple tool to  
     | 
| 
      
 41 
     | 
    
         
            +
            description: A simple tool to cluste RoR models.
         
     | 
| 
       42 
42 
     | 
    
         
             
            email:
         
     | 
| 
       43 
43 
     | 
    
         
             
            - gino.barahona@gmail.com
         
     | 
| 
       44 
44 
     | 
    
         
             
            executables: []
         
     | 
| 
         @@ -50,7 +50,7 @@ files: 
     | 
|
| 
       50 
50 
     | 
    
         
             
            - Rakefile
         
     | 
| 
       51 
51 
     | 
    
         
             
            - app/assets/javascripts/klastera/application.js
         
     | 
| 
       52 
52 
     | 
    
         
             
            - app/assets/javascripts/klastera/clusters.js
         
     | 
| 
       53 
     | 
    
         
            -
            - app/assets/stylesheets/klastera/clusters. 
     | 
| 
      
 53 
     | 
    
         
            +
            - app/assets/stylesheets/klastera/clusters.scss
         
     | 
| 
       54 
54 
     | 
    
         
             
            - app/controllers/klastera/application_controller.rb
         
     | 
| 
       55 
55 
     | 
    
         
             
            - app/controllers/klastera/clusters_controller.rb
         
     | 
| 
       56 
56 
     | 
    
         
             
            - app/helpers/klastera/application_helper.rb
         
     | 
| 
         @@ -110,7 +110,7 @@ homepage: https://github.com/ginosx/klastera 
     | 
|
| 
       110 
110 
     | 
    
         
             
            licenses:
         
     | 
| 
       111 
111 
     | 
    
         
             
            - MIT
         
     | 
| 
       112 
112 
     | 
    
         
             
            metadata: {}
         
     | 
| 
       113 
     | 
    
         
            -
            post_install_message:
         
     | 
| 
      
 113 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
       114 
114 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       115 
115 
     | 
    
         
             
            require_paths:
         
     | 
| 
       116 
116 
     | 
    
         
             
            - lib
         
     | 
| 
         @@ -125,16 +125,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       125 
125 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       126 
126 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       127 
127 
     | 
    
         
             
            requirements: []
         
     | 
| 
       128 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
       129 
     | 
    
         
            -
            signing_key:
         
     | 
| 
      
 128 
     | 
    
         
            +
            rubygems_version: 3.2.7
         
     | 
| 
      
 129 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
       130 
130 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       131 
131 
     | 
    
         
             
            summary: Clusterization Engine
         
     | 
| 
       132 
132 
     | 
    
         
             
            test_files:
         
     | 
| 
       133 
     | 
    
         
            -
            - test/ 
     | 
| 
      
 133 
     | 
    
         
            +
            - test/controllers/klastera/clusters_controller_test.rb
         
     | 
| 
      
 134 
     | 
    
         
            +
            - test/test_helper.rb
         
     | 
| 
      
 135 
     | 
    
         
            +
            - test/klastera_test.rb
         
     | 
| 
       134 
136 
     | 
    
         
             
            - test/models/klastera/cluster_user_test.rb
         
     | 
| 
       135 
137 
     | 
    
         
             
            - test/models/klastera/cluster_test.rb
         
     | 
| 
       136 
     | 
    
         
            -
            - test/klastera_test.rb
         
     | 
| 
       137 
     | 
    
         
            -
            - test/fixtures/klastera/clusters.yml
         
     | 
| 
       138 
138 
     | 
    
         
             
            - test/fixtures/klastera/cluster_users.yml
         
     | 
| 
       139 
     | 
    
         
            -
            - test/ 
     | 
| 
       140 
     | 
    
         
            -
            - test/ 
     | 
| 
      
 139 
     | 
    
         
            +
            - test/fixtures/klastera/clusters.yml
         
     | 
| 
      
 140 
     | 
    
         
            +
            - test/integration/navigation_test.rb
         
     |