acts_as_commentable_with_replies 0.0.5 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9c94af9ae64476a6d6ddb5c2b71da5c4ffc76ed4
4
+ data.tar.gz: f133276997c600b352d5ac02a63974f263a79e82
5
+ SHA512:
6
+ metadata.gz: bba00e2fd810520ba84c953400b2e62d10c4dcec4af45de6ddf60bc567ee80e3b60b290ac7ad653a4a8e1319623aa82cf42a30324bcf90ef88427de6463b71e5
7
+ data.tar.gz: 0f004a109742aadc5bbd9a605000fd89db43600e217717e0b4e6def75548b9053408da79e9beb669a3ed8c7016d41fb01d7918c1ff899eec48d6057024e9f5a9
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = ActsAsCommentableWithReplies::VERSION
17
17
 
18
- gem.add_development_dependency 'rails', '~> 3.0'
18
+ gem.add_development_dependency 'rails', '~> 4.0'
19
19
 
20
20
  gem.add_dependency 'awesome_nested_set', '>= 2.0'
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module ActsAsCommentableWithReplies
2
- VERSION = "0.0.5"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -1,15 +1,15 @@
1
1
  class Comment < ::ActiveRecord::Base
2
+
3
+ # settings
2
4
  acts_as_nested_set
3
5
 
4
- attr_accessible :commentable_id, :commentable_type,
5
- :commenter_id, :commenter_type,
6
- :commentable, :commenter,
7
- :message
8
-
9
- belongs_to :commentable, :polymorphic => true
10
- belongs_to :commenter, :polymorphic => true
6
+ # relationships
7
+ belongs_to :commentable, polymorphic: true, touch: true
8
+ belongs_to :commenter, polymorphic: true, touch: true
11
9
 
10
+ # validations
12
11
  validates_presence_of :commentable_id
13
12
  validates_presence_of :commenter_id
14
13
  validates_presence_of :message
14
+
15
15
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_commentable_with_replies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Filvo Interactive
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-08-06 00:00:00.000000000 Z
11
+ date: 2013-12-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: '3.0'
19
+ version: '4.0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: '3.0'
26
+ version: '4.0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: awesome_nested_set
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '2.0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '2.0'
46
41
  description: Acts as Commentable with Replies
@@ -67,32 +62,25 @@ files:
67
62
  - lib/generators/acts_as_commentable_with_replies/migration/templates/active_record/migration.rb
68
63
  homepage: http://www.filvo.com
69
64
  licenses: []
65
+ metadata: {}
70
66
  post_install_message:
71
67
  rdoc_options: []
72
68
  require_paths:
73
69
  - lib
74
70
  required_ruby_version: !ruby/object:Gem::Requirement
75
- none: false
76
71
  requirements:
77
- - - ! '>='
72
+ - - '>='
78
73
  - !ruby/object:Gem::Version
79
74
  version: '0'
80
- segments:
81
- - 0
82
- hash: 3742380179039848453
83
75
  required_rubygems_version: !ruby/object:Gem::Requirement
84
- none: false
85
76
  requirements:
86
- - - ! '>='
77
+ - - '>='
87
78
  - !ruby/object:Gem::Version
88
79
  version: '0'
89
- segments:
90
- - 0
91
- hash: 3742380179039848453
92
80
  requirements: []
93
81
  rubyforge_project:
94
- rubygems_version: 1.8.24
82
+ rubygems_version: 2.0.14
95
83
  signing_key:
96
- specification_version: 3
84
+ specification_version: 4
97
85
  summary: A threaded comment system for Rails
98
86
  test_files: []