acts_as_favoritor 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +0 -0
- data/README.md +18 -57
- data/lib/acts_as_favoritor.rb +8 -8
- data/lib/acts_as_favoritor/configuration.rb +22 -23
- data/lib/acts_as_favoritor/favoritable.rb +365 -292
- data/lib/acts_as_favoritor/favorite_scopes.rb +66 -59
- data/lib/acts_as_favoritor/favoritor.rb +551 -425
- data/lib/acts_as_favoritor/favoritor_lib.rb +39 -49
- data/lib/acts_as_favoritor/railtie.rb +9 -9
- data/lib/acts_as_favoritor/version.rb +3 -3
- data/lib/generators/acts_as_favoritor_generator.rb +29 -29
- data/lib/generators/templates/initializer.rb +9 -9
- data/lib/generators/templates/migration.rb.erb +16 -14
- data/lib/generators/templates/model.rb +9 -9
- metadata +35 -40
- data/CHANGELOG.md +0 -95
- data/lib/generators/templates/README.md +0 -1
data/CHANGELOG.md
DELETED
@@ -1,95 +0,0 @@
|
|
1
|
-
# Changelog
|
2
|
-
|
3
|
-
### master
|
4
|
-
|
5
|
-
* nothing yet
|
6
|
-
|
7
|
-
### 2.0.1 - 2018-01-01
|
8
|
-
|
9
|
-
* bugfixes
|
10
|
-
* fixed error when generating files (without configuration becoming initialized)
|
11
|
-
|
12
|
-
### 2.0.0 - 2017-12-21
|
13
|
-
|
14
|
-
* features
|
15
|
-
* configuration by passing a block to `configure`
|
16
|
-
* generator generates initializer instead of yaml file
|
17
|
-
|
18
|
-
### 1.5.0 - 2017-09-02
|
19
|
-
|
20
|
-
* features
|
21
|
-
* access scope specific caches through methods
|
22
|
-
|
23
|
-
### 1.4.0 - 2017-09-01
|
24
|
-
|
25
|
-
* features
|
26
|
-
* update caching functionality to include `score` & `total`
|
27
|
-
|
28
|
-
### 1.3.2 - 2017-08-31
|
29
|
-
|
30
|
-
* features
|
31
|
-
* add caching functionality to `acts_as_favoritor` & `acts_as_favoritable` model
|
32
|
-
|
33
|
-
### 1.2.2 - 2017-08-24
|
34
|
-
|
35
|
-
* bugfixes
|
36
|
-
* `acts_as_favoritor` generator hotfix
|
37
|
-
|
38
|
-
### 1.2.1 - 2017-08-24
|
39
|
-
|
40
|
-
* enhancements
|
41
|
-
* improve migration template
|
42
|
-
* add installer readme
|
43
|
-
* minor bugfixes
|
44
|
-
|
45
|
-
### 1.2.0 - 2017-08-24
|
46
|
-
|
47
|
-
* features
|
48
|
-
* add `blocked?` method to `acts_as_favoritor` model
|
49
|
-
* add `blocked?` method to `acts_as_favoritable` model
|
50
|
-
* add `favoritable_type` method to `acts_as_favoritor` model
|
51
|
-
* add `favoritor_type` method to `acts_as_favoritable` model
|
52
|
-
* add `blocks` method to `acts_as_favoritor` model
|
53
|
-
* add `block` method to `acts_as_favoritor` model
|
54
|
-
* add `unblock` method to `acts_as_favoritor` model
|
55
|
-
* add `blocked_favoritables_count` method to `acts_as_favoritor` model
|
56
|
-
* minor bugfixes
|
57
|
-
|
58
|
-
### 1.1.3 - 2017-08-23
|
59
|
-
|
60
|
-
* bugfixes
|
61
|
-
* `fix NoMethodError: undefined method 'each' for <SCOPE>:String`
|
62
|
-
|
63
|
-
### 1.1.2 - 2017-08-23
|
64
|
-
|
65
|
-
* bugfixes
|
66
|
-
* migration hotfix
|
67
|
-
|
68
|
-
### 1.1.1 - 2017-08-23
|
69
|
-
|
70
|
-
* notes
|
71
|
-
* default scope changed from `favorites` to `favorite`
|
72
|
-
* features
|
73
|
-
* added configuration
|
74
|
-
* enhancements
|
75
|
-
* add `scope` generator option
|
76
|
-
* add `skip_configuration` generator option
|
77
|
-
* index database columns
|
78
|
-
* minor bugfixes
|
79
|
-
|
80
|
-
### 1.1.0 - 2017-08-23
|
81
|
-
|
82
|
-
* features
|
83
|
-
* add scope functionality
|
84
|
-
|
85
|
-
### 1.0.2 - 2017-08-22
|
86
|
-
|
87
|
-
* enhancements
|
88
|
-
|
89
|
-
### 1.0.1 - 2017-08-22
|
90
|
-
|
91
|
-
* bug fixes
|
92
|
-
|
93
|
-
### 1.0.0 - 2017-08-22
|
94
|
-
|
95
|
-
* initial release
|
@@ -1 +0,0 @@
|
|
1
|
-
Now run `rails db:migrate` to add acts_as_favoritor to your database.
|