activecube 0.1.44 → 0.1.45

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: f4657cc9edb63bf6760180e758e985d47bbd452b479d17a9dea044a5030ca83a
4
- data.tar.gz: ce8fe2944bccabb655d76924a677f1a7a0324d5b7a6d88e2ed33d10813923d00
3
+ metadata.gz: 69c1a36a5deeddf200296ab2809a0a0c503b06480ca6fd358585f6184ae560eb
4
+ data.tar.gz: 92fad5df5d1e723f7d6f4caa361e24dcc3aa16fa1b037b2ebe6f9461e739f4de
5
5
  SHA512:
6
- metadata.gz: 1edc0deb21fac6290515851e11c678e2a4f1c65db5c760163b3f37566680f6318c8e91e0d6e72d672a21dca59aac4c6f16fe722d59302cde3e65804d9ccf7a86
7
- data.tar.gz: 17198fbc0d5b0d0879d194e62e32b3906eadc3bd86ff8684fccc8c2ed220bcf066c79277b67ec181e9a61e52ed1a9b274f9d4edd1e6ed9f741120cae010a45d9
6
+ metadata.gz: 2db7aeb2a92d01dcb7756cba754e4a429d3cbf79bc89fd7f6fa1fcdfdd98f2c42882644c1778aa9ad1fdee5c1f21bb1aad844203ab125e7f980b0e003a86f46d
7
+ data.tar.gz: 2e4ff8cb29e610bf49eb2be5c1b188d623e81b69cfb5bb4cb7ef9c16bd0dbea0f5625b668b4f1e17d0dca76bc37cdc239f44854da351e06aa5421b1e1f63213c
data/Gemfile.lock CHANGED
@@ -9,7 +9,7 @@ GIT
9
9
  PATH
10
10
  remote: .
11
11
  specs:
12
- activecube (0.1.44)
12
+ activecube (0.1.45)
13
13
  activerecord (>= 5.2)
14
14
 
15
15
  GEM
@@ -67,8 +67,7 @@ module Activecube::Processor
67
67
  end
68
68
 
69
69
  def gen_permutations(n, k)
70
- seq = *(0...n)
71
- perm = seq.slice(0, k)
70
+ perm = Array.new(k, 0)
72
71
  perms = []
73
72
 
74
73
  while true
@@ -106,7 +105,7 @@ module Activecube::Processor
106
105
 
107
106
  unless flag
108
107
  rows_indices[i] = uniq_rows.length
109
- possible_tables[i] = Hash[row.map.with_index { |c, index| [index, true] if c }.compact]
108
+ possible_tables[uniq_rows.length] = Hash[row.map.with_index { |c, index| [index, true] if c }.compact]
110
109
  uniq_rows.push(row)
111
110
  end
112
111
  end
@@ -1,3 +1,3 @@
1
1
  module Activecube
2
- VERSION = "0.1.44"
2
+ VERSION = "0.1.45"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activecube
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.44
4
+ version: 0.1.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksey Studnev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-01 00:00:00.000000000 Z
11
+ date: 2022-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord