searchjoy 0.4.2 → 0.4.3

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
  SHA256:
3
- metadata.gz: 7cf790f134ff1f479e76e9d793b91e5b889a45b8b8b82f14ec2e6b1b919f66ec
4
- data.tar.gz: cf38fef090b482d3af0922c4bf0128fef17b8b4dda5b16f0357e55663e674b84
3
+ metadata.gz: 81afb5da71ed5e2714237809e9dfa472b6e5ac2d285bdd391a635c0cf67a1735
4
+ data.tar.gz: 4cc06c6f1c2379e0196655bf4379fe6a43ccafddf96cfeeb035ecae5d78026a4
5
5
  SHA512:
6
- metadata.gz: f924603116e8dc5a0fbb65742522a93148784df02a5483314cf31b7968a683977f8157a4e4088e9453aee302f4685d217f4be8720a8794c05212998cedade47b
7
- data.tar.gz: 0157f4df291ae3acfe8d140ed0fe09ae9efdf635a47db10780a1cf80df020218f9bd82a0218bd41330983558df7bad9c0140a5eeacca407d01a3be38978051d1
6
+ metadata.gz: a621888af83d4b3e2dc262f82abb0be369bd53c282e06d65b2aa65525f299c6d43a857790170ce03fab55242a2cbc18515e126d776df12f4ab26daa910b17496
7
+ data.tar.gz: 0e5bb79620de12393815699a577a1b09a59b7c588249b38e6ba02527285ecaaef1df61a9904cb30f8958581e8d31f37e9381ce7e4825125a75c82c4fdecc6a0b
@@ -1,13 +1,17 @@
1
- ## 0.4.2
1
+ ## 0.4.3 (2020-03-06)
2
+
3
+ - Fixed error with Groupdate 5
4
+
5
+ ## 0.4.2 (2019-10-08)
2
6
 
3
7
  - Added support for Sprockets 4
4
8
  - Require latest version of Chartkick
5
9
 
6
- ## 0.4.1
10
+ ## 0.4.1 (2019-05-26)
7
11
 
8
12
  - Added support for Rails 6
9
13
 
10
- ## 0.4.0
14
+ ## 0.4.0 (2019-04-15)
11
15
 
12
16
  - Added support for `models` option
13
17
  - Added tracking for `Searchkick.multi_search`
@@ -17,31 +21,31 @@ Breaking
17
21
 
18
22
  - Removed support for Rails < 5
19
23
 
20
- ## 0.3.2
24
+ ## 0.3.2 (2018-03-26)
21
25
 
22
26
  - Use `references` in migration
23
27
  - Fixed migration for SQLite
24
28
 
25
- ## 0.3.1
29
+ ## 0.3.1 (2017-05-12)
26
30
 
27
31
  - Fixed support for Rails 5.1
28
32
 
29
- ## 0.3.0
33
+ ## 0.3.0 (2017-05-01)
30
34
 
31
35
  - Added support for Rails 5.1
32
36
  - Fixed `belongs_to` issue with Rails 5
33
37
 
34
- ## 0.2.1
38
+ ## 0.2.1 (2017-03-19)
35
39
 
36
40
  - Added `query_url` option
37
41
 
38
- ## 0.2.0
42
+ ## 0.2.0 (2017-01-05)
39
43
 
40
44
  - Fixed error with Rails 5
41
45
  - Fixed `Index name too long` error with SQLite
42
46
  - Added `query_name` option
43
47
  - Removed support for Rails 3
44
48
 
45
- ## 0.1.0
49
+ ## 0.1.0 (2016-08-23)
46
50
 
47
51
  - Fixed Searchkick integration for `execute: false`
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013-2019 Andrew Kane
1
+ Copyright (c) 2013-2020 Andrew Kane
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -153,3 +153,12 @@ Everyone is encouraged to help improve this project. Here are a few ways you can
153
153
  - Fix bugs and [submit pull requests](https://github.com/ankane/searchjoy/pulls)
154
154
  - Write, clarify, or fix documentation
155
155
  - Suggest or add new feature
156
+
157
+ To get started with development and testing:
158
+
159
+ ```sh
160
+ git clone https://github.com/ankane/searchjoy.git
161
+ cd searchjoy
162
+ bundle install
163
+ bundle exec rake test
164
+ ```
@@ -20,8 +20,8 @@ module Searchjoy
20
20
 
21
21
  def overview
22
22
  relation = Searchjoy::Search.where(search_type: params[:search_type])
23
- @searches_by_week = relation.group_by_week(:created_at, Time.zone, @time_range).count
24
- @conversions_by_week = relation.where("converted_at is not null").group_by_week(:created_at, Time.zone, @time_range).count
23
+ @searches_by_week = relation.group_by_week(:created_at, time_zone: Time.zone, range: @time_range).count
24
+ @conversions_by_week = relation.where("converted_at is not null").group_by_week(:created_at, time_zone: Time.zone, range: @time_range).count
25
25
  @top_searches = @searches.first(5)
26
26
  @bad_conversion_rate = @searches.sort_by { |s| [s["conversion_rate"].to_f, s["query"]] }.first(5).select { |s| s["conversion_rate"] < 50 }
27
27
  @conversion_rate_by_week = {}
@@ -1,3 +1,3 @@
1
1
  module Searchjoy
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: searchjoy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-09 00:00:00.000000000 Z
11
+ date: 2020-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chartkick
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.0.3
168
+ rubygems_version: 3.1.2
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Search analytics made easy