simple_cloud_logging 1.1.26 → 1.2.1
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 +5 -5
 - data/lib/baselogger.rb +1 -1
 - data/lib/dummylogger.rb +27 -0
 - data/lib/remotelogger.rb +5 -5
 - data/lib/simple_cloud_logging.rb +1 -0
 - metadata +12 -12
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 2 
     | 
    
         
            +
            SHA256:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: '08cf3ac1eabb8ca1a88c220af68d441685cb725d48a7bf2713e5ab614ca49ae6'
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 266e12577a8a6dbd1f699c059ba10aeeae76e01c6ce0680db65bf1164f77dedb
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 14946a5be4e9001b3541f2faac65f9e945994225347dab6b271832f7f3ceb421c00d9e6b50154d9f782882743053c503a4bbd54b5121c1f800f676834ab8dcbc
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 9b292e72119499c9c82e144cbf5a47bf4b998f03598f454812f3dd59fecc2fc848a1467eab3135f05c77711ee09e08a54dd30ca27628a1e8dfe4ce753a887388
         
     | 
    
        data/lib/baselogger.rb
    CHANGED
    
    
    
        data/lib/dummylogger.rb
    ADDED
    
    | 
         @@ -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. 
     | 
| 
      
 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. 
     | 
| 
      
 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. 
     | 
| 
      
 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. 
     | 
| 
      
 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. 
     | 
| 
      
 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, 
         
     | 
    
        data/lib/simple_cloud_logging.rb
    CHANGED
    
    
    
        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 
     | 
| 
      
 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- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2022-05-25 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
     | 
    
         
            -
              name:  
     | 
| 
      
 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 
     | 
| 
      
 19 
     | 
    
         
            +
                    version: 1.2.1
         
     | 
| 
       20 
20 
     | 
    
         
             
                - - ">="
         
     | 
| 
       21 
21 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       22 
     | 
    
         
            -
                    version: 1.1 
     | 
| 
      
 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 
     | 
| 
      
 29 
     | 
    
         
            +
                    version: 1.2.1
         
     | 
| 
       30 
30 
     | 
    
         
             
                - - ">="
         
     | 
| 
       31 
31 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       32 
     | 
    
         
            -
                    version: 1.1 
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
       67 
     | 
    
         
            -
             
     | 
| 
       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
         
     |