hinoki 1.2.1 → 1.3.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: e8d380458b4258d91c7be5a41f891468677a32c3
4
- data.tar.gz: a1ce4798cf3784ce45b1f9ce93a385f89d8d8af5
3
+ metadata.gz: 6526cf9b1b85f55f001d4d3fe587c57919e1ae59
4
+ data.tar.gz: 823f01aa8524a96f2ee0b409c2e9ca2847452968
5
5
  SHA512:
6
- metadata.gz: efc663b6dd3e7e60c815d770ac192c84da78d31bcf95c21b001175988aaf8aab23db6b9188aea187b804f5ba24767a526a55bc1e6d96aaa7c7e9bd45a8e0950c
7
- data.tar.gz: e669a4c3d0da59ab83dbf27cccc34ecee85122f0cc2ce4d480ba6d9b231519387c47c448501e391c0cb098bd4afd5a184c505230070b8b92618809be5eab26de
6
+ metadata.gz: cbbb150fed32133c3d4266c4d9387cf5993968b1aa38147593844e0fa3e97532c9d668609aac4721417a0d3cb8a8a1ce9e0045c2365269625458b0f5b979800e
7
+ data.tar.gz: 4f4b87260f9f84003941a5a5eb3b7b243128ab84018219559dedc1b662bd14f1df353c2053055a23ae08f6987e7c00b5bfd3e9eb225cbaf7a044c1eafb4076c1
data/lib/hinoki/config.rb CHANGED
@@ -15,7 +15,7 @@ class Hinoki
15
15
  private
16
16
 
17
17
  # Reads the base config file and parses it to a hash
18
- def parse_config_file(path=File.join(ENV['HOME'], '/etc', '.hinoki'))
18
+ def parse_config_file(path=File.join(ENV['HOME'] || '/etc', '.hinoki'))
19
19
  if !File.exists?(path)
20
20
  puts 'I was unable to find your Hinoki config file!'
21
21
  return defaults
@@ -1,5 +1,5 @@
1
1
  # hinoki/version.rb
2
2
 
3
3
  class Hinoki
4
- VERSION = '1.2.1'
4
+ VERSION = '1.3.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hinoki
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Davis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-11 00:00:00.000000000 Z
11
+ date: 2014-02-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A programmatic CLI utility for interacting with the Sensu API
14
14
  email: jake.davis5989@gmail.com
@@ -29,14 +29,6 @@ files:
29
29
  - lib/hinoki/events.rb
30
30
  - lib/hinoki/stashes.rb
31
31
  - lib/hinoki/version.rb
32
- - spec/hinoki/aggregates_spec.rb
33
- - spec/hinoki/checks_spec.rb
34
- - spec/hinoki/clients_spec.rb
35
- - spec/hinoki/events_spec.rb
36
- - spec/hinoki/generic_spec.rb
37
- - spec/hinoki/stashes_spec.rb
38
- - spec/hinoki_spec.rb
39
- - spec/spec_helper.rb
40
32
  homepage: http://github.com/jakedavis/hinoki
41
33
  licenses:
42
34
  - Apache 2.0
File without changes
File without changes
@@ -1,17 +0,0 @@
1
- require 'spec_helper'
2
- require 'json'
3
-
4
- describe Hinoki::Clients do
5
- before do
6
- @hinoki = Hinoki.new(host: 'hinoki.test', port: 4567)
7
- end
8
-
9
- describe '#all' do
10
- it 'should return a list of all clients' do
11
- stub_request(:get, "http://hinoki.test:4567/clients")
12
-
13
- @hinoki.clients.all.should be_a(Array)
14
- end
15
- end
16
-
17
- end
File without changes
File without changes
File without changes
data/spec/hinoki_spec.rb DELETED
@@ -1,4 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Hinoki do
4
- end
data/spec/spec_helper.rb DELETED
@@ -1,2 +0,0 @@
1
- require 'hinoki'
2
- require 'webmock/rspec'