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 +4 -4
- data/CHANGELOG.md +13 -9
- data/LICENSE.txt +1 -1
- data/README.md +9 -0
- data/app/controllers/searchjoy/searches_controller.rb +2 -2
- data/lib/searchjoy/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81afb5da71ed5e2714237809e9dfa472b6e5ac2d285bdd391a635c0cf67a1735
|
4
|
+
data.tar.gz: 4cc06c6f1c2379e0196655bf4379fe6a43ccafddf96cfeeb035ecae5d78026a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a621888af83d4b3e2dc262f82abb0be369bd53c282e06d65b2aa65525f299c6d43a857790170ce03fab55242a2cbc18515e126d776df12f4ab26daa910b17496
|
7
|
+
data.tar.gz: 0e5bb79620de12393815699a577a1b09a59b7c588249b38e6ba02527285ecaaef1df61a9904cb30f8958581e8d31f37e9381ce7e4825125a75c82c4fdecc6a0b
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,17 @@
|
|
1
|
-
## 0.4.
|
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`
|
data/LICENSE.txt
CHANGED
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 = {}
|
data/lib/searchjoy/version.rb
CHANGED
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.
|
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:
|
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.
|
168
|
+
rubygems_version: 3.1.2
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: Search analytics made easy
|