simple_cloud_logging 1.1.25 → 1.1.28

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90eefdd462aa32f103b9c5f97b2115aacab6b2d0
4
- data.tar.gz: 3f85adb497cba39604c9f3d688705b996cdc6fb1
3
+ metadata.gz: a0df5d33de95e23c80e00e72d4acd811d6ca0ca8
4
+ data.tar.gz: 06ad72e5b4701c32fe2e2f2cae358f078325b237
5
5
  SHA512:
6
- metadata.gz: 5498baa0bc6ff96e92950cf6abf65bf1f751e7c0935cb13e37a14040f6f09c764d6220cf155e262e429749592b4cebea7d1cb95464153654b8c95285cdbf4355
7
- data.tar.gz: a89475f633eb04781e327132bb71a68727694be1b6c709bafe95cf35d031afb7845745203395a30d757f3324bff91e75c2dc884dbe0d012d41e65457c1640f10
6
+ metadata.gz: 41dab00be69b0ab2f207ea3abe87e090b90fbca124e247c07ff172fe25097d04ec2c35dc4ab41df04c85275e9457e24c070c975ec844821e45fe70545302ebe9
7
+ data.tar.gz: 199e70375b234b1c59836530bdb297d088c782c084d9be00798dc2bd408d9501decfc1618b707f693bfeb8b47f0a6b940d7f02fc6f14ea08b12b6509c8dcf0eb
@@ -0,0 +1,27 @@
1
+ module BlackStack
2
+ require_relative './baselogger'
3
+ class DummyLogger < BlackStack::BaseLogger
4
+
5
+ # call the parent class to set the attributes
6
+ # call the save method to store the new attributes into the data file
7
+ def reset()
8
+ super
9
+ end
10
+
11
+ def log(s, datetime=nil)
12
+ end
13
+
14
+ #
15
+ def logs(s, datetime=nil)
16
+ end # def logs
17
+
18
+ #
19
+ def logf(s, datetime=nil)
20
+ end # def logf
21
+
22
+ #
23
+ def release()
24
+ end
25
+
26
+ end # class LocalLogger
27
+ end # module BlackStack
data/lib/remotelogger.rb CHANGED
@@ -16,17 +16,20 @@ module BlackStack
16
16
  # call the save method to store the new attributes into the data file
17
17
  def reset()
18
18
  super
19
- url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.4/scl/reset.json"
19
+ =begin
20
+ url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.3/threads/reset.json"
20
21
  res = BlackStack::Netting::api_call(url, {
21
22
  'api_key' => self.api_key,
22
23
  'filename' => self.filename,
23
24
  'id_client' => self.id_client,
24
25
  })
26
+ =end
25
27
  end
26
28
 
27
29
  def log(s, datetime=nil)
28
30
  ltext = super(s, datetime)
29
- url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.4/scl/log.json"
31
+ =begin
32
+ url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.3/threads/log.json"
30
33
  res = BlackStack::Netting::api_call(url, {
31
34
  'api_key' => self.api_key,
32
35
  'filename' => self.filename,
@@ -34,12 +37,14 @@ module BlackStack
34
37
  'method' => BlackStack::BaseLogger::METHOD_LOG,
35
38
  'id_client' => self.id_client,
36
39
  })
40
+ =end
37
41
  ltext
38
42
  end
39
43
 
40
44
  def logs(s, datetime=nil)
41
45
  ltext = super(s, datetime)
42
- url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.4/scl/log.json"
46
+ =begin
47
+ url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.3/threads/log.json"
43
48
  res = BlackStack::Netting::api_call(url, {
44
49
  'api_key' => self.api_key,
45
50
  'filename' => self.filename,
@@ -47,12 +52,14 @@ module BlackStack
47
52
  'method' => BlackStack::BaseLogger::METHOD_LOGS,
48
53
  'id_client' => self.id_client,
49
54
  })
55
+ =end
50
56
  ltext
51
57
  end
52
58
 
53
59
  def logf(s, datetime=nil)
54
60
  ltext = super(s, datetime)
55
- url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.4/scl/log.json"
61
+ =begin
62
+ url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.3/threads/log.json"
56
63
  res = BlackStack::Netting::api_call(url, {
57
64
  'api_key' => self.api_key,
58
65
  'filename' => self.filename,
@@ -60,16 +67,19 @@ module BlackStack
60
67
  'method' => BlackStack::BaseLogger::METHOD_LOGF,
61
68
  'id_client' => self.id_client,
62
69
  })
70
+ =end
63
71
  ltext
64
72
  end
65
73
 
66
74
  def release()
67
- url = "#{self.api_url}:#{self.api_port.to_s}/api1.4/scl/release.json"
75
+ =begin
76
+ url = "#{self.api_url}:#{self.api_port.to_s}/api1.3/threads/release.json"
68
77
  res = BlackStack::Netting::api_call(url, {
69
78
  'api_key' => self.api_key,
70
79
  'filename' => self.filename,
71
80
  'id_client' => self.id_client,
72
81
  })
82
+ =end
73
83
  end
74
84
  end
75
85
  end # module BlackStack
@@ -1,4 +1,5 @@
1
1
  require 'blackstack_commons'
2
+ require_relative './dummylogger'
2
3
  require_relative './locallogger'
3
4
  require_relative './remotelogger'
4
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_cloud_logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.25
4
+ version: 1.1.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-15 00:00:00.000000000 Z
11
+ date: 2022-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blackstack_commons
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.40
19
+ version: 1.1.45
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.1.40
22
+ version: 1.1.45
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: 1.1.40
29
+ version: 1.1.45
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.1.40
32
+ version: 1.1.45
33
33
  description: 'THIS GEM IS STILL IN DEVELOPMENT STAGE. Find documentation here: https://github.com/leandrosardi/simple_cloud_logging.'
34
34
  email: leandro.sardi@expandedventure.com
35
35
  executables: []
@@ -41,6 +41,7 @@ files:
41
41
  - examples/example03.rb
42
42
  - examples/example04.rb
43
43
  - lib/baselogger.rb
44
+ - lib/dummylogger.rb
44
45
  - lib/locallogger.rb
45
46
  - lib/remotelogger.rb
46
47
  - lib/simple_cloud_logging.rb