ezapi_client 0.2.1 → 0.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: 469e76092cb00177d8a2e8e1103d86f4a8be9fc6
4
- data.tar.gz: 4567515a5b3db151626a0d84f42297affb05d0bf
3
+ metadata.gz: 3f1e227d88c32617992da666064320a7bc92c433
4
+ data.tar.gz: 2e4e10c807545ce41724d96247f28bf6242e1609
5
5
  SHA512:
6
- metadata.gz: 361f4f98df1641860c9d2fd7b5bce307947638fb48d5af3646ff305bfd61ffc6449f10250af3e1e14475fd43828529d5a5557db0c76c3141c1ad6f9f5ca78adb
7
- data.tar.gz: 80a01a6ec5d13c060dc492b640f1697962c20b500f4fdbab565d6d19ea6253408010ad90be8c9d77919bb14ecddc2b2fb3e4e83eac697cb4a92d0d2a27e07359
6
+ metadata.gz: d3107cdf686fe73b4d5e9fed39b7fef7df885f45083eecc58a807e23262b919d8e6d4de2277dd4eda088c7973102bc1c9263c4144d641a36bf2edda94a8f82ed
7
+ data.tar.gz: ff2a76984617687c954e146da9a9b0c7f35ea558cdfb917c5ec2ef22626881785a27f66fc3fe0dc315f4f72951c020641f7ef9dd005a428a51d365389e06e45d
data/.env CHANGED
@@ -1,5 +1,6 @@
1
- USERNAME=overrideme
1
+ USERNAME="cqXN/8DyggKkGkCNa59mI+/cD8o="
2
2
  PASSWORD=overrideme
3
- EKS_PATH=path/to/eks
4
- PRV_PATH=path/to/prv
3
+ EKS_PATH=spec/fixtures/RAM00004.eks
4
+ PRV_PATH=spec/fixtures/RAM00004.prv
5
+ AGENT_CODE=RAM
5
6
  HOST=http://52.88.11.99:8808
data/.gitignore CHANGED
@@ -7,7 +7,5 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
- /spec/fixtures/*.eks
11
- /spec/fixtures/*.prv
12
10
  /spec/config.yml
13
11
  /.env.local
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [0.3.0] - 2016-10-11
6
+ ### Added
7
+ - Include stdout in the exception raised when ExecCommand fails
8
+
5
9
  ## [0.2.1] - 2016-09-19
6
10
  ### Fixed
7
11
  - updated jar for special characters fix
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # EZAPIClient
2
2
 
3
+ [![Build Status](https://travis-ci.org/imacchiato/ezapi_client-ruby.svg?branch=master)](https://travis-ci.org/imacchiato/ezapi_client-ruby)
4
+
3
5
  Ruby wrapper for EasyPadala's API.
4
6
 
5
7
  ## Installation
@@ -24,7 +26,7 @@ See `spec/functional` for examples.
24
26
 
25
27
  ## Development
26
28
 
27
- 1. Copy `spec/config.yml.sample` to `spec/config.yml` and fill up with your own details.
29
+ 1. Create `.env.sample` and override the password (see `.env`). If you do not have access to the password but have your own credentials, then will have to override everything except `HOST`.
28
30
  2. `docker-compose build`
29
31
  3. `docker-compose run app rspec`
30
32
 
@@ -11,7 +11,10 @@ module EZAPIClient
11
11
  def call
12
12
  stdout_str, stderr_str, status = Open3.capture3(command)
13
13
  unless status.success?
14
- fail(ArgumentError, "Error executing command: #{stderr_str}")
14
+ fail(
15
+ ArgumentError,
16
+ "Error executing command: #{[stdout_str, stderr_str].compact.join("; ")}"
17
+ )
15
18
  end
16
19
  stdout_str.chomp
17
20
  end
@@ -1,3 +1,3 @@
1
1
  module EZAPIClient
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ezapi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-19 00:00:00.000000000 Z
11
+ date: 2016-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -233,3 +233,4 @@ signing_key:
233
233
  specification_version: 4
234
234
  summary: Ruby wrapper for EZAPI
235
235
  test_files: []
236
+ has_rdoc: