jlauncher 0.1.0 → 0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e4bfab07d4162372333f02f6c63e7ff5eccb0d92
4
- data.tar.gz: 70938c7ca84203978409c77a5834c68892dac040
2
+ SHA256:
3
+ metadata.gz: f10bed10d8d58cbf2323219edb15b6b2b555476d44157a41267a46e4e369fce1
4
+ data.tar.gz: d93fb8baa9ee282745494e4791fe31ec3e47a75b30080952c9100b101913873d
5
5
  SHA512:
6
- metadata.gz: 35c084a53a1d21e59dba6746301fad4478e780de0133a9f850157bd1017bf7aef3c932a740f1b6c498ef98f91a45280018a527a3a28f4dc1bed0e0b354f1a32b
7
- data.tar.gz: 11f377d89b730bd0acad41c59c01d1becfda021c17a210642d7816f4449730f3c3ff316c317e14ec09984f1cdb7124d66973bddc4e43b81837e3a00bb8670a84
6
+ metadata.gz: 70060fccb4dc32a8fe1c47f1e0db8cae311369cddf72654a5ac49863e7ee52165b8c1d291f0ef63741201a70089053fc503958a5596ab6d7274baf70c24d45f5
7
+ data.tar.gz: f6bafa59aa89d64579ed574af17f403d51666667fe884d11910bb18b9017e3c97fcbd4ae04d488e11974e22623c3c396f0792c1b12fbeafec75d081ca5122bae
@@ -2,16 +2,20 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  jlauncher (0.1.0)
5
+ httparty
5
6
  rubyzip
6
- trollop
7
+ optimist
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
10
11
  specs:
12
+ httparty (0.16.2)
13
+ multi_xml (>= 0.5.2)
11
14
  minitest (5.10.3)
15
+ multi_xml (0.6.0)
12
16
  rake (10.5.0)
13
17
  rubyzip (1.2.1)
14
- trollop (2.1.2)
18
+ optimist (2.1.2)
15
19
 
16
20
  PLATFORMS
17
21
  ruby
@@ -23,4 +27,4 @@ DEPENDENCIES
23
27
  rake (~> 10.0)
24
28
 
25
29
  BUNDLED WITH
26
- 1.16.0
30
+ 1.16.1
data/exe/j CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- require 'trollop'
3
2
  require 'j'
4
3
 
5
4
  JLauncher.do_it(ARGV)
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Felix Leipold"]
10
10
  spec.email = ["felix.leipold@gmail.com"]
11
11
 
12
- spec.summary = %q{Starts jvm software from central repos}
12
+ spec.summary = %q{Launches jvm software from central repos}
13
13
  spec.description = %q{Uses fully resolved dependencies to get and start software from central repos}
14
14
  spec.homepage = "https://wuetender-junger-mann.de"
15
15
  spec.license = "MIT"
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "rake", "~> 10.0"
27
27
  spec.add_development_dependency "minitest", "~> 5.0"
28
28
 
29
- spec.add_dependency('trollop')
29
+ spec.add_dependency('optimist')
30
30
  spec.add_dependency('rubyzip')
31
31
  spec.add_dependency('httparty')
32
32
  end
data/lib/j.rb CHANGED
@@ -3,12 +3,12 @@ require 'zip'
3
3
  require 'json'
4
4
  require 'j/repos'
5
5
  require 'j/common.rb'
6
- require 'trollop'
6
+ require 'optimist'
7
7
 
8
8
  module JLauncher
9
9
 
10
10
  def JLauncher.do_it(argv)
11
- parser = Trollop::Parser.new
11
+ parser = Optimist::Parser.new
12
12
  parser.stop_on_unknown
13
13
  parser.version VERSION
14
14
  parser.banner <<-EOS
@@ -22,12 +22,12 @@ where [options] are:
22
22
 
23
23
  begin
24
24
  opts = parser.parse(argv)
25
- rescue Trollop::CommandlineError => e
25
+ rescue Optimist::CommandlineError => e
26
26
  parser.die(e.message, nil, e.error_code)
27
- rescue Trollop::HelpNeeded
27
+ rescue Optimist::HelpNeeded
28
28
  parser.educate
