jnlp 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/README.rdoc +41 -24
- data/Rakefile +49 -41
- data/jnlp.gemspec +4 -4
- data/lib/jnlp.rb +1 -1
- data/lib/jnlp/jnlp.rb +19 -18
- data/lib/jnlp/maven_jnlp.rb +3 -3
- data/lib/jnlp/otrunk.rb +1 -1
- data/lib/jnlp/version.rb +17 -28
- data/spec/jnlp_spec.rb +1 -1
- data/spec/jnlp_with_certficate_versions_spec.rb +1 -1
- data/spec/jnlp_with_specific_os_arch_j2ses_spec.rb +1 -1
- data/spec/jnlp_without_versioned_jars_spec.rb +1 -1
- data/spec/spec_helper.rb +0 -3
- metadata +70 -95
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -1,31 +1,35 @@
|
|
1
|
-
|
1
|
+
# @markup rdoc
|
2
|
+
# @title README
|
3
|
+
# @author Stephen Bannasch
|
2
4
|
|
3
|
-
|
5
|
+
== Jnlp Ruby Gem version 0.7.0
|
6
|
+
|
7
|
+
A Ruby gem for encapsulating the content and resources referenced by Java Web Start jnlps
|
4
8
|
and interacting with jnlp repositories managed by the maven-jnlp Eclipse plugin.
|
5
9
|
|
6
10
|
Complete rdoc available here: http://rdoc.info/projects/stepheneb/jnlp
|
7
11
|
|
8
|
-
|
12
|
+
{file:history.html Release History}
|
9
13
|
|
10
|
-
|
14
|
+
For more information about the structure of Java Web Start see Sun's documentation[http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/contents.html]
|
11
15
|
|
12
16
|
== Examples:
|
13
17
|
|
14
|
-
=== Creating a new Jnlp::Jnlp object from a local Java Web Start jnlp file.
|
18
|
+
=== Creating a new {Jnlp::Jnlp} object from a local Java Web Start jnlp file.
|
15
19
|
|
16
20
|
j = Jnlp::Jnlp.new("authoring.jnlp")
|
17
21
|
|
18
|
-
=== Creating a new Jnlp::Jnlp object from a Java Web Start jnlp referenced with a url.
|
22
|
+
=== Creating a new {Jnlp::Jnlp} object from a Java Web Start jnlp referenced with a url.
|
19
23
|
|
20
24
|
j = Jnlp::Jnlp.new("http://jnlp.concord.org/dev/org/concord/maven-jnlp/otrunk-sensor/otrunk-sensor.jnlp")
|
21
25
|
|
22
|
-
Once the Jnlp::Jnlp object is created you can call Jnlp::Jnlp#cache_resources to create a local cache of all the jar and nativelib resources.
|
26
|
+
Once the {Jnlp::Jnlp} object is created you can call {Jnlp::Jnlp#cache_resources} to create a local cache of all the jar and nativelib resources.
|
23
27
|
|
24
28
|
The structure of the cache directory and the naming using for the jar and nativelib files is the same as that used by the Java Web Start Download Servlet, see Sun's servlet guide[http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/downloadservletguide.html].
|
25
29
|
|
26
|
-
== Creating MavenJnlp objects that represent the resources deployed by a maven jnlp servlet.
|
30
|
+
== Creating {Jnlp::MavenJnlp} objects that represent the resources deployed by a maven jnlp servlet.
|
27
31
|
|
28
|
-
=== Creating a MavenJnlp object that represents the all the resources deployed by a maven jnlp servlet.
|
32
|
+
=== Creating a {Jnlp::MavenJnlp} object that represents the all the resources deployed by a maven jnlp servlet.
|
29
33
|
|
30
34
|
require 'jnlp'
|
31
35
|
mj = Jnlp::MavenJnlp.new('http://jnlp.concord.org', '/dev/org/concord/maven-jnlp/')
|
@@ -53,7 +57,7 @@ You can now do this:
|
|
53
57
|
|
54
58
|
# => "/dev/org/concord/maven-jnlp/all-otrunk-snapshot/all-otrunk-snapshot-0.1.0-20070420.131610.jnlp"
|
55
59
|
|
56
|
-
=== Creating MavenJnlp objects that represent some all the resources deployed by a maven jnlp servlet.
|
60
|
+
=== Creating {Jnlp::MavenJnlp} objects that represent some all the resources deployed by a maven jnlp servlet.
|
57
61
|
|
58
62
|
You can pass in an options hash to limit the number of maven jnlp families parsed:
|
59
63
|
|
@@ -64,7 +68,8 @@ This will get all versions of each family.
|
|
64
68
|
{ :families => ['all-otrunk-snapshot', 'gui-testing'] })
|
65
69
|
|
66
70
|
mj.maven_jnlp_families.length
|
67
|
-
|
71
|
+
|
72
|
+
# => 2
|
68
73
|
|
69
74
|
Example: passing in an optional hash of maven jnlp families
|
70
75
|
This will get all versions of each family.
|
@@ -73,7 +78,8 @@ This will get all versions of each family.
|
|
73
78
|
{ :families => { 'all-otrunk-snapshot' => nil, 'gui-testing' => nil } })
|
74
79
|
|
75
80
|
mj.maven_jnlp_families.length
|
76
|
-
|
81
|
+
|
82
|
+
# => 2
|
77
83
|
|
78
84
|
Example: passing in an optional hash of maven jnlp families and specifying
|
79
85
|
the versions of the jnlp urls to get for one family.
|
@@ -85,7 +91,8 @@ the versions of the jnlp urls to get for one family.
|
|
85
91
|
})
|
86
92
|
mjfs = mj.maven_jnlp_families
|
87
93
|
[mjfs.length, mjfs[0].versions.length, mjfs[1].versions.length]
|
88
|
-
|
94
|
+
|
95
|
+
# => [2, 2, 50]
|
89
96
|
|
90
97
|
== Building the gem
|
91
98
|
|
@@ -97,23 +104,24 @@ The source code for the jnlp gem is on github[http://github.com/stepheneb/jnlp/t
|
|
97
104
|
|
98
105
|
=== Runtime dependencies
|
99
106
|
|
100
|
-
|
107
|
+
nokogiri '~> 1.4.0'
|
101
108
|
|
102
109
|
=== Development dependencies
|
103
110
|
|
104
|
-
rspec
|
105
|
-
ci_reporter
|
111
|
+
rspec '~> 2.5.0'
|
112
|
+
ci_reporter '~> 1.6.4'
|
106
113
|
|
107
114
|
=== rake tasks
|
108
115
|
|
109
116
|
$ rake -T
|
110
|
-
rake clobber_rdoc # Remove RDoc HTML files
|
111
|
-
rake
|
112
|
-
rake
|
113
|
-
rake
|
114
|
-
rake
|
115
|
-
rake
|
116
|
-
rake
|
117
|
+
rake doc:clobber_rdoc # Remove RDoc HTML files
|
118
|
+
rake doc:rdoc # Build RDoc HTML files
|
119
|
+
rake doc:rerdoc # Rebuild RDoc HTML files
|
120
|
+
rake doc:yard # Generate YARD Documentation
|
121
|
+
rake hudson:spec # run the spec tests and generate JUnit XML reports (for integrating with a Hudson CIS server)
|
122
|
+
rake package # generate the gem package: pkg/jnlp-0.7.0.gem
|
123
|
+
rake release # push the packaged gem: jnlp-0.7.0.gem to rubygems.org
|
124
|
+
rake spec # run spec tests (the default task)
|
117
125
|
|
118
126
|
=== Running the tests
|
119
127
|
|
@@ -129,10 +137,19 @@ Generating JUnit XML output for integrating with the Hudson CIS server:
|
|
129
137
|
|
130
138
|
rake hudson:spec
|
131
139
|
|
140
|
+
=== Running adhoc tests using the source code directly
|
141
|
+
|
142
|
+
Run an adhoc test in the file sample.rb in the same top-level directory as this source code by telling ruby to first add 'lib/' to the load path.
|
143
|
+
ruby -Ilib sample.rb
|
144
|
+
|
132
145
|
=== Building and installing the gem locally
|
133
146
|
|
134
147
|
rake package
|
135
|
-
gem install jnlp-<version>.gem
|
148
|
+
gem install pkg/jnlp-<version>.gem
|
149
|
+
|
150
|
+
=== Releasing a new version to http://rubygems.org/
|
151
|
+
|
152
|
+
gem push jnlp-<version>.gem
|
136
153
|
|
137
154
|
=== TODO
|
138
155
|
|
data/Rakefile
CHANGED
@@ -1,13 +1,17 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
|
3
|
-
JRUBY = defined? RUBY_ENGINE && RUBY_ENGINE == 'jruby'
|
3
|
+
JRUBY = (defined? RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
|
4
4
|
|
5
5
|
def gem_install_command_strings(missing_gems)
|
6
|
-
command = JRUBY ? "
|
7
|
-
|
6
|
+
command = JRUBY ? "jruby -S gem install" : "gem install"
|
7
|
+
install_str = ''
|
8
|
+
missing_gems.each do |g|
|
9
|
+
install_str << " #{command} #{g[0]} -v #{g[1]}\n"
|
10
|
+
end
|
11
|
+
install_str
|
8
12
|
end
|
9
13
|
|
10
|
-
@development_gems = [['
|
14
|
+
@development_gems = [['nokogiri', "~> 1.4.4"], ['rspec', '~> 2.5.0'], ['ci_reporter', '>= 1.6.0']]
|
11
15
|
@missing_gems = []
|
12
16
|
@development_gems.each do |gem_name_and_version|
|
13
17
|
begin
|
@@ -22,26 +26,25 @@ unless @missing_gems.empty?
|
|
22
26
|
|
23
27
|
The following gem(s) need to be installed to run, test and package the jnlp gem.
|
24
28
|
|
25
|
-
|
26
|
-
|
29
|
+
#{gem_install_command_strings(@missing_gems.reverse)}
|
27
30
|
HEREDOC
|
28
31
|
raise message
|
29
32
|
end
|
30
33
|
|
31
|
-
require '
|
34
|
+
require 'rspec/core/rake_task'
|
32
35
|
|
33
36
|
require File.join(File.expand_path(File.dirname(__FILE__)), 'lib', 'jnlp.rb')
|
34
37
|
|
35
38
|
task :default => :spec
|
36
39
|
|
37
40
|
desc 'run spec tests (the default task)'
|
38
|
-
|
39
|
-
t.
|
41
|
+
RSpec::Core::RakeTask.new do |t|
|
42
|
+
t.pattern = FileList["spec/**/*_spec.rb"]
|
40
43
|
end
|
41
44
|
|
42
|
-
desc "generate the gem package: jnlp-#{Jnlp::VERSION}.gem"
|
45
|
+
desc "generate the gem package: pkg/jnlp-#{Jnlp::VERSION}.gem"
|
43
46
|
task :package do
|
44
|
-
system "gem build jnlp.gemspec"
|
47
|
+
system "gem build jnlp.gemspec && mkdir -p pkg && mv jnlp-#{Jnlp::VERSION}.gem pkg/"
|
45
48
|
end
|
46
49
|
|
47
50
|
desc "push the packaged gem: jnlp-#{Jnlp::VERSION}.gem to rubygems.org"
|
@@ -50,6 +53,7 @@ task :release => :package do
|
|
50
53
|
end
|
51
54
|
|
52
55
|
namespace :hudson do
|
56
|
+
require 'ci/reporter/rake/rspec'
|
53
57
|
desc "run the spec tests and generate JUnit XML reports (for integrating with a Hudson CIS server)"
|
54
58
|
task :spec => ["hudson:setup:rspec", 'rake:spec']
|
55
59
|
|
@@ -71,36 +75,40 @@ end
|
|
71
75
|
#
|
72
76
|
# yardoc -o ydoc - README.rdoc History.txt License.txt
|
73
77
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
78
|
+
namespace :doc do
|
79
|
+
begin
|
80
|
+
# try using the rdoc gem if it is installed
|
81
|
+
gem 'rdoc', '~> 3.6.1'
|
82
|
+
require 'rdoc/task'
|
83
|
+
RDoc::Task.new do |rdoc|
|
84
|
+
rdoc.rdoc_dir = 'doc'
|
85
|
+
rdoc.template = "darkfish"
|
86
|
+
rdoc.main = "README.rdoc"
|
87
|
+
rdoc.title = 'Jnlp::Jnlp'
|
88
|
+
rdoc.rdoc_files.include("README.rdoc", 'History.txt', 'License.txt', "lib/**/*.rb")
|
89
|
+
rdoc.options += ['-f', 'darkfish']
|
90
|
+
end
|
91
|
+
rescue LoadError
|
92
|
+
# else use Rake's rdoc task (but this won't use the darkfish template)
|
93
|
+
require 'rake/rdoctask'
|
94
|
+
Rake::RDocTask.new do |rdoc|
|
95
|
+
rdoc.rdoc_dir = 'doc'
|
96
|
+
rdoc.main = "README.rdoc"
|
97
|
+
rdoc.title = 'Jnlp::Jnlp'
|
98
|
+
rdoc.rdoc_files.include("README.rdoc", 'History.txt', 'License.txt', "lib/**/*.rb")
|
99
|
+
end
|
93
100
|
end
|
94
|
-
end
|
95
101
|
|
96
|
-
begin
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
102
|
+
begin
|
103
|
+
require 'yard'
|
104
|
+
require 'yard/rake/yardoc_task'
|
105
|
+
YARD::Rake::YardocTask.new do |ydoc|
|
106
|
+
ydoc.files = ["lib/**/*.rb", "-", "README.rdoc", 'History.txt', 'License.txt']
|
107
|
+
ydoc.options = ['-o', 'ydoc', '--main', 'README.rdoc']
|
108
|
+
end
|
109
|
+
rescue LoadError
|
110
|
+
task :yardoc do
|
111
|
+
abort "YARD is not available. In order to run yardoc: sudo gem install yard"
|
112
|
+
end
|
105
113
|
end
|
106
|
-
end
|
114
|
+
end
|
data/jnlp.gemspec
CHANGED
@@ -16,18 +16,18 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.rdoc_options = ["--main", "README.rdoc"]
|
17
17
|
s.extra_rdoc_files = %w{ History.txt License.txt README.rdoc}
|
18
18
|
|
19
|
-
s.required_rubygems_version = ">= 1.3.
|
19
|
+
s.required_rubygems_version = ">= 1.3.5"
|
20
20
|
s.require_path = 'lib'
|
21
21
|
|
22
22
|
s.files = Dir.glob("{lib,spec}/**/*.{rb}") + %w{ History.txt License.txt README.rdoc Rakefile jnlp.gemspec }
|
23
23
|
|
24
|
-
s.add_runtime_dependency('
|
25
|
-
s.add_development_dependency("rspec", '
|
24
|
+
s.add_runtime_dependency('nokogiri', "~> 1.4.4")
|
25
|
+
s.add_development_dependency("rspec", '~> 2.5.0')
|
26
26
|
s.add_development_dependency("ci_reporter", '>= 1.6.0')
|
27
27
|
|
28
28
|
s.post_install_message = <<-POST_INSTALL_MESSAGE
|
29
29
|
|
30
|
-
Thanks for installing: jnlp-#{
|
30
|
+
Thanks for installing: jnlp-#{s.version}
|
31
31
|
|
32
32
|
Documentation: http://rdoc.info/projects/stepheneb/jnlp
|
33
33
|
Repository: http://github.com/stepheneb/jnlp
|
data/lib/jnlp.rb
CHANGED
data/lib/jnlp/jnlp.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'open-uri'
|
3
|
-
require '
|
3
|
+
require 'nokogiri'
|
4
4
|
require 'fileutils'
|
5
5
|
require 'net/http'
|
6
6
|
require 'date'
|
@@ -206,9 +206,9 @@ module Jnlp #:nodoc:
|
|
206
206
|
#
|
207
207
|
def initialize(icon)
|
208
208
|
@icon = icon
|
209
|
-
@href = icon.attr('href')
|
210
|
-
@height = icon.attr('height').to_i
|
211
|
-
@width = icon.attr('width').to_i
|
209
|
+
@href = icon.attr('href').value
|
210
|
+
@height = icon.attr('height').value.to_i
|
211
|
+
@width = icon.attr('width').value.to_i
|
212
212
|
end
|
213
213
|
end
|
214
214
|
#
|
@@ -578,7 +578,7 @@ module Jnlp #:nodoc:
|
|
578
578
|
end
|
579
579
|
end
|
580
580
|
#
|
581
|
-
#
|
581
|
+
# Verifies signature of locallly cached resource
|
582
582
|
#
|
583
583
|
# Returns boolean value indicating whether the signature of the
|
584
584
|
# cached local copy of the resource verified successfully
|
@@ -931,7 +931,10 @@ module Jnlp #:nodoc:
|
|
931
931
|
# Create a new Jnlp by loading and parsing the Java Web Start
|
932
932
|
# Jnlp located at url -- url can be a local path or a url.
|
933
933
|
# * if you include _cache_dir_ then the jnlp resources will be cached locally when the object is created
|
934
|
-
#
|
934
|
+
# You can pass a hash with these options:
|
935
|
+
#
|
936
|
+
# :include_pack_gz => true download and cache the pack.gz jar files also
|
937
|
+
# :verbose => true display a log
|
935
938
|
#
|
936
939
|
def initialize(url=nil, cache_dir=nil, options={})
|
937
940
|
@url = url
|
@@ -1004,23 +1007,23 @@ module Jnlp #:nodoc:
|
|
1004
1007
|
#
|
1005
1008
|
@local_jnlp_name = "local-#{@name}"
|
1006
1009
|
@local_jnlp_href = File.expand_path("#{Dir.pwd}/#{@local_jnlp_name}")
|
1007
|
-
@jnlp =
|
1008
|
-
@spec = (@jnlp/"jnlp").attr('spec')
|
1009
|
-
@codebase = (@jnlp/"jnlp").attr('codebase')
|
1010
|
+
@jnlp = Nokogiri::XML(open(url))
|
1011
|
+
@spec = (@jnlp/"jnlp").attr('spec').value
|
1012
|
+
@codebase = (@jnlp/"jnlp").attr('codebase').value
|
1010
1013
|
@path = @url.gsub(@codebase, '')
|
1011
1014
|
@family = File.basename(File.dirname(@path))
|
1012
|
-
@href = (@jnlp/"jnlp").attr('href')
|
1015
|
+
@href = (@jnlp/"jnlp").attr('href').value
|
1013
1016
|
@title, @vendor, @homepage, @description, @icon = nil, nil, nil, nil, nil
|
1014
1017
|
unless (info = (@jnlp/"information")).empty?
|
1015
1018
|
@title = (info/"title").inner_html.strip
|
1016
1019
|
@vendor = (info/"vendor").inner_html.strip
|
1017
|
-
@homepage = (info/"homepage").empty? ? '' : (info/"homepage").attr('href')
|
1020
|
+
@homepage = (info/"homepage").empty? ? '' : (info/"homepage").attr('href').value
|
1018
1021
|
@description = (info/"description").empty? ? '' : (info/"description").inner_html.strip
|
1019
1022
|
icon = (info/"icon")
|
1020
1023
|
@icon = Icon.new(icon) unless icon.empty?
|
1021
1024
|
@offline_allowed = (info/"offline-allowed") ? true : false
|
1022
1025
|
end
|
1023
|
-
@main_class = (@jnlp/"application-desc").attr('main-class')
|
1026
|
+
@main_class = (@jnlp/"application-desc").attr('main-class').value
|
1024
1027
|
@argument = (@jnlp/"argument").inner_html.strip
|
1025
1028
|
@j2ses, @properties, @jars, @nativelibs = [], [], [], []
|
1026
1029
|
(@jnlp/"resources").each do |resources|
|
@@ -1077,7 +1080,7 @@ module Jnlp #:nodoc:
|
|
1077
1080
|
# get a copy of the existing jnlp
|
1078
1081
|
# (it should be easier than this)
|
1079
1082
|
#
|
1080
|
-
@local_jnlp =
|
1083
|
+
@local_jnlp = Nokogiri::XML(@jnlp.to_s)
|
1081
1084
|
#
|
1082
1085
|
# we'll be working with the Hpricot root element
|
1083
1086
|
#
|
@@ -1193,9 +1196,6 @@ module Jnlp #:nodoc:
|
|
1193
1196
|
#
|
1194
1197
|
# returns the jnlp as a string
|
1195
1198
|
#
|
1196
|
-
# <jnlp spec="1.0+" codebase="http://localhost:4321" href="http://localhost:4321/org/concord/maven-jnlp/sensor-applets/sensor-applets-0.1.0-20100521.210440.jnlp">
|
1197
|
-
#
|
1198
|
-
#
|
1199
1199
|
def to_jnlp(options={})
|
1200
1200
|
jnlp = @jnlp.to_s
|
1201
1201
|
unless options.empty?
|
@@ -1228,9 +1228,10 @@ module Jnlp #:nodoc:
|
|
1228
1228
|
# With the codebase and href re-written referencing: 'http://localhost:4321'
|
1229
1229
|
#
|
1230
1230
|
# In addition a duplicate of the versioned jnlp is written without the version string as a snapshot
|
1231
|
-
# jnlp and the
|
1231
|
+
# jnlp and the version string is written to this file:
|
1232
|
+
#
|
1233
|
+
# jnlp-name-CURRENT_VERSION.txt
|
1232
1234
|
#
|
1233
|
-
#
|
1234
1235
|
def write_jnlp(options={})
|
1235
1236
|
dir = options[:dir] || '.'
|
1236
1237
|
path = options[:path] || @path.gsub(/^\//, '')
|
data/lib/jnlp/maven_jnlp.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'open-uri'
|
2
|
-
require '
|
2
|
+
require 'nokogiri'
|
3
3
|
|
4
4
|
module Jnlp #:nodoc:
|
5
5
|
#
|
@@ -142,7 +142,7 @@ module Jnlp #:nodoc:
|
|
142
142
|
@url = @base_url + @path
|
143
143
|
@name = File.basename(@path)
|
144
144
|
@versions = []
|
145
|
-
doc =
|
145
|
+
doc = Nokogiri::HTML(open(@url))
|
146
146
|
anchor_tags = doc.search("//a")
|
147
147
|
snapshot_version_path = anchor_tags.find {|a| a['href'][/CURRENT_VERSION\.txt$/] }['href']
|
148
148
|
@snapshot_version = open(base_url + snapshot_version_path).read
|
@@ -284,7 +284,7 @@ module Jnlp #:nodoc:
|
|
284
284
|
@jnlp_families_path = jnlp_families_path
|
285
285
|
@jnlp_families_url = @base_url + @jnlp_families_path
|
286
286
|
@maven_jnlp_families = []
|
287
|
-
doc =
|
287
|
+
doc = Nokogiri::HTML(open(@jnlp_families_url))
|
288
288
|
family_paths = doc.search("//a").find_all { |a|
|
289
289
|
a['href'][/#{@jnlp_families_path}/]
|
290
290
|
}.collect { |a| a['href'] }
|
data/lib/jnlp/otrunk.rb
CHANGED
data/lib/jnlp/version.rb
CHANGED
@@ -1,30 +1,19 @@
|
|
1
1
|
module Jnlp #:nodoc:
|
2
|
-
VERSION
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
#
|
20
|
-
# class << self
|
21
|
-
# def to_s
|
22
|
-
# STRING
|
23
|
-
# end
|
24
|
-
#
|
25
|
-
# def ==(arg)
|
26
|
-
# STRING == arg
|
27
|
-
# end
|
28
|
-
# end
|
29
|
-
# end
|
2
|
+
module VERSION
|
3
|
+
MAJOR = 0
|
4
|
+
MINOR = 7
|
5
|
+
TINY = 0
|
6
|
+
|
7
|
+
STRING = [MAJOR, MINOR, TINY].join('.')
|
8
|
+
|
9
|
+
class << self
|
10
|
+
def to_s
|
11
|
+
STRING
|
12
|
+
end
|
13
|
+
|
14
|
+
def ==(arg)
|
15
|
+
STRING == arg
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
30
19
|
end
|
data/spec/jnlp_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,64 +1,50 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jnlp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 6
|
8
|
-
- 2
|
9
|
-
version: 0.6.2
|
4
|
+
prerelease:
|
5
|
+
version: 0.7.0
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
|
-
|
8
|
+
- Stephen Bannasch
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date: 2010-02-11 00:00:00
|
18
|
-
default_executable:
|
13
|
+
date: 2010-02-11 00:00:00 Z
|
19
14
|
dependencies:
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
- - ">="
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
segments:
|
56
|
-
- 1
|
57
|
-
- 6
|
58
|
-
- 0
|
59
|
-
version: 1.6.0
|
60
|
-
type: :development
|
61
|
-
version_requirements: *id003
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: nokogiri
|
17
|
+
prerelease: false
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ~>
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.4.4
|
24
|
+
type: :runtime
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rspec
|
28
|
+
prerelease: false
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 2.5.0
|
35
|
+
type: :development
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: ci_reporter
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.6.0
|
46
|
+
type: :development
|
47
|
+
version_requirements: *id003
|
62
48
|
description: For manipulation of Java Web Start Jnlps and the resources they reference.
|
63
49
|
email: stephen.bannasch@gmail.com
|
64
50
|
executables: []
|
@@ -66,63 +52,52 @@ executables: []
|
|
66
52
|
extensions: []
|
67
53
|
|
68
54
|
extra_rdoc_files:
|
69
|
-
|
70
|
-
|
71
|
-
|
55
|
+
- History.txt
|
56
|
+
- License.txt
|
57
|
+
- README.rdoc
|
72
58
|
files:
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
has_rdoc: true
|
59
|
+
- lib/jnlp/jnlp.rb
|
60
|
+
- lib/jnlp/maven_jnlp.rb
|
61
|
+
- lib/jnlp/maven_jnlp_server.rb
|
62
|
+
- lib/jnlp/otrunk.rb
|
63
|
+
- lib/jnlp/rack_server.rb
|
64
|
+
- lib/jnlp/version.rb
|
65
|
+
- lib/jnlp.rb
|
66
|
+
- spec/jnlp_spec.rb
|
67
|
+
- spec/jnlp_with_certficate_versions_spec.rb
|
68
|
+
- spec/jnlp_with_specific_os_arch_j2ses_spec.rb
|
69
|
+
- spec/jnlp_without_versioned_jars_spec.rb
|
70
|
+
- spec/spec_helper.rb
|
71
|
+
- History.txt
|
72
|
+
- License.txt
|
73
|
+
- README.rdoc
|
74
|
+
- Rakefile
|
75
|
+
- jnlp.gemspec
|
91
76
|
homepage: http://rubywebstart.rubyforge.org/jnlp/rdoc
|
92
77
|
licenses: []
|
93
78
|
|
94
|
-
post_install_message:
|
95
|
-
|
96
|
-
Thanks for installing: jnlp-0.6.2
|
97
|
-
|
98
|
-
Documentation: http://rdoc.info/projects/stepheneb/jnlp
|
99
|
-
Repository: http://github.com/stepheneb/jnlp
|
100
|
-
|
79
|
+
post_install_message: "\n Thanks for installing: jnlp-0.7.0\n\n Documentation: http://rdoc.info/projects/stepheneb/jnlp\n Repository: http://github.com/stepheneb/jnlp\n\n"
|
101
80
|
rdoc_options:
|
102
|
-
|
103
|
-
|
81
|
+
- --main
|
82
|
+
- README.rdoc
|
104
83
|
require_paths:
|
105
|
-
|
84
|
+
- lib
|
106
85
|
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
107
87
|
requirements:
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
- 0
|
112
|
-
version: "0"
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: "0"
|
113
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
|
+
none: false
|
114
93
|
requirements:
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
- 1
|
119
|
-
- 3
|
120
|
-
- 2
|
121
|
-
version: 1.3.2
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.3.5
|
122
97
|
requirements: []
|
123
98
|
|
124
99
|
rubyforge_project: rubywebstart
|
125
|
-
rubygems_version: 1.
|
100
|
+
rubygems_version: 1.8.5
|
126
101
|
signing_key:
|
127
102
|
specification_version: 3
|
128
103
|
summary: Ruby tools for working with Java Web Start JNLPs.
|