best_boy 3.1.0 → 3.2.0

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: 8f2d47b926a821314292979b2793662d9a6d132e
4
- data.tar.gz: aa624c0d977e27387681223cdbd710658497f188
3
+ metadata.gz: e3a48186ff3fcb4712653b16ab7f071a1c33b83e
4
+ data.tar.gz: f350d437901b35744ba910b331493cfd5fe3361c
5
5
  SHA512:
6
- metadata.gz: af453e8bc10344bd33d87da4ffe67add687460e9368d9f85dcef98586ae69a31b103868b35fe92378430e572610d95291292207e562fd14adc780f6347e7764b
7
- data.tar.gz: bc71d3e6ebbcbeb24fd9fb78cfc78aa662a905b4160a21d50abf299dfd12cbde28e4936f8b6a585bde9c6c5e3df4c19f6b8893f483e7183f943b7dceeed25751
6
+ metadata.gz: bb69cd09008e0165f26e69e59c45ffeb95aa7e1b927b6f53272e42cd2cc263fb4fd50562a20b48e40ad48901b60143f4d5ed5a0b7c98d790a306b5d3fc4a3917
7
+ data.tar.gz: f5d8a4677c5661cebc3cbcd3052e64ce661595525a07daf30383d15b3441951975e1983e05d91a29324c8150d3e15178b59f2cf38e3b464814895792fb82b1d0
data/README.md CHANGED
@@ -136,6 +136,10 @@ Changelog
136
136
  ---------
137
137
  #### HEAD (not released yet)
138
138
 
139
+ #### 3.2.0
140
+ * Fix date-parsing issue
141
+ * Add frozen_string_literal magic comments
142
+
139
143
  #### 3.1.0
140
144
  * Drop support for Rails 4.1
141
145
  * Add support for Rails 5.0
@@ -1,10 +1,11 @@
1
+ # frozen_string_literal: true
1
2
  module BestBoy
2
3
  class EventsController < BestBoy.base_controller.constantize
3
4
 
4
5
  before_action BestBoy.before_filter if BestBoy.before_filter.present?
5
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
+ skip_before_action BestBoy.skip_before_filter if BestBoy.skip_before_filter.present?
8
+ skip_after_action BestBoy.skip_after_filter if BestBoy.skip_after_filter.present?
8
9
 
9
10
  layout 'best_boy/best_boy'
10
11
 
@@ -137,7 +138,7 @@ module BestBoy
137
138
  end
138
139
 
139
140
  def days_of(month)
140
- reference = Date.parse("#{current_year}#{month}-1")
141
+ reference = Date.parse("#{current_year}-#{month}-01")
141
142
  (reference.beginning_of_month..reference.end_of_month)
142
143
  end
143
144
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module BestBoy
2
3
  module BestBoyViewHelper
3
4
  def relative_occurrences(hash, key)
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module BestBoy
2
3
  class DayReport < ActiveRecord::Base
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module BestBoy
2
3
  class Event < ActiveRecord::Base
3
4
 
@@ -26,4 +27,4 @@ module BestBoy
26
27
  scope :per_day, ->(date) { where(created_at: date.beginning_of_day..date.end_of_day ) }
27
28
 
28
29
  end
29
- end
30
+ end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module BestBoy
2
3
  class MonthReport < ActiveRecord::Base
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'haml'
2
3
  require "google_visualr"
3
4
  require 'kaminari'
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module BestBoy
2
3
  module Controller
3
4
  extend ActiveSupport::Concern
@@ -9,4 +10,4 @@ module BestBoy
9
10
  end
10
11
 
11
12
  end
12
- end
13
+ end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module BestBoy
2
3
  class Engine < ::Rails::Engine
3
4
  isolate_namespace BestBoy
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module BestBoy
2
3
  module Eventable
3
4
  extend ActiveSupport::Concern
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module BestBoy
2
3
  module ObeysTestMode
3
4
  def save(*args)
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module BestBoy
2
3
  module Reporting
3
4
  extend ActiveSupport::Concern
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module BestBoy
2
- VERSION = '3.1.0'
3
+ VERSION = '3.2.0'
3
4
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module BestBoy
2
3
  module Generators
3
4
  class InstallGenerator < Rails::Generators::Base
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  BestBoy.setup do |config|
2
3
  # Define base Controller (default ApplicationController)
3
4
  #config.base_controller = "ApplicationController"
@@ -13,4 +14,4 @@ BestBoy.setup do |config|
13
14
 
14
15
  # Define custom redirect path as string p.e. "/admin" (default = nil)
15
16
  #config.custom_redirect = nil
16
- end
17
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: best_boy
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Seydel, Carsten Zimmermann, Robin Neumann, Daniel Schoppmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-01 00:00:00.000000000 Z
11
+ date: 2016-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  version: '0'
206
206
  requirements: []
207
207
  rubyforge_project:
208
- rubygems_version: 2.5.1
208
+ rubygems_version: 2.6.8
209
209
  signing_key:
210
210
  specification_version: 4
211
211
  summary: a simple event driven logging for models