gotime-cassandra_object 2.10.1 → 2.10.2

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 = '2.10.1'
5
+ s.version = '2.10.2'
6
6
  s.description = 'Cassandra ActiveModel'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
 
@@ -1,14 +1,14 @@
1
1
  namespace :ks do
2
- desc 'Create the keyspace in config/cassandra.yml for the current environment'
2
+ desc 'Create the keyspace in cassandra_config/cassandra.yml for the current environment'
3
3
  task :create => :environment do
4
- CassandraObject::Tasks::Keyspace.new.create config['keyspace'], config
5
- puts "Created keyspace: #{config['keyspace']}"
4
+ CassandraObject::Tasks::Keyspace.new.create cassandra_config['keyspace'], cassandra_config
5
+ puts "Created keyspace: #{cassandra_config['keyspace']}"
6
6
  end
7
7
 
8
- desc 'Drop keyspace in config/cassandra.yml for the current environment'
8
+ desc 'Drop keyspace in cassandra_config/cassandra.yml for the current environment'
9
9
  task :drop => :environment do
10
- CassandraObject::Tasks::Keyspace.new.drop config['keyspace']
11
- puts "Dropped keyspace: #{config['keyspace']}"
10
+ CassandraObject::Tasks::Keyspace.new.drop cassandra_config['keyspace']
11
+ puts "Dropped keyspace: #{cassandra_config['keyspace']}"
12
12
  end
13
13
 
14
14
  desc 'Migrate the keyspace (options: VERSION=x)'
@@ -75,10 +75,10 @@ namespace :ks do
75
75
  end
76
76
  end
77
77
 
78
- def config
79
- @config ||= begin
80
- configs = YAML.load_file(Rails.root.join("config", "cassandra.yml"))
81
- configs[Rails.env || 'development']
78
+ def cassandra_config
79
+ @cassandra_config ||= begin
80
+ cassandra_configs = YAML.load_file(Rails.root.join("cassandra_config", "cassandra.yml"))
81
+ cassandra_configs[Rails.env || 'development']
82
82
  end
83
83
  end
84
84
  end
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: 2.10.1
4
+ version: 2.10.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-01-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
17
- requirement: &70160073703160 !ruby/object:Gem::Requirement
17
+ requirement: &70228572053300 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '3.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70160073703160
25
+ version_requirements: *70228572053300
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: cassandra
28
- requirement: &70160073702100 !ruby/object:Gem::Requirement
28
+ requirement: &70228572052320 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 0.12.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70160073702100
36
+ version_requirements: *70228572052320
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: bundler
39
- requirement: &70160073701380 !ruby/object:Gem::Requirement
39
+ requirement: &70228572051560 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: 1.0.0
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *70160073701380
47
+ version_requirements: *70228572051560
48
48
  description: Cassandra ActiveModel
49
49
  email: gems@gotime.com
50
50
  executables: []