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 +4 -4
- data/lib/crud_client/crud_client.rb +5 -3
- data/lib/crud_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d3e286024894b02c187cf875914bb9e0600e6e3
|
4
|
+
data.tar.gz: 708fdca9c57a25ffeeab6654a1809cd477be6a8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
59
|
-
logger.
|
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
|
data/lib/crud_client/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|