activerecord-reputation-system 3.0.0 → 3.0.1

This diff has not been reviewed by any users.
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: 357cba79dc17693f888aa559b94301e9cc6a0c39
4
- data.tar.gz: 86542de25746208e733f163c661ec9b7be90ba2c
3
+ metadata.gz: 10915241e177105ac8e0292185e0097af082cfc3
4
+ data.tar.gz: 2ce0e020e993eefeef20e466276783ec7466dc94
5
5
  SHA512:
6
- metadata.gz: 9656e9ca24b2a70661ef53336b6c96af676c1aa5d2d556267d223caf57aae0ff49fd79aa5e9feacda5ec0f16a1f2d80d7f1fc20d3c3e167023263e385c33d0c5
7
- data.tar.gz: acc3482e4ea8e3d485d605fd711eecd7f7a70920049cb638472f4a532acb11f183dce97e374e32ec8e4e3c3c24e08c311c113648eb7f112543209ec210a00234
6
+ metadata.gz: ec6e20230c725fdda1998c340d481d7f1ddc3522734c92cfac3ba7fb851c20f931cc18063a2626892fe94724f3e6bbe0ce0bbded5e7ce5c0acaaf14b0efc777e
7
+ data.tar.gz: 3a1b1e147d43676042c20494576149b5f0ca0897fe7f2b80eae80ba0d0e59f165fa37cf1666e22670913636cf955a31b3db667198f77c0fbc8d4e3c37318c053
data/README.md CHANGED
@@ -9,6 +9,8 @@ The Active Record Reputation System helps you build the reputation system for yo
9
9
 
10
10
  * If you are updating to version 2 from version older, you should check out [migration guide](https://github.com/twitter/activerecord-reputation-system/wiki/Migrate-to-Version-2.0).
11
11
 
12
+ * **For Rails 3 use versions 2.0.2 and older.**
13
+
12
14
  Add to Gemfile:
13
15
 
14
16
  ```ruby
@@ -14,7 +14,6 @@
14
14
  # limitations under the License.
15
15
  ##
16
16
 
17
- require 'protected_attributes'
18
17
  require 'reputation_system/base'
19
18
  require 'reputation_system/query_methods'
20
19
  require 'reputation_system/finder_methods'
@@ -22,8 +22,6 @@ module ReputationSystem
22
22
  belongs_to :target, :polymorphic => true
23
23
  has_one :sent_messages, :as => :sender, :class_name => 'ReputationSystem::ReputationMessage', :dependent => :destroy
24
24
 
25
- attr_accessible :reputation_name, :value, :source, :source_id, :source_type, :target, :target_id, :target_type
26
-
27
25
  # Sets an appropriate source type in case of Single Table Inheritance.
28
26
  before_validation :set_source_type_for_sti
29
27
 
@@ -26,8 +26,6 @@ module ReputationSystem
26
26
  end
27
27
  has_many :sent_messages, :as => :sender, :class_name => 'ReputationSystem::ReputationMessage', :dependent => :destroy
28
28
 
29
- attr_accessible :reputation_name, :value, :aggregated_by, :active, :target, :target_id, :target_type, :received_messages
30
-
31
29
  before_validation :set_target_type_for_sti
32
30
  before_save :change_zero_value_in_case_of_product_process
33
31
 
@@ -20,8 +20,6 @@ module ReputationSystem
20
20
  belongs_to :sender, :polymorphic => true
21
21
  belongs_to :receiver, :class_name => 'ReputationSystem::Reputation'
22
22
 
23
- attr_accessible :weight, :sender, :receiver
24
-
25
23
  # The same sender cannot send massage to the same receiver more than once.
26
24
  validates_uniqueness_of :receiver_id, :scope => [:sender_id, :sender_type]
27
25
  validate :sender_must_be_evaluation_or_reputation
@@ -15,5 +15,5 @@
15
15
  ##
16
16
 
17
17
  module ReputationSystem
18
- VERSION = "3.0.0"
18
+ VERSION = "3.0.1"
19
19
  end
metadata CHANGED
@@ -1,111 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-reputation-system
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katsuya Noguchi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-07 00:00:00.000000000 Z
11
+ date: 2014-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: protected_attributes
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: activerecord
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
- - - ~>
17
+ - - "~>"
32
18
  - !ruby/object:Gem::Version
33
19
  version: '4.0'
34
20
  type: :development
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
- - - ~>
24
+ - - "~>"
39
25
  - !ruby/object:Gem::Version
40
26
  version: '4.0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rake
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
- - - '>='
31
+ - - ">="
46
32
  - !ruby/object:Gem::Version
47
33
  version: 0.8.7
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - '>='
38
+ - - ">="
53
39
  - !ruby/object:Gem::Version
54
40
  version: 0.8.7
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rspec
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
- - - ~>
45
+ - - "~>"
60
46
  - !ruby/object:Gem::Version
61
47
  version: '2.8'
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
- - - ~>
52
+ - - "~>"
67
53
  - !ruby/object:Gem::Version
68
54
  version: '2.8'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rdoc
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - '>='
59
+ - - ">="
74
60
  - !ruby/object:Gem::Version
75
61
  version: '0'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - '>='
66
+ - - ">="
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: database_cleaner
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - ~>
73
+ - - "~>"
88
74
  - !ruby/object:Gem::Version
89
75
  version: 1.2.0
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - ~>
80
+ - - "~>"
95
81
  - !ruby/object:Gem::Version
96
82
  version: 1.2.0
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: sqlite3
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
- - - ~>
87
+ - - "~>"
102
88
  - !ruby/object:Gem::Version
103
89
  version: 1.3.5
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
- - - ~>
94
+ - - "~>"
109
95
  - !ruby/object:Gem::Version
110
96
  version: 1.3.5
111
97
  description: ActiveRecord Reputation System gem allows rails apps to compute and publish
@@ -162,12 +148,12 @@ require_paths:
162
148
  - lib
163
149
  required_ruby_version: !ruby/object:Gem::Requirement
164
150
  requirements:
165
- - - '>='
151
+ - - ">="
166
152
  - !ruby/object:Gem::Version
167
153
  version: '0'
168
154
  required_rubygems_version: !ruby/object:Gem::Requirement
169
155
  requirements:
170
- - - '>='
156
+ - - ">="
171
157
  - !ruby/object:Gem::Version
172
158
  version: '0'
173
159
  requirements: []