mongoid-likeable 6.0.0 → 6.1.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
- SHA1:
3
- metadata.gz: b98c808c6bc776167b5ae11ef81a819e70884158
4
- data.tar.gz: 0d8878095a287e1697e9dea1b292e4f9f0d024a0
2
+ SHA256:
3
+ metadata.gz: b3fa97609033fcbec56b16ea029f2837a566f8a5129f703cfcf73176b22cb106
4
+ data.tar.gz: 6049552b217070d3d2fabbb396f604d00e1ac7234e0400916f385f5e65a75490
5
5
  SHA512:
6
- metadata.gz: 0e2a2304e769e361b2bff5d13a3057420660bb40b38ab0b1ad32ad8d254cee91b69171066fad4bf544304b1419ebf6c3995b4297f20df2393895615ed197b45e
7
- data.tar.gz: 6456ff9fd4130a0c479286d8b678bec1f742e39ebe7d904c865918a7ce5196d7e1961d76b1fd406aee67efc22b5919ef1bd76e9c7b23440d54b4bfee9f1ecf74
6
+ metadata.gz: 9711d2cb34bca6d9e9b0d8237d61afcf213205ae673a20ae8d5813e7d0473a04416d19ea4e1977335beafd01d7ae029c38d464c358398478a346f0ac91bc1c18
7
+ data.tar.gz: 77e5e2aa855eb70c2f928fbda2a258bc3a1ab793c866f5c2091ceebab2804e6cb3e15d6df26bccf1f49cc9ec6a43eda985c14f754f67e8590ec704c005e0d0ee
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.1.0
4
+
5
+ * Add Mongoid 7 support
6
+ * Test against latest Ruby versions
7
+ * Update dependencies
8
+
3
9
  ## 6.0.0
4
10
 
5
11
  * Mongoid 6.1 support
data/LICENSE CHANGED
@@ -1,17 +1,17 @@
1
1
  BSD 2-Clause License
2
2
 
3
- Copyright (c) 2017, diowa
3
+ Copyright (c) 2019, diowa
4
4
  All rights reserved.
5
5
 
6
6
  Redistribution and use in source and binary forms, with or without
7
7
  modification, are permitted provided that the following conditions are met:
8
8
 
9
- * Redistributions of source code must retain the above copyright notice, this
10
- list of conditions and the following disclaimer.
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
11
 
12
- * Redistributions in binary form must reproduce the above copyright notice,
13
- this list of conditions and the following disclaimer in the documentation
14
- and/or other materials provided with the distribution.
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
15
 
16
16
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
17
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # mongoid-likeable
2
2
  [![Gem Version](https://badge.fury.io/rb/mongoid-likeable.svg)](http://badge.fury.io/rb/mongoid-likeable)
3
3
  [![Build Status](https://secure.travis-ci.org/diowa/mongoid-likeable.svg?branch=master)](https://travis-ci.org/diowa/mongoid-likeable)
4
- [![Dependency Status](https://gemnasium.com/diowa/mongoid-likeable.svg)](https://gemnasium.com/diowa/mongoid-likeable)
5
4
  [![Code Climate](https://codeclimate.com/github/diowa/mongoid-likeable/badges/gpa.svg)](https://codeclimate.com/github/diowa/mongoid-likeable)
6
5
  [![Coverage Status](https://img.shields.io/coveralls/diowa/mongoid-likeable.svg?branch=master)](https://coveralls.io/r/diowa/mongoid-likeable)
7
6
 
@@ -110,6 +109,6 @@ For more information on SemVer, please visit [http://semver.org/](http://semver.
110
109
 
111
110
  ## Copyright and license
112
111
 
113
- Copyright 2014 diowa under [the BSD 2-Clause license](LICENSE).
112
+ Copyright 2019 diowa under [the BSD 2-Clause license](LICENSE).
114
113
 
115
114
  mongoid-voteable is licensed under the MIT License - Copyright (c) 2012 Tom Bell
@@ -14,6 +14,7 @@ module Mongoid
14
14
  def like(liker)
15
15
  id = liker_id(liker)
16
16
  return if liked? id
17
+
17
18
  push likers: id
18
19
  update_likers
19
20
  end
@@ -21,6 +22,7 @@ module Mongoid
21
22
  def unlike(liker)
22
23
  id = liker_id(liker)
23
24
  return unless liked? id
25
+
24
26
  pull likers: id
25
27
  update_likers
26
28
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Mongoid
4
4
  module Likeable
5
- VERSION = '6.0.0'.freeze
5
+ VERSION = '6.1.0'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-likeable
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - diowa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-28 00:00:00.000000000 Z
11
+ date: 2019-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '6.0'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '6.1'
22
+ version: '8'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '6.0'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '6.1'
32
+ version: '8'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: activesupport
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -33,7 +39,7 @@ dependencies:
33
39
  version: '5.0'
34
40
  - - "<"
35
41
  - !ruby/object:Gem::Version
36
- version: '5.2'
42
+ version: '6'
37
43
  type: :development
38
44
  prerelease: false
39
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,35 +49,49 @@ dependencies:
43
49
  version: '5.0'
44
50
  - - "<"
45
51
  - !ruby/object:Gem::Version
46
- version: '5.2'
52
+ version: '6'
47
53
  - !ruby/object:Gem::Dependency
48
- name: coveralls
54
+ name: appraisal
49
55
  requirement: !ruby/object:Gem::Requirement
50
56
  requirements:
51
57
  - - "~>"
52
58
  - !ruby/object:Gem::Version
53
- version: 0.8.21
59
+ version: '2.2'
54
60
  type: :development
55
61
  prerelease: false
56
62
  version_requirements: !ruby/object:Gem::Requirement
57
63
  requirements:
58
64
  - - "~>"
59
65
  - !ruby/object:Gem::Version
60
- version: 0.8.21
66
+ version: '2.2'
67
+ - !ruby/object:Gem::Dependency
68
+ name: coveralls_reborn
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: 0.12.0
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: 0.12.0
61
81
  - !ruby/object:Gem::Dependency
62
82
  name: database_cleaner
63
83
  requirement: !ruby/object:Gem::Requirement
64
84
  requirements:
65
85
  - - "~>"
66
86
  - !ruby/object:Gem::Version
67
- version: '1.5'
87
+ version: '1.7'
68
88
  type: :development
69
89
  prerelease: false
70
90
  version_requirements: !ruby/object:Gem::Requirement
71
91
  requirements:
72
92
  - - "~>"
73
93
  - !ruby/object:Gem::Version
74
- version: '1.5'
94
+ version: '1.7'
75
95
  - !ruby/object:Gem::Dependency
76
96
  name: m
77
97
  requirement: !ruby/object:Gem::Requirement
@@ -92,56 +112,56 @@ dependencies:
92
112
  requirements:
93
113
  - - "~>"
94
114
  - !ruby/object:Gem::Version
95
- version: '5.10'
115
+ version: '5.11'
96
116
  type: :development
97
117
  prerelease: false
98
118
  version_requirements: !ruby/object:Gem::Requirement
99
119
  requirements:
100
120
  - - "~>"
101
121
  - !ruby/object:Gem::Version
102
- version: '5.10'
122
+ version: '5.11'
103
123
  - !ruby/object:Gem::Dependency
104
124
  name: mocha
105
125
  requirement: !ruby/object:Gem::Requirement
106
126
  requirements:
107
127
  - - "~>"
108
128
  - !ruby/object:Gem::Version
109
- version: '1.1'
129
+ version: '1.8'
110
130
  type: :development
111
131
  prerelease: false
112
132
  version_requirements: !ruby/object:Gem::Requirement
113
133
  requirements:
114
134
  - - "~>"
115
135
  - !ruby/object:Gem::Version
116
- version: '1.1'
136
+ version: '1.8'
117
137
  - !ruby/object:Gem::Dependency
118
138
  name: rubocop
119
139
  requirement: !ruby/object:Gem::Requirement
120
140
  requirements:
121
141
  - - "~>"
122
142
  - !ruby/object:Gem::Version
123
- version: 0.48.1
143
+ version: 0.66.0
124
144
  type: :development
125
145
  prerelease: false
126
146
  version_requirements: !ruby/object:Gem::Requirement
127
147
  requirements:
128
148
  - - "~>"
129
149
  - !ruby/object:Gem::Version
130
- version: 0.48.1
150
+ version: 0.66.0
131
151
  - !ruby/object:Gem::Dependency
132
152
  name: simplecov
133
153
  requirement: !ruby/object:Gem::Requirement
134
154
  requirements:
135
155
  - - "~>"
136
156
  - !ruby/object:Gem::Version
137
- version: 0.14.1
157
+ version: 0.16.1
138
158
  type: :development
139
159
  prerelease: false
140
160
  version_requirements: !ruby/object:Gem::Requirement
141
161
  requirements:
142
162
  - - "~>"
143
163
  - !ruby/object:Gem::Version
144
- version: 0.14.1
164
+ version: 0.16.1
145
165
  description: Add likes to your Mongoid documents
146
166
  email:
147
167
  - dev@diowa.com
@@ -173,8 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
193
  - !ruby/object:Gem::Version
174
194
  version: '0'
175
195
  requirements: []
176
- rubyforge_project: mongoid-likeable
177
- rubygems_version: 2.6.11
196
+ rubygems_version: 3.0.3
178
197
  signing_key:
179
198
  specification_version: 4
180
199
  summary: Add likes to your Mongoid documents