jnlp 0.0.5.2 → 0.0.5.3

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.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.5.3 2009-12-23
2
+
3
+ remove older files, specs for jnlp with jars without explicit version attributes
4
+
1
5
  == 0.0.5.2 2009-12-23
2
6
 
3
7
  * add support for os-specific j2se elements
data/Manifest.txt CHANGED
@@ -3,30 +3,17 @@ License.txt
3
3
  Manifest.txt
4
4
  README.txt
5
5
  Rakefile
6
- config/hoe.rb
7
- config/requirements.rb
8
6
  lib/jnlp.rb
9
7
  lib/jnlp/version.rb
10
8
  lib/jnlp/jnlp.rb
11
9
  lib/jnlp/otrunk.rb
12
10
  lib/jnlp/maven_jnlp.rb
13
- script/console
14
- script/destroy
15
- script/generate
16
- script/txt2html
17
- setup.rb
18
11
  spec/jnlp_spec.rb
19
12
  spec/jnlp_with_certficate_versions_spec.rb
13
+ spec/jnlp_without_versioned_jars_spec.rb
20
14
  spec/spec_helper.rb
21
15
  spec/fixtures/all-otrunk-snapshot-0.1.0-20090624.030355.jnlp
22
16
  spec/fixtures/all-otrunk-snapshot-CURRENT_VERSION.txt
23
17
  spec/fixtures/all-otrunk-snapshot-0.1.0-20091221.214313.jnlp
18
+ spec/fixtures/jnlp_without_versioned_jars.jnlp
24
19
  spec/fixtures/maven-jnlp.html
25
- tasks/deployment.rake
26
- tasks/environment.rake
27
- tasks/website.rake
28
- website/index.html
29
- website/index.txt
30
- website/javascripts/rounded_corners_lite.inc.js
31
- website/stylesheets/screen.css
32
- website/template.html.erb
data/lib/jnlp/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Jnlp #:nodoc:
2
- VERSION = '0.0.5.2'
2
+ VERSION = '0.0.5.3'
3
3
  #
4
4
  # Let's see if this patch:
5
5
  #
