octobat 0.0.2 → 0.0.3

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: 3e42ec60b58a387384a1b674fc153c004eeea3b6
4
- data.tar.gz: bf03f582fe83befd3a3d18fadca167a55bdda2a8
3
+ metadata.gz: 8b6c2364a6929e46205e82c43de5a48c2286441f
4
+ data.tar.gz: 9ab26798dbcad4b0f67b5b95abbf708bdc4ab39f
5
5
  SHA512:
6
- metadata.gz: 2391bbc6d853887b1660ab3579fc14c599df329d15bf16902e106b5e82d2300fb1a9a777db4195bd25bf2727c912d159bc5b72849c75bdcf48f1719ad30b124e
7
- data.tar.gz: aa605f9535518d8748b4c44e50cd7184ff7579fa7a2f1f502a3ecaf3ee33cd735fe9d2e0970cfeddc0765e1fb752fa221a920e29cb5a07186b248b1a18f9ae0a
6
+ metadata.gz: ce790cb7b5e21b93937bc3d68f87ab7440c21f62917b76ef37e13c06125e111b3afa2bcbaa8ac60b75abf948b2cfcf0941a35dc319dddda7f4866d011eb523b6
7
+ data.tar.gz: a497143be4dc7945ed316c9296eb5beb715ac87ccdb956d14359e5082730410e25c81d865351a0ec4704832c50cd4742f9dfaec12f44339c2063792ff77f10be
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/lib/octobat.rb CHANGED
@@ -41,6 +41,7 @@ require 'octobat/errors/authentication_error'
41
41
  module Octobat
42
42
  #DEFAULT_CA_BUNDLE_PATH = File.dirname(__FILE__) + '/data/ca-certificates.crt'
43
43
  @api_base = 'https://api.octobat.com'
44
+ #@api_base = 'http://api.octobat.local:3040'
44
45
 
45
46
  #@ssl_bundle_path = DEFAULT_CA_BUNDLE_PATH
46
47
  #@verify_ssl_certs = true
data/lib/octobat/util.rb CHANGED
@@ -7,7 +7,11 @@ module Octobat
7
7
  h.each { |k, v| res[k] = expand_nested_objects(v) unless v.nil? }
8
8
  res
9
9
  when Array
10
- res = {'' => h.map{|v| expand_nested_objects(v)}}
10
+ if !h.empty? && h.first.is_a?(Hash)
11
+ res = {'' => h.map{|v| expand_nested_objects(v)}}
12
+ else
13
+ res = h
14
+ end
11
15
  res
12
16
  else
13
17
  h
@@ -1,3 +1,3 @@
1
1
  module Octobat
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octobat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaultier Laperche
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-10 00:00:00.000000000 Z
11
+ date: 2015-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client