soracom 1.0.5 → 1.0.6

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: 8d301639544eb36f5b10969c2c061dfb459760a9
4
- data.tar.gz: 3775b3d6d72f3212e1e5228ec805d2976fe9706e
3
+ metadata.gz: 2ecf7b64d3f2d4f12e9825e0e5b459809fa88cca
4
+ data.tar.gz: 0711e2697a4d16c098f42b8f031af70a189994fd
5
5
  SHA512:
6
- metadata.gz: a07922a1663e258d5277f86f4f7cfd14e3ef0a630ddd6a5969fcbc648f31b2d5248d138e80079e5d2046fcb46233154859df52bd3066bd067056a699f9d8bcee
7
- data.tar.gz: 137dfe990265ee945f5200138254a45767e888a63e77cbce18a8b03a8455be6f47bfa219e29fb827d95c492be853c37b80ade8f7183904bbbdf6c085d194be4c
6
+ metadata.gz: 2fd2d92a5b32b02f6775e69c82ddcc609a145f855e2f8eafaff6b7a9f9494ca94ef6ce626faad820a0eec5730fc19e5fcc7bfc319dd15ba713dabc6da4fd0111
7
+ data.tar.gz: de892b4b81c45448d6d79d68b73d4766a3de86c2696e0b13012fe75a618a1980ce4b93cebc1c0b0dc181afd4fb01bb36fa138f29e94502ef46a587dcd6825dec
data/README.md CHANGED
@@ -59,6 +59,7 @@ testing authentication...
59
59
  authentication succeeded.
60
60
  apiKey: APIキー
61
61
  operatorId: OPで始まるオペレータID
62
+ token: APIトークン
62
63
  ```
63
64
 
64
65
  #### 使用例
@@ -87,7 +88,7 @@ $ soracom subscriber list | jq -r '.[].imsi' | tee imsi.txt
87
88
 
88
89
  複数のSIMに対して、プランを s1.fast に変更する
89
90
  ```
90
- $ soracom subscriber update_speed_class --imsi $(cat imsi.txt) --type s1.fast
91
+ $ soracom subscriber update_speed_class --imsi $(cat imsi.txt) --speed-class s1.fast
91
92
  [
92
93
  {
93
94
  (変更後のSIMの情報)
data/lib/soracom/cli.rb CHANGED
@@ -278,6 +278,7 @@ module SoracomCli
278
278
  authentication succeeded.
279
279
  apiKey: #{client.api_key}
280
280
  operatorId: #{client.operator_id}
281
+ token: #{client.token}
281
282
  EOS
282
283
  rescue => evar
283
284
  abort 'ERROR: ' + evar.to_s
@@ -316,6 +316,11 @@ module Soracom
316
316
  @auth[:operatorId]
317
317
  end
318
318
 
319
+ # トークンを取得
320
+ def token
321
+ @auth[:token]
322
+ end
323
+
319
324
  private
320
325
 
321
326
  # authenticate by email and password
@@ -1,4 +1,4 @@
1
1
  # version info
2
2
  module Soracom
3
- VERSION = '1.0.5'
3
+ VERSION = '1.0.6'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soracom
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - MATSUI, Motokatsu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-26 00:00:00.000000000 Z
11
+ date: 2015-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler