makumba_import 0.5.1 → 0.5.2

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
  SHA1:
3
- metadata.gz: faba01d19123888f6b6970f8b3a3409aeed8d66e
4
- data.tar.gz: 842e00720dae0b3b30ebb260313fea0b6e1ff6b4
3
+ metadata.gz: c9e21f65a28affa8897501641b64f203f7522b5b
4
+ data.tar.gz: 61a9792942d6a80e41a3b76c3d5fc4c725b71a08
5
5
  SHA512:
6
- metadata.gz: bb4040390f5d5e04d2419f79f9383df033694f333782ea7e9fc07a7c3b34df48f99885d4411a260a9434116cf4657b2a904086220ecccfb556ec5269a0cf0813
7
- data.tar.gz: 7f95897e57b5d5203f8985e12338735cabda5df24bd6b1ec1ec83c91bab5f5f18cd26ba27a0eba160e05305e31e2280e233fcc776bbc377a63aad19b4c408491
6
+ metadata.gz: 875f5573c40952a1c4b7ff3dd388282211c4fd3369378b17ee3f129a7b257717e1c9e1fa8533b92267b56ab7ac1c5ccac01f92ee65fc440d557f0efdb635043a
7
+ data.tar.gz: 1b98966b7a206eebfc4585c169b3ce2ba2b43c76e679a73047ca698d3eb352df52ac40dbb01ae558f794b756647e071f81e609db0c98e0d2a287d5b884dffc2e
@@ -35,7 +35,7 @@ module MakumbaImport
35
35
  object = Object.const_get(model)
36
36
  primary_key = object.primary_key
37
37
  current_max = object.unscoped.maximum(primary_key, :conditions => ["#{primary_key} > ? and #{primary_key} < ?", @dbsv << 24, (@dbsv + 1) << 24]) || ((@dbsv << 24) + 1)
38
- redis_key = "maxprimary_#{model.table_name}_#{@dbsv}"
38
+ redis_key = "maxprimary_#{object.table_name}_#{@dbsv}"
39
39
 
40
40
  @redis.set redis_key, current_max
41
41
  puts "updated #{model} - #{object.table_name}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makumba_import
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marius Andra