dm-is-published 0.0.6 → 1.2.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.
Files changed (47) hide show
  1. data/Gemfile +22 -0
  2. data/Guardfile +13 -0
  3. data/{LICENSE → LICENSE.txt} +1 -1
  4. data/README.rdoc +37 -5
  5. data/Rakefile +30 -56
  6. data/VERSION +1 -1
  7. data/dm-is-published.gemspec +93 -45
  8. data/docs/apple-touch-icon.png +0 -0
  9. data/docs/classes/DataMapper.html +81 -0
  10. data/docs/classes/DataMapper/Is.html +81 -0
  11. data/docs/classes/DataMapper/Is/Published.html +364 -0
  12. data/docs/classes/DataMapper/Is/Published/ClassMethods.html +237 -0
  13. data/docs/classes/DataMapper/Is/Published/InstanceMethods.html +132 -0
  14. data/docs/classes/DataMapper/Is/Published/ResourceInstanceMethods.html +133 -0
  15. data/docs/created.rid +4 -0
  16. data/docs/css/github.css +129 -0
  17. data/docs/css/main.css +333 -0
  18. data/docs/css/panel.css +384 -0
  19. data/docs/css/reset.css +48 -0
  20. data/docs/favicon.ico +0 -0
  21. data/docs/files/README_rdoc.html +226 -0
  22. data/docs/files/lib/dm-is-published_rb.html +84 -0
  23. data/docs/files/lib/is/published_rb.html +104 -0
  24. data/docs/i/arrows.png +0 -0
  25. data/docs/i/results_bg.png +0 -0
  26. data/docs/i/tree_bg.png +0 -0
  27. data/docs/index.html +13 -0
  28. data/docs/js/highlight.pack.js +1 -0
  29. data/docs/js/jquery-1.3.2.min.js +19 -0
  30. data/docs/js/jquery-effect.js +593 -0
  31. data/docs/js/main.js +24 -0
  32. data/docs/js/navigation.js +142 -0
  33. data/docs/js/search_index.js +1 -0
  34. data/docs/js/searchdoc.js +449 -0
  35. data/docs/js/searcher.js +228 -0
  36. data/docs/panel/index.html +73 -0
  37. data/docs/panel/links.html +12 -0
  38. data/docs/panel/tree.js +1 -0
  39. data/lib/dm-is-published.rb +3 -7
  40. data/lib/{dm-is-published/is → is}/published.rb +26 -10
  41. data/spec/{integration/published_spec.rb → dm-is-published_spec.rb} +48 -11
  42. data/spec/spec_helper.rb +12 -9
  43. metadata +264 -95
  44. data/.gitignore +0 -33
  45. data/History.rdoc +0 -4
  46. data/TODO +0 -0
  47. data/lib/dm-is-published/is/version.rb +0 -7
