nextbot 1.1.22 → 1.1.23

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: 7a015eccb93c0928b18790104e65b6200c23aff9
4
- data.tar.gz: d633a92f942f444f9bcbc35c47c345ced31b8ca0
3
+ metadata.gz: b73c95bd1d88d5c8e224eb2ac4861c588495b182
4
+ data.tar.gz: afbb49dbf735d1d23512a30ef59fcbf46e2ceaa7
5
5
  SHA512:
6
- metadata.gz: f9cd1540e3e7e0c9f820b5e9985b0b3f0d2dc5b94ac6ca3a3e3cb1208a3a2dd8365f5405b5496576a2f415dc83bf735ac79a2d45081e9bcd15183b6a5bdc87aa
7
- data.tar.gz: d2687439d6410806346e0569c00ca9d0c7b5111c768f555370a8a75ad031c9e03ade0e8b152222aee1746e0d2b4d1889f4b665ce9e9683991ebb81db2cf6a236
6
+ metadata.gz: 4e1871305bbdb909ca19ab02949a02226b72ac340e8d5e342c18890712e5e3e084b5f16750ba3f3c9f32a3d1806b7971254e1132c3e6c9ea408280008412992c
7
+ data.tar.gz: ed377652fe7cdcd6d5fbe4b93c820b619b30c0907b765cf4b842ff3a462149f67d1d31177617f0d2deac730d96f719a99b21aa22812b4e41e5dad51d4590cb80
data/lib/localcommand.rb CHANGED
@@ -65,8 +65,11 @@ module BlackStack
65
65
  # goto command params
66
66
  ret[:param_goto_url] = self.param_goto_url
67
67
  # traffic command params
68
+ proxy = self.param_traffic_id_proxy.nil? ? nil : Proxy.where(:id=>self.param_traffic_id_proxy).first
68
69
  ret[:param_traffic_url] = self.param_traffic_url
69
70
  ret[:param_traffic_id_proxy] = self.param_traffic_id_proxy
71
+ ret[:param_traffic_proxy_ip] = proxy.nil? ? nil : proxy.ip
72
+ ret[:param_traffic_proxy_port] = proxy.nil? ? nil : proxy.port
70
73
  ret[:param_traffic_number_of_visits] = self.param_traffic_number_of_visits
71
74
  ret[:param_traffic_visit_min_seconds] = self.param_traffic_visit_min_seconds
72
75
  ret[:param_traffic_visit_random_additional_seconds] = self.param_traffic_visit_random_additional_seconds
data/lib/remotecommand.rb CHANGED
@@ -16,7 +16,8 @@ module BlackStack
16
16
  # :steps is an array of RemoteSteps objects.
17
17
  attr_accessor :id, :id_worker, :type, :param_start_id_lnuser, :param_start_username, :param_login_id_domain, :param_goto_url
18
18
  attr_accessor :param_traffic_url, :param_traffic_id_proxy, :param_traffic_number_of_visits, :param_traffic_visit_min_seconds, :param_traffic_visit_random_additional_seconds
19
-
19
+ attr_accessor :param_traffic_proxy_ip, :param_traffic_proxy_port
20
+
20
21
  # generate all the hierarchy of the bot (routines, steps,
21
22
  # => params) from a hash descriptor.
22
23
  def build(h)
@@ -34,6 +35,8 @@ module BlackStack
34
35
  # traffic command params
35
36
  self.param_traffic_url = h['param_traffic_url']
36
37
  self.param_traffic_id_proxy = h['param_traffic_id_proxy']
38
+ self.param_traffic_proxy_ip = h['param_traffic_proxy_ip']
39
+ self.param_traffic_proxy_port = h['param_traffic_proxy_port']
37
40
  self.param_traffic_number_of_visits = h['param_traffic_number_of_visits']
38
41
  self.param_traffic_visit_min_seconds = h['param_traffic_visit_min_seconds']
39
42
  self.param_traffic_visit_random_additional_seconds = h['param_traffic_visit_random_additional_seconds']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nextbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.22
4
+ version: 1.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi