nesta-plugin-google-ads 0.0.1

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.
@@ -0,0 +1,219 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title>
7
+ File: README
8
+
9
+ &mdash; Documentation by YARD 0.8.2.1
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index</a> &raquo;
35
+ <span class="title">File: README</span>
36
+
37
+
38
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
39
+ </div>
40
+
41
+ <div id="search">
42
+
43
+ <a class="full_list_link" id="class_list_link"
44
+ href="class_list.html">
45
+ Class List
46
+ </a>
47
+
48
+ <a class="full_list_link" id="method_list_link"
49
+ href="method_list.html">
50
+ Method List
51
+ </a>
52
+
53
+ <a class="full_list_link" id="file_list_link"
54
+ href="file_list.html">
55
+ File List
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <iframe id="search_frame"></iframe>
63
+
64
+ <div id="content"><div id='filecontents'><h1>Nesta::Plugin::Google::Ads</h1>
65
+
66
+ <p>Include google ads in your Nesta CMS applciation.</p>
67
+
68
+ <h2>Installation</h2>
69
+
70
+ <p>Add this line to your application's Gemfile:</p>
71
+
72
+ <pre class="code ruby"><code><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>nesta-plugin-google-ads</span><span class='tstring_end'>'</span></span>
73
+ </code></pre>
74
+
75
+ <p>And then execute:</p>
76
+
77
+ <pre class="code ruby"><code>$ bundle
78
+ </code></pre>
79
+
80
+ <p>Or install it yourself as:</p>
81
+
82
+ <pre class="code ruby"><code>$ gem install nesta-plugin-google-ads
83
+ </code></pre>
84
+
85
+ <h2>Usage</h2>
86
+
87
+ <ol>
88
+ <li><p>Update your configs. [optional if you're passing params to helper, see below]</p>
89
+
90
+ <pre class="code ruby"><code> # config/config.yml
91
+ # this sets default which can be overriden in your helper
92
+ # call
93
+ google_ad:
94
+ client: google_client_id
95
+ slot: google_ad_slot_id
96
+ width: google_ad_width
97
+ height: google_ad_height
98
+ </code></pre></li>
99
+ <li><p>Add helper method to your layout.haml or where you want it.</p>
100
+
101
+ <pre class="code ruby"><code> # views/layout.haml
102
+ -#- ... layout contents ...
103
+
104
+ = google_ad
105
+
106
+ -#- ... layout contents ...
107
+ </code></pre></li>
108
+ </ol>
109
+
110
+
111
+ <blockquote><p>'google_ad' helper also takes a hash of google_ad keys, which will
112
+ override defaults set in config/config.yml.</p>
113
+
114
+ <p>Example:</p>
115
+
116
+ <pre class="code ruby"><code> = google_ad( &quot;width&quot; =&gt; 200, &quot;height&quot; =&gt; 200 )
117
+ </code></pre></blockquote>
118
+
119
+ <h2>Examples</h2>
120
+
121
+ <h3>Postal3</h3>
122
+
123
+ <h4>Menu Ad</h4>
124
+
125
+ <pre class="code ruby"><code> # file: views/index.haml
126
+ 1 #header
127
+ 2 %h1#logo
128
+ 3 %a{ :href =&gt; &quot;/&quot; }= @heading
129
+ 4 %small= no_widow @subtitle
130
+ 5
131
+ 6 #sidebar
132
+ 7 = haml :categories, :layout =&gt; false
133
+ 8 = haml :feed, :layout =&gt; false
134
+ 9 = haml :about, :layout =&gt; false
135
+ 10 = google_ad
136
+ 11
137
+ 12 #content
138
+ 13 - @articles.each do |article|
139
+ 14 = haml :summary, :layout =&gt; false, :locals =&gt; { :article =&gt; article, :heading =&gt; :h2 }
140
+ </code></pre>
141
+
142
+ <h4>Top Ad</h4>
143
+
144
+ <pre class="code ruby"><code> # file: views/index.haml
145
+ 1 #header
146
+ 2 %h1#logo
147
+ 3 %a{ :href =&gt; &quot;/&quot; }= @heading
148
+ 4 %small= no_widow @subtitle
149
+ 5
150
+ 6 #sidebar
151
+ 7 = haml :categories, :layout =&gt; false
152
+ 8 = haml :feed, :layout =&gt; false
153
+ 9 = haml :about, :layout =&gt; false
154
+ 10
155
+ 11 #content
156
+ 12 = google_ad
157
+ 13 - @articles.each do |article|
158
+ 14 = haml :summary, :layout =&gt; false, :locals =&gt; { :article =&gt; article, :heading =&gt; :h2 }
159
+ </code></pre>
160
+
161
+ <h4>Bottom Ad</h4>
162
+
163
+ <pre class="code ruby"><code> # file: views/index.haml
164
+ 1 #header
165
+ 2 %h1#logo
166
+ 3 %a{ :href =&gt; &quot;/&quot; }= @heading
167
+ 4 %small= no_widow @subtitle
168
+ 5
169
+ 6 #sidebar
170
+ 7 = haml :categories, :layout =&gt; false
171
+ 8 = haml :feed, :layout =&gt; false
172
+ 9 = haml :about, :layout =&gt; false
173
+ 10
174
+ 11 #content
175
+ 12 - @articles.each do |article|
176
+ 13 = haml :summary, :layout =&gt; false, :locals =&gt; { :article =&gt; article, :heading =&gt; :h2 }
177
+ 14 = google_ad
178
+ </code></pre>
179
+
180
+ <h4>Multiple Ads</h4>
181
+
182
+ <pre class="code ruby"><code> # file: views/index.haml
183
+ 1 #header
184
+ 2 %h1#logo
185
+ 3 %a{ :href =&gt; &quot;/&quot; }= @heading
186
+ 4 %small= no_widow @subtitle
187
+ 5
188
+ 6 #sidebar
189
+ 7 = haml :categories, :layout =&gt; false
190
+ 8 = haml :feed, :layout =&gt; false
191
+ 9 = haml :about, :layout =&gt; false
192
+ 14 = google_ad(&quot;slot&quot; =&gt; 0000000000, &quot;width&quot; =&gt; 200, &quot;height&quot; =&gt; 200)
193
+ 10
194
+ 11 #content
195
+ 12 - @articles.each do |article|
196
+ 13 = haml :summary, :layout =&gt; false, :locals =&gt; { :article =&gt; article, :heading =&gt; :h2 }
197
+ 14 = google_ad
198
+ </code></pre>
199
+
200
+ <h2>Contributing</h2>
201
+
202
+ <ol>
203
+ <li>Fork it</li>
204
+ <li>Create your feature branch (<code>git checkout -b my-new-feature</code>)</li>
205
+ <li>Commit your changes (<code>git commit -am 'Added some feature'</code>)</li>
206
+ <li>Push to the branch (<code>git push origin my-new-feature</code>)</li>
207
+ <li>Create new Pull Request</li>
208
+ </ol>
209
+
210
+ </div></div>
211
+
212
+ <div id="footer">
213
+ Generated on Thu Aug 23 15:53:22 2012 by
214
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
215
+ 0.8.2.1 (ruby-1.9.3).
216
+ </div>
217
+
218
+ </body>
219
+ </html>
@@ -0,0 +1,55 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+
7
+ <link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
8
+
9
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
10
+
11
+
12
+
13
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
16
+
17
+
18
+ <base id="base_target" target="_parent" />
19
+ </head>
20
+ <body>
21
+ <script type="text/javascript" charset="utf-8">
22
+ if (window.top.frames.main) {
23
+ document.getElementById('base_target').target = 'main';
24
+ document.body.className = 'frames';
25
+ }
26
+ </script>
27
+ <div id="content">
28
+ <h1 id="full_list_header">File List</h1>
29
+ <div id="nav">
30
+
31
+ <span><a target="_self" href="class_list.html">
32
+ Classes
33
+ </a></span>
34
+
35
+ <span><a target="_self" href="method_list.html">
36
+ Methods
37
+ </a></span>
38
+
39
+ <span><a target="_self" href="file_list.html">
40
+ Files
41
+ </a></span>
42
+
43
+ </div>
44
+ <div id="search">Search: <input type="text" /></div>
45
+
46
+ <ul id="full_list" class="file">
47
+
48
+
49
+ <li class="r1"><a href="index.html" title="README">README</a></li>
50
+
51
+
52
+ </ul>
53
+ </div>
54
+ </body>
55
+ </html>
data/doc/frames.html ADDED
@@ -0,0 +1,28 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
3
+
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
+ <title>Documentation by YARD 0.8.2.1</title>
8
+ </head>
9
+ <script type="text/javascript" charset="utf-8">
10
+ window.onload = function() {
11
+ var match = window.location.hash.match(/^#!(.+)/);
12
+ var name = 'index.html';
13
+ if (match) {
14
+ name = unescape(match[1]);
15
+ }
16
+ document.writeln('<frameset cols="20%,*">' +
17
+ '<frame name="list" src="class_list.html" />' +
18
+ '<frame name="main" src="' + name + '" />' +
19
+ '</frameset>');
20
+ }
21
+ </script>
22
+ <noscript>
23
+ <frameset cols="20%,*">
24
+ <frame name="list" src="class_list.html" />
25
+ <frame name="main" src="index.html" />
26
+ </frameset>
27
+ </noscript>
28
+ </html>
data/doc/index.html ADDED
@@ -0,0 +1,219 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <title>
7
+ File: README
8
+
9
+ &mdash; Documentation by YARD 0.8.2.1
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index</a> &raquo;
35
+ <span class="title">File: README</span>
36
+
37
+
38
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
39
+ </div>
40
+
41
+ <div id="search">
42
+
43
+ <a class="full_list_link" id="class_list_link"
44
+ href="class_list.html">
45
+ Class List
46
+ </a>
47
+
48
+ <a class="full_list_link" id="method_list_link"
49
+ href="method_list.html">
50
+ Method List
51
+ </a>
52
+
53
+ <a class="full_list_link" id="file_list_link"
54
+ href="file_list.html">
55
+ File List
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <iframe id="search_frame"></iframe>
63
+
64
+ <div id="content"><div id='filecontents'><h1>Nesta::Plugin::Google::Ads</h1>
65
+
66
+ <p>Include google ads in your Nesta CMS applciation.</p>
67
+
68
+ <h2>Installation</h2>
69
+
70
+ <p>Add this line to your application's Gemfile:</p>
71
+
72
+ <pre class="code ruby"><code><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>nesta-plugin-google-ads</span><span class='tstring_end'>'</span></span>
73
+ </code></pre>
74
+
75
+ <p>And then execute:</p>
76
+
77
+ <pre class="code ruby"><code>$ bundle
78
+ </code></pre>
79
+
80
+ <p>Or install it yourself as:</p>
81
+
82
+ <pre class="code ruby"><code>$ gem install nesta-plugin-google-ads
83
+ </code></pre>
84
+
85
+ <h2>Usage</h2>
86
+
87
+ <ol>
88
+ <li><p>Update your configs. [optional if you're passing params to helper, see below]</p>
89
+
90
+ <pre class="code ruby"><code> # config/config.yml
91
+ # this sets default which can be overriden in your helper
92
+ # call
93
+ google_ad:
94
+ client: google_client_id
95
+ slot: google_ad_slot_id
96
+ width: google_ad_width
97
+ height: google_ad_height
98
+ </code></pre></li>
99
+ <li><p>Add helper method to your layout.haml or where you want it.</p>
100
+
101
+ <pre class="code ruby"><code> # views/layout.haml
102
+ -#- ... layout contents ...
103
+
104
+ = google_ad
105
+
106
+ -#- ... layout contents ...
107
+ </code></pre></li>
108
+ </ol>
109
+
110
+
111
+ <blockquote><p>'google_ad' helper also takes a hash of google_ad keys, which will
112
+ override defaults set in config/config.yml.</p>
113
+
114
+ <p>Example:</p>
115
+
116
+ <pre class="code ruby"><code> = google_ad( &quot;width&quot; =&gt; 200, &quot;height&quot; =&gt; 200 )
117
+ </code></pre></blockquote>
118
+
119
+ <h2>Examples</h2>
120
+
121
+ <h3>Postal3</h3>
122
+
123
+ <h4>Menu Ad</h4>
124
+
125
+ <pre class="code ruby"><code> # file: views/index.haml
126
+ 1 #header
127
+ 2 %h1#logo
128
+ 3 %a{ :href =&gt; &quot;/&quot; }= @heading
129
+ 4 %small= no_widow @subtitle
130
+ 5
131
+ 6 #sidebar
132
+ 7 = haml :categories, :layout =&gt; false
133
+ 8 = haml :feed, :layout =&gt; false
134
+ 9 = haml :about, :layout =&gt; false
135
+ 10 = google_ad
136
+ 11
137
+ 12 #content
138
+ 13 - @articles.each do |article|
139
+ 14 = haml :summary, :layout =&gt; false, :locals =&gt; { :article =&gt; article, :heading =&gt; :h2 }
140
+ </code></pre>
141
+
142
+ <h4>Top Ad</h4>
143
+
144
+ <pre class="code ruby"><code> # file: views/index.haml
145
+ 1 #header
146
+ 2 %h1#logo
147
+ 3 %a{ :href =&gt; &quot;/&quot; }= @heading
148
+ 4 %small= no_widow @subtitle
149
+ 5
150
+ 6 #sidebar
151
+ 7 = haml :categories, :layout =&gt; false
152
+ 8 = haml :feed, :layout =&gt; false
153
+ 9 = haml :about, :layout =&gt; false
154
+ 10
155
+ 11 #content
156
+ 12 = google_ad
157
+ 13 - @articles.each do |article|
158
+ 14 = haml :summary, :layout =&gt; false, :locals =&gt; { :article =&gt; article, :heading =&gt; :h2 }
159
+ </code></pre>
160
+
161
+ <h4>Bottom Ad</h4>
162
+
163
+ <pre class="code ruby"><code> # file: views/index.haml
164
+ 1 #header
165
+ 2 %h1#logo
166
+ 3 %a{ :href =&gt; &quot;/&quot; }= @heading
167
+ 4 %small= no_widow @subtitle
168
+ 5
169
+ 6 #sidebar
170
+ 7 = haml :categories, :layout =&gt; false
171
+ 8 = haml :feed, :layout =&gt; false
172
+ 9 = haml :about, :layout =&gt; false
173
+ 10
174
+ 11 #content
175
+ 12 - @articles.each do |article|
176
+ 13 = haml :summary, :layout =&gt; false, :locals =&gt; { :article =&gt; article, :heading =&gt; :h2 }
177
+ 14 = google_ad
178
+ </code></pre>
179
+
180
+ <h4>Multiple Ads</h4>
181
+
182
+ <pre class="code ruby"><code> # file: views/index.haml
183
+ 1 #header
184
+ 2 %h1#logo
185
+ 3 %a{ :href =&gt; &quot;/&quot; }= @heading
186
+ 4 %small= no_widow @subtitle
187
+ 5
188
+ 6 #sidebar
189
+ 7 = haml :categories, :layout =&gt; false
190
+ 8 = haml :feed, :layout =&gt; false
191
+ 9 = haml :about, :layout =&gt; false
192
+ 14 = google_ad(&quot;slot&quot; =&gt; 0000000000, &quot;width&quot; =&gt; 200, &quot;height&quot; =&gt; 200)
193
+ 10
194
+ 11 #content
195
+ 12 - @articles.each do |article|
196
+ 13 = haml :summary, :layout =&gt; false, :locals =&gt; { :article =&gt; article, :heading =&gt; :h2 }
197
+ 14 = google_ad
198
+ </code></pre>
199
+
200
+ <h2>Contributing</h2>
201
+
202
+ <ol>
203
+ <li>Fork it</li>
204
+ <li>Create your feature branch (<code>git checkout -b my-new-feature</code>)</li>
205
+ <li>Commit your changes (<code>git commit -am 'Added some feature'</code>)</li>
206
+ <li>Push to the branch (<code>git push origin my-new-feature</code>)</li>
207
+ <li>Create new Pull Request</li>
208
+ </ol>
209
+
210
+ </div></div>
211
+
212
+ <div id="footer">
213
+ Generated on Thu Aug 23 15:53:22 2012 by
214
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
215
+ 0.8.2.1 (ruby-1.9.3).
216
+ </div>
217
+
218
+ </body>
219
+ </html>