findable 0.1.2 → 0.1.3

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: 4305f6cde690c51441bbdd0da26eae24b10d7b04
4
- data.tar.gz: 40f6aedbad7fdc92cb81b4a423712b118111eb02
3
+ metadata.gz: 5acbf80fe3312739785d49f99f8ac35def1d609b
4
+ data.tar.gz: 33e9bdf426eafc58df1082cf2b314a0330dfd40c
5
5
  SHA512:
6
- metadata.gz: 1535776a557a195a0a7757446136ab67a834a66c08dd28a952b535037110eb0eff880e322b78c8ecaeba1181b47309e1a21c11c3aa9191874811b132554799de
7
- data.tar.gz: 918c3a3636e3c6dc952e0aa3544acc04843c61dc8ac6412975f04102c350fc5d3d001fb1fa3349c97fc056bec11906c87dd30f61f83569a1eb356aa45e3dde67
6
+ metadata.gz: 564d8b363811d9fa14463bf91307962c2321a60e77e6de64b97b399625ef9fdc596fa5eacdfad09b5a79aa04adcb1b6941a4aa54cea46f90a0d89d8c93346c14
7
+ data.tar.gz: 158f1fdb607ed207d10c801f992e33dc60cbd35f0432472f558dd95d25d3aea8341db334123c61e03afa28e4b5bea5b903ab8b7932eb4e50508971ac43beec7c
data/lib/findable/seed.rb CHANGED
@@ -34,7 +34,7 @@ module Findable
34
34
  end
35
35
 
36
36
  def bootstrap!
37
- model.query.transaction do
37
+ model.query.lock do
38
38
  model.delete_all
39
39
  model.query.import YAML.load_file(@_full_path).values
40
40
  end
@@ -1,4 +1,4 @@
1
1
  module Findable
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
4
4
 
@@ -1,6 +1,6 @@
1
1
  namespace :findable do
2
2
  desc "Load seed file of findable."
3
- task :seed => :environment do
3
+ task :seeds => :environment do
4
4
  if Findable.config.seed_file
5
5
  load Findable.config.seed_file
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: findable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - i2bskn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-11 00:00:00.000000000 Z
11
+ date: 2015-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport