likeno 1.0.1 → 1.1.0

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: 8cf509ed39f6c26806c58a41378451e8c1127c70
4
- data.tar.gz: 46ed245a2ab784b375978c9cf49049f555d19b11
3
+ metadata.gz: 28ab06bbb10c7a16a896cb81baa75d932642dbe0
4
+ data.tar.gz: 37827f53e39445b378828e12f89b8f3e0a8da5c2
5
5
  SHA512:
6
- metadata.gz: a5a7ff1d8ee39292e4fcb4e1f9711e50b1c4c908bce5622852edc45f23ac50fb98b06b0dd6e5754d7cc4c44fee86f5f76e494c186051f49073b424ef83632887
7
- data.tar.gz: 776dd2192a6476a77ae3dc5e5e95726adc456daa62b703c1d0ee61fc1989d6df0686f01bec65ccad46621f278f1a2702099be9ff5ea3b05a7cbba3f08bc20050
6
+ metadata.gz: 1971d69723a12f0406d908224984d0ab7a5789dd48dd03342d3285657f7f4aabcc5787754316207f0e1e98355b8c3ae5548289ecd8215e5202b6254a26afee10
7
+ data.tar.gz: 62261836c2c156f0678dd74847c3f4c6f8a2c6087a0c15ebe95556513b0a2b0990ff8372effd91bcdec83cb98bb4482bf385e2bc488a25ff8a78fc7bf363a15a
data/CHANGELOG.rdoc CHANGED
@@ -4,6 +4,10 @@ Likeno is a library for remote data model access over HTTP
4
4
 
5
5
  == Unreleased
6
6
 
7
+ == v1.1.0 - 23/03/2016
8
+
9
+ * Generalize Hash conversion for non Likeno::Entity instances
10
+
7
11
  == v1.0.1 - 23/03/2016
8
12
 
9
13
  * Fix hash conversion
data/README.md CHANGED
@@ -69,3 +69,7 @@ end
69
69
  ```
70
70
 
71
71
  It returns a `hash` with the response body.
72
+
73
+ ## Versioning
74
+
75
+ Kolekti follows the [semantic versioning](http://semver.org/) policy.
@@ -25,7 +25,7 @@ module Likeno
25
25
  def convert_to_hash(value)
26
26
  return value if value.nil?
27
27
  return value.collect { |element| convert_to_hash(element) } if value.is_a? Array
28
- return value.to_hash if value.is_a?(Likeno::Entity)
28
+ return value.to_hash if value.respond_to?(:to_hash)
29
29
  return date_time_to_s(value) if value.is_a? DateTime
30
30
  return 'INF' if value.is_a?(Float) && value.infinite? == 1
31
31
  return '-INF' if value.is_a?(Float) && value.infinite? == -1
@@ -14,5 +14,5 @@
14
14
  # along with Likeno. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
16
  module Likeno
17
- VERSION = '1.0.1'
17
+ VERSION = '1.1.0'
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: likeno
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heitor Reis