@@ -0,0 +1,45 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <jnlp spec="1.0+" codebase="http://jnlp.concord.org/dev" href="http://jnlp.concord.org/dev/org/concord/maven-jnlp/gui-testing/gui-testing-0.1.0-20091223.210555.jnlp">
3
+ <information>
4
+ <title>GUI Testing</title>
5
+ <vendor>
6
+ Concord Consortium
7
+ </vendor>
8
+ <homepage href="index.html" />
9
+ <description>
10
+ Preview Basic Pas
11
+ </description>
12
+ <offline-allowed />
13
+ </information>
14
+ <security>
15
+ <all-permissions />
16
+ </security>
17
+ <resources os="Mac OS X">
18
+ <j2se version="1.5" max-heap-size="128m" initial-heap-size="32m" />
19
+ </resources>
20
+ <resources>
21
+ <j2se version="1.5+" max-heap-size="128m" initial-heap-size="32m" />
22
+ <jar href="org/concord/testing/gui/gui-0.1.0-20091223.210034-13.jar" main="true" />
23
+ <jar href="org/easytesting/fest-swing-junit-4.3.1/fest-swing-junit-4.3.1-1.2a3.jar" />
24
+ <jar href="org/easytesting/fest-swing/fest-swing-1.2a3.jar" />
25
+ <jar href="org/easytesting/fest-util/fest-util-1.1.jar" />
26
+ <jar href="org/easytesting/fest-assert/fest-assert-1.1.jar" />
27
+ <jar href="org/easytesting/fest-reflect/fest-reflect-1.1.jar" />
28
+ <jar href="net/jcip/jcip-annotations/jcip-annotations-1.0.jar" />
29
+ <jar href="swinghelper/debug/debug-1.0.jar" />
30
+ <jar href="org/easytesting/fest-swing-junit/fest-swing-junit-1.2a3.jar" />
31
+ <jar href="commons-codec/commons-codec/commons-codec-1.3.jar" />
32
+ <jar href="org/easytesting/fest-test/fest-test-1.2.jar" />
33
+ <jar href="org/easytesting/fest-mocks/fest-mocks-1.1.jar" />
34
+ <jar href="org/easymock/easymockclassextension/easymockclassextension-2.4.jar" />
35
+ <jar href="org/easymock/easymock/easymock-2.4.jar" />
36
+ <jar href="cglib/cglib-nodep/cglib-nodep-2.1_3.jar" />
37
+ <jar href="org/easytesting/fest-assembly/fest-assembly-1.0.jar" />
38
+ <property name="maven.jnlp.version" value="gui-testing-0.1.0-20091223.210555" />
39
+ </resources>
40
+ <application-desc main-class="org.concord.testing.gui.TestHelper">
41
+ <argument>
42
+ dummy
43
+ </argument>
44
+ </application-desc>
45
+ </jnlp>
@@ -0,0 +1,55 @@
1
+ require File.join(File.dirname(__FILE__), 'spec_helper')
2
+
3
+ describe Jnlp do
4
+ before(:all) do
5
+ @first_jnlp_path = File.join(File.dirname(__FILE__), 'fixtures', 'jnlp_without_versioned_jars.jnlp')
6
+ @gem_dir = File.expand_path(File.dirname(__FILE__))
7
+ @first_jnlp = Jnlp::Jnlp.new(@first_jnlp_path)
8
+ @first_jar = @first_jnlp.jars.first
9
+ @fest_swing_jar = @first_jnlp.jars.find { |jar| jar.name == 'fest-swing-1.2a3' }
10
+ @last_jar = @first_jnlp.jars[-1]
11
+ end
12
+
13
+ it "should be named jnlp_without_versioned_jars.jnlp" do
14
+ @first_jnlp.name.should == 'jnlp_without_versioned_jars.jnlp'
15
+ end
16
+
17
+ it "should have an main_class attribute with the value 'org.concord.testing.gui.TestHelper'" do
18
+ @first_jnlp.main_class.should == 'org.concord.testing.gui.TestHelper'
19
+ end
20
+
21
+ it "should have 16 jars" do
22
+ @first_jnlp.jars.length == 16
23
+ end
24
+
25
+ # <jar href="org/concord/testing/gui/gui-0.1.0-20091223.210034-13.jar" main="true" />
26
+
27
+ it "first jar should have the correct attributes" do
28
+ @first_jar.filename_pack.should == 'gui-0.1.0-20091223.210034-13.jar.pack'
29
+ @first_jar.href.should == 'org/concord/testing/gui/gui-0.1.0-20091223.210034-13.jar'
30
+
31
+ @first_jar.version.should == ''
32
+ @first_jar.revision.should == nil
33
+ @first_jar.certificate_version.should == ''
34
+ @first_jar.date_str.should == ''
35
+
36
+ @first_jar.href_path.should == 'org/concord/testing/gui/'
37
+ @first_jar.url.should == 'http://jnlp.concord.org/dev/org/concord/testing/gui/gui-0.1.0-20091223.210034-13.jar'
38
+ @first_jar.url_pack_gz.should == 'http://jnlp.concord.org/dev/org/concord/testing/gui/gui-0.1.0-20091223.210034-13.jar.pack.gz'
39
+
40
+ @first_jar.kind.should == 'jar'
41
+
42
+ @first_jar.name.should == 'gui-0.1.0-20091223.210034-13'
43
+ @first_jar.os.should == nil
44
+ @first_jar.suffix.should == '.jar'
45
+ @first_jar.filename.should == 'gui-0.1.0-20091223.210034-13.jar'
46
+ @first_jar.filename_pack_gz.should == 'gui-0.1.0-20091223.210034-13.jar.pack.gz'
47
+ end
48
+
49
+
50
+ it "fest_swing jar should have the correct version and revision attributes" do
51
+ @fest_swing_jar.version.should == ''
52
+ @fest_swing_jar.revision.should == nil
53
+ end
54
+
55
+ end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jnlp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5.2
4
+ version: 0.0.5.3
5
5
  platform: ruby
6
6
  authors:
