jackal 0.3.14 → 0.3.16

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: 7253602def38f284c8ad696165795a312490d5dd
4
- data.tar.gz: 596d502a71246dc3c4534899841e1e63dc4f982d
3
+ metadata.gz: 9f7870c19fd3fa82eff237643836103515b7f8be
4
+ data.tar.gz: c9aac6405362913a7735b7d8a66fe221940b1af8
5
5
  SHA512:
6
- metadata.gz: bac6c34c10109837b87bb9debc3490cb301cee1c5fb0bbab4434fb0a039ff93c021d82e6dcf79961aac09f0e8d2d9d83c648a6edcc76f094b7e8440f35e0ed6e
7
- data.tar.gz: 2ff2bb0ff8927e174f008dd36ecd141191a94f7f7f73958e3fe3d5e0567d9b505a8882c817d14c5395951fe7c9d726bbe872d7679dd8c7bd322636c306034700
6
+ metadata.gz: 2d011a1fb7f3f25f65012936380927a13152cb90fcbcfa7b0e5a42a5d40b0482c6373c0c399172267ffd6eb8c53f726fa9497d0a6c376d86815d676ae77b2f8a
7
+ data.tar.gz: bb8c5378964a7e7663a3757fe32e9977be55d85e1d3e32b0f34833b62aadd7e4da37e50db159b2d7740e125303b8fd540e77f5266f8529e639cffe42d7c7b624
@@ -1,3 +1,6 @@
1
+ # v0.3.16
2
+ * Add `app_host` configuration helper method
3
+
1
4
  # v0.3.14
2
5
  * Add test scaffold generator
3
6
  * Update carnivore constraint
@@ -45,6 +45,11 @@ module Jackal
45
45
  )
46
46
  end
47
47
 
48
+ # @return [String] name of the host running the application
49
+ def app_host
50
+ app_config.fetch(:app_host, Socket.gethostname)
51
+ end
52
+
48
53
  # @return [Smash] service configuration
49
54
  def service_config
50
55
  Carnivore::Config.get(*config_path) || Smash.new
@@ -1,4 +1,4 @@
1
1
  module Jackal
2
2
  # Current library version
3
- VERSION = Gem::Version.new('0.3.14')
3
+ VERSION = Gem::Version.new('0.3.16')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jackal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.14
4
+ version: 0.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-13 00:00:00.000000000 Z
11
+ date: 2015-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carnivore