ailurus 2.0.1 → 2.0.2

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: a5a52c2af5f5049edb1f7ba0d5123fb17a04efb5
4
- data.tar.gz: 8f04deab06f010a0eb10517b1c16d44d6c4107b6
3
+ metadata.gz: 8b04e7a0677757a0dec78cdf6961784b486d2fcf
4
+ data.tar.gz: 818ced36df5be5ba8783e185f2e611c44ff19e53
5
5
  SHA512:
6
- metadata.gz: 129c3e4cad8e031ca78bd18bc60a62849ed43b2ed088a2a11caf33d2a53a229209fc70492f4127fb26890175757be826f0cae5e902cb9ba4bb626ed7186de6ca
7
- data.tar.gz: d1ba58a1eb8b0b5a12dfec5b5376e198dc1901bc435fabc7214299d265fa09b40770f031a62658394e0e120586327d453ef2a6c6dc5076524c8a34ba2fb95624
6
+ metadata.gz: f7ea2df34e335e2f831d51fbaa6565c393e0580b207e41f3052c5d9c6321d9cb3c64bbfdf35486f186273eb9630563920925b92755bfb7cb3e66b22aeefa6adb
7
+ data.tar.gz: 8008500234f080c4cad928ce24071b0f80bcab3984fd000f848962b39def39bd51dcd631d5e58d2b9c144602d9032db6088660642ffddb6125911041d4210dc0
data/.travis.yml CHANGED
@@ -1,3 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.2.2
3
4
  - 2.2.1
5
+ - 1.9.3
6
+ notifications:
7
+ email: false
8
+ before_install:
9
+ - gem install bundler
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Ailurus #
2
2
 
3
+ [![Build Status](https://travis-ci.org/associatedpress/ailurus.svg?branch=master)](https://travis-ci.org/associatedpress/ailurus)
4
+ [![Gem Version](https://badge.fury.io/rb/ailurus.svg)](http://badge.fury.io/rb/ailurus)
5
+
3
6
  This is a client gem to help people work programmatically with
4
7
  [PANDA](http://pandaproject.net/) instances.
5
8
 
@@ -1,3 +1,5 @@
1
+ require "json"
2
+
1
3
  module Ailurus
2
4
  class Dataset
3
5
  # Public: Retrieve metadata about this Dataset.
@@ -7,7 +9,11 @@ module Ailurus
7
9
  # Returns a Hash.
8
10
  def metadata
9
11
  endpoint = "/api/1.0/dataset/#{@slug}/"
10
- @client.make_request(endpoint)
12
+ begin
13
+ @client.make_request(endpoint)
14
+ rescue JSON::JSONError
15
+ nil
16
+ end
11
17
  end
12
18
 
13
19
  # Public: Get the indexed name for a field so you can perform more detailed
@@ -1,3 +1,3 @@
1
1
  module Ailurus
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ailurus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Myers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-04-16 00:00:00.000000000 Z
11
+ date: 2016-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -125,9 +125,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  requirements: []
127
127
  rubyforge_project:
128
- rubygems_version: 2.4.6
128
+ rubygems_version: 2.4.5.1
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Ruby client gem for PANDA servers
132
132
  test_files: []
133
- has_rdoc: