plesk_kit 2.1.3 → 2.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWZhZjg4MjU1ODI2NThjMzcwZGU4ZDZjMDNlYTRiYTRmNDIxM2JmMA==
4
+ NGJmZTQwZjFjMzZiZTQ2MjA4OTc1MWU1YWNlYjc5NTlmMTNlMWZhZA==
5
5
  data.tar.gz: !binary |-
6
- NWE1YzkzODFkNThlNzE2MDdjYWE3YWIzMWQxM2Q1NmQ5N2RkMzFkMQ==
6
+ ZjBlYTRkZmU4YmFkNzU4NThkMDZiZWUzNTgzMzNmZWJmNjZlYmQxYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTlhOTEwZjQ5YWM5NzFjODg3Y2MzZWJmYzJkNWRkNzUzMTZmM2M2ZGQ2ZTRm
10
- YTFiNjhkZDNkMzY5NDZlM2FjYWM3Njk0NWM1MDc3OGM3YzdmNDRjNTExODE2
11
- NjlhODYxOWI2Y2I4ZmE0N2M0Y2Q1YjJhY2I2YTMwODFlNzYxMzc=
9
+ M2VlYTMyODYyMWRjZDAyYzk0Y2M4ZmYyYmVkNzRjZTUwMDA0MjIwZDhiZTQz
10
+ ZjQ2NDRjZTdlYzdmMmE2Yjc3NGU2NzI1ODE5NmEwZDZiZGMwOTFmNTU4YjJl
11
+ ODE5MTQ2ZjNjYjIyOWU3MTgwNDJiNjU4OWYwZmMxMTIwYzNlMzI=
12
12
  data.tar.gz: !binary |-
13
- ZmVlNmRmYzliNjQyOTllMmQ1YzA4MTM1MWRhYjVkNzZkYzQ5ODEyNDczOGFm
14
- MTFlMzQ0Yjc3NzkwOWU2MTMxZDgwZDU5NTlhN2EyZDA1YTljNDI4MWFkZWMw
15
- NjVlMDZmYTlhY2YwOWRiNmQ4MTFhYzc2YmVjMmVhZWZhZmZjZTY=
13
+ ZDAxZTYxZTk0NGQzOGJiY2UzNTRkZTZmMzQ2NDQyNDBmMWJhMzEwYzRmNmY1
14
+ NDA4MmE4NDI2NmVlOGVjYmY3MGU4NGIwMjk0N2Q0MWNkNDIyZmQ1ZDIwNDhl
15
+ NjBlMTQ3NGRjYWJkYTg2ZDVkNTEzMmE3NGJjNzZjNjdjYzQ4ODA=
@@ -50,10 +50,13 @@ module PleskKit
50
50
  account = (customer_account_id.present? ? customer_account : (reseller_account_id.present? ? reseller_account : raise(msg="no accounts?")))
51
51
  mbox_limit = new_plan.mailboxes
52
52
  space_limit = new_plan.storage #this value is already bytes
53
-
53
+ space_limit = 10000000000000000000000000 if space_limit == '-1'
54
+ mbox_limit = 10000000000000000000000000 if mbox_limit == '-1'
54
55
  plesk_subscription_identifier = PleskKit::Communicator.get_subscription_id(self)
55
56
  usage = PleskKit::Communicator.get_subscription_usage(self,plesk_subscription_identifier, account.server)
56
- puts usage[0].to_i,usage[1].to_i
57
+ puts usage[0],usage[1]
58
+ usage[0] = 10000000000000000000000000 if usage[0] == '-1'
59
+ usage[1] = 10000000000000000000000000 if usage[1] == '-1'
57
60
  if usage[0].to_i < space_limit.to_i && usage[1].to_i < mbox_limit.to_i
58
61
  true
59
62
  else
@@ -1,3 +1,3 @@
1
1
  module PleskKit
2
- VERSION = "2.1.3"
2
+ VERSION = "2.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plesk_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dionne Saunders