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.
@@ -1,4 +1,3 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.2
4
3
  - 1.9.3
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Absolventa GmbH
1
+ Copyright (c) 2012 - 2013 Absolventa GmbH
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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
- Copyright (c) 2012 Absolventa GmbH. See LICENSE.txt for further details.
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 Administation Center</h1>
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>
Binary file
@@ -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
@@ -1,3 +1,3 @@
1
1
  module BestBoy
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
@@ -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.2.0
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-07-02 00:00:00.000000000 Z
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
@@ -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