datastax_rails 1.0.13 → 1.0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,7 +43,7 @@ module DatastaxRails
43
43
  # @param [String] name the name of the attribute
44
44
  # @param [Object] value the value of the attribute prior to typecasting
45
45
  #
46
- # @return the typecasted value
46
+ # @return the typecast value
47
47
  # @raise [NoMethodError] if the attribute is unknown
48
48
  def typecast_attribute(record, name, value)
49
49
  if attribute_definition = attribute_definitions[name.to_sym]
@@ -6,7 +6,7 @@ module DatastaxRails
6
6
  ActiveSupport.on_load(:datastax_rails) do
7
7
  end
8
8
  config = YAML.load_file(Rails.root.join("config", "datastax.yml"))
9
- DatastaxRails::Base.establish_connection(config[Rails.env].symbolize_keys)
9
+ DatastaxRails::Base.establish_connection(config[Rails.env].with_indifferent_access)
10
10
  end
11
11
 
12
12
  rake_tasks do
@@ -66,7 +66,7 @@ module DatastaxRails
66
66
  def decode(str)
67
67
  return [] if str.blank?
68
68
 
69
- str.split(/&&&&/)
69
+ str.is_a?(Array) ? str.flatten : str.split(/&&&&/)
70
70
  end
71
71
 
72
72
  def wrap(record, name, value)
@@ -1,4 +1,4 @@
1
1
  module DatastaxRails
2
2
  # The current version of the gem
3
- VERSION = "1.0.13"
3
+ VERSION = "1.0.13.1"
4
4
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datastax_rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 105
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 13
10
- version: 1.0.13
10
+ - 1
11
+ version: 1.0.13.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Jason M. Kusar