7
- - Stephen Bannasch
7
+ - Stephen Bannasch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
@@ -12,26 +12,26 @@ cert_chain: []
12
12
  date: 2009-12-23 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: hpricot
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - "="
22
- - !ruby/object:Gem::Version
23
- version: 0.6.164
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: hoe
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 2.4.0
34
- version:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hpricot
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - "="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.6.164
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: hoe
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 2.4.0
34
+ version:
35
35
  description: For manipulation of Java Web Start Jnlps and the resources they reference.
36
36
  email: stephen.bannasch@gmail.com
37
37
  executables: []
@@ -39,65 +39,51 @@ executables: []
39
39
  extensions: []
40
40
 
41
41
  extra_rdoc_files:
42
- - History.txt
43
- - License.txt
44
- - Manifest.txt
45
- - README.txt
46
- - website/index.txt
42
+ - History.txt
43
+ - License.txt
44
+ - Manifest.txt
45
+ - README.txt
47
46
  files:
48
- - History.txt
49
- - License.txt
50
- - Manifest.txt
51
- - README.txt
52
- - Rakefile
53
- - config/hoe.rb
54
- - config/requirements.rb
55
- - lib/jnlp.rb
56
- - lib/jnlp/version.rb
57
- - lib/jnlp/jnlp.rb
58
- - lib/jnlp/otrunk.rb
59
- - lib/jnlp/maven_jnlp.rb
60
- - script/console
61
- - script/destroy
62
- - script/generate
63
- - script/txt2html
64
- - setup.rb
65
- - spec/jnlp_spec.rb
66
- - spec/jnlp_with_certficate_versions_spec.rb
67
- - spec/spec_helper.rb
68
- - spec/fixtures/all-otrunk-snapshot-0.1.0-20090624.030355.jnlp
69
- - spec/fixtures/all-otrunk-snapshot-CURRENT_VERSION.txt
70
- - spec/fixtures/all-otrunk-snapshot-0.1.0-20091221.214313.jnlp
71
- - spec/fixtures/maven-jnlp.html
72
- - tasks/deployment.rake
73
- - tasks/environment.rake
74
- - tasks/website.rake
75
- - website/index.html
76
- - website/index.txt
77
- - website/javascripts/rounded_corners_lite.inc.js
78
- - website/stylesheets/screen.css
79
- - website/template.html.erb
47
+ - History.txt
48
+ - License.txt
49
+ - Manifest.txt
50
+ - README.txt
51
+ - Rakefile
52
+ - lib/jnlp.rb
53
+ - lib/jnlp/version.rb
54
+ - lib/jnlp/jnlp.rb
55
+ - lib/jnlp/otrunk.rb
56
+ - lib/jnlp/maven_jnlp.rb
57
+ - spec/jnlp_spec.rb
58
+ - spec/jnlp_with_certficate_versions_spec.rb
59
+ - spec/jnlp_without_versioned_jars_spec.rb
60
+ - spec/spec_helper.rb
61
+ - spec/fixtures/all-otrunk-snapshot-0.1.0-20090624.030355.jnlp
62
+ - spec/fixtures/all-otrunk-snapshot-CURRENT_VERSION.txt
63
+ - spec/fixtures/all-otrunk-snapshot-0.1.0-20091221.214313.jnlp
64
+ - spec/fixtures/jnlp_without_versioned_jars.jnlp
65
+ - spec/fixtures/maven-jnlp.html
80
66
  has_rdoc: true
81
67
  homepage: http://rubywebstart.rubyforge.org/jnlp/rdoc/
82
68
  licenses: []
83
69
 
84
70
  post_install_message:
85
71
  rdoc_options:
86
- - --main
87
- - README.txt
72
+ - --main
73
+ - README.txt
88
74
  require_paths:
89
- - lib
75
+ - lib
90
76
  required_ruby_version: !ruby/object:Gem::Requirement
91
77
  requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- version: "0"
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: "0"
95
81
  version:
96
82
  required_rubygems_version: !ruby/object:Gem::Requirement
97
83
  requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- version: "0"
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: "0"
101
87
  version:
102
88
  requirements: []
103
89
 
@@ -106,6 +92,5 @@ rubygems_version: 1.3.5
106
92
  signing_key:
107
93
  specification_version: 3
