jnlp 0.6.2 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ == 0.7.0 2011-06-02
2
+
3
+ Replace hpricot with nokogiri
4
+
5
+ Update rspec from 1.3.x to 2.5.x
6
+
1
7
  == 0.6.2 2010-05-24
2
8
 
3
9
  Much better support for replicating a maven_jnlp-style directory structure
@@ -1,31 +1,35 @@
1
- = Jnlp:Jnlp
1
+ # @markup rdoc
2
+ # @title README
3
+ # @author Stephen Bannasch
2
4
 
3
- A gem for encapsulating the content and resources referenced by Java Web Start jnlps
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
- 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]
12
+ {file:history.html Release History}
9
13
 
10
- To create a new Jnlp::Jnlp call Jnlp::Jnlp#new with a string that contains either a local path or a url.
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
- => 2
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
- => 2
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
- => [2, 2, 50]
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
- hpricot '= 0.6.164'
107
+ nokogiri '~> 1.4.0'
101
108
 
102
109
  === Development dependencies
103
110
 
104
- rspec -v'>= 1.3.0'
105
- ci_reporter -v'>= 1.6.0'
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 hudson:spec # run the spec tests and generate JUnit XML reports (for...
112
- rake package # generate the gem package: jnlp-0.6.1.gem
113
- rake rdoc # Build RDoc HTML files
114
- rake release # push the packaged gem: jnlp-0.6.1.gem to rubygems.org
115
- rake rerdoc # Rebuild RDoc HTML files
116
- rake spec # run spec tests (the default task)
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 ? " jruby -S gem install " : " sudo gem install "
7
- command + missing_gems.collect {|g| "#{g[0]} -v '#{g[1]}'"}.join(' ') + "\n"
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 = [['hpricot', '= 0.6.164'], ['rspec', '>= 1.3.0'], ['ci_reporter', '>= 1.6.0']]
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
- #{gem_install_command_strings(@missing_gems.reverse)}
26
-
29
+ #{gem_install_command_strings(@missing_gems.reverse)}
27
30
  HEREDOC
28
31
  raise message
29
32
  end
30
33
 
31
- require 'spec/rake/spectask'
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
- Spec::Rake::SpecTask.new do |t|
39
- t.spec_files = FileList["spec/**/*_spec.rb"]
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
- begin
75
- # try using the rdoc gem if it is installed
76
- require 'rdoc/task'
77
- RDoc::Task.new do |rdoc|
78
- rdoc.rdoc_dir = 'doc'
79
- rdoc.template = "darkfish"
80
- rdoc.main = "README.rdoc"
81
- rdoc.title = 'Jnlp::Jnlp'
82
- rdoc.rdoc_files.include("README.rdoc", 'History.txt', 'License.txt', "lib/**/*.rb")
83
- rdoc.options += ['-f', 'darkfish']
84
- end
85
- rescue LoadError
86
- # else use Rake's rdoc task (but this won't use the darkfish template)
87
- require 'rake/rdoctask'
88
- Rake::RDocTask.new do |rdoc|
89
- rdoc.rdoc_dir = 'doc'
90
- rdoc.main = "README.rdoc"
91
- rdoc.title = 'Jnlp::Jnlp'
92
- rdoc.rdoc_files.include("README.rdoc", 'History.txt', 'License.txt', "lib/**/*.rb")
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
- require 'yard'
98
- YARD::Rake::YardocTask.new do |ydoc|
99
- ydoc.files = ["README.rdoc", 'History.txt', 'License.txt', "lib/**/*.rb"]
100
- ydoc.options = ['-o', 'ydoc', '--main', 'README.rdoc']
101
- end
102
- rescue LoadError
103
- task :yardoc do
104
- abort "YARD is not available. In order to run yardoc: sudo gem install yard"
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
@@ -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.2"
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('hpricot', "= 0.6.164")
25
- s.add_development_dependency("rspec", '>= 1.3.0')
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-#{Jnlp::VERSION}
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
@@ -3,7 +3,7 @@ $:.unshift(File.dirname(__FILE__)) unless
3
3
 
4
4
  require 'rubygems'
5
5
 
6
- gem 'hpricot', '=0.6.164'
6
+ gem 'nokogiri', '~> 1.4.0'
7
7
 
8
8
  module Jnlp
