awestruct 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ module Awestruct
|
|
11
11
|
|
12
12
|
module IntenseDebatable
|
13
13
|
def intense_debate_comments()
|
14
|
-
post_id = SHA1.hexdigest( self.url )
|
14
|
+
post_id = self.post_id ? self.post_id : SHA1.hexdigest( self.url )
|
15
15
|
html = %Q(<script>\n)
|
16
16
|
html += %Q( var idcomments_acct='#{site.intense_debate_acct}';\n)
|
17
17
|
html += %Q( var idcomments_post_id='#{post_id}';\n )
|
@@ -19,11 +19,11 @@ module Awestruct
|
|
19
19
|
html += %Q(</script>\n)
|
20
20
|
html += %Q(<span id="IDCommentsPostTitle" style="display:none"></span>\n)
|
21
21
|
html += %Q(<script type='text/javascript' src='http://www.intensedebate.com/js/genericCommentWrapperV2.js'></script>\n)
|
22
|
-
html
|
22
|
+
html
|
23
23
|
end
|
24
24
|
|
25
25
|
def intense_debate_comments_link()
|
26
|
-
post_id = SHA1.hexdigest( self.url )
|
26
|
+
post_id = self.post_id ? self.post_id : SHA1.hexdigest( self.url )
|
27
27
|
html = %Q(<script>\n)
|
28
28
|
html += %Q( var idcomments_acct='#{site.intense_debate_acct}';\n)
|
29
29
|
html += %Q( var idcomments_post_id='#{post_id}';\n )
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awestruct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.9
|
10
|
+
version: 0.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bob McWhirter
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-17 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|