soar_customer 0.1.3 → 0.1.4

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: 1fdf570a91419c806a5d2766f9247663b3cde365
4
- data.tar.gz: cc0c8af0af9ba64ec28feac8a2f3095e692bb9d6
3
+ metadata.gz: 1a11102b254c4d7b86dafc1fe0c480235a9fe38c
4
+ data.tar.gz: 1b1914dcf77502561353e9915dd9b772a9b051fc
5
5
  SHA512:
6
- metadata.gz: ea67361e75d0ea2fc31b33f7601e0737d685c9a8b7a74d1c0779bed48f451b77fa4c4999843e785b66a5928fd0d2d95cf9ac5cc67d77daf322be45c1c820ad55
7
- data.tar.gz: 2377e0fe63885c342ec90e92e8d2ef4e5b3d8467cb25362526ae82461d131c768fc23fcd568e49ca4bc221f8587a031629890b0ab3c0502dd42c2c24c68b8d32
6
+ metadata.gz: 3d6fb570406f7f15c3f9e61ea25308d570f1f150d8a2a6d66ac30f4c63c610b8e8c62e8646292bbc0f94f855f0af1dc3686f9a04ca4899a57930ede5059bc8d0
7
+ data.tar.gz: 810c9ba10ec6ea29df4f2570784471d9b112ea6836ce8e9e7109c43eb82e0a5863a400da50746c0e77e7c22a19f68557a7758d832209ef83cd0847c11d655dd7
data/Rakefile CHANGED
@@ -10,12 +10,12 @@ task :local do
10
10
  begin
11
11
  sh 'nohup rackup -p 9292 spec/mock_hapi/app.rb > sinatra.log 2>&1&'
12
12
  puts "Firing up mock HAPI server"
13
- $pid = `ps -ef | grep [a]pp.rb | grep 9292 | awk '{ print $2 }'`
13
+ $pid = `ps -ef | grep [r]ackup | awk '{ print $2 }'`
14
14
  puts "Pid found: #{$pid}"
15
15
  sh 'rspec spec/'
16
16
  ensure # Rake will abort when tests fail
17
17
  puts "Tests done - shutting down mock HAPI server"
18
- `kill #{$pid}`
18
+ `kill -9 #{$pid}`
19
19
  end
20
20
  end
21
21
 
@@ -1,3 +1,3 @@
1
1
  module SoarCustomer
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/lib/soar_customer.rb CHANGED
@@ -66,7 +66,7 @@ module SoarCustomer
66
66
  raise SoarHapiError.new('Missing data') if data.nil? or data.empty?
67
67
  setup_connection
68
68
  response = submit_to_hapi(endpoint, data)
69
- raise SoarHapiError.new("Invalid - HTTP status: #{response.status} with message: #{response.body}") if response.status > 200
69
+ raise SoarHapiError.new("Invalid - HTTP status: #{response.status}") if response.status > 200
70
70
  response.body
71
71
  rescue Faraday::Error::ConnectionFailed => e
72
72
  raise SoarHapiError.new('Connection failed to HAPI')
@@ -130,6 +130,7 @@ module SoarCustomer
130
130
  @credentials = credentials
131
131
  @username = @credentials['username']
132
132
  @password = @credentials['password']
133
+ true
133
134
  end
134
135
  end
135
136
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_customer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - daneb
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-08 00:00:00.000000000 Z
11
+ date: 2016-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler