jnlp 0.7.1 → 0.7.2

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.
@@ -1,4 +1,9 @@
1
- == 0.7.0 2011-06-02
1
+ == 0.7.2 2011-06-03
2
+
3
+ Work-around strange Nokopgiri bug on Linux when creating a new doc from a TempFile
4
+ See: https://github.com/tenderlove/nokogiri/issues/470
5
+
6
+ == 0.7.1 2011-06-02
2
7
 
3
8
  update date in gemspec
4
9
 
@@ -2,7 +2,7 @@
2
2
  # @title README
3
3
  # @author Stephen Bannasch
4
4
 
5
- == Jnlp Ruby Gem version 0.7.0
5
+ == Jnlp Ruby Gem version 0.7.2
6
6
 
7
7
  A Ruby gem for encapsulating the content and resources referenced by Java Web Start jnlps
8
8
  and interacting with jnlp repositories managed by the maven-jnlp Eclipse plugin.
@@ -1007,7 +1007,7 @@ module Jnlp #:nodoc:
1007
1007
  #
1008
1008
  @local_jnlp_name = "local-#{@name}"
1009
1009
  @local_jnlp_href = File.expand_path("#{Dir.pwd}/#{@local_jnlp_name}")
1010
- @jnlp = Nokogiri::XML(open(url))
1010
+ @jnlp = Nokogiri::XML(open(url).read)
1011
1011
  @spec = (@jnlp/"jnlp").attr('spec').value
1012
1012
  @codebase = (@jnlp/"jnlp").attr('codebase').value
1013
1013
  @path = @url.gsub(@codebase, '')
@@ -142,7 +142,7 @@ module Jnlp #:nodoc:
142
142
  @url = @base_url + @path
143
143
  @name = File.basename(@path)
144
144
  @versions = []
