gotime-cassandra_object 4.3.0 → 4.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'gotime-cassandra_object'
5
- s.version = '4.3.0'
5
+ s.version = '4.3.1'
6
6
  s.description = 'Cassandra ActiveModel'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
  s.authors = ["Michael Koziarski", "gotime"]
@@ -10,10 +10,7 @@ ks_namespace = namespace :ks do
10
10
 
11
11
  task reset: [:drop, :setup]
12
12
 
13
- task setup: :create do
14
- filename = ENV['SCHEMA'] || "#{Rails.root}/ks/structure.cql"
15
- CassandraObject::Schema.load(filename)
16
- end
13
+ task setup: [:create, :_load]
17
14
 
18
15
  namespace :structure do
19
16
  task dump: :environment do
@@ -22,12 +19,21 @@ ks_namespace = namespace :ks do
22
19
  CassandraObject::Schema.dump(file)
23
20
  end
24
21
  end
22
+
23
+ task load: :environment do
24
+ filename = ENV['SCHEMA'] || "#{Rails.root}/ks/structure.cql"
25
+ CassandraObject::Schema.load(filename)
26
+ end
25
27
  end
26
28
 
27
29
  task :_dump do
28
30
  ks_namespace["structure:dump"].invoke
29
31
  end
30
32
 
33
+ task :_load do
34
+ ks_namespace["structure:load"].invoke
35
+ end
36
+
31
37
  private
32
38
  def cassandra_config
33
39
  @cassandra_config ||= begin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gotime-cassandra_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 4.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: