plesk_kit 2.0.6 → 2.0.7

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
- ZDdkYzJhMjBhNGYxMmZiMWViYjM2Y2FjNTY4YWM1ODU2ZWQ5Y2YwOQ==
4
+ OTE4NDMzOTNmYWM1M2Y2ZjAzNzlkYjI0NjRiZmI2MDNlNTIwMGEwZg==
5
5
  data.tar.gz: !binary |-
6
- ZTQzMTU3ZGJhZjUyZjRiYTAzOWJiZDNhNWEyNzY3MTc3MDczOTcxYg==
6
+ NjA2YTA5NTFhYjVlNzY1OWY1M2ZjNDRjYjFiMTk4NDRhMjQwNjI3Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmY0MDM1ZjRiOWM1OTQ2MzAyYWRkMGRkMjc4OWE5MDM1ZGNjODMxOThiNGVl
10
- ZTZmNTlhNWQwMTRmNGQ5MTM5NWI1ODZjMmUyZWUzMzNlNzRiYzIyM2JmN2Rl
11
- ZTNhYTc0NWRjM2Q5NzY5ZGNkZWVhN2I0OGExN2FjZDk4NDVkMjQ=
9
+ MzczY2NlZDJmNmYyNjYzMDA5NWMzY2Y1NzllNjYxMjc0ZTY2NGFjOTg3MzNk
10
+ YWU1Y2VkYTA5YTAyNmZhYTRmYzc5MmM2ZDk0MGViYTMzNDcyYTcxYTZlMzI3
11
+ N2U3NjU3ZDc0YjgxYTBkMjhiMDg0NWMxMTU0OGU4NDU1NTMyMDE=
12
12
  data.tar.gz: !binary |-
13
- ODJkNmMyMDAyYWQ0Y2U5MDg3ZjZjZTIzZGViODYyYTNjZjNiY2VhNThmOGFj
14
- YmFjZDUzZGJkY2FhNGMwZWIzNTIwYmI3YWNhM2NlMzA1NDFkMTZiYzBhODQ4
15
- OWU1OTA5NWUxZjJlYzhmNjhkMTgyZDE1NzZkM2E5Yzc1YjIwYWQ=
13
+ OGZiM2ZiM2I2YjBkMzNlYzg4MGI3MTUyZjlmNWEwNTBlZGFkNDM3NDUyODZk
14
+ YmVhYjE5MTA2MjhlZGJkOGY0OWMwNjgzNTBjYzc4OTkwMDU2Y2NiMDhiZTYy
15
+ ZTI1MmQzOTg2MzAzOTYzMWJjZWYyZjJiOWM5MTIxY2FjY2U0ZjY=
@@ -48,6 +48,8 @@ module PleskKit
48
48
  end
49
49
 
50
50
  def pack_this shell, customer
51
+ digits = customer.login.to_s.split('')
52
+ xx = ''
51
53
  xml = shell
52
54
  xml.instruct!
53
55
  xml.packet(:version => '1.6.3.5') {
@@ -62,7 +64,7 @@ module PleskKit
62
64
  xml.vrt_hst{
63
65
  xml.property{
64
66
  xml.name('ftp_login')
65
- xml.value("#{customer.login}#{(0...2).map { (65 + rand(26)).chr }.join}") #rand(36**8).to_s(36)
67
+ xml.value("#{digits.each {|d|xx << (d.to_i + 65).chr}}") #rand(36**8).to_s(36)
66
68
  }
67
69
  xml.property{
68
70
  xml.name('ftp_password')
@@ -1,3 +1,3 @@
1
1
  module PleskKit
2
- VERSION = "2.0.6"
2
+ VERSION = "2.0.7"
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.0.6
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dionne Saunders