best_boy 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +0 -1
- data/LICENSE.txt +1 -1
- data/README.md +18 -15
- data/app/controllers/best_boy/best_boy_events_controller.rb +1 -0
- data/app/views/best_boy/best_boy_events/index.html.erb +1 -1
- data/db/bestboy.db +0 -0
- data/lib/best_boy.rb +2 -1
- data/lib/best_boy/version.rb +1 -1
- data/lib/generators/templates/best_boy.rb +3 -0
- metadata +2 -3
- data/CHANGELOG.md +0 -36
data/.travis.yml
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -5,7 +5,6 @@ best_boy
|
|
5
5
|
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/Absolventa/best_boy)
|
6
6
|
|
7
7
|
A simple event driven logging for ActiveRecord models.
|
8
|
-
This gem moved from cseydel/best_boy to absolventa/best_boy
|
9
8
|
|
10
9
|
|
11
10
|
What does this gem do?
|
@@ -15,6 +14,13 @@ best_boy logs "create" and "delete" events as well as custom events triggered in
|
|
15
14
|
At the moment, best_boy only provides support for ActiveRecord models.
|
16
15
|
|
17
16
|
|
17
|
+
Rails version support
|
18
|
+
----------------------
|
19
|
+
|
20
|
+
best_boy supports rails 3.2.x in its versions 1.1.x. At this point there is a feature stop and it will only provide fixes for its current features.
|
21
|
+
Rails 4.0 support is provided in best_boy's versions 1.2.0 up to the current version.
|
22
|
+
|
23
|
+
|
18
24
|
Installation
|
19
25
|
------------
|
20
26
|
|
@@ -63,18 +69,6 @@ If you need to precompile assets, maybe for deployment on heroku cedar stack, pl
|
|
63
69
|
config.precompile_assets = true
|
64
70
|
|
65
71
|
|
66
|
-
Update from version 0.1.0
|
67
|
-
-------------------------
|
68
|
-
|
69
|
-
Rerun the generator to get needed migrations
|
70
|
-
|
71
|
-
rails g best_boy
|
72
|
-
|
73
|
-
Run the migration
|
74
|
-
|
75
|
-
rake db:migrate
|
76
|
-
|
77
|
-
|
78
72
|
Usage
|
79
73
|
-----
|
80
74
|
|
@@ -119,6 +113,7 @@ Following configurations can be done:
|
|
119
113
|
config.base_controller "String" # default: "ApplicationController" # declare with Controller should be inherited
|
120
114
|
config.before_filter "comma separated symbols" # default: nil # declare before_filter to use inherited before_filters in admin section
|
121
115
|
config.skip_before_filter "comma separated symbols" # default: nil # declare skip_before_filter to skip inherited before_filters in admin section
|
116
|
+
config.skip_after_filter "comma separated symbols" # default: nil # declare skip_after_filter to skip inherited after_filters in admin section
|
122
117
|
config.custom_redirect "relative path as String" # default: nil # set a path to return back to your existing backend
|
123
118
|
|
124
119
|
After installation you can access it through:
|
@@ -134,9 +129,17 @@ Used gems and resource
|
|
134
129
|
|
135
130
|
[Winston Teo Yong Wei](https://github.com/winston/google_visualr) Google_Visulr in its version 2.1.2
|
136
131
|
|
132
|
+
|
133
|
+
Contributors in alphabetic order
|
134
|
+
--------------------------------
|
135
|
+
@cseydel
|
136
|
+
@danscho
|
137
|
+
|
138
|
+
|
137
139
|
Thanks
|
138
140
|
------
|
139
|
-
|
141
|
+
We are extremely grateful to everyone contributing to this project.
|
140
142
|
Big thanks to each contributor on Impressionist. This gem helped me a long way to get here in modelling and creating a gem.
|
141
143
|
|
142
|
-
|
144
|
+
|
145
|
+
See LICENSE.txt for details on licenses.
|
@@ -4,6 +4,7 @@ module BestBoy
|
|
4
4
|
before_filter BestBoy.before_filter if BestBoy.before_filter.present?
|
5
5
|
before_filter :prepare_chart, :only => [:charts]
|
6
6
|
skip_before_filter BestBoy.skip_before_filter if BestBoy.skip_before_filter.present?
|
7
|
+
skip_after_filter BestBoy.skip_after_filter if BestBoy.skip_after_filter.present?
|
7
8
|
|
8
9
|
layout 'best_boy_backend'
|
9
10
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div class="span12">
|
2
2
|
<div class="hero-unit">
|
3
|
-
<h2>BestBoy
|
3
|
+
<h2>BestBoy Administration Center</h1>
|
4
4
|
<p>BestBoy provides several statistics and logs for you. You can access yearly, monthly, weekly and day statistics for your logged events per owner class. In the list and logs section you can see realtime events and search for date and events for each owner class.</p>
|
5
5
|
</div>
|
6
6
|
</div>
|
data/db/bestboy.db
CHANGED
Binary file
|
data/lib/best_boy.rb
CHANGED
@@ -3,13 +3,14 @@ require "best_boy/engine.rb"
|
|
3
3
|
module BestBoy
|
4
4
|
# Define ORM
|
5
5
|
mattr_accessor :precompile_assets, :orm, :base_controller, :before_filter,
|
6
|
-
:skip_before_filter, :custom_redirect
|
6
|
+
:skip_before_filter, :skip_after_filter, :custom_redirect
|
7
7
|
|
8
8
|
@@precompile_assets = false
|
9
9
|
@@orm = :active_record
|
10
10
|
@@base_controller = "ApplicationController"
|
11
11
|
@@before_filter = nil
|
12
12
|
@@skip_before_filter = nil
|
13
|
+
@@skip_after_filter = nil
|
13
14
|
@@custom_redirect = nil
|
14
15
|
|
15
16
|
# Load configuration from initializer
|
data/lib/best_boy/version.rb
CHANGED
@@ -14,6 +14,9 @@ BestBoy.setup do |config|
|
|
14
14
|
# Define skip_before_filter for skipping before_filters (default = nil)
|
15
15
|
#config.skip_before_filter = nil
|
16
16
|
|
17
|
+
# Define skip_after_filter for skipping after_filters (default = nil)
|
18
|
+
#config.skip_after_filter = nil
|
19
|
+
|
17
20
|
# Define custom redirect path as string p.e. "/admin" (default = nil)
|
18
21
|
#config.custom_redirect = nil
|
19
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: best_boy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: kaminari
|
@@ -229,7 +229,6 @@ files:
|
|
229
229
|
- .gitignore
|
230
230
|
- .rspec
|
231
231
|
- .travis.yml
|
232
|
-
- CHANGELOG.md
|
233
232
|
- Gemfile
|
234
233
|
- LICENSE.txt
|
235
234
|
- README.md
|
data/CHANGELOG.md
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
## 0.3.1
|
2
|
-
* added precompilation flag to initializer. see Readme for update
|
3
|
-
* fixed compatibility with asset-pipeline precompilation
|
4
|
-
|
5
|
-
## 0.3.0
|
6
|
-
* rails 3.2.x compatibility
|
7
|
-
* refactored BestBoyEventsController
|
8
|
-
* fixed view for empty event_source column
|
9
|
-
* added percentage values for source view
|
10
|
-
* added custom monthly statistic for detailed view
|
11
|
-
* added asset pipeline compatibility (see readme for instructions)
|
12
|
-
|
13
|
-
## 0.2.1
|
14
|
-
* added some styling gimmicks (active navigation highlighting, wording)
|
15
|
-
* moved google charts javascript to ssl for better backend integration
|
16
|
-
* changed year view to scope first year of each owner type separately
|
17
|
-
* initial list view includes now every owner type
|
18
|
-
* list view shows owner type and event source if given
|
19
|
-
|
20
|
-
## 0.2.0
|
21
|
-
* added charts
|
22
|
-
* added event_source to best_boy_events for better logging. see update section in README for update instructions
|
23
|
-
|
24
|
-
## 0.1.0
|
25
|
-
|
26
|
-
* added backend
|
27
|
-
* added dependency kaminari for backend pagination
|
28
|
-
* extended specs
|
29
|
-
|
30
|
-
## 0.0.3
|
31
|
-
|
32
|
-
* added rspec tests
|
33
|
-
|
34
|
-
## 0.0.2
|
35
|
-
|
36
|
-
* initial release
|