@@ -0,0 +1,132 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <title>DataMapper::Is::Published::InstanceMethods</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8
+ <link rel="stylesheet" href="../../../../css/reset.css" type="text/css" media="screen" />
9
+ <link rel="stylesheet" href="../../../../css/main.css" type="text/css" media="screen" />
10
+ <link rel="stylesheet" href="../../../../css/github.css" type="text/css" media="screen" />
11
+ <script src="../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
12
+ <script src="../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../../../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>
15
+
16
+ </head>
17
+
18
+ <body>
19
+ <div class="banner">
20
+
21
+ <h1>
22
+ <span class="type">Module</span>
23
+ DataMapper::Is::Published::InstanceMethods
24
+
25
+ </h1>
26
+ <ul class="files">
27
+
28
+ <li><a href="../../../../files/lib/is/published_rb.html">lib/is/published.rb</a></li>
29
+
30
+ </ul>
31
+ </div>
32
+ <div id="bodyContent">
33
+ <div id="content">
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+ <!-- Method ref -->
49
+ <div class="sectiontitle">Methods</div>
50
+ <dl class="methods">
51
+
52
+ <dt>P</dt>
53
+ <dd>
54
+ <ul>
55
+
56
+
57
+ <li>
58
+ <a href="#method-i-publishable-3F">publishable?</a>
59
+ </li>
60
+
61
+ </ul>
62
+ </dd>
63
+
64
+ </dl>
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+ <!-- Methods -->
84
+
85
+ <div class="sectiontitle">Instance Public methods</div>
86
+
87
+ <div class="method">
88
+ <div class="title method-title" id="method-i-publishable-3F">
89
+
90
+ <b>publishable?</b>()
91
+
92
+ <a href="../../../../classes/DataMapper/Is/Published/InstanceMethods.html#method-i-publishable-3F" name="method-i-publishable-3F" class="permalink">Link</a>
93
+ </div>
94
+
95
+
96
+ <div class="description">
97
+ <p>Ensuring all models using this plugin responds to publishable? with true.</p>
98
+
99
+ <h4 id="method-i-publishable-3F-label-Examples">Examples</h4>
100
+
101
+ <pre class="ruby"><span class="ruby-ivar">@published_model</span>.<span class="ruby-identifier">publishable?</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">true</span>
102
+ </pre>
103
+
104
+ <p>@api public</p>
105
+ </div>
106
+
107
+
108
+
109
+
110
+
111
+
112
+ <div class="sourcecode">
113
+
114
+ <p class="source-link">
115
+ Source:
116
+ <a href="javascript:toggleSource('method-i-publishable-3F_source')" id="l_method-i-publishable-3F_source">show</a>
117
+
118
+ </p>
119
+ <div id="method-i-publishable-3F_source" class="dyn-source">
120
+ <pre><span class="ruby-comment"># File lib/is/published.rb, line 251</span>
121
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">publishable?</span>
122
+ <span class="ruby-keyword">true</span>
123
+ <span class="ruby-keyword">end</span></pre>
124
+ </div>
125
+ </div>
126
+
127
+ </div>
128
+ </div>
129
+
130
+ </div>
131
+ </body>
132
+ </html>
@@ -0,0 +1,133 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <title>DataMapper::Is::Published::ResourceInstanceMethods</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8
+ <link rel="stylesheet" href="../../../../css/reset.css" type="text/css" media="screen" />
9
+ <link rel="stylesheet" href="../../../../css/main.css" type="text/css" media="screen" />
10
+ <link rel="stylesheet" href="../../../../css/github.css" type="text/css" media="screen" />
11
+ <script src="../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
12
+ <script src="../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="../../../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>
15
+
16
+ </head>
17
+
18
+ <body>
19
+ <div class="banner">
20
+
21
+ <h1>
22
+ <span class="type">Module</span>
23
+ DataMapper::Is::Published::ResourceInstanceMethods
24
+
25
+ </h1>
26
+ <ul class="files">
27
+
28
+ <li><a href="../../../../files/lib/is/published_rb.html">lib/is/published.rb</a></li>
29
+
30
+ </ul>
31
+ </div>
32
+ <div id="bodyContent">
33
+ <div id="content">
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+ <!-- Method ref -->
49
+ <div class="sectiontitle">Methods</div>
50
+ <dl class="methods">
51
+
52
+ <dt>P</dt>
53
+ <dd>
54
+ <ul>
55
+
56
+
57
+ <li>
58
+ <a href="#method-i-publishable-3F">publishable?</a>
59
+ </li>
60
+
61
+ </ul>
62
+ </dd>
63
+
64
+ </dl>
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+ <!-- Methods -->
84
+
85
+ <div class="sectiontitle">Instance Public methods</div>
86
+
87
+ <div class="method">
88
+ <div class="title method-title" id="method-i-publishable-3F">
89
+
90
+ <b>publishable?</b>()
91
+
92
+ <a href="../../../../classes/DataMapper/Is/Published/ResourceInstanceMethods.html#method-i-publishable-3F" name="method-i-publishable-3F" class="permalink">Link</a>
93
+ </div>
94
+
95
+
96
+ <div class="description">
97
+ <p>Ensuring all models NOT using this plugin responds to publishable? with
98
+ false.</p>
99
+
100
+ <h4 id="method-i-publishable-3F-label-Examples">Examples</h4>
101
+
102
+ <pre class="ruby"><span class="ruby-ivar">@unpublished_model</span>.<span class="ruby-identifier">publishable?</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">false</span>
103
+ </pre>
104
+
105
+ <p>@api public</p>
106
+ </div>
107
+
108
+
109
+
110
+
111
+
112
+
113
+ <div class="sourcecode">
114
+
115
+ <p class="source-link">
116
+ Source:
117
+ <a href="javascript:toggleSource('method-i-publishable-3F_source')" id="l_method-i-publishable-3F_source">show</a>
118
+
119
+ </p>
120
+ <div id="method-i-publishable-3F_source" class="dyn-source">
121
+ <pre><span class="ruby-comment"># File lib/is/published.rb, line 267</span>
122
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">publishable?</span>
123
+ <span class="ruby-keyword">false</span>
124
+ <span class="ruby-keyword">end</span></pre>
125
+ </div>
126
+ </div>
127
+
128
+ </div>
129
+ </div>
130
+
131
+ </div>
132
+ </body>
133
+ </html>
@@ -0,0 +1,4 @@
1
+ Mon, 11 Mar 2013 01:11:52 +0800
2
+ lib/dm-is-published.rb Mon, 11 Mar 2013 00:59:36 +0800
3
+ lib/is/published.rb Mon, 11 Mar 2013 01:00:07 +0800
4
+ README.rdoc Mon, 11 Mar 2013 01:06:17 +0800
@@ -0,0 +1,129 @@
1
+ /*
2
+
3
+ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
4
+
5
+ */
6
+
7
+ pre code {
8
+ display: block; padding: 0.5em;
9
+ color: #000;
10
+ background: #f8f8ff
11
+ }
12
+
13
+ pre .comment,
14
+ pre .template_comment,
15
+ pre .diff .header,
16
+ pre .javadoc {
17
+ color: #998;
18
+ font-style: italic
19
+ }
20
+
21
+ pre .keyword,
22
+ pre .css .rule .keyword,
23
+ pre .winutils,
24
+ pre .javascript .title,
25
+ pre .lisp .title,
26
+ pre .subst {
27
+ color: #000;
28
+ font-weight: bold
29
+ }
30
+
31
+ pre .number,
32
+ pre .hexcolor {
33
+ color: #40a070
34
+ }
35
+
36
+ pre .string,
37
+ pre .tag .value,
38
+ pre .phpdoc,
39
+ pre .tex .formula {
40
+ color: #d14
41
+ }
42
+
43
+ pre .title,
44
+ pre .id {
45
+ color: #900;
46
+ font-weight: bold
47
+ }
48
+
49
+ pre .javascript .title,
50
+ pre .lisp .title,
51
+ pre .subst {
52
+ font-weight: normal
53
+ }
54
+
55
+ pre .class .title,
56
+ pre .haskell .label,
57
+ pre .tex .command {
58
+ color: #458;
59
+ font-weight: bold
60
+ }
61
+
62
+ pre .tag,
63
+ pre .tag .title,
64
+ pre .rules .property,
65
+ pre .django .tag .keyword {
66
+ color: #000080;
67
+ font-weight: normal
68
+ }
69
+
70
+ pre .attribute,
71
+ pre .variable,
72
+ pre .instancevar,
73
+ pre .lisp .body {
74
+ color: #008080
75
+ }
76
+
77
+ pre .regexp {
78
+ color: #009926
79
+ }
80
+
81
+ pre .class {
82
+ color: #458;
83
+ font-weight: bold
84
+ }
85
+
86
+ pre .symbol,
87
+ pre .ruby .symbol .string,
88
+ pre .ruby .symbol .keyword,
89
+ pre .ruby .symbol .keymethods,
90
+ pre .lisp .keyword,
91
+ pre .tex .special,
92
+ pre .input_number {
93
+ color: #990073
94
+ }
95
+
96
+ pre .builtin,
97
+ pre .built_in,
98
+ pre .lisp .title {
99
+ color: #0086b3
100
+ }
101
+
102
+ pre .preprocessor,
103
+ pre .pi,
104
+ pre .doctype,
105
+ pre .shebang,
106
+ pre .cdata {
107
+ color: #999;
108
+ font-weight: bold
109
+ }
110
+
111
+ pre .deletion {
112
+ background: #fdd
113
+ }
114
+
115
+ pre .addition {
116
+ background: #dfd
117
+ }
118
+
119
+ pre .diff .change {
120
+ background: #0086b3
121
+ }
122
+
123
+ pre .chunk {
124
+ color: #aaa
125
+ }
126
+
127
+ pre .tex .formula {
128
+ opacity: 0.5;
129
+ }
@@ -0,0 +1,333 @@
1
+ body {
2
+ font-family: "Helvetica Neue", Arial, sans-serif;
3
+ background: #FFF;
4
+ color: #000;
5
+ margin: 0px;
6
+ font-size: 0.82em;
7
+ line-height: 1.25em;
8
+ }
9
+
10
+ a {
11
+ color: #00F;
12
+ text-decoration: none;
13
+ }
14
+
15
+ a:hover {
16
+ color: #333;
17
+ background: #FE8;
18
+ }
19
+
20
+ p {
21
+ margin-bottom: 1em;
22
+ }
23
+
24
+ h1 {
25
+ font-size: 2.1em;
26
+ font-weight: normal;
27
+ line-height: 1.2em;
28
+ margin: 1.4em 0 0.7em 0;
29
+ }
30
+
31
+ h2 {
32
+ font-size: 1.6em;
33
+ margin: 1.8em 0 0.8em 0;
34
+ font-weight: normal;
35
+ line-height: 1.2em;
36
+ }
37
+
38
+ h3 {
39
+ font-size: 1.4em;
40
+ color:#555;
41
+ margin: 1.4em 0 0.7em 0;
42
+ font-weight: normal;
43
+ }
44
+
45
+ h4 {
46
+ margin: 1.4em 0 0.5em 0;
47
+ font-size: 1em;
48
+ }
49
+
50
+ table
51
+ {
52
+ margin-bottom: 1em;
53
+ }
54
+
55
+ td, th
56
+ {
57
+ padding: 0 0.7em 0.3em 0;
58
+ }
59
+
60
+ th
61
+ {
62
+ font-weight: bold;
63
+ }
64
+
65
+ .clear
66
+ {
67
+ clear: both;
68
+ width: 0; height: 0;
69
+ }
70
+
71
+ dt
72
+ {
73
+ margin-bottom: 0.3em;
74
+ font-weight: bold;
75
+ }
76
+
77
+ dd
78
+ {
79
+ margin-left: 2em;
80
+ margin-bottom: 1em;
81
+ }
82
+
83
+ dd p
84
+ {
85
+ margin-top: 0.6em;
86
+ }
87
+
88
+ li
89
+ {
90
+ margin: 0 0 0.5em 2em;
91
+ }
92
+
93
+ ul li
94
+ {
95
+ list-style: disc;
96
+ }
97
+
98
+ ol li
99
+ {
100
+ list-style: decimal;
101
+ }
102
+
103
+ .banner
104
+ {
105
+ background: #EDF3FE;
106
+ border-bottom: 1px solid #ccc;
107
+ padding: 1em 2em 0.5em 2em;
108
+ }
109
+ .banner h1
110
+ {
111
+ font-size: 1.2em;
112
+ margin: 0;
113
+ }
114
+
115
+ .banner h1 .type
116
+ {
117
+ font-size: 0.833em;
118
+ display:block;
119
+ }
120
+
121
+ .banner h1 .type,
122
+ .banner h1 .parent
123
+ {
124
+ color: #666;
125
+ }
126
+
127
+ .banner ul
128
+ {
129
+ margin-top: 0.3em;
130
+ margin-bottom: 0;
131
+ font-size: 0.85em;
132
+ }
133
+
134
+ .banner li
135
+ {
136
+ list-style: none;
137
+ margin-left: 0;
138
+ margin-bottom: 0;
139
+ }
140
+
141
+ pre
142
+ {
143
+ margin-bottom: 1em;
144
+ }
145
+
146
+ .methods dt
147
+ {
148
+ width: 1em;
149
+ font-size: 1.5em;
150
+ color:#AAA;
151
+ position: absolute;
152
+ font-weight: normal;
153
+ margin: 0;
154
+ }
155
+
156
+ .methods dd
157
+ {
158
+ margin-left: 2.5em;
159
+ min-height: 1.8em;
160
+ -height: 1.8em;
161
+ padding-bottom: 0.8em;
162
+ }
163
+
164
+
165
+ .methods ul li
166
+ {
167
+ margin-right: 0.7em;
168
+ margin-left: 0;
169
+ list-style: none;
170
+ display: inline;
171
+ }
172
+
173
+ #content {
174
+ margin: 2em;
175
+ margin-left: 3.5em;
176
+ margin-right: 3.5em;
177
+ }
178
+
179
+
180
+ .sectiontitle {
181
+ margin-top: 2em;
182
+ margin-bottom: 1.3em;
183
+ margin-left: -1.2em;
184
+ font-size: 1.2em;
185
+ padding: 0 0 0.25em 0;
186
+ font-weight: bold;
187
+ border-bottom: 1px solid #000;
188
+ }
189
+
190
+ .contenttitle {
191
+ margin-top: 4em;
192
+ margin-bottom: 1.3em;
193
+ margin-left: -0.9em;
194
+ font-size: 1.6em;
195
+ padding: 0 0 0.25em 0;
196
+ font-weight: bold;
197
+ }
198
+
199
+ .attr-rw {
200
+ padding-right: 1em;
201
+ text-align: center;
202
+ color: #055;
203
+ }
204
+
205
+ .attr-name {
206
+ font-weight: bold;
207
+ padding-right: 1em;
208
+ }
209
+
210
+ .attr-desc {
211
+ }
212
+
213
+ tt {
214
+ font-size: 1.15em;
215
+ }
216
+
217
+ .attr-value {
218
+ font-family: monospace;
219
+ padding-left: 1em;
220
+ font-size: 1.15em;
221
+ }
222
+
223
+ .dyn-source {
224
+ display: none;
225
+ background: #fffde8;
226
+ color: #000;
227
+ border: #ffe0bb dotted 1px;
228
+ margin: 0.5em 2em 0.5em 0;
229
+ padding: 0.5em;
230
+ }
231
+
232
+ .dyn-source .cmt {
233
+ color: #00F;
234
+ font-style: italic;
235
+ }
236
+
237
+ .dyn-source .kw {
238
+ color: #070;
239
+ font-weight: bold;
240
+ }
241
+
242
+ .description pre {
243
+ padding: 0.5em;
244
+ border: #ffe0bb dotted 1px;
245
+ background: #fffde8;
246
+ }
247
+
248
+ .method {
249
+ margin-bottom: 2em;
250
+ }
251
+ .method .description,
252
+ .method .sourcecode
253
+ {
254
+ margin-left: 1.2em;
255
+ }
256
+ .method h4
257
+ {
258
+ border-bottom: 1px dotted #999;
259
+ padding: 0 0 0.2em 0;
260
+ margin-bottom: 0.8em;
261
+ font-size: 1.1em;
262
+ color:#333;
263
+ }
264
+ .method .method-title {
265
+ border-bottom: 1px dotted #666;
266
+ padding: 0 0 0.15em 0;
267
+ margin: 0 0 0.5em 0;
268
+ font-size: 1.2em;
269
+ line-height: 1.25em;
270
+ position: relative;
271
+ }
272
+
273
+ .method .method-title a.permalink {
274
+ position: absolute;
275
+ font-size: 0.75em;
276
+ right: 0;
277
+ }
278
+
279
+ .method .sourcecode p.source-link {
280
+ text-indent: 0em;
281
+ margin-top: 0.5em;
282
+ }
283
+
284
+ .method .aka {
285
+ margin-top: 0.3em;
286
+ margin-left: 1em;
287
+ font-style: italic;
288
+ text-indent: 2em;
289
+ }
290
+
291
+ .method .source-link
292
+ {
293
+ font-size: 0.85em;
294
+ }
295
+
296
+ .ruby-constant {
297
+ color: teal;
298
+ }
299
+ .ruby-keyword {
300
+ color: #000;
301
+ font-weight: bold
302
+ }
303
+ .ruby-title {
304
+ color: #900;
305
+ font-weight: bold;
306
+ }
307
+ .ruby-ivar {
308
+ color: teal;
309
+ }
310
+ .ruby-operator {
311
+ color: #000;
312
+ font-weight: bold
313
+ }
314
+ .ruby-identifier {
315
+ color: #000;
316
+ }
317
+ .ruby-string,
318
+ .ruby-node {
319
+ color: #D14;
320
+ }
321
+ .ruby-comment {
322
+ color: #998;
323
+ font-style: italic;
324
+ }
325
+ .ruby-regexp {
326
+ color: #009926;
327
+ }
328
+ .ruby-value {
329
+ color: #990073;
330
+ }
331
+ .ruby-number {
332
+ color: #40A070;
333
+ }