info 0.0.1 → 0.0.2

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: 31e53f7a9fe86770c1708f0d3d1569a8d968e970
4
- data.tar.gz: 4888fed4ece7745dfc387e35a61af05cc288b1d8
3
+ metadata.gz: bdb823fe4d47819a988f0f6431954ae5836ff4bc
4
+ data.tar.gz: c3dd0694a929293b0737101b19b3d31f70a288fb
5
5
  SHA512:
6
- metadata.gz: 4589e198dd442e17426264078078fb73efb47427fa71fe39dc1abf256b1c09ee73f2a58da99bc026160354805d042187ccdf17491dd2d69792097558bd3bbf50
7
- data.tar.gz: 9579c661cdc76ab5dc30af2f0cb0744ef61dbae5219edc67601a91affc13cf56af8fa00a48302c7910b10e011f56329c0979bcf8c16a55bbfc484953d0e82029
6
+ metadata.gz: 0c49ddb39c4fd10319c2d78643e7dcf3c5b9637b346b8ff86a993e37b55d14166326007c8b0571937c42761e7691cb57f3cc1a3a1040cdd161f9df8d92bfae04
7
+ data.tar.gz: 1042a6e85d3c66ff846f88c1f5c6979d739bc6e6d7ff61cdf2abcdeb00bcd7babe3fb7d224695d5be3c7b633a968c8d106497fa97965ca9a975b536ddf76579d
data/README.md CHANGED
@@ -9,7 +9,19 @@ Info a library that allows you collecting info about your application in a simpl
9
9
 
10
10
  Just the following line to your Gemfile:
11
11
 
12
- gem "info"
12
+ ```ruby
13
+ gem 'info'
14
+ ```
15
+
16
+ Now, create a initializer at `config/initializers/info.rb` with the following content:
17
+
18
+ ```ruby
19
+ Info.setup do
20
+ enable!
21
+ end
22
+ ```
23
+
24
+ Read more about authorization and how to add collectors below.
13
25
 
14
26
  ## Usage
15
27
 
@@ -7,7 +7,7 @@ class InfoController < ActionController::Base
7
7
 
8
8
  def show
9
9
  if Info.configuration.enabled
10
- render json: Info.collect
10
+ render json: Info.collect(request)
11
11
  else
12
12
  render nothing: true
13
13
  end
data/lib/info/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Info
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira