hstorly 0.1.1 → 0.1.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: dce5fe6fd61b0942999ad407e5d4637e80207fcd
4
- data.tar.gz: 5e0a106d63ff03539ee92b801ce4cd9bec1f68c3
3
+ metadata.gz: dcca16b1add0b062644a31d3c58c7a8355e01e65
4
+ data.tar.gz: a2b5960e0f99c97fa69bfc1f307b0acc093fdbed
5
5
  SHA512:
6
- metadata.gz: 427870e73b2bda99ec23f50acc99306e6257fda64f641a047b596a771312d67c04205e56ac4851077baceb5bf3a7fc2f61488d0df8c8b796cb3cf363772ef0b4
7
- data.tar.gz: f22eee703010e18c6fc386a7892ae8f1b2e019f384c7477eab275cf27735ec657d2c6d63a94a71f72c015a7351e05e48680feb10419029c2e12409f79f193a0e
6
+ metadata.gz: 31dceccdeb55530dd4e0715ba772516ed9ad3454e3d60d6799344a71eb476f2b77fb07faaf1307c40f6080c0e87dea4b143ffcf690cb202791a53058607644bd
7
+ data.tar.gz: 2413adf12f8784b98507b1c14f34d855563be61f9e1747c52b8143ef6c197a33b245e404cac89c4e2902e5c8c31e2b84dc6153da43acb05172d4052837b034b2
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Hstorly
2
2
 
3
- [![Build Status](https://travis-ci.org/hendricius/multilang-hstore.svg)](https://travis-ci.org/hendricius/multilang-hstore)
3
+ [![Build Status](https://travis-ci.org/hendricius/hstorly.svg?branch=master)](https://travis-ci.org/hendricius/hstorly)
4
4
 
5
5
  This project is a fork of the amazing [bithavoc/multilang-hstore](https://github.com/bithavoc/multilang-hstore) with some remarkable differences.
6
6
 
@@ -19,7 +19,9 @@ module Hstorly
19
19
  #
20
20
  # returns the new value
21
21
  define_method "#{attribute}=" do |value|
22
- if self[attribute].present?
22
+ if value.is_a?(Hash)
23
+ write_attribute attribute, value
24
+ elsif self[attribute].present?
23
25
  write_attribute attribute, send(attribute).merge({I18n.locale => value })
24
26
  value
25
27
  else
@@ -1,3 +1,3 @@
1
1
  module Hstorly
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hstorly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hendrik Kleinwaechter