crud_client 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e76e667bdd01448e65e8d85fff7f9fb48f4df73
4
- data.tar.gz: 82c83138d330436b34aae68ac642c9de2f9956a6
3
+ metadata.gz: 3d3e286024894b02c187cf875914bb9e0600e6e3
4
+ data.tar.gz: 708fdca9c57a25ffeeab6654a1809cd477be6a8a
5
5
  SHA512:
6
- metadata.gz: 893132684feebb1ea998d4c2db851bdf3638379088bcdfd773b94a798d4a3d6f49cc1320dbca88dd3a04bd9ebb8ab86f98e9ffb4af0fdc39cef243e031687666
7
- data.tar.gz: f95829a325a9a73dd800b6672380c48d480e496b97d03488c88ca51984bcb863133c71e98b539bbd5a55295fa7f03142ffd147d069d2e515d553d87caef8c732
6
+ metadata.gz: 5611bc8ce8263ca1885fbe720b77f5d1b8849ece18f5560216056bdb12050fd1fe058ff9bf1ddf391e3c01c420faeb80618728fe949cbf80a5ace19efa1316fa
7
+ data.tar.gz: fda1f282246f2176822b85786bc3b3d9c7b1c5df07c42cfb79ee559343add29199c533e378f5bea323d5ffb66459b32b4ff4a4109b1c7e3a756948b1b1f24d55
@@ -5,7 +5,8 @@ require 'faraday_middleware'
5
5
  require 'hashie'
6
6
  require 'celluloid/io'
7
7
  require 'imprint'
8
- require 'napa'
8
+ require 'napa/version'
9
+ require 'napa/identity'
9
10
 
10
11
  module CrudClient
11
12
  class CrudClient
@@ -55,8 +56,9 @@ module CrudClient
55
56
  # use a new celluloid actor thread
56
57
  future = Celluloid::Future.new do
57
58
  begin
58
- logger = defined?(Rails) ? Rails.logger : Napa::Logger.logger
59
- logger.info("#{ENV['SERVICE_NAME']} is calling #{self.name}")
59
+ logger = Rails.logger if defined?(Rails)
60
+ logger ||= Napa::Logger.logger if defined?(Napa::Logger)
61
+ logger.info("#{ENV['SERVICE_NAME']} is calling #{self.name}") if logger
60
62
  response = conn.send(method, url, options) do |request|
61
63
  request.headers = request.headers.merge(headers)
62
64
  end
@@ -1,3 +1,3 @@
1
1
  module CrudClient
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crud_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay OConnor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-29 00:00:00.000000000 Z
11
+ date: 2014-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday