naether 0.10.1 → 0.11.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.
data/Gemfile CHANGED
@@ -1,17 +1,12 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- platform = $platform || RUBY_PLATFORM[/java/] || 'ruby'
4
- if platform != 'java'
5
- gem 'rjb', '~> 1.4.0'
6
- end
3
+
4
+ gem 'rjb', '~> 1.4.0', platform: :ruby
7
5
 
8
6
  group :development do
9
7
  gem "rspec", "> 2.9.0"
10
8
  gem "jeweler", "~> 1.8.0"
11
9
  gem "yard"
12
10
  gem "kramdown"
13
-
14
- if platform == 'java'
15
- gem 'jruby-openssl'
16
- end
11
+ gem 'jruby-openssl', platform: :jruby
17
12
  end
data/Gemfile.lock CHANGED
@@ -1,6 +1,7 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ bouncy-castle-java (1.5.0146.1)
4
5
  diff-lcs (1.1.3)
5
6
  git (1.2.5)
6
7
  jeweler (1.8.4)
@@ -8,12 +9,15 @@ GEM
8
9
  git (>= 1.2.5)
9
10
  rake
10
11
  rdoc
12
+ jruby-openssl (0.7.7)
13
+ bouncy-castle-java (>= 1.5.0146.1)
11
14
  json (1.7.5)
15
+ json (1.7.5-java)
12
16
  kramdown (0.14.0)
13
17
  rake (0.9.2.2)
14
18
  rdoc (3.12)
15
19
  json (~> 1.4)
16
- rjb (1.4.2)
20
+ rjb (1.4.8)
17
21
  rspec (2.11.0)
18
22
  rspec-core (~> 2.11.0)
19
23
  rspec-expectations (~> 2.11.0)
@@ -22,13 +26,15 @@ GEM
22
26
  rspec-expectations (2.11.3)
23
27
  diff-lcs (~> 1.1.3)
24
28
  rspec-mocks (2.11.3)
25
- yard (0.8.3)
29
+ yard (0.8.2.1)
26
30
 
27
31
  PLATFORMS
32
+ java
28
33
  ruby
29
34
 
30
35
  DEPENDENCIES
31
36
  jeweler (~> 1.8.0)
37
+ jruby-openssl
32
38
  kramdown
33
39
  rjb (~> 1.4.0)
34
40
  rspec (> 2.9.0)
data/README.md CHANGED
@@ -11,7 +11,7 @@ that can be used by Ruby or Java.
11
11
 
12
12
  ### Ruby
13
13
 
