p4ruby 1.0.1 → 1.0.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/Rakefile +8 -8
- data/install.rb +4 -4
- data/p4ruby.gemspec +1 -1
- metadata +3 -3
data/Rakefile
CHANGED
@@ -3,21 +3,17 @@ require 'rake/gempackagetask'
|
|
3
3
|
require 'rake/rdoctask'
|
4
4
|
require 'rake/contrib/rubyforgepublisher'
|
5
5
|
|
6
|
-
require 'rbconfig'
|
7
|
-
|
8
6
|
gemspec = eval(File.read("p4ruby.gemspec"))
|
9
7
|
installer = './install.rb'
|
10
8
|
readme = "README"
|
11
9
|
|
12
|
-
ruby = File.join(
|
13
|
-
Config::CONFIG["bindir"],
|
14
|
-
Config::CONFIG["RUBY_INSTALL_NAME"])
|
15
|
-
|
16
10
|
#
|
17
11
|
# default task compiles for the gem
|
18
12
|
#
|
19
13
|
task :default do
|
20
|
-
|
14
|
+
ARGV.clear
|
15
|
+
ARGV.push "--gem"
|
16
|
+
load installer
|
21
17
|
end
|
22
18
|
|
23
19
|
task :clean => :clobber do
|
@@ -25,9 +21,13 @@ task :clean => :clobber do
|
|
25
21
|
end
|
26
22
|
|
27
23
|
task :update_docs do
|
24
|
+
ruby_path = File.join(
|
25
|
+
Config::CONFIG["bindir"],
|
26
|
+
Config::CONFIG["RUBY_INSTALL_NAME"])
|
27
|
+
|
28
28
|
help = "--help"
|
29
29
|
command = "ruby #{File.basename(installer)} #{help}"
|
30
|
-
output = `#{
|
30
|
+
output = `#{ruby_path} #{installer} #{help}`
|
31
31
|
|
32
32
|
# insert help output into README
|
33
33
|
replace_file(readme) { |contents|
|
data/install.rb
CHANGED
@@ -41,7 +41,7 @@ class Installer
|
|
41
41
|
parser.on(
|
42
42
|
"--gem",
|
43
43
|
"Gem configuration (for the gem installer).") {
|
44
|
-
@s.
|
44
|
+
@s.gem_config = true
|
45
45
|
}
|
46
46
|
parser.on(
|
47
47
|
"--uninstall",
|
@@ -73,7 +73,7 @@ class Installer
|
|
73
73
|
else
|
74
74
|
fetch
|
75
75
|
build
|
76
|
-
|
76
|
+
unix_install
|
77
77
|
end
|
78
78
|
else
|
79
79
|
platform_fail
|
@@ -301,8 +301,8 @@ class Installer
|
|
301
301
|
}
|
302
302
|
end
|
303
303
|
|
304
|
-
def
|
305
|
-
if @s.
|
304
|
+
def unix_install
|
305
|
+
if @s.gem_config
|
306
306
|
rb_file = Pathname.new("lib") + "P4.rb"
|
307
307
|
rm_f(rb_file)
|
308
308
|
mkdir_p(File.dirname(rb_file))
|
data/p4ruby.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: p4ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perforce Software (ruby gem by James M. Lawrence)
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-10-
|
12
|
+
date: 2008-10-03 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
requirements: []
|
57
57
|
|
58
58
|
rubyforge_project: p4ruby
|
59
|
-
rubygems_version: 1.
|
59
|
+
rubygems_version: 1.2.0
|
60
60
|
signing_key:
|
61
61
|
specification_version: 2
|
62
62
|
summary: Ruby interface to the Perforce API
|