acts_as_commentable_with_threading 2.0.0 → 2.0.1

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: fb97d670c7c38f3ebd5734662be5a97407d25ed9
4
- data.tar.gz: 183b5bb8b0fbefc77e9b3bd42dabfecfbb6516d3
3
+ metadata.gz: 7fa46fc0c8e039365333ca316c857de8ca536b72
4
+ data.tar.gz: 8ea1a5ac6932aa3e414ece90aa29d8dc67c3b673
5
5
  SHA512:
6
- metadata.gz: 6ee6b452fe066bc0384e9ae35d8ba7ee92b0c31d30c260ca09e2e121d484965e1f42c05d33ca75bb90e4953c9e9c0bda246f05d01a96d632eeb775e7a91bcc81
7
- data.tar.gz: e20dacff4e85b6eee5b9446e3a6cce03534128a10a3c86bb46868570ec6b79d65e99bc50841a0c287f89821df48b8acbed34a2c63c2a78c7e353a008acee68b8
6
+ metadata.gz: 869971df0bb70039564070982aeb95d3407b6803c5a58288aa775f6ca9a1999e4cc802d050b6c4f108474dd2cc96334ed975f5c1dc5e05577c4aab935384030b
7
+ data.tar.gz: 9e4e87ce3389c2f1b2295f20407fdf191c1e1770972b712b6f9c61ab0e0f2a61bd5603f1117f30cd5b0ef5d55478077fdb4753976899cb5b1b9425282767974d
data/.gitignore CHANGED
@@ -3,3 +3,5 @@
3
3
  gemfiles/*.lock
4
4
  pkg/*
5
5
  spec/debug.log
6
+ Gemfile.lock
7
+
@@ -1,10 +1,14 @@
1
+ before_install:
2
+ - gem update bundler
1
3
  gemfile:
2
4
  - gemfiles/Gemfile.rails-4.0
3
5
  - gemfiles/Gemfile.rails-4.1
6
+ - gemfiles/Gemfile.rails-4.2
4
7
  rvm:
5
8
  - 1.9.3
6
9
  - 2.0.0
7
10
  - 2.1.0
11
+ - 2.2.3
8
12
  - jruby-19mode
9
13
  - rbx-2
10
14
  matrix:
@@ -1,3 +1,8 @@
1
+ v2.0.1
2
+ ------
3
+
4
+ - Minor change to eliminate warning when used with Rails 5.x
5
+
1
6
  v2.0.0
2
7
  ------
3
8
 
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "acts_as_commentable_with_threading"
3
- s.version = "2.0.0"
4
- s.date = "2014-09-15"
3
+ s.version = "2.0.1"
4
+ s.date = "2015-12-22"
5
5
  s.summary = "Polymorphic comments Rails gem - Rails 4+ only"
6
6
  s.email = "evan@tripledogdare.net"
7
7
  s.homepage = "http://github.com/elight/acts_as_commentable_with_threading"
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '..'
4
+
5
+ group :development do
6
+ gem 'activerecord-jdbcsqlite3-adapter', :platforms => :jruby
7
+ gem 'sqlite3', :platforms => :ruby
8
+ gem 'rails', '~> 4.2.0'
9
+ end
@@ -28,7 +28,7 @@ module Acts #:nodoc:
28
28
  # Helper method to lookup for comments for a given object.
29
29
  # This method is equivalent to obj.comments.
30
30
  def find_comments_for(obj)
31
- Comment.where(:commentable_id => obj.id, :commentable_type => obj.class.base_class).order('created_at DESC')
31
+ Comment.where(:commentable_id => obj.id, :commentable_type => obj.class.base_class.name).order('created_at DESC')
32
32
  end
33
33
 
34
34
  # Helper class method to lookup comments for
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_commentable_with_threading
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Light
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-09-15 00:00:00.000000000 Z
14
+ date: 2015-12-22 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake
@@ -107,13 +107,13 @@ files:
107
107
  - ".travis.yml"
108
108
  - CHANGELOG.md
109
109
  - Gemfile
110
- - Gemfile.lock
111
110
  - MIT-LICENSE
112
111
  - README.md
113
112
  - Rakefile
114
113
  - acts_as_commentable_with_threading.gemspec
115
114
  - gemfiles/Gemfile.rails-4.0
116
115
  - gemfiles/Gemfile.rails-4.1
116
+ - gemfiles/Gemfile.rails-4.2
117
117
  - init.rb
118
118
  - install.rb
119
119
  - lib/acts_as_commentable_with_threading.rb
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  requirements: []
152
152
  rubyforge_project:
153
- rubygems_version: 2.4.2
153
+ rubygems_version: 2.5.1
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: Polymorphic comments Rails gem - Rails 4+ only
@@ -1,108 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- acts_as_commentable_with_threading (2.0.0)
5
- activerecord (>= 4.0)
6
- activesupport (>= 4.0)
7
- awesome_nested_set (>= 3.0)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- actionmailer (4.1.6)
13
- actionpack (= 4.1.6)
14
- actionview (= 4.1.6)
15
- mail (~> 2.5, >= 2.5.4)
16
- actionpack (4.1.6)
17
- actionview (= 4.1.6)
18
- activesupport (= 4.1.6)
19
- rack (~> 1.5.2)
20
- rack-test (~> 0.6.2)
21
- actionview (4.1.6)
22
- activesupport (= 4.1.6)
23
- builder (~> 3.1)
24
- erubis (~> 2.7.0)
25
- activemodel (4.1.6)
26
- activesupport (= 4.1.6)
27
- builder (~> 3.1)
28
- activerecord (4.1.6)
29
- activemodel (= 4.1.6)
30
- activesupport (= 4.1.6)
31
- arel (~> 5.0.0)
32
- activesupport (4.1.6)
33
- i18n (~> 0.6, >= 0.6.9)
34
- json (~> 1.7, >= 1.7.7)
35
- minitest (~> 5.1)
36
- thread_safe (~> 0.1)
37
- tzinfo (~> 1.1)
38
- arel (5.0.1.20140414130214)
39
- awesome_nested_set (3.0.1)
40
- activerecord (>= 4.0.0, < 5)
41
- builder (3.2.2)
42
- diff-lcs (1.2.5)
43
- erubis (2.7.0)
44
- hike (1.2.3)
45
- i18n (0.6.11)
46
- json (1.8.1)
47
- mail (2.6.1)
48
- mime-types (>= 1.16, < 3)
49
- mime-types (2.3)
50
- minitest (5.4.1)
51
- multi_json (1.10.1)
52
- rack (1.5.2)
53
- rack-test (0.6.2)
54
- rack (>= 1.0)
55
- rails (4.1.6)
56
- actionmailer (= 4.1.6)
57
- actionpack (= 4.1.6)
58
- actionview (= 4.1.6)
59
- activemodel (= 4.1.6)
60
- activerecord (= 4.1.6)
61
- activesupport (= 4.1.6)
62
- bundler (>= 1.3.0, < 2.0)
63
- railties (= 4.1.6)
64
- sprockets-rails (~> 2.0)
65
- railties (4.1.6)
66
- actionpack (= 4.1.6)
67
- activesupport (= 4.1.6)
68
- rake (>= 0.8.7)
69
- thor (>= 0.18.1, < 2.0)
70
- rake (10.3.2)
71
- rspec (3.1.0)
72
- rspec-core (~> 3.1.0)
73
- rspec-expectations (~> 3.1.0)
74
- rspec-mocks (~> 3.1.0)
75
- rspec-core (3.1.3)
76
- rspec-support (~> 3.1.0)
77
- rspec-expectations (3.1.1)
78
- diff-lcs (>= 1.2.0, < 2.0)
79
- rspec-support (~> 3.1.0)
80
- rspec-mocks (3.1.0)
81
- rspec-support (~> 3.1.0)
82
- rspec-support (3.1.0)
83
- sprockets (2.12.2)
84
- hike (~> 1.2)
85
- multi_json (~> 1.0)
86
- rack (~> 1.0)
87
- tilt (~> 1.1, != 1.3.0)
88
- sprockets-rails (2.1.4)
89
- actionpack (>= 3.0)
90
- activesupport (>= 3.0)
91
- sprockets (~> 2.8)
92
- sqlite3 (1.3.9)
93
- thor (0.19.1)
94
- thread_safe (0.3.4)
95
- tilt (1.4.1)
96
- tzinfo (1.2.2)
97
- thread_safe (~> 0.1)
98
-
99
- PLATFORMS
100
- ruby
101
-
102
- DEPENDENCIES
103
- activerecord-jdbcsqlite3-adapter
104
- acts_as_commentable_with_threading!
105
- rails (>= 4.0)
106
- rake
107
- rspec (>= 3.0)
108
- sqlite3