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 +1 -1
- data/Rakefile +2 -2
- data/bin/roir +14 -5
- data/lib/generator.rb +4 -2
- data/lib/rawr_version.rb +1 -1
- data/tasks/setup.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
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.
|
31
|
-
File.open( 'README.
|
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
|
-
|
151
|
-
|
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 #{
|
154
|
-
FileUtils.mkdir_p(config_file[0...-1].join("/"))
|
155
|
-
|
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 = '
|
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
data/tasks/setup.rb
CHANGED
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.
|
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
|
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
|