14
- JRuby 1.6.8 is natively supported. Ruby 1.8.7 and 1.9.3 use [Rjb](http://rjb.rubyforge.org) to proxy over JNI.
14
+ JRuby 1.6.8 is natively supported. 1.9.3 uses [Rjb](http://rjb.rubyforge.org) to proxy over JNI.
15
15
 
16
16
  gem install naether
17
17
 
@@ -50,15 +50,15 @@ must be loaded for Naether to work. This is easily done with the [bootstrap help
50
50
 
51
51
  #### Resolving Dependencies
52
52
 
53
- require 'rubygems
53
+ require 'rubygems'
54
54
  require 'naether'
55
55
 
56
56
  Naether::Bootstrap.bootstrap_local_repo
57
- naether = Naether.new
57
+ naether = Naether.create
58
58
  naether.dependencies = [ "ch.qos.logback:logback-classic:jar:0.9.29", "junit:junit:jar:4.8.2" ]
59
- naether.resolve_dependencies().
59
+ naether.resolve_dependencies()
60
60
 
61
- puts naether.dependences_notation
61
+ puts naether.dependencies_notation
62
62
 
63
63
  Will output
64
64
 
@@ -72,8 +72,10 @@ Will output
72
72
  ### Java
73
73
 
74
74
  #### Resolving Dependencies
75
+ import com.tobedevoured.naether.api.Naether;
76
+ import com.tobedevoured.naether.impl.NaetherImpl;
75
77
 
76
- Naether naether = new Naether();
78
+ Naether naether = new NaetherImpl();
77
79
  naether.addDependency( "ch.qos.logback:logback-classic:jar:0.9.29" );
78
80
  naether.addDependency( "junit:junit:jar:4.8.2" );
79
81
  naether.resolveDependencies();
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.1
1
+ 0.11.0
data/core-0.11.0.jar ADDED
Binary file
data/doc/Naether.html ADDED
@@ -0,0 +1,476 @@
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
+ Module: Naether
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 (N)</a> &raquo;
35
+
36
+
37
+ <span class="title">Naether</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Module: Naether
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+ <dt class="r1 last">Defined in:</dt>
82
+ <dd class="r1 last">lib/naether/java.rb<span class="defines">,<br />
83
+ lib/naether.rb,<br /> lib/naether/maven.rb,<br /> lib/naether/runtime.rb,<br /> lib/naether/notation.rb,<br /> lib/naether/java/ruby.rb,<br /> lib/naether/bootstrap.rb,<br /> lib/naether/java/jruby.rb,<br /> lib/naether/configuration.rb</span>
84
+ </dd>
85
+
86
+ </dl>
87
+ <div class="clear"></div>
88
+
89
+ <h2>Overview</h2><div class="docstring">
90
+ <div class="discussion">
91
+
92
+
93
+ </div>
94
+ </div>
95
+ <div class="tags">
96
+
97
+ <p class="tag_title">Author:</p>
98
+ <ul class="author">
99
+
100
+ <li>
101
+
102
+
103
+
104
+
105
+
106
+ <div class='inline'>
107
+ <p>Michael Guymon</p>
108
+ </div>
109
+
110
+ </li>
111
+
112
+ </ul>
113
+
114
+ </div><h2>Defined Under Namespace</h2>
115
+ <p class="children">
116
+
117
+
118
+
119
+
120
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Naether/Bootstrap.html" title="Naether::Bootstrap (class)">Bootstrap</a></span>, <span class='object_link'><a href="Naether/Configurator.html" title="Naether::Configurator (class)">Configurator</a></span>, <span class='object_link'><a href="Naether/Java.html" title="Naether::Java (class)">Java</a></span>, <span class='object_link'><a href="Naether/Maven.html" title="Naether::Maven (class)">Maven</a></span>, <span class='object_link'><a href="Naether/Notation.html" title="Naether::Notation (class)">Notation</a></span>, <span class='object_link'><a href="Naether/Runtime.html" title="Naether::Runtime (class)">Runtime</a></span>
121
+
122
+
123
+ </p>
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+ <h2>
133
+ Class Method Summary
134
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
135
+ </h2>
136
+
137
+ <ul class="summary">
138
+
139
+ <li class="public ">
140
+ <span class="summary_signature">
141
+
142
+ <a href="#bootstrap_dependencies-class_method" title="bootstrap_dependencies (class method)">+ (Object) <strong>bootstrap_dependencies</strong>(dep_file = nil) </a>
143
+
144
+
145
+
146
+ </span>
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+ <span class="summary_desc"><div class='inline'>
157
+ <p>List of Java dependencies needed to bootstrap Naether.</p>
158
+ </div></span>
159
+
160
+ </li>
161
+
162
+
163
+ <li class="public ">
164
+ <span class="summary_signature">
165
+
166
+ <a href="#create-class_method" title="create (class method)">+ (Object) <strong>create</strong> </a>
167
+
168
+
169
+
170
+ </span>
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+ <span class="summary_desc"><div class='inline'></div></span>
181
+
182
+ </li>
183
+
184
+
185
+ <li class="public ">
186
+ <span class="summary_signature">
187
+
188
+ <a href="#create_from_jars-class_method" title="create_from_jars (class method)">+ (Naether) <strong>create_from_jars</strong>(jars) </a>
189
+
190
+
191
+
192
+ </span>
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+ <span class="summary_desc"><div class='inline'>
203
+ <p>Loads all jars creates a new instance of Naether.</p>
204
+ </div></span>
205
+
206
+ </li>
207
+
208
+
209
+ <li class="public ">
210
+ <span class="summary_signature">
211
+
212
+ <a href="#platform-class_method" title="platform (class method)">+ (Object) <strong>platform</strong> </a>
213
+
214
+
215
+
216
+ </span>
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+ <span class="summary_desc"><div class='inline'>
227
+ <p>Helper for platform detection.</p>
228
+ </div></span>
229
+
230
+ </li>
231
+
232
+
233
+ </ul>
234
+
235
+
236
+
237
+
238
+ <div id="class_method_details" class="method_details_list">
239
+ <h2>Class Method Details</h2>
240
+
241
+
242
+ <div class="method_details first">
243
+ <h3 class="signature first" id="bootstrap_dependencies-class_method">
244
+
245
+ + (<tt>Object</tt>) <strong>bootstrap_dependencies</strong>(dep_file = nil)
246
+
247
+
248
+
249
+
250
+
251
+ </h3><div class="docstring">
252
+ <div class="discussion">
253
+
254
+ <p>List of Java dependencies needed to bootstrap Naether</p>
255
+
256
+
257
+ </div>
258
+ </div>
259
+ <div class="tags">
260
+ <p class="tag_title">Parameters:</p>
261
+ <ul class="param">
262
+
263
+ <li>
264
+
265
+ <span class='name'>dep_file</span>
266
+
267
+
268
+ <span class='type'>(<tt>String</tt>)</span>
269
+
270
+
271
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
272
+
273
+
274
+ &mdash;
275
+ <div class='inline'>
276
+ <p>path</p>
277
+ </div>
278
+
279
+ </li>
280
+
281
+ </ul>
282
+
283
+
284
+ <p class="tag_title">See Also:</p>
285
+ <ul class="see">
286
+
287
+ <li>{Naether{Naether::Bootstrap{Naether::Bootstrap#dependencies}</li>
288
+
289
+ </ul>
290
+
291
+ </div><table class="source_code">
292
+ <tr>
293
+ <td>
294
+ <pre class="lines">
295
+
296
+
297
+ 34
298
+ 35
299
+ 36
300
+ 37</pre>
301
+ </td>
302
+ <td>
303
+ <pre class="code"><span class="info file"># File 'lib/naether.rb', line 34</span>
304
+
305
+ <span class='kw'>def</span> <span class='id identifier rubyid_bootstrap_dependencies'>bootstrap_dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_dep_file'>dep_file</span><span class='op'>=</span><span class='kw'>nil</span> <span class='rparen'>)</span>
306
+ <span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_content'>/naether/bootstrap</span><span class='tstring_end'>&quot;</span></span>
307
+ <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Bootstrap</span><span class='period'>.</span><span class='id identifier rubyid_dependencies'>dependencies</span><span class='lparen'>(</span> <span class='id identifier rubyid_dep_file'>dep_file</span> <span class='rparen'>)</span>
308
+ <span class='kw'>end</span></pre>
309
+ </td>
310
+ </tr>
311
+ </table>
312
+ </div>
313
+
314
+ <div class="method_details ">
315
+ <h3 class="signature " id="create-class_method">
316
+
317
+ + (<tt>Object</tt>) <strong>create</strong>
318
+
319
+
320
+
321
+
322
+
323
+ </h3><table class="source_code">
324
+ <tr>
325
+ <td>
326
+ <pre class="lines">
327
+
328
+
329
+ 57
330
+ 58
331
+ 59
332
+ 60</pre>
333
+ </td>
334
+ <td>
335
+ <pre class="code"><span class="info file"># File 'lib/naether.rb', line 57</span>
336
+
337
+ <span class='kw'>def</span> <span class='id identifier rubyid_create'>create</span>
338
+ <span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_content'>/naether/runtime</span><span class='tstring_end'>&quot;</span></span>
339
+ <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Runtime</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
340
+ <span class='kw'>end</span></pre>
341
+ </td>
342
+ </tr>
343
+ </table>
344
+ </div>
345
+
346
+ <div class="method_details ">
347
+ <h3 class="signature " id="create_from_jars-class_method">
348
+
349
+ + (<tt><span class='object_link'><a href="" title="Naether (module)">Naether</a></span></tt>) <strong>create_from_jars</strong>(jars)
350
+
351
+
352
+
353
+
354
+
355
+ </h3><div class="docstring">
356
+ <div class="discussion">
357
+
358
+ <p>Loads all jars creates a new instance of Naether</p>
359
+
360
+
361
+ </div>
362
+ </div>
363
+ <div class="tags">
364
+ <p class="tag_title">Parameters:</p>
365
+ <ul class="param">
366
+
367
+ <li>
368
+
369
+ <span class='name'>jars</span>
370
+
371
+
372
+ <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
373
+
374
+
375
+
376
+ &mdash;
377
+ <div class='inline'>
378
+ <p>of paths</p>
379
+ </div>
380
+
381
+ </li>
382
+
383
+ </ul>
384
+
385
+ <p class="tag_title">Returns:</p>
386
+ <ul class="return">
387
+
388
+ <li>
389
+
390
+
391
+ <span class='type'>(<tt><span class='object_link'><a href="" title="Naether (module)">Naether</a></span></tt>)</span>
392
+
393
+
394
+
395
+ </li>
396
+
397
+ </ul>
398
+
399
+ </div><table class="source_code">
400
+ <tr>
401
+ <td>
402
+ <pre class="lines">
403
+
404
+
405
+ 51
406
+ 52
407
+ 53
408
+ 54
409
+ 55</pre>
410
+ </td>
411
+ <td>
412
+ <pre class="code"><span class="info file"># File 'lib/naether.rb', line 51</span>
413
+
414
+ <span class='kw'>def</span> <span class='id identifier rubyid_create_from_jars'>create_from_jars</span><span class='lparen'>(</span> <span class='id identifier rubyid_jars'>jars</span> <span class='rparen'>)</span>
415
+ <span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_content'>/naether/java</span><span class='tstring_end'>&quot;</span></span>
416
+ <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Java</span><span class='period'>.</span><span class='id identifier rubyid_internal_load_paths'>internal_load_paths</span><span class='lparen'>(</span> <span class='id identifier rubyid_jars'>jars</span> <span class='rparen'>)</span>
417
+ <span class='id identifier rubyid_create'>create</span>
418
+ <span class='kw'>end</span></pre>
419
+ </td>
420
+ </tr>
421
+ </table>
422
+ </div>
423
+
424
+ <div class="method_details ">
425
+ <h3 class="signature " id="platform-class_method">
426
+
427
+ + (<tt>Object</tt>) <strong>platform</strong>
428
+
429
+
430
+
431
+
432
+
433
+ </h3><div class="docstring">
434
+ <div class="discussion">
435
+
436
+ <p>Helper for platform detection</p>
437
+
438
+
439
+ </div>
440
+ </div>
441
+ <div class="tags">
442
+
443
+
444
+ </div><table class="source_code">
445
+ <tr>
446
+ <td>
447
+ <pre class="lines">
448
+
449
+
450
+ 42
451
+ 43
452
+ 44</pre>
453
+ </td>
454
+ <td>
455
+ <pre class="code"><span class="info file"># File 'lib/naether.rb', line 42</span>
456
+
457
+ <span class='kw'>def</span> <span class='id identifier rubyid_platform'>platform</span>
458
+ <span class='const'>Naether</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_platform'>platform</span>
459
+ <span class='kw'>end</span></pre>
460
+ </td>
461
+ </tr>
462
+ </table>
463
+ </div>
464
+
465
+ </div>
466
+
467
+ </div>
468
+
469
+ <div id="footer">
470
+ Generated on Fri Sep 27 17:49:16 2013 by
471
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
472
+ 0.8.2.1 (ruby-1.9.3).
473
+ </div>
474
+
475
+ </body>
476
+ </html>