widgets_api_client 0.0.9.6 → 0.0.9.7

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
  SHA256:
3
- metadata.gz: 5deb19b3fa5b39b4fc0ef6bed0840adb1f152bd6b042d9f27e085b58a338d512
4
- data.tar.gz: edbe926effce95785887e9e8c5d27e4fb5d145c38cc44e61b56c630ba6d21ecc
3
+ metadata.gz: e91bfcf34b96cf038594681529e6f9fc545385dd8cd29ee5c253a5b0aec13600
4
+ data.tar.gz: b90eb1f76c18f74af25c2fe4bf517283503b4f5ab745939c716a74505e8a7199
5
5
  SHA512:
6
- metadata.gz: 8491638dd72b0464935952e0f11d4769c80746483497db55209d8165f9466e106f3e3c3d5ade20cb3bf97540ab26164aaaf298225c13d72bc6ef48481aee9a53
7
- data.tar.gz: a23247b5cfbc6b49d80bb2a6b3d2094da3c1ad7487b4ac71f8eed7064ca2cc67466a9eea8bdb5aa3da5f481a1e230447574c529adc69096c54285b51b2b6dde3
6
+ metadata.gz: e69402d40753d0b67a13d44ad653fc08aaad05d2acc31db71cb801a22b9c8fba2f00c2900c1c6352538214c6f2b8139b2bd8fa0655c3e37f58b92816de6e795b
7
+ data.tar.gz: 2730ef8cfff91cf4d4339979bf1b293c9cc1ce465c8c47637f9ce32993f0437265bc23fc53202a6619e09d615027e9c009b3236ee9eab3cf5f2dc53112e3ffbb
data/lib/domain/user.rb CHANGED
@@ -19,11 +19,14 @@ class User
19
19
  # @param [String] first_name
20
20
  # @param [String] last_name
21
21
  # @param [String] password
22
+ # @param [String] current_password
23
+ # @param [String] new_password
22
24
  # @param [String] date_of_birth
23
25
  # @param [String] email
24
26
  # @param [String] image_url
25
27
  #
26
28
  def initialize(first_name: nil, last_name: nil, password: nil,
29
+ current_password: nil, new_password: nil,
27
30
  date_of_birth: nil, email: nil, image_url: nil)
28
31
  self.first_name = first_name
29
32
  self.last_name = last_name
data/lib/domain/widget.rb CHANGED
@@ -34,7 +34,7 @@ class Widget
34
34
  description: @description,
35
35
  kind: @kind
36
36
  }
37
- hash.delete_if { |k, v| v.nil? || v.empty? }
37
+ hash.delete_if { |k, v| v.nil? }
38
38
  hash.to_json(*data)
39
39
  end
40
40
 
@@ -19,13 +19,8 @@ class UserService
19
19
  def self.create_user(user)
20
20
  user_with_client_info = get_user_with_client_info(user)
21
21
  create_user_payload = User.get_payload(user_with_client_info)
22
- #ApplicationConfig.get_url('create_user_path')
23
- config = ApplicationConfig.config
24
- base1 = ApplicationConfig.base_url
25
- url = base1 + config['create_user_path']
26
-
27
22
  RestClient::Request.execute(method: :post,
28
- url: url,
23
+ url: ApplicationConfig.get_url('create_user_path'),
29
24
  payload: create_user_payload,
30
25
  headers: { 'Content-Type': 'application/json' })
31
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: widgets_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9.6
4
+ version: 0.0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sachin Murthy