klastera 1.4.4.5 → 1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 565747ef3918ef0e604b3f971f0b6b8bd559b9f8a168257f3611a977fe90e6ae
4
- data.tar.gz: d375f60db78e73711b21b75f796985f416a7a388375518e733afd1686afe49af
3
+ metadata.gz: 8c2357a5d407117bdfc6e495f9708c4c0c48eac080959dcd60c47e2e56a21873
4
+ data.tar.gz: cb0d205dbe40fa7397fefbab63b74d6b7b2d6adbb0e864293434e91213adbac1
5
5
  SHA512:
6
- metadata.gz: 6754f229308b5f2f268f8239c0057ee869a2fbfee0940f8cff422610c07820f0942e5b12c8c95119f4814e1c64ee7a9ffd2f5fcaf91f9be6f0a1a799f98a1583
7
- data.tar.gz: 11af42520852996474e3e5b3c37715de7ac5e5454ce68569b9114cbc298bca233948dff90d4fa53ac7561f0b4378f55353accf5283148560f78e07894c9594e6
6
+ metadata.gz: 74c41b45bdcb33141c81be648b55707a103767b40fdfd531c885bb85b1886f12f2d3501f3231a916bfdbee96107b4c67b18507016ab031a16b7ea87352839180
7
+ data.tar.gz: 19dab50f4a230df0ca7e7992d885d938d1cb633939cbee2781dd78b4dfae2ab3d161379b853999b3fd925ccf143fe10e9b8594f2d3f98382b6ac013decc6eec9
@@ -1,3 +1,3 @@
1
1
  module Klastera
2
- VERSION = "1.4.4.5"
2
+ VERSION = "1.5"
3
3
  end
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}")}, order: UNCLUSTERED_POSITION )
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
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.4.5
4
+ version: '1.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gino Barahona
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-22 00:00:00.000000000 Z
11
+ date: 2021-02-25 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: 4.2.11.1
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: 4.2.11.1
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 Ruby on Rails models clusterization.
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.css.scss
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
@@ -94,7 +94,6 @@ files:
94
94
  - db/migrate/20200330221601_add_order_field_to_clusters.rb
95
95
  - db/migrate/20200518142609_create_klastera_cluster_entities.rb
96
96
  - db/migrate/20200908180057_add_cluster_config_to_organization.rb
97
- - db/migrate/20210318185053_add_unique_index_to_cluster_entities.rb
98
97
  - lib/klastera.rb
99
98
  - lib/klastera/engine.rb
100
99
  - lib/klastera/version.rb
@@ -126,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
125
  - !ruby/object:Gem::Version
127
126
  version: '0'
128
127
  requirements: []
129
- rubygems_version: 3.0.6
128
+ rubygems_version: 3.1.2
130
129
  signing_key:
131
130
  specification_version: 4
132
131
  summary: Clusterization Engine
@@ -1,5 +0,0 @@
1
- class AddUniqueIndexToClusterEntities < ActiveRecord::Migration
2
- def change
3
- add_index :cluster_entities, %i[cluster_id entity_id entity_type], unique: true, name: :index_on_cluster_id_and_entity_id_and_entity_type
4
- end
5
- end