chili_logger 0.0.5 → 0.0.6

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
  SHA256:
3
- metadata.gz: 0baddcb177c1e5a6676aa3a60040e37b17397958348944ff4f0b980b4c37bef2
4
- data.tar.gz: 8511fd8734a086ec0b8fd82dea6329aa8e4bd351f6daa0405fa519d29b401c2c
3
+ metadata.gz: 343e9ca7482069bf214252cd550112502f9187f65182d5aaadd5bfde3d61fe8a
4
+ data.tar.gz: cee89f157a89466d67f558a2a86adbb174b4c4a866cb1eb607650465ed1a8e88
5
5
  SHA512:
6
- metadata.gz: 90f1f25ebd08ea66819dd74b86d05a073de1d317b7df3428e4bcda6ecfd5f94f7db5d907acbeed7a2ba5b7555a50e07e9a2d12d1a1217ab0571a4b03f8012318
7
- data.tar.gz: 9319b3f0ffb1daf8800615873068bd96a4502424452009ca4a3683c776a3a4cd7231ff162c7bb68ec563898202436062d0cea0da3c4a9361db432a3b260e9527
6
+ metadata.gz: 54a9ac360ac8b8df8cec30451c061af1fabb935b5cfa7be55eb315b8b40f55fd36d939d6c75f5f7f7817025be9c000e3f75c6877e0e2261287a527d0704389a2
7
+ data.tar.gz: bbd90e9561f1fffbdd56e5e784ae2e665220f83a4adf38b6bd0a733ef355004a656fadb30ce5d0991699393f60bba6453cde7cc373385ddfa3bfd51dc8e0414d
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chili_logger (0.0.5)
5
- aws-sdk
4
+ chili_logger (0.0.6)
5
+ aws-sdk (~> 2.9, >= 2.9.0)
6
6
  bunny
7
7
  httparty
8
8
 
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # ChiliLogger
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/chili_logger`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ ChiliLogger is gem developed for internal use in Chiligum Creatives. It is used to monitor our applications and generate logs with some uniformization.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ ## How it works
6
+
7
+ ---
6
8
 
7
9
  ## Installation
8
10
 
@@ -60,18 +62,42 @@ You ALSO MUST set error_handler and error_handler_config. The error handler is t
60
62
  Please note that if ChiliLogger tries to publish a log and both the Message Broker and the Error Handler are simultaneously down, the log will be discarded. This behavior makes sure logging problems never cause the app to break.
61
63
 
62
64
 
65
+ ---
66
+
67
+ ## Basic Usage
68
+ The easiest way to use ChiliLogger is with the `publish_instant_log` method. It requires three arguments: `desc`, `agent` and `main_content`, which are used to create the log. All of them are optional arguments and have default values:
69
+ ```ruby
70
+ desc = { type: }
71
+ ChiliLogger.instance.publish_instant_log(desc, agent, log)
72
+
73
+
74
+ ChiliLogger.instance.publish_instant_log
75
+ ```
76
+
77
+
78
+
79
+ Notice that ChiliLogger uses the Singleton pattern. So, to call its methods, you must first access the instance method. Calling ChiliLogger.new will return an error:
80
+ ```ruby
81
+ ChiliLogger.publish_instant_log(desc, agent, log)
82
+ # NoMethodError: private method `new' called for ChiliLogger:Class
63
83
 
84
+ ChiliLogger.instance.publish_instant_log(desc, agent, log)
85
+ # works fine
86
+ ```
64
87
 
65
- ## Usage
88
+ ---
66
89
 
67
- TODO: Write usage instructions here
90
+ ## Advanced Usage
68
91
 
92
+ ---
69
93
  ## Development
70
94
 
71
95
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
72
96
 
73
97
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
74
98
 
99
+ ---
100
+
75
101
  ## Contributing
76
102
 
77
103
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/chili_logger.
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.homepage = 'https://gitlab.com/chiligumdev/chili_logger'
12
12
  spec.license = 'MIT'
13
13
  spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
14
- spec.add_dependency 'aws-sdk'
14
+ spec.add_dependency 'aws-sdk', '~> 2.9', '>= 2.9.0'
15
15
  spec.add_dependency 'bunny'
16
16
  spec.add_dependency 'httparty'
17
17
 
@@ -1,3 +1,3 @@
1
1
  class ChiliLogger
2
- VERSION = '0.0.5'
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chili_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - lucas sandeville
@@ -16,14 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 2.9.0
20
+ - - "~>"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.9'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: '0'
29
+ version: 2.9.0
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.9'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: bunny
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -71,8 +77,6 @@ files:
71
77
  - Rakefile
72
78
  - bin/console
73
79
  - bin/setup
74
- - chili_logger-0.0.1.gem
75
- - chili_logger-0.0.3.gem
76
80
  - chili_logger.gemspec
77
81
  - lib/brokers/rabbit_broker.rb
78
82
  - lib/chili_logger.rb
Binary file
Binary file