Neurogami-roir 1.3.3.1 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Roir 1.3.3.1
1
+ Rawr 1.3.4
2
2
  =============
3
3
 
4
4
  The avant-garde fork of Rawr
data/Rakefile CHANGED
@@ -27,8 +27,8 @@ PROJ.gem.dependencies << "rubyzip"
27
27
  task :default => 'spec'
28
28
 
29
29
  task :update_version_readme do
30
- readme = IO.readlines( 'README.txt')
31
- File.open( 'README.txt', 'w' ) { |f|
30
+ readme = IO.readlines( 'README.md')
31
+ File.open( 'README.md', 'w' ) { |f|
32
32
  f << "Rawr #{Rawr::VERSION}\n"
33
33
  readme.shift
34
34
  f << readme
data/bin/roir CHANGED
@@ -5,6 +5,8 @@ require 'fileutils'
5
5
  require 'rubygems'
6
6
  require 'rawr_version'
7
7
  require 'generator'
8
+ require 'pp'
9
+
8
10
 
9
11
  def help(message = nil)
10
12
  puts message + "\\\n-----------------------------------\\\n" unless message.nil?
@@ -147,12 +149,19 @@ else
147
149
  end
148
150
  end
149
151
 
150
- if File.exist? config_file.join("/")
151
- puts "Configuration file '#{config_file.join("/")}' exists, skipping"
152
+ build_configuration_file = config_file.join("/")
153
+
154
+ if File.exist? build_configuration_file
155
+ puts "Configuration file '#{build_configuration_file}' exists, skipping"
152
156
  else
153
- puts "Creating Rawr configuration file #{config_file.join("/")}"
154
- FileUtils.mkdir_p(config_file[0...-1].join("/"))
155
- Rawr::Generator.create_default_config_file(config_file.join("/"), java_class.join("."))
157
+ puts "Creating Rawr configuration file #{build_configuration_file}"
158
+ FileUtils.mkdir_p(config_file[0...-1].join("/")) # wtf?
159
+
160
+ # Assumes you have at least a directory name, and the build_configuration file
161
+ # Does this work on Windows?
162
+ # Seems goofy to generate a config file in some top-level dir ... Let's assume that's a no-go option
163
+ default_project_name = config_file[-2].to_s.strip
164
+ Rawr::Generator.create_default_config_file(build_configuration_file, java_class.join("."), config_file[-2])
156
165
  end
157
166
 
158
167
  resolved_package = java_class[0...-1].join(".")
data/lib/generator.rb CHANGED
@@ -89,11 +89,13 @@ ENDL
89
89
  end
90
90
  end
91
91
 
92
- def self.create_default_config_file(config_path, java_class)
92
+ def self.create_default_config_file(config_path, java_class, project_name='ChangeMe')
93
+ warn "Creating configuration file, setting project name to '#{project_name}'"
94
+
93
95
  File.open(config_path, "w+") do |config_file|
94
96
  config_file << <<-ENDL
95
97
  configuration do |c|
96
- c.project_name = 'ChangeMe'
98
+ c.project_name = '#{project_name}'
97
99
  c.output_dir = 'package'
98
100
  c.main_ruby_file = 'main'
99
101
  c.main_java_file = 'org.rubyforge.rawr.Main'
data/lib/rawr_version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rawr
2
- VERSION = "1.3.3.1"
2
+ VERSION = "1.3.4"
3
3
  end
data/tasks/setup.rb CHANGED
@@ -26,7 +26,7 @@ PROJ = OpenStruct.new(
26
26
  :libs => [],
27
27
  :history_file => 'History.txt',
28
28
  :manifest_file => 'Manifest.txt',
29
- :readme_file => 'README.txt',
29
+ :readme_file => 'README.md',
30
30
 
31
31
  # Announce
32
32
  :ann => OpenStruct.new(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Neurogami-roir
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3.1
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Britt
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-20 00:00:00 -07:00
12
+ date: 2009-06-05 00:00:00 -07:00
13
13
  default_executable: roir
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -22,7 +22,7 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: "0"
24
24
  version:
25
- description: ""
25
+ description: The avant-garde fork of rawr, the JRuby packaging tool.
26
26
  email: james@nneurogami.com
27
27
  executables:
28
28
  - roir