9
9
  require 'jnlp/jnlp.rb'
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'open-uri'
3
- require 'hpricot'
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
- # Verifys signature of locallly cached resource
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
- # * If you also include a boolean true the pack_gzip versions of the resources will be cached also.
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 = Hpricot.XML(open(url))
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 = Hpricot.XML(@jnlp.to_s)
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 file: <jnlp-name>-CURRENT_VERSION.txt containing the version string is written.
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(/^\//, '')
@@ -1,5 +1,5 @@
1
1
  require 'open-uri'
2
- require 'hpricot'
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 = Hpricot(open(@url))
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 = Hpricot(open(@jnlp_families_url))
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'] }
@@ -1,5 +1,5 @@
1
1
  require 'open-uri'
2
- require 'hpricot'
2
+ require 'nokogiri'
3
3
  require 'fileutils'
4
4
  require 'net/http'
5
5
  require 'date'
@@ -1,30 +1,19 @@
1
1
  module Jnlp #:nodoc:
2
- VERSION = '0.6.2'
3
- #
4
- # Let's see if this patch:
5
- #
6
- # http://rubyforge.org/tracker/index.php?func=detail&aid=24392&group_id=126&atid=577
7
- #
8
- # makes it into RubyGems -- it has been applied.
9
- # Will probably be part of 1.3.2.
10
- #
11
- # then I can start using this form again:
12
- #
13
- # module VERSION
14
- # MAJOR = 0
15
- # MINOR = 0
16
- # TINY = 4
17
- #
18
- # STRING = [MAJOR, MINOR, TINY].join('.')
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
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), 'spec_helper')
1
+ require File.expand_path('../spec_helper', __FILE__)
2
2
 
3
3
  describe Jnlp do
4
4
  before(:all) do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), 'spec_helper')
1
+ require File.expand_path('../spec_helper', __FILE__)
2
2
 
3
3
  describe 'Jnlp with certificate versions' do
4
4
  before(:all) do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), 'spec_helper')
1
+ require File.expand_path('../spec_helper', __FILE__)
2
2
 
3
3
  describe 'Jnlp with specific os/arch/j2se' do
4
4
  before(:all) do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), 'spec_helper')
1
+ require File.expand_path('../spec_helper', __FILE__)
2
2
 
3
3
  describe 'Jnlp without versioned jars' do
4
4
  before(:all) do
@@ -1,6 +1,3 @@
1
- require 'rubygems'
2
- gem 'rspec'
3
- require 'spec'
4
1
  require File.join(File.dirname(__FILE__), '..', 'lib', 'jnlp')
5
2
 
6
3
  def file_fixture(filename)
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: false
5
- segments:
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
- - Stephen Bannasch
8
+ - Stephen Bannasch
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-02-11 00:00:00 -05:00
18
- default_executable:
13
+ date: 2010-02-11 00:00:00 Z
19
14
  dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: hpricot
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - "="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- - 6
30
- - 164
31
- version: 0.6.164
32
- type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: rspec
36
- prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 1
43
- - 3
44
- - 0
45
- version: 1.3.0
46
- type: :development
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: ci_reporter
50
- prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
- requirements:
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
- - History.txt
70
- - License.txt
71
- - README.rdoc
55
+ - History.txt
56
+ - License.txt
57
+ - README.rdoc
72
58
  files:
73
- - lib/jnlp.rb
74
- - lib/jnlp/jnlp.rb
75
- - lib/jnlp/maven_jnlp.rb
76
- - lib/jnlp/maven_jnlp_server.rb
77
- - lib/jnlp/otrunk.rb
78
- - lib/jnlp/rack_server.rb
79
- - lib/jnlp/version.rb
80
- - spec/jnlp_spec.rb
81
- - spec/jnlp_with_certficate_versions_spec.rb
82
- - spec/jnlp_with_specific_os_arch_j2ses_spec.rb
83
- - spec/jnlp_without_versioned_jars_spec.rb
84
- - spec/spec_helper.rb
85
- - History.txt
86
- - License.txt
87
- - README.rdoc
88
- - Rakefile
89
- - jnlp.gemspec
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
- - --main
103
- - README.rdoc
81
+ - --main
82
+ - README.rdoc
104
83
  require_paths:
105
- - lib
84
+ - lib
106
85
  required_ruby_version: !ruby/object:Gem::Requirement
86
+ none: false
107
87
  requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- segments:
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
- - !ruby/object:Gem::Version
117
- segments:
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.3.6
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.