ninjalog 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.gitignore +0 -0
- data/CODE_OF_CONDUCT.md +1 -1
- data/Gemfile +0 -0
- data/LICENSE.txt +1 -1
- data/README.md +5 -5
- data/Rakefile +0 -0
- data/lib/ninjalog.rb +2 -2
- data/lib/ninjalog/version.rb +1 -1
- data/ninjalog.gemspec +1 -1
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZGRjZGQxODc2OGJmNDZjNGI0OTU4NzJlODFiYzZlOWExOWViYmNlMw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NmVjYzEyNDVmNzFhMTRkZGRmYjFmMzE3YTBkMDNhMTU3ZTdjZWI1OQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
Y2ZlZDQ3NTNkYWRiNzJkNWI1ZDNjYjc4OTc2ZWU0OGFiMjUzYmRkMTQ1NTU5
|
10
|
+
YTIyOGUzMjU1ZGEzOWE2ZWRmMjkxMDQwNWFkMjJlMWM0NWNmNDE0ZGRjMTdl
|
11
|
+
NGMzYmI5NmU1NTAzY2MwZjcxNzM4YWE4MWIwYTYwMzMyMWI4ODY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
Y2VkNDk2MTVlOTEwMzZjMjgyYjdlYjdiNzBkNzU5MDFmN2IyODlhMTY4NWZj
|
14
|
+
MjJjYTAwODA2YmE4MjRjNmFjM2IwMDBjMTA4NWI0MWRmNzk3NDJmZWMxMzZk
|
15
|
+
OTU3NGI0ZGUxOGUwMmVjM2Y4YzdhNzc2OWE5N2QyZDI0ZTFhZDA=
|
data/.gitignore
CHANGED
File without changes
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -35,7 +35,7 @@ This code of conduct applies both within project spaces and in public spaces
|
|
35
35
|
when an individual is representing the project or its community.
|
36
36
|
|
37
37
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
-
reported by contacting a project maintainer at
|
38
|
+
reported by contacting a project maintainer at tyson@tysonholub.com. All
|
39
39
|
complaints will be reviewed and investigated and will result in a response that
|
40
40
|
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
41
|
obligated to maintain confidentiality with regard to the reporter of an
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Ninjalog
|
1
|
+
# Ninjalog.rb
|
2
2
|
|
3
3
|
ninjalog is a secure, open source web service for centralized logging. Checkout [ninjalog.io](http://www.ninjalog.io) to create a free account. This gem wraps the Ruby Logger sending your log data directly to the cloud instead of to disk.
|
4
4
|
|
@@ -22,9 +22,9 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
Create a new NinjaLog::NinjaLogger providing your ninjalog.io email account and generated client_id and client_secret, then use the logger as you would the Ruby Logger class
|
25
|
+
Create a new NinjaLog::NinjaLogger providing your ninjalog.io email account and generated client_id and client_secret, then use the logger as you would the Ruby Logger class.
|
26
26
|
|
27
|
-
Set your Rails.application logger in any environment file
|
27
|
+
Set your Rails.application logger in any environment file:
|
28
28
|
|
29
29
|
```ruby
|
30
30
|
Rails.application.configure do
|
@@ -32,7 +32,7 @@ Rails.application.configure do
|
|
32
32
|
end
|
33
33
|
```
|
34
34
|
|
35
|
-
Or use ninjalog outside a Rails application
|
35
|
+
Or use ninjalog outside a Rails application:
|
36
36
|
|
37
37
|
```ruby
|
38
38
|
require 'ninjalog'
|
@@ -43,7 +43,7 @@ logger.info('Logging to the cloud. weeee')
|
|
43
43
|
|
44
44
|
## Contributing
|
45
45
|
|
46
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/tysonholub/ninjalog. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
46
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/tysonholub/ninjalog.rb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
47
47
|
|
48
48
|
|
49
49
|
## License
|
data/Rakefile
CHANGED
File without changes
|
data/lib/ninjalog.rb
CHANGED
@@ -11,7 +11,7 @@ module NinjaLog
|
|
11
11
|
class NinjaLogDev
|
12
12
|
def initialize(email, id, secret)
|
13
13
|
@headers = { 'Accept' => 'application/json' }
|
14
|
-
response = Unirest.post '
|
14
|
+
response = Unirest.post 'https://www.ninjalog.io/api/v1/auth/token',
|
15
15
|
headers: @headers,
|
16
16
|
parameters: {
|
17
17
|
:email => email,
|
@@ -24,7 +24,7 @@ module NinjaLog
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def write(message)
|
27
|
-
Unirest.post '
|
27
|
+
Unirest.post 'https://www.ninjalog.io/api/v1/log',
|
28
28
|
headers: @headers,
|
29
29
|
parameters: {
|
30
30
|
:message => message
|
data/lib/ninjalog/version.rb
CHANGED
data/ninjalog.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{Cloud based logger for centralized logging}
|
13
13
|
spec.description = %q{ninjalog.io is a secure, open source web service for centralized logging. This gem wraps the ruby logger library to push your log through the ninjalog.io API}
|
14
|
-
spec.homepage = "
|
14
|
+
spec.homepage = "https://www.ninjalog.io"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ninjalog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tysonholub
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.12'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.12'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3.5'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.5'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: unirest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 1.1.2
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 1.1.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: jwt
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 1.5.4
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 1.5.4
|
83
83
|
description: ninjalog.io is a secure, open source web service for centralized logging.
|
@@ -89,7 +89,7 @@ executables: []
|
|
89
89
|
extensions: []
|
90
90
|
extra_rdoc_files: []
|
91
91
|
files:
|
92
|
-
-
|
92
|
+
- .gitignore
|
93
93
|
- CODE_OF_CONDUCT.md
|
94
94
|
- Gemfile
|
95
95
|
- LICENSE.txt
|
@@ -100,7 +100,7 @@ files:
|
|
100
100
|
- lib/ninjalog.rb
|
101
101
|
- lib/ninjalog/version.rb
|
102
102
|
- ninjalog.gemspec
|
103
|
-
homepage:
|
103
|
+
homepage: https://www.ninjalog.io
|
104
104
|
licenses:
|
105
105
|
- MIT
|
106
106
|
metadata: {}
|
@@ -110,17 +110,17 @@ require_paths:
|
|
110
110
|
- lib
|
111
111
|
required_ruby_version: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
|
-
- -
|
113
|
+
- - ! '>='
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
117
|
requirements:
|
118
|
-
- -
|
118
|
+
- - ! '>='
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.4.
|
123
|
+
rubygems_version: 2.4.3
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Cloud based logger for centralized logging
|