108
94
  summary: Ruby tools for working with Java Web Start JNLPs.
109
- test_files:
110
- - test/test_helper.rb
111
- - test/test_jnlp.rb
95
+ test_files: []
96
+
data/config/hoe.rb DELETED
@@ -1,71 +0,0 @@
1
- require 'jnlp/version'
2
-
3
- AUTHOR = 'Stephen Bannasch' # can also be an array of Authors
4
- EMAIL = "stephen.bannasch@gmail.com"
5
- DESCRIPTION = "For manipulation of Java Web Start Jnlps and the resources they reference."
6
- GEM_NAME = 'jnlp' # what ppl will type to install your gem
7
- RUBYFORGE_PROJECT = 'rubywebstart' # The unix name for your project
8
- HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
9
- DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
10
-
11
- @config_file = "~/.rubyforge/user-config.yml"
12
- @config = nil
13
- RUBYFORGE_USERNAME = "stepheneb"
14
- def rubyforge_username
15
- unless @config
16
- begin
17
- @config = YAML.load(File.read(File.expand_path(@config_file)))
18
- rescue
19
- puts <<-EOS
20
- ERROR: No rubyforge config file found: #{@config_file}
21
- Run 'rubyforge setup' to prepare your env for access to Rubyforge
22
- - See http://newgem.rubyforge.org/rubyforge.html for more details
23
- EOS
24
- exit
25
- end
26
- end
27
- RUBYFORGE_USERNAME.replace @config["username"]
28
- end
29
-
30
-
31
- REV = nil
32
- # UNCOMMENT IF REQUIRED:
33
- # REV = YAML.load(`svn info`)['Revision']
34
- REV = `svn info 2>/dev/null`[/Revision: (\d+)/, 1] || `git svn log --limit=1 --oneline 2>/dev/null`[/^r(\d+)/, 1] rescue nil
35
- VERS = Jnlp::VERSION::STRING + (REV ? ".#{REV}" : "")
36
- RDOC_OPTS = ['--quiet', '--title', 'jnlp documentation',
37
- "--opname", "index.html",
38
- "--line-numbers",
39
- "--main", "README",
40
- "--inline-source"]
41
-
42
- class Hoe
43
- def extra_deps
44
- @extra_deps.reject! { |x| Array(x).first == 'hoe' }
45
- @extra_deps
46
- end
47
- end
48
-
49
- # Generate all the Rake tasks
50
- # Run 'rake -T' to see list of generated tasks (from gem root directory)
51
- $hoe = Hoe.new(GEM_NAME, VERS) do |p|
52
- p.developer(AUTHOR, EMAIL)
53
- p.description = DESCRIPTION
54
- p.summary = DESCRIPTION
55
- p.url = HOMEPATH
56
- p.remote_rdoc_dir = 'jnlp' # Release to root
57
- p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
58
- p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
59
-
60
- # == Optional
61
- p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
62
- #p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
63
-
64
- #p.spec_extras = {} # A hash of extra values to set in the gemspec.
65
-
66
- end
67
-
68
- CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
69
- PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
70
- $hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
71
- $hoe.rsync_args = '-av --delete --ignore-errors'
@@ -1,15 +0,0 @@
1
- require 'fileutils'
2
- include FileUtils
3
-
4
- require 'rubygems'
5
- %w[rake hoe newgem rubigen].each do |req_gem|
6
- begin
7
- require req_gem
8
- rescue LoadError
9
- puts "This Rakefile requires the '#{req_gem}' RubyGem."
10
- puts "Installation: gem install #{req_gem} -y"
11
- exit
12
- end
13
- end
14
-
15
- $:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))
data/script/console DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # File: script/console
3
- irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
4
-
5
- libs = " -r irb/completion"
6
- # Perhaps use a console_lib to store any extra methods I may want available in the cosole
7
- # libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
8
- libs << " -r #{File.dirname(__FILE__) + '/../lib/jnlp.rb'}"
9
- puts "Loading jnlp gem"
10
- exec "#{irb} #{libs} --simple-prompt"
data/script/destroy DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/destroy'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Destroy.new.run(ARGV)
data/script/generate DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/generate'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Generate.new.run(ARGV)