planga 0.0.1 → 0.0.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/planga.rb +8 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d294bcf960dca05eb0490216ad01618f22200d0c
4
- data.tar.gz: 5f58a78e10f05b1d9622439373b4c97076526c03
3
+ metadata.gz: e00081472cdf5cca52787d6a3867a4ae7b0cbc23
4
+ data.tar.gz: 1dcd4f6b70c0663339489aedef26d044dd5095f8
5
5
  SHA512:
6
- metadata.gz: a87050f9510c8f60da001245d05295dce8e4d6d2e1a0a01291510108f8e297a67c501192310368c8ff3d6164de4848cc1b52145d4b21b060c66811b3aa9edc94
7
- data.tar.gz: 2b82a3b06fd91348b8c3d6e5bdf5865bc58487f6e3b66fdaf16d43702e0ca27393e9b0f7878cedd05a7539fbc86d80a1b5c644d36a80e6dfcbeb38d4dd6f72c7
6
+ metadata.gz: bae572864f863ee663a0d3ce1d21828b685cc6404ae0c80cdd523f7c33116923121eb4f461dd1d4285ff94229d6ea9d9cfe579ae106a1adf6ac6aaef43fc36b9
7
+ data.tar.gz: 0bdb061090a22dcc9d360843f64289772703c56d2619b69b41c98fde02bdcad656e3c47afef8b7210fdedd50cb591ed5eccb31022de205c91d1348fad6d4ef89
@@ -39,16 +39,14 @@ class PlangaConfiguration
39
39
  attr_accessor :public_api_id, :private_api_key, :conversation_id,
40
40
  :current_user_id, :current_user_name, :container_id, :remote_host
41
41
 
42
- def initialize(public_api_id=nil, private_api_key=nil, conversation_id=nil,
43
- current_user_id=nil, current_user_name=nil, container_id=nil)
44
-
45
- @public_api_id = public_api_id
46
- @private_api_key = private_api_key
47
- @conversation_id = conversation_id
48
- @current_user_id = current_user_id
49
- @current_user_name = current_user_name
50
- @container_id = container_id
51
- @remote_host = "//planga.def"
42
+ def initialize(**conf)
43
+ @public_api_id = conf[:public_api_id]
44
+ @private_api_key = conf[:private_api_key]
45
+ @conversation_id = conf[:conversation_id]
46
+ @current_user_id = conf[:current_user_id]
47
+ @current_user_name = conf[:current_user_name]
48
+ @container_id = conf[:container_id]
49
+ @remote_host = conf[:remote_host] || "//planga.def"
52
50
 
53
51
  if not container_id
54
52
  @container_id = "planga-chat-" + SecureRandom.hex
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: planga
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wiebe Marten Wijnja