29
29
  exit
30
- rescue Trollop::VersionNeeded
30
+ rescue Optimist::VersionNeeded
31
31
  puts parser.version
32
32
  exit
33
33
  end
@@ -40,7 +40,7 @@ where [options] are:
40
40
  resolver = Resolver.new(
41
41
  MavenRepo.new(File.join(Dir.home, ".m2", "repository")),
42
42
  IvyRepo.new(File.join(Dir.home, ".ivy2")),
43
- MavenRemote.new("http://central.maven.org/maven2"),
43
+ MavenRemote.new("https://repo1.maven.org/maven2"),
44
44
  verbose
45
45
  )
46
46
 
@@ -114,4 +114,4 @@ where [options] are:
114
114
  end
115
115
  end
116
116
 
117
- end
117
+ end
@@ -1,3 +1,3 @@
1
1
  module JLauncher
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
data/test.rb ADDED
@@ -0,0 +1,30 @@
1
+ require 'optimist'
2
+
3
+ parser = Optimist::Parser.new
4
+
5
+
6
+ # parser.ignore_invalid_options = true
7
+ parser.stop_on_unknown
8
+ parser.version "test 1.2.3 (c) 2008 William Morgan"
9
+ parser.banner <<-EOS
10
+ Test is an awesome program that does something very, very important.
11
+
12
+ Usage:
13
+ .. test [options] <filenames>+
14
+ where [options] are:
15
+ EOS
16
+ parser.opt :ignore, "Ignore incorrect values"
17
+ parser.opt :file, "Extra data filename to read in, with a very long option description like this one", :type => String
18
+ parser.opt :volume, "Volume level", :default => 3.0
19
+ parser.opt :iters, "Number of iterations", :default => 5
20
+ opts = parser.parse(ARGV)
21
+
22
+ puts opts
23
+
24
+ puts "Hello"
25
+ puts parser.leftovers
26
+
27
+ Optimist::die :volume, "must be non-negative" if opts[:volume] < 0
28
+ Optimist::die :file, "must exist" unless File.exist?(opts[:file]) if opts[:file]
29
+
30
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jlauncher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Leipold
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-27 00:00:00.000000000 Z
11
+ date: 2020-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: trollop
56
+ name: optimist
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -103,12 +103,9 @@ executables:
103
103
  extensions: []
104
104
  extra_rdoc_files: []
105
105
  files:
106
- - ".gitignore"
107
106
  - ".travis.yml"
108
107
  - Gemfile
109
108
  - Gemfile.lock
110
- - LICENSE.txt
111
- - README.md
112
109
  - Rakefile
113
110
  - bin/console
114
111
  - bin/setup
@@ -118,6 +115,7 @@ files:
118
115
  - lib/j/common.rb
119
116
  - lib/j/repos.rb
120
117
  - lib/j/version.rb
118
+ - test.rb
121
119
  homepage: https://wuetender-junger-mann.de
122
120
  licenses:
123
121
  - MIT
@@ -138,8 +136,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
136
  version: '0'
139
137
  requirements: []
140
138
  rubyforge_project:
141
- rubygems_version: 2.4.5.1
139
+ rubygems_version: 2.7.6.2
142
140
  signing_key:
143
141
  specification_version: 4
144
- summary: Starts jvm software from central repos
142
+ summary: Launches jvm software from central repos
145
143
  test_files: []
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2017 Felix Leipold
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/README.md DELETED
@@ -1,32 +0,0 @@
1
- # J
2
-
3
- ## Usage
4
-
5
- Launch a jar that has a `j-manifest.json` from a local path:
6
-
7
-
8
- ~~~ .bash
9
- $ j path-to-my-jar
10
- ~~~
11
-
12
- Launching a jar via maven infrastructure:
13
-
14
- ~~~ .bash
15
- $ j org.my:myjar:1.0.0
16
- ~~~
17
-
18
- TODO: Deploy a test jar to maven central
19
-
20
- ## Development
21
-
22
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
23
-
24
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
25
-
26
- ## Contributing
27
-
28
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/j.
29
-
30
- ## License
31
-
32
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).