simple_cloud_logging 1.1.26 → 1.2.1

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
- SHA1:
3
- metadata.gz: 3db97b74c4bd4797332fe3064f28d4a14213789d
4
- data.tar.gz: ebaff8c5548d11890fbc745d43a75338e3b19904
2
+ SHA256:
3
+ metadata.gz: '08cf3ac1eabb8ca1a88c220af68d441685cb725d48a7bf2713e5ab614ca49ae6'
4
+ data.tar.gz: 266e12577a8a6dbd1f699c059ba10aeeae76e01c6ce0680db65bf1164f77dedb
5
5
  SHA512:
6
- metadata.gz: fc5b5e9fc54f8fbbd6f2555c032369c8eb516514fc8db6ab289d800e70a39e7cea8667898a44c75c1a220e146469f78caf528e99a43e9445cf56decfe9c1c934
7
- data.tar.gz: 4075bccfca6095f6da5d87c7e3946f66e27c243ca9a23c66d8bccdfbb2aa18113a0f523d91ccf1735b15188ad7882ccfe6e3a4ca0b76c0804e8d83eab671d21b
6
+ metadata.gz: 14946a5be4e9001b3541f2faac65f9e945994225347dab6b271832f7f3ceb421c00d9e6b50154d9f782882743053c503a4bbd54b5121c1f800f676834ab8dcbc
7
+ data.tar.gz: 9b292e72119499c9c82e144cbf5a47bf4b998f03598f454812f3dd59fecc2fc848a1467eab3135f05c77711ee09e08a54dd30ca27628a1e8dfe4ce753a887388
data/lib/baselogger.rb CHANGED
@@ -13,7 +13,7 @@ module BlackStack
13
13
  self.number_of_lines_in_current_level = 0
14
14
  end
15
15
 
16
- def initialize(the_filename)
16
+ def initialize(the_filename=nil)
17
17
  self.filename = the_filename
18
18
  self.initialize_attributes
19
19
  end
@@ -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
@@ -17,7 +17,7 @@ module BlackStack
17
17
  def reset()
18
18
  super
19
19
  =begin
20
- url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.4/scl/reset.json"
20
+ url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.3/threads/reset.json"
21
21
  res = BlackStack::Netting::api_call(url, {
22
22
  'api_key' => self.api_key,
23
23
  'filename' => self.filename,
@@ -29,7 +29,7 @@ module BlackStack
29
29
  def log(s, datetime=nil)
30
30
  ltext = super(s, datetime)
31
31
  =begin
32
- url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.4/scl/log.json"
32
+ url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.3/threads/log.json"
33
33
  res = BlackStack::Netting::api_call(url, {
34
34
  'api_key' => self.api_key,
35
35
  'filename' => self.filename,
@@ -44,7 +44,7 @@ module BlackStack
44
44
  def logs(s, datetime=nil)
45
45
  ltext = super(s, datetime)
46
46
  =begin
47
- url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.4/scl/log.json"
47
+ url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.3/threads/log.json"
48
48
  res = BlackStack::Netting::api_call(url, {
49
49
  'api_key' => self.api_key,
50
50
  'filename' => self.filename,
@@ -59,7 +59,7 @@ module BlackStack
59
59
  def logf(s, datetime=nil)
60
60
  ltext = super(s, datetime)
61
61
  =begin
62
- url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.4/scl/log.json"
62
+ url = "#{self.api_protocol}://#{self.api_domain}:#{self.api_port.to_s}/api1.3/threads/log.json"
63
63
  res = BlackStack::Netting::api_call(url, {
64
64
  'api_key' => self.api_key,
65
65
  'filename' => self.filename,
@@ -73,7 +73,7 @@ module BlackStack
73
73
 
74
74
  def release()
75
75
  =begin
76
- url = "#{self.api_url}:#{self.api_port.to_s}/api1.4/scl/release.json"
76
+ url = "#{self.api_url}:#{self.api_port.to_s}/api1.3/threads/release.json"
77
77
  res = BlackStack::Netting::api_call(url, {
78
78
  'api_key' => self.api_key,
79
79
  'filename' => self.filename,
@@ -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,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_cloud_logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.26
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-29 00:00:00.000000000 Z
11
+ date: 2022-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: blackstack_commons
14
+ name: blackstack-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.40
19
+ version: 1.2.1
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.1.40
22
+ version: 1.2.1
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.2.1
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.1.40
32
+ version: 1.2.1
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
@@ -48,7 +49,7 @@ homepage: https://rubygems.org/gems/simple_cloud_logging
48
49
  licenses:
49
50
  - MIT
50
51
  metadata: {}
51
- post_install_message:
52
+ post_install_message:
52
53
  rdoc_options: []
53
54
  require_paths:
54
55
  - lib
@@ -63,9 +64,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
64
  - !ruby/object:Gem::Version
64
65
  version: '0'
65
66
  requirements: []
66
- rubyforge_project:
67
- rubygems_version: 2.4.5.1
68
- signing_key:
67
+ rubygems_version: 3.3.7
68
+ signing_key:
69
69
  specification_version: 4
70
70
  summary: THIS GEM IS STILL IN DEVELOPMENT STAGE. Easy library to write log files in
71
71
  the cloud, watch them anywhere, and enbed the log in any website. The remote-logging