hotchoc 0.4.1 → 0.5.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 040dce9b238761f601ce6b7ca32ae944449e087a
4
- data.tar.gz: 1a30003ad4f7ac88bd1f83d9c6103cf4ee1a18e3
3
+ metadata.gz: 50267ed0d074efc5ce675e1763a947da964d0ebd
4
+ data.tar.gz: 40d722542faa6efc13c90b168bac0e559e0a0cd2
5
5
  SHA512:
6
- metadata.gz: 34806d08d50908475a0a08b4b9fce0ed6b71c98c42ab08ed59f3955bf3acfe393041882452b8340e36bcdfac8cb0cd7742dded84d2b25298949362085949101f
7
- data.tar.gz: c6d3cd0d31aa44b57659d04eab59436cd713a3dd79d0d2fba188c944771b73907440eeb188818bd42e8e4e7a44cb02545a1dda574a79dbb36f2078194b169df9
6
+ metadata.gz: 9831a75a659d14b26e9bd1fe1e94e102143f00fd9b5be051f93ccd481041ceed29d77c724e7b1cbda957c0d824e712f40ab71261fa7e9a63c27942f74388e727
7
+ data.tar.gz: 17974b2a003c220394bbbe19ba5d1bbe1c8fa6b3145a966ba5fa6b6b2d73b9a63ad6436620b4d0613e5658b780a55da93101594574f5fcd7ff833edc73418ca2
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.3
1
+ 2.2.4
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## Master
4
4
 
5
+ ## 0.5.0
6
+
7
+ [Full changelog](https://github.com/choc/hotchoc-ruby/compare/v0.4.1...v0.5.0)
8
+
9
+ Changes:
10
+
11
+ * JSON API responses no longer have root element
12
+
5
13
  ## 0.4.1
6
14
 
7
15
  [Full changelog](https://github.com/choc/hotchoc-ruby/compare/v0.4.0...v0.4.1)
@@ -2,19 +2,19 @@ module Hotchoc
2
2
  class Client
3
3
  module API
4
4
  def get_albums(opts = {})
5
- get('albums', opts)['albums'].map { |album| Hotchoc::Album.new(album) }
5
+ get('albums', opts).map { |album| Hotchoc::Album.new(album) }
6
6
  end
7
7
 
8
8
  def get_pages(opts = {})
9
- get('pages', opts)['pages'].map { |page| Hotchoc::Page.new(page) }
9
+ get('pages', opts).map { |page| Hotchoc::Page.new(page) }
10
10
  end
11
11
 
12
12
  def get_posts(opts = {})
13
- get('posts', opts)['posts'].map { |post| Hotchoc::Post.new(post) }
13
+ get('posts', opts).map { |post| Hotchoc::Post.new(post) }
14
14
  end
15
15
 
16
16
  def get_topics(opts = {})
17
- get('topics', opts)['topics'].map { |topic| Hotchoc::Topic.new(topic) }
17
+ get('topics', opts).map { |topic| Hotchoc::Topic.new(topic) }
18
18
  end
19
19
  end
20
20
  end
@@ -1,5 +1,5 @@
1
1
  module Hotchoc
2
2
  class Client
3
- VERSION = '0.4.1'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotchoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Siegel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-19 00:00:00.000000000 Z
11
+ date: 2015-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty