insight_rails 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -0,0 +1,16 @@
1
+ class CommentGravatar
2
+
3
+ # Bit of a hack as the issue_comment class is being ignored atm.
4
+
5
+ def initialize(email)
6
+ @email = email
7
+ end
8
+
9
+ include Gravtastic
10
+ gravtastic :email
11
+
12
+ def email
13
+ @email
14
+ end
15
+
16
+ end
@@ -1,4 +1,4 @@
1
- class Comment < ActiveResource::Base
1
+ class Issue::Comment < ActiveResource::Base
2
2
 
3
3
  headers["X-ApiKey"] = Insight.configuration.api_key
4
4
 
@@ -20,7 +20,7 @@
20
20
  <p><strong><%= index + 1 %></strong> Posted by <cite><%= comment.user_name %></cite> on <%= posted_on_long(comment.updated_at) %></p>
21
21
  </div>
22
22
  <div class="gravatar">
23
- <%= image_tag(comment.gravatar_url(:size => 30)) %>
23
+ <%= image_tag(CommentGravatar.new(comment.user_email).gravatar_url(:size => 30)) %>
24
24
  </div>
25
25
  <div class="said">
26
26
  <%= simple_format(comment.comment) %>
metadata CHANGED
@@ -1,78 +1,57 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: insight_rails
3
- version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 3
9
- - 0
10
- version: 0.3.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Kieran Johnson
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-07-11 00:00:00 +01:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2011-07-11 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: rails
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2152308740 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 977940597
30
- segments:
31
- - 3
32
- - 1
33
- - 0
34
- - rc4
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
35
21
  version: 3.1.0.rc4
36
22
  type: :runtime
37
- version_requirements: *id001
38
- - !ruby/object:Gem::Dependency
39
- name: recaptcha
40
23
  prerelease: false
41
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *2152308740
25
+ - !ruby/object:Gem::Dependency
26
+ name: recaptcha
27
+ requirement: &2152307980 !ruby/object:Gem::Requirement
42
28
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- hash: 3
47
- segments:
48
- - 0
49
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
50
33
  type: :runtime
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: gravtastic
54
34
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *2152307980
36
+ - !ruby/object:Gem::Dependency
37
+ name: gravtastic
38
+ requirement: &2152306440 !ruby/object:Gem::Requirement
56
39
  none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 3
61
- segments:
62
- - 0
63
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
64
44
  type: :runtime
65
- version_requirements: *id003
45
+ prerelease: false
46
+ version_requirements: *2152306440
66
47
  description: Customer Support and Knowledge Base
67
48
  email: support@invisiblelines.com
68
49
  executables: []
69
-
70
50
  extensions: []
71
-
72
- extra_rdoc_files:
51
+ extra_rdoc_files:
73
52
  - LICENSE
74
53
  - README.md
75
- files:
54
+ files:
76
55
  - LICENSE
77
56
  - README.md
78
57
  - Rakefile
@@ -89,9 +68,10 @@ files:
89
68
  - app/models/article_category.rb
90
69
  - app/models/category.rb
91
70
  - app/models/category_issue.rb
92
- - app/models/comment.rb
71
+ - app/models/comment_gravatar.rb
93
72
  - app/models/insight_user.rb
94
73
  - app/models/issue.rb
74
+ - app/models/issue/comment.rb
95
75
  - app/models/lead.rb
96
76
  - app/views/help/categories/index.html.erb
97
77
  - app/views/help/comments/_form.html.erb
@@ -121,39 +101,28 @@ files:
121
101
  - lib/insight/crm/models/contact.rb
122
102
  - lib/insight/engine.rb
123
103
  - lib/insight/railties/tasks.rake
124
- has_rdoc: true
125
104
  homepage: http://github.com/kieranj/insight
126
105
  licenses: []
127
-
128
106
  post_install_message:
129
107
  rdoc_options: []
130
-
131
- require_paths:
108
+ require_paths:
132
109
  - lib
133
- required_ruby_version: !ruby/object:Gem::Requirement
110
+ required_ruby_version: !ruby/object:Gem::Requirement
134
111
  none: false
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- hash: 3
139
- segments:
140
- - 0
141
- version: "0"
142
- required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
143
117
  none: false
144
- requirements:
145
- - - ">="
146
- - !ruby/object:Gem::Version
147
- hash: 3
148
- segments:
149
- - 0
150
- version: "0"
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
151
122
  requirements: []
152
-
153
123
  rubyforge_project:
154
- rubygems_version: 1.3.7
124
+ rubygems_version: 1.8.5
155
125
  signing_key:
156
126
  specification_version: 3
157
127
  summary: Customer Support and Knowledge Base
158
128
  test_files: []
159
-