145
- doc = Nokogiri::HTML(open(@url))
145
+ doc = Nokogiri::HTML(open(@url).read)
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 = Nokogiri::HTML(open(@jnlp_families_url))
287
+ doc = Nokogiri::HTML(open(@jnlp_families_url).read)
288
288
  family_paths = doc.search("//a").find_all { |a|
289
289
  a['href'][/#{@jnlp_families_path}/]
290
290
  }.collect { |a| a['href'] }
@@ -2,7 +2,7 @@ module Jnlp #:nodoc:
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 7
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
 
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jnlp
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 7
4
5
  prerelease:
5
- version: 0.7.1
6
+ segments:
7
+ - 0
8
+ - 7
9
+ - 2
10
+ version: 0.7.2
6
11
  platform: ruby
7
12
  authors:
8
13
  - Stephen Bannasch
@@ -20,6 +25,11 @@ dependencies:
20
25
  requirements:
21
26
  - - ~>
22
27
  - !ruby/object:Gem::Version
28
+ hash: 15
29
+ segments:
30
+ - 1
31
+ - 4
32
+ - 4
23
33
  version: 1.4.4
24
34
  type: :runtime
25
35
  version_requirements: *id001
@@ -31,6 +41,11 @@ dependencies:
31
41
  requirements:
32
42
  - - ~>
33
43
  - !ruby/object:Gem::Version
44
+ hash: 27
45
+ segments:
46
+ - 2
47
+ - 5
48
+ - 0
34
49
  version: 2.5.0
35
50
  type: :development
36
51
  version_requirements: *id002
@@ -42,6 +57,11 @@ dependencies:
42
57
  requirements:
43
58
  - - ">="
44
59
  - !ruby/object:Gem::Version
60
+ hash: 15
61
+ segments:
62
+ - 1
63
+ - 6
64
+ - 0
45
65
  version: 1.6.0
46
66
  type: :development
47
67
  version_requirements: *id003
@@ -52,9 +72,9 @@ executables: []
52
72
  extensions: []
53
73
 
54
74
  extra_rdoc_files:
75
+ - README.rdoc
55
76
  - History.txt
56
77
  - License.txt
57
- - README.rdoc
58
78
  files:
59
79
  - lib/jnlp/jnlp.rb
60
80
  - lib/jnlp/maven_jnlp.rb
@@ -68,15 +88,19 @@ files:
68
88
  - spec/jnlp_with_specific_os_arch_j2ses_spec.rb
69
89
  - spec/jnlp_without_versioned_jars_spec.rb
70
90
  - spec/spec_helper.rb
91
+ - README.rdoc
71
92
  - History.txt
72
93
  - License.txt
73
- - README.rdoc
74
- - Rakefile
75
- - jnlp.gemspec
76
- homepage: http://rubywebstart.rubyforge.org/jnlp/rdoc
94
+ homepage: https://github.com/stepheneb/jnlp
77
95
  licenses: []
78
96
 
79
- post_install_message: "\n Thanks for installing: jnlp-0.7.1\n\n Documentation: http://rdoc.info/projects/stepheneb/jnlp\n Repository: http://github.com/stepheneb/jnlp\n\n"
97
+ post_install_message: |+
98
+
99
+ Thanks for installing: jnlp-0.7.2
100
+
101
+ Documentation: http://rdoc.info/github/stepheneb/jnlp/master/file/README.rdoc
102
+ Repository: http://github.com/stepheneb/jnlp
103
+
80
104
  rdoc_options:
81
105
  - --main
82
106
  - README.rdoc
@@ -87,12 +111,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
111
  requirements:
88
112
  - - ">="
89
113
  - !ruby/object:Gem::Version
114
+ hash: 3
115
+ segments:
116
+ - 0
90
117
  version: "0"
91
118
  required_rubygems_version: !ruby/object:Gem::Requirement
92
119
  none: false
93
120
  requirements:
94
121
  - - ">="
95
122
  - !ruby/object:Gem::Version
123
+ hash: 17
124
+ segments:
125
+ - 1
126
+ - 3
127
+ - 5
96
128
  version: 1.3.5
97
129
  requirements: []
98
130
 
data/Rakefile DELETED
@@ -1,114 +0,0 @@
1
- require 'rubygems'
2
-
3
- JRUBY = (defined? RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
4
-
5
- def gem_install_command_strings(missing_gems)
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
12
- end
13
-
14
- @development_gems = [['nokogiri', "~> 1.4.4"], ['rspec', '~> 2.5.0'], ['ci_reporter', '>= 1.6.0']]
15
- @missing_gems = []
16
- @development_gems.each do |gem_name_and_version|
17
- begin
18
- gem gem_name_and_version[0], gem_name_and_version[1]
19
- rescue Gem::LoadError
20
- @missing_gems << gem_name_and_version
21
- end
22
- end
23
-
24
- unless @missing_gems.empty?
25
- message = <<-HEREDOC
26
-
27
- The following gem(s) need to be installed to run, test and package the jnlp gem.
28
-
29
- #{gem_install_command_strings(@missing_gems.reverse)}
30
- HEREDOC
31
- raise message
32
- end
33
-
34
- require 'rspec/core/rake_task'
35
-
36
- require File.join(File.expand_path(File.dirname(__FILE__)), 'lib', 'jnlp.rb')
37
-
38
- task :default => :spec
39
-
40
- desc 'run spec tests (the default task)'
41
- RSpec::Core::RakeTask.new do |t|
42
- t.pattern = FileList["spec/**/*_spec.rb"]
43
- end
44
-
45
- desc "generate the gem package: pkg/jnlp-#{Jnlp::VERSION}.gem"
46
- task :package do
47
- system "gem build jnlp.gemspec && mkdir -p pkg && mv jnlp-#{Jnlp::VERSION}.gem pkg/"
48
- end
49
-
50
- desc "push the packaged gem: jnlp-#{Jnlp::VERSION}.gem to rubygems.org"
51
- task :release => :package do
52
- system "gem push jnlp-#{Jnlp::VERSION}.gem"
53
- end
54
-
55
- namespace :hudson do
56
- require 'ci/reporter/rake/rspec'
57
- desc "run the spec tests and generate JUnit XML reports (for integrating with a Hudson CIS server)"
58
- task :spec => ["hudson:setup:rspec", 'rake:spec']
59
-
60
- namespace :setup do
61
- task :pre_ci do
62
- ENV["CI_REPORTS"] = 'spec/reports/'
63
- gem 'ci_reporter'
64
- require 'ci/reporter/rake/rspec'
65
- end
66
- task :rspec => [:pre_ci, "ci:setup:rspec"]
67
- end
68
- end
69
-
70
- # Documentation tasks
71
- #
72
- # You can generate the doc by hand as follows:
73
- #
74
- # rdoc -U --main=README.rdoc --title='Jnlp::Jnlp' README.rdoc History.txt License.txt lib
75
- #
76
- # yardoc -o ydoc - README.rdoc History.txt License.txt
77
-
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
100
- end
101
-
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
113
- end
114
- end
@@ -1,36 +0,0 @@
1
- GEM_ROOT = File.expand_path(File.dirname(__FILE__))
2
- $:.unshift File.join(GEM_ROOT, 'lib')
3
- require 'jnlp'
4
-
5
- Gem::Specification.new do |s|
6
- s.name = 'jnlp'
7
- s.version = Jnlp::VERSION
8
- s.authors = ["Stephen Bannasch"]
9
- s.email = 'stephen.bannasch@gmail.com'
10
- s.homepage = 'http://rubywebstart.rubyforge.org/jnlp/rdoc'
11
- s.summary = %q{Ruby tools for working with Java Web Start JNLPs.}
12
- s.description = %q{For manipulation of Java Web Start Jnlps and the resources they reference.}
13
- s.date = '2011-06-02'
14
- s.rubyforge_project = 'rubywebstart'
15
-
16
- s.rdoc_options = ["--main", "README.rdoc"]
17
- s.extra_rdoc_files = %w{ History.txt License.txt README.rdoc}
18
-
19
- s.required_rubygems_version = ">= 1.3.5"
20
- s.require_path = 'lib'
21
-
22
- s.files = Dir.glob("{lib,spec}/**/*.{rb}") + %w{ History.txt License.txt README.rdoc Rakefile jnlp.gemspec }
23
-
24
- s.add_runtime_dependency('nokogiri', "~> 1.4.4")
25
- s.add_development_dependency("rspec", '~> 2.5.0')
26
- s.add_development_dependency("ci_reporter", '>= 1.6.0')
27
-
28
- s.post_install_message = <<-POST_INSTALL_MESSAGE
29
-
30
- Thanks for installing: jnlp-#{s.version}
31
-
32
- Documentation: http://rdoc.info/projects/stepheneb/jnlp
33
- Repository: http://github.com/stepheneb/jnlp
34
-
35
- POST_INSTALL_MESSAGE
36
- end