rep 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/docs/index.html +19 -13
- data/docs/lib/rep.html +19 -13
- data/docs/lib/rep/version.html +1 -1
- data/docs/rep.html +19 -13
- data/docs/rep/version.html +1 -1
- data/lib/rep.rb +7 -24
- data/lib/rep/version.rb +1 -1
- data/rep.gemspec +0 -1
- metadata +15 -41
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 79a33f37e6f9081705b5913b390bc60105188d60
|
4
|
+
data.tar.gz: 35c6b05b07523f9a1419980141ed9c17baed89e0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6e1c6080327e17f7cd90affcc168c3193375c994fbfd9a208631f087aa467d1e09d6aebd8b1916341190657c66c968cbbb4fd32702a8b86bf8a11d3174401e84
|
7
|
+
data.tar.gz: e86a7a76a786d98a8fbb4d8504075b90df005fe51271cf076c1e67bd44d5ac0f7a1b43cee5708c9245f7a42250b106af6c991ef040d9575481b7847fbb9ec827
|
data/docs/index.html
CHANGED
@@ -90,7 +90,7 @@ A.new([1,2,3]).first # => 1
|
|
90
90
|
</div>
|
91
91
|
<p>All classes that <code>include Rep</code> are extended with <code>Forwardable</code>,
|
92
92
|
given some aliases, endowned with <code>HashieSupport</code> if Hashie is loaded,
|
93
|
-
and
|
93
|
+
and given a delegate method if it doesn’t already have one.</p>
|
94
94
|
</td>
|
95
95
|
<td class=code>
|
96
96
|
<div class='highlight'><pre> <span class="k">def</span> <span class="nc">self</span><span class="o">.</span><span class="nf">included</span><span class="p">(</span><span class="n">klass</span><span class="p">)</span>
|
@@ -98,19 +98,17 @@ and setup an empty <code>#parse_opts</code> because it is required for <code>::s
|
|
98
98
|
<span class="n">klass</span><span class="o">.</span><span class="n">extend</span> <span class="no">ClassMethods</span>
|
99
99
|
<span class="n">klass</span><span class="o">.</span><span class="n">instance_eval</span> <span class="p">{</span>
|
100
100
|
<span class="k">class</span> <span class="o"><<</span> <span class="nb">self</span>
|
101
|
-
<span class="k">
|
101
|
+
<span class="k">unless</span> <span class="n">defined?</span><span class="p">(</span><span class="n">forward</span><span class="p">)</span>
|
102
|
+
<span class="k">alias</span> <span class="n">forward</span> <span class="n">delegate</span>
|
103
|
+
<span class="k">end</span>
|
102
104
|
|
103
105
|
<span class="k">unless</span> <span class="n">defined?</span><span class="p">(</span><span class="n">fields</span><span class="p">)</span>
|
104
106
|
<span class="k">alias</span> <span class="n">fields</span> <span class="n">json_fields</span>
|
105
107
|
<span class="k">end</span>
|
106
|
-
|
107
|
-
<span class="k">if</span> <span class="n">defined?</span><span class="p">(</span><span class="no">Hashie</span><span class="p">)</span>
|
108
|
-
<span class="kp">include</span> <span class="no">HashieSupport</span>
|
109
|
-
<span class="k">end</span>
|
110
108
|
<span class="k">end</span>
|
111
109
|
|
112
|
-
<span class="k">
|
113
|
-
<span class="
|
110
|
+
<span class="k">if</span> <span class="n">defined?</span><span class="p">(</span><span class="no">Mashed</span><span class="p">)</span>
|
111
|
+
<span class="kp">include</span> <span class="no">MashedSupport</span>
|
114
112
|
<span class="k">end</span>
|
115
113
|
<span class="p">}</span>
|
116
114
|
<span class="k">end</span></pre></div>
|
@@ -223,8 +221,13 @@ does not have to be used to use any other parts of Rep.</p>
|
|
223
221
|
<p>Remember what args we normally initialize with so we can refer to them when building shared instances.</p>
|
224
222
|
</td>
|
225
223
|
<td class=code>
|
226
|
-
<div class='highlight'><pre> <span class="
|
227
|
-
<span class="
|
224
|
+
<div class='highlight'><pre> <span class="k">if</span> <span class="n">defined?</span><span class="p">(</span><span class="n">define_singleton_method</span><span class="p">)</span>
|
225
|
+
<span class="n">define_singleton_method</span> <span class="ss">:initializiation_args</span> <span class="k">do</span>
|
226
|
+
<span class="vi">@initializiation_args</span>
|
227
|
+
<span class="k">end</span>
|
228
|
+
<span class="k">else</span>
|
229
|
+
<span class="n">singleton</span> <span class="o">=</span> <span class="k">class</span> <span class="o"><<</span> <span class="nb">self</span><span class="p">;</span> <span class="nb">self</span> <span class="k">end</span>
|
230
|
+
<span class="n">singleton</span><span class="o">.</span><span class="n">send</span> <span class="ss">:define_method</span><span class="p">,</span> <span class="ss">:initializiation_args</span><span class="p">,</span> <span class="nb">lambda</span> <span class="p">{</span> <span class="vi">@initializiation_args</span> <span class="p">}</span>
|
228
231
|
<span class="k">end</span></pre></div>
|
229
232
|
</td>
|
230
233
|
</tr>
|
@@ -238,7 +241,10 @@ does not have to be used to use any other parts of Rep.</p>
|
|
238
241
|
<td class=code>
|
239
242
|
<div class='highlight'><pre> <span class="n">args</span><span class="o">.</span><span class="n">each</span> <span class="p">{</span> <span class="o">|</span><span class="n">a</span><span class="o">|</span> <span class="n">register_accessor</span><span class="p">(</span><span class="n">a</span><span class="p">)</span> <span class="p">}</span>
|
240
243
|
|
241
|
-
<span class="n">define_method</span><span class="p">(</span><span class="ss">:initialize</span><span class="p">)</span> <span class="p">{</span> <span class="o"
|
244
|
+
<span class="n">define_method</span><span class="p">(</span><span class="ss">:initialize</span><span class="p">)</span> <span class="p">{</span> <span class="o">|*</span><span class="n">args</span><span class="o">|</span>
|
245
|
+
<span class="n">opts</span> <span class="o">=</span> <span class="n">args</span><span class="o">.</span><span class="n">first</span> <span class="o">||</span> <span class="p">{}</span>
|
246
|
+
<span class="n">parse_opts</span><span class="p">(</span><span class="n">opts</span><span class="p">)</span>
|
247
|
+
<span class="p">}</span></pre></div>
|
242
248
|
</td>
|
243
249
|
</tr>
|
244
250
|
<tr id='section-11'>
|
@@ -465,9 +471,9 @@ end
|
|
465
471
|
<span class="k">end</span>
|
466
472
|
<span class="k">end</span>
|
467
473
|
|
468
|
-
<span class="k">module</span> <span class="nn">
|
474
|
+
<span class="k">module</span> <span class="nn">MashedSupport</span>
|
469
475
|
<span class="k">def</span> <span class="nf">to_hash</span><span class="p">(</span><span class="nb">name</span> <span class="o">=</span> <span class="ss">:default</span><span class="p">)</span>
|
470
|
-
<span class="no">
|
476
|
+
<span class="no">Mashed</span><span class="o">::</span><span class="no">Mash</span><span class="o">.</span><span class="n">new</span><span class="p">(</span><span class="k">super</span><span class="p">)</span>
|
471
477
|
<span class="k">end</span>
|
472
478
|
<span class="k">end</span>
|
473
479
|
<span class="k">end</span></pre></div>
|
data/docs/lib/rep.html
CHANGED
@@ -90,7 +90,7 @@ A.new([1,2,3]).first # => 1
|
|
90
90
|
</div>
|
91
91
|
<p>All classes that <code>include Rep</code> are extended with <code>Forwardable</code>,
|
92
92
|
given some aliases, endowned with <code>HashieSupport</code> if Hashie is loaded,
|
93
|
-
and
|
93
|
+
and given a delegate method if it doesn’t already have one.</p>
|
94
94
|
</td>
|
95
95
|
<td class=code>
|
96
96
|
<div class='highlight'><pre> <span class="k">def</span> <span class="nc">self</span><span class="o">.</span><span class="nf">included</span><span class="p">(</span><span class="n">klass</span><span class="p">)</span>
|
@@ -98,19 +98,17 @@ and setup an empty <code>#parse_opts</code> because it is required for <code>::s
|
|
98
98
|
<span class="n">klass</span><span class="o">.</span><span class="n">extend</span> <span class="no">ClassMethods</span>
|
99
99
|
<span class="n">klass</span><span class="o">.</span><span class="n">instance_eval</span> <span class="p">{</span>
|
100
100
|
<span class="k">class</span> <span class="o"><<</span> <span class="nb">self</span>
|
101
|
-
<span class="k">
|
101
|
+
<span class="k">unless</span> <span class="n">defined?</span><span class="p">(</span><span class="n">forward</span><span class="p">)</span>
|
102
|
+
<span class="k">alias</span> <span class="n">forward</span> <span class="n">delegate</span>
|
103
|
+
<span class="k">end</span>
|
102
104
|
|
103
105
|
<span class="k">unless</span> <span class="n">defined?</span><span class="p">(</span><span class="n">fields</span><span class="p">)</span>
|
104
106
|
<span class="k">alias</span> <span class="n">fields</span> <span class="n">json_fields</span>
|
105
107
|
<span class="k">end</span>
|
106
|
-
|
107
|
-
<span class="k">if</span> <span class="n">defined?</span><span class="p">(</span><span class="no">Hashie</span><span class="p">)</span>
|
108
|
-
<span class="kp">include</span> <span class="no">HashieSupport</span>
|
109
|
-
<span class="k">end</span>
|
110
108
|
<span class="k">end</span>
|
111
109
|
|
112
|
-
<span class="k">
|
113
|
-
<span class="
|
110
|
+
<span class="k">if</span> <span class="n">defined?</span><span class="p">(</span><span class="no">Mashed</span><span class="p">)</span>
|
111
|
+
<span class="kp">include</span> <span class="no">MashedSupport</span>
|
114
112
|
<span class="k">end</span>
|
115
113
|
<span class="p">}</span>
|
116
114
|
<span class="k">end</span></pre></div>
|
@@ -223,8 +221,13 @@ does not have to be used to use any other parts of Rep.</p>
|
|
223
221
|
<p>Remember what args we normally initialize with so we can refer to them when building shared instances.</p>
|
224
222
|
</td>
|
225
223
|
<td class=code>
|
226
|
-
<div class='highlight'><pre> <span class="
|
227
|
-
<span class="
|
224
|
+
<div class='highlight'><pre> <span class="k">if</span> <span class="n">defined?</span><span class="p">(</span><span class="n">define_singleton_method</span><span class="p">)</span>
|
225
|
+
<span class="n">define_singleton_method</span> <span class="ss">:initializiation_args</span> <span class="k">do</span>
|
226
|
+
<span class="vi">@initializiation_args</span>
|
227
|
+
<span class="k">end</span>
|
228
|
+
<span class="k">else</span>
|
229
|
+
<span class="n">singleton</span> <span class="o">=</span> <span class="k">class</span> <span class="o"><<</span> <span class="nb">self</span><span class="p">;</span> <span class="nb">self</span> <span class="k">end</span>
|
230
|
+
<span class="n">singleton</span><span class="o">.</span><span class="n">send</span> <span class="ss">:define_method</span><span class="p">,</span> <span class="ss">:initializiation_args</span><span class="p">,</span> <span class="nb">lambda</span> <span class="p">{</span> <span class="vi">@initializiation_args</span> <span class="p">}</span>
|
228
231
|
<span class="k">end</span></pre></div>
|
229
232
|
</td>
|
230
233
|
</tr>
|
@@ -238,7 +241,10 @@ does not have to be used to use any other parts of Rep.</p>
|
|
238
241
|
<td class=code>
|
239
242
|
<div class='highlight'><pre> <span class="n">args</span><span class="o">.</span><span class="n">each</span> <span class="p">{</span> <span class="o">|</span><span class="n">a</span><span class="o">|</span> <span class="n">register_accessor</span><span class="p">(</span><span class="n">a</span><span class="p">)</span> <span class="p">}</span>
|
240
243
|
|
241
|
-
<span class="n">define_method</span><span class="p">(</span><span class="ss">:initialize</span><span class="p">)</span> <span class="p">{</span> <span class="o"
|
244
|
+
<span class="n">define_method</span><span class="p">(</span><span class="ss">:initialize</span><span class="p">)</span> <span class="p">{</span> <span class="o">|*</span><span class="n">args</span><span class="o">|</span>
|
245
|
+
<span class="n">opts</span> <span class="o">=</span> <span class="n">args</span><span class="o">.</span><span class="n">first</span> <span class="o">||</span> <span class="p">{}</span>
|
246
|
+
<span class="n">parse_opts</span><span class="p">(</span><span class="n">opts</span><span class="p">)</span>
|
247
|
+
<span class="p">}</span></pre></div>
|
242
248
|
</td>
|
243
249
|
</tr>
|
244
250
|
<tr id='section-11'>
|
@@ -465,9 +471,9 @@ end
|
|
465
471
|
<span class="k">end</span>
|
466
472
|
<span class="k">end</span>
|
467
473
|
|
468
|
-
<span class="k">module</span> <span class="nn">
|
474
|
+
<span class="k">module</span> <span class="nn">MashedSupport</span>
|
469
475
|
<span class="k">def</span> <span class="nf">to_hash</span><span class="p">(</span><span class="nb">name</span> <span class="o">=</span> <span class="ss">:default</span><span class="p">)</span>
|
470
|
-
<span class="no">
|
476
|
+
<span class="no">Mashed</span><span class="o">::</span><span class="no">Mash</span><span class="o">.</span><span class="n">new</span><span class="p">(</span><span class="k">super</span><span class="p">)</span>
|
471
477
|
<span class="k">end</span>
|
472
478
|
<span class="k">end</span>
|
473
479
|
<span class="k">end</span></pre></div>
|
data/docs/lib/rep/version.html
CHANGED
@@ -35,7 +35,7 @@
|
|
35
35
|
</td>
|
36
36
|
<td class=code>
|
37
37
|
<div class='highlight'><pre><span class="k">module</span> <span class="nn">Rep</span>
|
38
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"0.0
|
38
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"0.1.0"</span>
|
39
39
|
<span class="k">end</span></pre></div>
|
40
40
|
</td>
|
41
41
|
</tr>
|
data/docs/rep.html
CHANGED
@@ -90,7 +90,7 @@ A.new([1,2,3]).first # => 1
|
|
90
90
|
</div>
|
91
91
|
<p>All classes that <code>include Rep</code> are extended with <code>Forwardable</code>,
|
92
92
|
given some aliases, endowned with <code>HashieSupport</code> if Hashie is loaded,
|
93
|
-
and
|
93
|
+
and given a delegate method if it doesn’t already have one.</p>
|
94
94
|
</td>
|
95
95
|
<td class=code>
|
96
96
|
<div class='highlight'><pre> <span class="k">def</span> <span class="nc">self</span><span class="o">.</span><span class="nf">included</span><span class="p">(</span><span class="n">klass</span><span class="p">)</span>
|
@@ -98,19 +98,17 @@ and setup an empty <code>#parse_opts</code> because it is required for <code>::s
|
|
98
98
|
<span class="n">klass</span><span class="o">.</span><span class="n">extend</span> <span class="no">ClassMethods</span>
|
99
99
|
<span class="n">klass</span><span class="o">.</span><span class="n">instance_eval</span> <span class="p">{</span>
|
100
100
|
<span class="k">class</span> <span class="o"><<</span> <span class="nb">self</span>
|
101
|
-
<span class="k">
|
101
|
+
<span class="k">unless</span> <span class="n">defined?</span><span class="p">(</span><span class="n">forward</span><span class="p">)</span>
|
102
|
+
<span class="k">alias</span> <span class="n">forward</span> <span class="n">delegate</span>
|
103
|
+
<span class="k">end</span>
|
102
104
|
|
103
105
|
<span class="k">unless</span> <span class="n">defined?</span><span class="p">(</span><span class="n">fields</span><span class="p">)</span>
|
104
106
|
<span class="k">alias</span> <span class="n">fields</span> <span class="n">json_fields</span>
|
105
107
|
<span class="k">end</span>
|
106
|
-
|
107
|
-
<span class="k">if</span> <span class="n">defined?</span><span class="p">(</span><span class="no">Hashie</span><span class="p">)</span>
|
108
|
-
<span class="kp">include</span> <span class="no">HashieSupport</span>
|
109
|
-
<span class="k">end</span>
|
110
108
|
<span class="k">end</span>
|
111
109
|
|
112
|
-
<span class="k">
|
113
|
-
<span class="
|
110
|
+
<span class="k">if</span> <span class="n">defined?</span><span class="p">(</span><span class="no">Mashed</span><span class="p">)</span>
|
111
|
+
<span class="kp">include</span> <span class="no">MashedSupport</span>
|
114
112
|
<span class="k">end</span>
|
115
113
|
<span class="p">}</span>
|
116
114
|
<span class="k">end</span></pre></div>
|
@@ -223,8 +221,13 @@ does not have to be used to use any other parts of Rep.</p>
|
|
223
221
|
<p>Remember what args we normally initialize with so we can refer to them when building shared instances.</p>
|
224
222
|
</td>
|
225
223
|
<td class=code>
|
226
|
-
<div class='highlight'><pre> <span class="
|
227
|
-
<span class="
|
224
|
+
<div class='highlight'><pre> <span class="k">if</span> <span class="n">defined?</span><span class="p">(</span><span class="n">define_singleton_method</span><span class="p">)</span>
|
225
|
+
<span class="n">define_singleton_method</span> <span class="ss">:initializiation_args</span> <span class="k">do</span>
|
226
|
+
<span class="vi">@initializiation_args</span>
|
227
|
+
<span class="k">end</span>
|
228
|
+
<span class="k">else</span>
|
229
|
+
<span class="n">singleton</span> <span class="o">=</span> <span class="k">class</span> <span class="o"><<</span> <span class="nb">self</span><span class="p">;</span> <span class="nb">self</span> <span class="k">end</span>
|
230
|
+
<span class="n">singleton</span><span class="o">.</span><span class="n">send</span> <span class="ss">:define_method</span><span class="p">,</span> <span class="ss">:initializiation_args</span><span class="p">,</span> <span class="nb">lambda</span> <span class="p">{</span> <span class="vi">@initializiation_args</span> <span class="p">}</span>
|
228
231
|
<span class="k">end</span></pre></div>
|
229
232
|
</td>
|
230
233
|
</tr>
|
@@ -238,7 +241,10 @@ does not have to be used to use any other parts of Rep.</p>
|
|
238
241
|
<td class=code>
|
239
242
|
<div class='highlight'><pre> <span class="n">args</span><span class="o">.</span><span class="n">each</span> <span class="p">{</span> <span class="o">|</span><span class="n">a</span><span class="o">|</span> <span class="n">register_accessor</span><span class="p">(</span><span class="n">a</span><span class="p">)</span> <span class="p">}</span>
|
240
243
|
|
241
|
-
<span class="n">define_method</span><span class="p">(</span><span class="ss">:initialize</span><span class="p">)</span> <span class="p">{</span> <span class="o"
|
244
|
+
<span class="n">define_method</span><span class="p">(</span><span class="ss">:initialize</span><span class="p">)</span> <span class="p">{</span> <span class="o">|*</span><span class="n">args</span><span class="o">|</span>
|
245
|
+
<span class="n">opts</span> <span class="o">=</span> <span class="n">args</span><span class="o">.</span><span class="n">first</span> <span class="o">||</span> <span class="p">{}</span>
|
246
|
+
<span class="n">parse_opts</span><span class="p">(</span><span class="n">opts</span><span class="p">)</span>
|
247
|
+
<span class="p">}</span></pre></div>
|
242
248
|
</td>
|
243
249
|
</tr>
|
244
250
|
<tr id='section-11'>
|
@@ -465,9 +471,9 @@ end
|
|
465
471
|
<span class="k">end</span>
|
466
472
|
<span class="k">end</span>
|
467
473
|
|
468
|
-
<span class="k">module</span> <span class="nn">
|
474
|
+
<span class="k">module</span> <span class="nn">MashedSupport</span>
|
469
475
|
<span class="k">def</span> <span class="nf">to_hash</span><span class="p">(</span><span class="nb">name</span> <span class="o">=</span> <span class="ss">:default</span><span class="p">)</span>
|
470
|
-
<span class="no">
|
476
|
+
<span class="no">Mashed</span><span class="o">::</span><span class="no">Mash</span><span class="o">.</span><span class="n">new</span><span class="p">(</span><span class="k">super</span><span class="p">)</span>
|
471
477
|
<span class="k">end</span>
|
472
478
|
<span class="k">end</span>
|
473
479
|
<span class="k">end</span></pre></div>
|
data/docs/rep/version.html
CHANGED
@@ -35,7 +35,7 @@
|
|
35
35
|
</td>
|
36
36
|
<td class=code>
|
37
37
|
<div class='highlight'><pre><span class="k">module</span> <span class="nn">Rep</span>
|
38
|
-
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"0.0
|
38
|
+
<span class="no">VERSION</span> <span class="o">=</span> <span class="s2">"0.1.0"</span>
|
39
39
|
<span class="k">end</span></pre></div>
|
40
40
|
</td>
|
41
41
|
</tr>
|
data/lib/rep.rb
CHANGED
@@ -37,35 +37,18 @@ module Rep
|
|
37
37
|
klass.extend Forwardable
|
38
38
|
klass.extend ClassMethods
|
39
39
|
klass.instance_eval {
|
40
|
-
# Translate for ActiveSupport, the jerk
|
41
|
-
if method(:delegate).arity == -1
|
42
|
-
class << self
|
43
|
-
def delegate(opts = {})
|
44
|
-
methods, object_name = opts.to_a.first
|
45
|
-
args = methods.concat([:to => object_name])
|
46
|
-
super(*args)
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
40
|
class << self
|
52
|
-
unless defined?(
|
53
|
-
|
54
|
-
methods, object_name = opts.to_a.first
|
55
|
-
args = [object_name, methods].flatten
|
56
|
-
def_delegators *args
|
57
|
-
end
|
41
|
+
unless defined?(forward)
|
42
|
+
alias forward delegate
|
58
43
|
end
|
59
44
|
|
60
|
-
alias forward delegate
|
61
|
-
|
62
45
|
unless defined?(fields)
|
63
46
|
alias fields json_fields
|
64
47
|
end
|
48
|
+
end
|
65
49
|
|
66
|
-
|
67
|
-
|
68
|
-
end
|
50
|
+
if defined?(Mashed)
|
51
|
+
include MashedSupport
|
69
52
|
end
|
70
53
|
}
|
71
54
|
end
|
@@ -317,9 +300,9 @@ module Rep
|
|
317
300
|
end
|
318
301
|
end
|
319
302
|
|
320
|
-
module
|
303
|
+
module MashedSupport
|
321
304
|
def to_hash(name = :default)
|
322
|
-
|
305
|
+
Mashed::Mash.new(super)
|
323
306
|
end
|
324
307
|
end
|
325
308
|
end
|
data/lib/rep/version.rb
CHANGED
data/rep.gemspec
CHANGED
@@ -16,7 +16,6 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
|
-
gem.add_dependency 'json'
|
20
19
|
gem.add_development_dependency 'rake'
|
21
20
|
gem.add_development_dependency 'minitest'
|
22
21
|
gem.add_development_dependency 'rocco'
|
metadata
CHANGED
@@ -1,94 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- myobie
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-10-30 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: json
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
30
13
|
- !ruby/object:Gem::Dependency
|
31
14
|
name: rake
|
32
15
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
16
|
requirements:
|
35
|
-
- -
|
17
|
+
- - '>='
|
36
18
|
- !ruby/object:Gem::Version
|
37
19
|
version: '0'
|
38
20
|
type: :development
|
39
21
|
prerelease: false
|
40
22
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
23
|
requirements:
|
43
|
-
- -
|
24
|
+
- - '>='
|
44
25
|
- !ruby/object:Gem::Version
|
45
26
|
version: '0'
|
46
27
|
- !ruby/object:Gem::Dependency
|
47
28
|
name: minitest
|
48
29
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
30
|
requirements:
|
51
|
-
- -
|
31
|
+
- - '>='
|
52
32
|
- !ruby/object:Gem::Version
|
53
33
|
version: '0'
|
54
34
|
type: :development
|
55
35
|
prerelease: false
|
56
36
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
37
|
requirements:
|
59
|
-
- -
|
38
|
+
- - '>='
|
60
39
|
- !ruby/object:Gem::Version
|
61
40
|
version: '0'
|
62
41
|
- !ruby/object:Gem::Dependency
|
63
42
|
name: rocco
|
64
43
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
44
|
requirements:
|
67
|
-
- -
|
45
|
+
- - '>='
|
68
46
|
- !ruby/object:Gem::Version
|
69
47
|
version: '0'
|
70
48
|
type: :development
|
71
49
|
prerelease: false
|
72
50
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
51
|
requirements:
|
75
|
-
- -
|
52
|
+
- - '>='
|
76
53
|
- !ruby/object:Gem::Version
|
77
54
|
version: '0'
|
78
55
|
- !ruby/object:Gem::Dependency
|
79
56
|
name: rdiscount
|
80
57
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
58
|
requirements:
|
83
|
-
- -
|
59
|
+
- - '>='
|
84
60
|
- !ruby/object:Gem::Version
|
85
61
|
version: '0'
|
86
62
|
type: :development
|
87
63
|
prerelease: false
|
88
64
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
65
|
requirements:
|
91
|
-
- -
|
66
|
+
- - '>='
|
92
67
|
- !ruby/object:Gem::Version
|
93
68
|
version: '0'
|
94
69
|
description: A library for writing authoritative representations of objects for pages
|
@@ -117,27 +92,26 @@ files:
|
|
117
92
|
- test/test_helper.rb
|
118
93
|
homepage: ''
|
119
94
|
licenses: []
|
95
|
+
metadata: {}
|
120
96
|
post_install_message:
|
121
97
|
rdoc_options: []
|
122
98
|
require_paths:
|
123
99
|
- lib
|
124
100
|
required_ruby_version: !ruby/object:Gem::Requirement
|
125
|
-
none: false
|
126
101
|
requirements:
|
127
|
-
- -
|
102
|
+
- - '>='
|
128
103
|
- !ruby/object:Gem::Version
|
129
104
|
version: '0'
|
130
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
|
-
none: false
|
132
106
|
requirements:
|
133
|
-
- -
|
107
|
+
- - '>='
|
134
108
|
- !ruby/object:Gem::Version
|
135
109
|
version: '0'
|
136
110
|
requirements: []
|
137
111
|
rubyforge_project:
|
138
|
-
rubygems_version:
|
112
|
+
rubygems_version: 2.0.3
|
139
113
|
signing_key:
|
140
|
-
specification_version:
|
114
|
+
specification_version: 4
|
141
115
|
summary: Include Rep into any object to endow it to create json (or hashes) easily.
|
142
116
|
test_files:
|
143
117
|
- test/lib/rep_test.rb
|