jar_wrapper 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/.idea/workspace.xml CHANGED
@@ -2,7 +2,6 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="f2d45c82-3b69-4bf8-9eb4-252420ccdf4d" name="Default" comment="">
5
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/CHANGES" afterPath="$PROJECT_DIR$/CHANGES" />
6
5
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/jar_wrapper.rb" afterPath="$PROJECT_DIR$/lib/jar_wrapper.rb" />
7
6
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/jar_wrapper/runner.rb" afterPath="$PROJECT_DIR$/lib/jar_wrapper/runner.rb" />
8
7
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/jar_wrapper/version.rb" afterPath="$PROJECT_DIR$/lib/jar_wrapper/version.rb" />
@@ -20,12 +19,12 @@
20
19
  <file path="/Gemfile" changelist="f2d45c82-3b69-4bf8-9eb4-252420ccdf4d" time="1360708618323" ignored="false" />
21
20
  <file path="/a.dummy" changelist="f2d45c82-3b69-4bf8-9eb4-252420ccdf4d" time="1360708108504" ignored="false" />
22
21
  <file path="/jar_wrapper.gemspec" changelist="f2d45c82-3b69-4bf8-9eb4-252420ccdf4d" time="1360708115815" ignored="false" />
23
- <file path="$PROJECT_DIR$/../selenium/Gemfile" changelist="f2d45c82-3b69-4bf8-9eb4-252420ccdf4d" time="1360708637301" ignored="false" />
24
- <file path="$PROJECT_DIR$/../selenium/Gemfile.lock" changelist="f2d45c82-3b69-4bf8-9eb4-252420ccdf4d" time="1360708642523" ignored="false" />
22
+ <file path="$PROJECT_DIR$/../selenium/Gemfile" changelist="f2d45c82-3b69-4bf8-9eb4-252420ccdf4d" time="1360709193908" ignored="false" />
23
+ <file path="$PROJECT_DIR$/../selenium/Gemfile.lock" changelist="f2d45c82-3b69-4bf8-9eb4-252420ccdf4d" time="1360709197266" ignored="false" />
25
24
  <file path="$PROJECT_DIR$/../selenium/bin/selenium" changelist="f2d45c82-3b69-4bf8-9eb4-252420ccdf4d" time="1360708658751" ignored="false" />
26
- <file path="$PROJECT_DIR$/../selenium/lib/selenium/starter.rb" changelist="f2d45c82-3b69-4bf8-9eb4-252420ccdf4d" time="1360708758156" ignored="false" />
25
+ <file path="$PROJECT_DIR$/../selenium/lib/selenium/starter.rb" changelist="f2d45c82-3b69-4bf8-9eb4-252420ccdf4d" time="1360709166995" ignored="false" />
27
26
  <file path="/starter.rb" changelist="f2d45c82-3b69-4bf8-9eb4-252420ccdf4d" time="1360708757006" ignored="false" />
28
- <file path="$PROJECT_DIR$/../selenium/selenium.gemspec" changelist="f2d45c82-3b69-4bf8-9eb4-252420ccdf4d" time="1360708813635" ignored="false" />
27
+ <file path="$PROJECT_DIR$/../selenium/selenium.gemspec" changelist="f2d45c82-3b69-4bf8-9eb4-252420ccdf4d" time="1360709285538" ignored="false" />
29
28
  <option name="TRACKING_ENABLED" value="true" />
30
29
  <option name="SHOW_DIALOG" value="false" />
31
30
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -45,7 +44,7 @@
45
44
  <file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="false">
46
45
  <entry file="file://$PROJECT_DIR$/Gemfile">
47
46
  <provider selected="true" editor-type-id="text-editor">
48
- <state line="2" column="0" selection-start="18" selection-end="113" vertical-scroll-proportion="0.0">
47
+ <state line="9" column="8" selection-start="133" selection-end="133" vertical-scroll-proportion="0.0">
49
48
  <folding />
50
49
  </state>
51
50
  </provider>
@@ -54,34 +53,34 @@
54
53
  <file leaf-file-name="jar_wrapper.rb" pinned="false" current="false" current-in-tab="false">
55
54
  <entry file="file://$PROJECT_DIR$/lib/jar_wrapper.rb">
56
55
  <provider selected="true" editor-type-id="text-editor">
57
- <state line="9" column="0" selection-start="262" selection-end="262" vertical-scroll-proportion="0.0">
56
+ <state line="17" column="0" selection-start="423" selection-end="423" vertical-scroll-proportion="0.0">
58
57
  <folding />
59
58
  </state>
60
59
  </provider>
61
60
  </entry>
62
61
  </file>
63
- <file leaf-file-name="runner.rb" pinned="false" current="false" current-in-tab="false">
64
- <entry file="file://$PROJECT_DIR$/lib/jar_wrapper/runner.rb">
62
+ <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
63
+ <entry file="file://$PROJECT_DIR$/lib/jar_wrapper/version.rb">
65
64
  <provider selected="true" editor-type-id="text-editor">
66
- <state line="9" column="0" selection-start="180" selection-end="180" vertical-scroll-proportion="0.0">
65
+ <state line="1" column="18" selection-start="36" selection-end="36" vertical-scroll-proportion="0.023323616">
67
66
  <folding />
68
67
  </state>
69
68
  </provider>
70
69
  </entry>
71
70
  </file>
72
- <file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
73
- <entry file="file://$PROJECT_DIR$/lib/jar_wrapper/version.rb">
71
+ <file leaf-file-name="runner.rb" pinned="false" current="false" current-in-tab="false">
72
+ <entry file="file://$PROJECT_DIR$/lib/jar_wrapper/runner.rb">
74
73
  <provider selected="true" editor-type-id="text-editor">
75
- <state line="1" column="18" selection-start="36" selection-end="36" vertical-scroll-proportion="0.0">
74
+ <state line="0" column="18" selection-start="18" selection-end="18" vertical-scroll-proportion="0.0">
76
75
  <folding />
77
76
  </state>
78
77
  </provider>
79
78
  </entry>
80
79
  </file>
81
- <file leaf-file-name="CHANGES" pinned="false" current="true" current-in-tab="true">
80
+ <file leaf-file-name="CHANGES" pinned="false" current="false" current-in-tab="false">
82
81
  <entry file="file://$PROJECT_DIR$/CHANGES">
83
82
  <provider selected="true" editor-type-id="text-editor">
84
- <state line="13" column="0" selection-start="123" selection-end="155" vertical-scroll-proportion="0.303207">
83
+ <state line="7" column="22" selection-start="84" selection-end="84" vertical-scroll-proportion="0.0">
85
84
  <folding />
86
85
  </state>
87
86
  </provider>
@@ -111,10 +110,10 @@
111
110
  <option value="$PROJECT_DIR$/jar_wrapper.gemspec" />
112
111
  <option value="$PROJECT_DIR$/jar_wrapper.gemspec.erb" />
113
112
  <option value="$PROJECT_DIR$/Gemfile" />
114
- <option value="$PROJECT_DIR$/lib/jar_wrapper.rb" />
113
+ <option value="$PROJECT_DIR$/CHANGES" />
115
114
  <option value="$PROJECT_DIR$/lib/jar_wrapper/runner.rb" />
115
+ <option value="$PROJECT_DIR$/lib/jar_wrapper.rb" />
116
116
  <option value="$PROJECT_DIR$/lib/jar_wrapper/version.rb" />
117
- <option value="$PROJECT_DIR$/CHANGES" />
118
117
  </list>
119
118
  </option>
120
119
  </component>
@@ -420,37 +419,37 @@
420
419
  </state>
421
420
  </provider>
422
421
  </entry>
423
- <entry file="file://$PROJECT_DIR$/Gemfile">
422
+ <entry file="file://$PROJECT_DIR$/CHANGES">
424
423
  <provider selected="true" editor-type-id="text-editor">
425
- <state line="2" column="0" selection-start="18" selection-end="113" vertical-scroll-proportion="0.0">
424
+ <state line="7" column="22" selection-start="84" selection-end="84" vertical-scroll-proportion="0.0">
426
425
  <folding />
427
426
  </state>
428
427
  </provider>
429
428
  </entry>
430
- <entry file="file://$PROJECT_DIR$/lib/jar_wrapper.rb">
429
+ <entry file="file://$PROJECT_DIR$/Gemfile">
431
430
  <provider selected="true" editor-type-id="text-editor">
432
- <state line="9" column="0" selection-start="262" selection-end="262" vertical-scroll-proportion="0.0">
431
+ <state line="9" column="8" selection-start="133" selection-end="133" vertical-scroll-proportion="0.0">
433
432
  <folding />
434
433
  </state>
435
434
  </provider>
436
435
  </entry>
437
436
  <entry file="file://$PROJECT_DIR$/lib/jar_wrapper/runner.rb">
438
437
  <provider selected="true" editor-type-id="text-editor">
439
- <state line="9" column="0" selection-start="180" selection-end="180" vertical-scroll-proportion="0.0">
438
+ <state line="0" column="18" selection-start="18" selection-end="18" vertical-scroll-proportion="0.0">
440
439
  <folding />
441
440
  </state>
442
441
  </provider>
443
442
  </entry>
444
- <entry file="file://$PROJECT_DIR$/lib/jar_wrapper/version.rb">
443
+ <entry file="file://$PROJECT_DIR$/lib/jar_wrapper.rb">
445
444
  <provider selected="true" editor-type-id="text-editor">
446
- <state line="1" column="18" selection-start="36" selection-end="36" vertical-scroll-proportion="0.0">
445
+ <state line="17" column="0" selection-start="423" selection-end="423" vertical-scroll-proportion="0.0">
447
446
  <folding />
448
447
  </state>
449
448
  </provider>
450
449
  </entry>
451
- <entry file="file://$PROJECT_DIR$/CHANGES">
450
+ <entry file="file://$PROJECT_DIR$/lib/jar_wrapper/version.rb">
452
451
  <provider selected="true" editor-type-id="text-editor">
453
- <state line="13" column="0" selection-start="123" selection-end="155" vertical-scroll-proportion="0.303207">
452
+ <state line="1" column="18" selection-start="36" selection-end="36" vertical-scroll-proportion="0.023323616">
454
453
  <folding />
455
454
  </state>
456
455
  </provider>
@@ -1,13 +1,5 @@
1
1
  require 'open-uri'
2
2
 
3
- require 'rbconfig'
4
-
5
- def windows?
6
- !!(RbConfig::CONFIG['host_os'] =~ /mswin|mingw|windows/)
7
- end
8
-
9
- windows? ? (require "zip/zipfilesystem") : (require 'zip/zip')
10
-
11
3
  # some code is extracted from redcar project (https://github.com/redcar/redcar) which is in turn extracted
12
4
  # from ruby-processing gem (https://github.com/jashkenas/ruby-processing).
13
5
 
@@ -1,3 +1,3 @@
1
1
  module JarWrapper
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
data/lib/jar_wrapper.rb CHANGED
@@ -8,3 +8,11 @@ require 'net/http'
8
8
 
9
9
  require 'jar_wrapper/runner'
10
10
 
11
+ require 'rbconfig'
12
+
13
+ def windows?
14
+ !!(RbConfig::CONFIG['host_os'] =~ /mswin|mingw|windows/)
15
+ end
16
+
17
+ windows? ? (require "zip/zipfilesystem") : (require 'zip/zip')
18
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jar_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: