rms_web_service 0.1.1 → 0.1.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: b70010ad1562606d5dd76723f560721bfdea10da
4
- data.tar.gz: a080df81acd5d66b1d56d329d6a37661821eb161
3
+ metadata.gz: dd03378f6428937283c1abf606036b9abf6b05f1
4
+ data.tar.gz: 6908ae4a258b178e9de8f299c14a46e9deb957d7
5
5
  SHA512:
6
- metadata.gz: ba655891732259a65aeff28f41d57e8ca365482e52d0bcb8f63db4981bdb928ed8b1b2ac3e81471ae5113d7c4b6ee3f5768c0b48b255c0810a5bbc5be8ee8d71
7
- data.tar.gz: 2380655709d20276c6ac55894b9b19476816bb117cb16e761b305d111617a6e8c317a837387b9cbeb71e818b38747a27b5f9a6682e28fc1fcf49590cf0c8a858
6
+ metadata.gz: a244fcf7b47080a365a602e55a0ca661a159f3d171e4db5764b763868e1e3b76dc983361fb4631a645866da6898bfdeb765f54c372d4314d36dd90a0430e5fbd
7
+ data.tar.gz: d26ac747de65732ff23bc19e2177f021d8bb8ed0ace736ff563b657a3027cff7af60da56e51534438a7ee9611ee45ef39d79a702aa9848d9f0608bd55ee21a8e
@@ -13,7 +13,7 @@ module RmsWebService
13
13
  raise RmsWebService::ParameterError, 'service_secret is required' unless service_secret.present?
14
14
  raise RmsWebService::ParameterError, 'license_key is required' unless license_key.present?
15
15
 
16
- "ESA " + Base64.encode64(service_secret + ":" + license_key).chomp
16
+ "ESA " + Base64.encode64(service_secret + ":" + license_key).gsub("\n", "")
17
17
  end
18
18
  end
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module RmsWebService
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -2,8 +2,9 @@ require 'spec_helper'
2
2
 
3
3
  describe RmsWebService::Configuration do
4
4
  let(:config){ described_class.new(service_secret: service_secret, license_key: license_key) }
5
- let(:service_secret){ "dummy_service_secret" }
6
- let(:license_key){ "dummy_license_key" }
5
+ let(:service_secret){ "dummy_service_secret_ssss" }
6
+ let(:license_key){ "dummy_license_key_sssssss" }
7
+ # Actual string is 25 characters.
7
8
 
8
9
  describe "#service_secret" do
9
10
  subject{ config.service_secret }
@@ -19,11 +20,12 @@ describe RmsWebService::Configuration do
19
20
  context "with service_secret and license_key" do
20
21
  let(:encoded_string){
21
22
  encoded_credentials = Base64.encode64("#{service_secret}:#{license_key}")
22
- "ESA #{encoded_credentials}".chomp
23
+ "ESA #{encoded_credentials}".gsub("\n", "")
23
24
  }
24
25
 
25
26
  subject{ config.encoded_keys }
26
27
  it { is_expected.to eq(encoded_string) }
28
+ it { is_expected.not_to include("\n") }
27
29
  end
28
30
 
29
31
  context "without service_secret" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rms_web_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kamiya54
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-13 00:00:00.000000000 Z
11
+ date: 2014-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday