shanon 0.2.0 → 1.0.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: 8ea43b55b0c79d948fd1f041a103f2ea936940af
4
- data.tar.gz: 978c91174eca5dc9303aafe21e85886dbf835b71
3
+ metadata.gz: 8871de440fbf47af203a220d07473899117be683
4
+ data.tar.gz: 6bcd5e2c162831d8cd5f3eaf32f2776f2102e2ca
5
5
  SHA512:
6
- metadata.gz: 28e164efc1dc09e15f78d98116f6250e2c6436dd8e056877ba45c496ff1dec83f80f0f5acd0c9d05c245737aaf4e4cc0baec14ee4103bd545fcc713c6af4fa6f
7
- data.tar.gz: e4ef971859dfe064a9cdd3d6fe3830f34d579c1f94f578ae096e90a6f6244bbae410a3400c42b0249922d995d972adcfa3eecb538fa9ed2818db1b65d19edcc1
6
+ metadata.gz: 3cc777dea826f945e150e6b4420fe126f8198dea5f9c165239050ed6376ce5541dfbd648caea859a9d1e57225058de68e218289bdcd37f5706d10375dc044978
7
+ data.tar.gz: cf1af4fd1e60b968679963d7a7cceda7ccba12f80dc0c863f5e0a96682abe5dd63d9727ad732bb171f9625e31231371bfad1de63294ec96d452276fdc1a1f400
@@ -1,7 +1,8 @@
1
1
  module Shanon
2
2
  module Authenticatable
3
3
  def get_token
4
- @token = Shanon::Clients::AuthenticationClient.new.get
4
+ xml = Shanon::Clients::AuthenticationClient.new.get
5
+ @token = ::Ox.parse(xml).Response.Token.text
5
6
  end
6
7
  end
7
8
  end
@@ -6,13 +6,7 @@ module Shanon
6
6
  def get
7
7
  params = params_with_signature(password: secrets[:password])
8
8
  response = conn.get(PATH, params)
9
- parse(response.body)
10
- end
11
-
12
- private
13
-
14
- def parse(xml)
15
- ::Ox.parse(xml).Response.Token.text
9
+ response.body
16
10
  end
17
11
  end
18
12
  end
@@ -9,13 +9,7 @@ module Shanon
9
9
  def get(opts={})
10
10
  params = params_with_signature(opts)
11
11
  response = conn.get PATH, params
12
- parse(response.body)
13
- end
14
-
15
- private
16
-
17
- def parse(xml)
18
- ::Ox.parse(xml)
12
+ response.body
19
13
  end
20
14
  end
21
15
  end
@@ -13,13 +13,7 @@ module Shanon
13
13
  def get(opts={})
14
14
  params = params_with_signature(opts)
15
15
  response = conn.get PATH, params
16
- parse(response.body)
17
- end
18
-
19
- private
20
-
21
- def parse(xml)
22
- ::Ox.parse(xml)
16
+ response.body
23
17
  end
24
18
  end
25
19
  end
@@ -1,3 +1,3 @@
1
1
  module Shanon
2
- VERSION = '0.2.0'
2
+ VERSION = '1.0.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shanon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takuya Kato