p4ruby 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README +7 -5
- data/Rakefile +12 -12
- data/install.rb +1 -1
- data/p4ruby.gemspec +7 -9
- metadata +17 -6
data/README
CHANGED
@@ -11,8 +11,9 @@ Or if you are installing from the regular (non-gem) package,
|
|
11
11
|
|
12
12
|
% ruby install.rb
|
13
13
|
|
14
|
-
This downloads P4Ruby and the Perforce API, compiles P4Ruby,
|
15
|
-
installs it.
|
14
|
+
This installer downloads P4Ruby and the Perforce API, compiles P4Ruby,
|
15
|
+
and installs it. On Windows the Perforce P4Ruby Windows installer is
|
16
|
+
downloaded and executed instead. Some options are available,
|
16
17
|
|
17
18
|
% ruby install.rb --help
|
18
19
|
|
@@ -23,15 +24,16 @@ installs it. Some options are available,
|
|
23
24
|
--list-platforms List available platforms for the given version.
|
24
25
|
--gem Gem configuration (for the gem installer).
|
25
26
|
--uninstall Uninstall.
|
26
|
-
--local Use the
|
27
|
+
--local Use the files in work/distfiles (manual download).
|
27
28
|
|
28
29
|
== Links
|
29
30
|
|
30
|
-
* Download (this installer only): http://rubyforge.org/frs/?group_id=6957
|
31
|
-
* Simplified wrapper for P4Ruby: http://perforce.rubyforge.org
|
32
31
|
* P4Ruby documentation 2008.1: http://perforce.com/perforce/doc.081/manuals/p4script/p4script.pdf
|
33
32
|
* Perforce documentation: http://perforce.com/perforce/technical.html
|
33
|
+
|
34
|
+
* Download (this installer only): http://rubyforge.org/frs/?group_id=6957
|
34
35
|
* Repository (this installer only): http://github.com/quix/p4ruby
|
36
|
+
* Simplified wrapper for P4Ruby: http://perforce.rubyforge.org
|
35
37
|
|
36
38
|
== Credits
|
37
39
|
|
data/Rakefile
CHANGED
@@ -3,9 +3,9 @@ require 'rake/gempackagetask'
|
|
3
3
|
require 'rake/rdoctask'
|
4
4
|
require 'rake/contrib/rubyforgepublisher'
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
INSTALLER = './install.rb'
|
7
|
+
README = "README"
|
8
|
+
GEMSPEC = eval(File.read("p4ruby.gemspec"))
|
9
9
|
|
10
10
|
#
|
11
11
|
# default task compiles for the gem
|
@@ -13,11 +13,11 @@ readme = "README"
|
|
13
13
|
task :default do
|
14
14
|
ARGV.clear
|
15
15
|
ARGV.push "--gem"
|
16
|
-
load
|
16
|
+
load INSTALLER
|
17
17
|
end
|
18
18
|
|
19
19
|
task :clean => :clobber do
|
20
|
-
rm_rf ["work", "lib
|
20
|
+
rm_rf ["work", "lib", "ext"]
|
21
21
|
end
|
22
22
|
|
23
23
|
task :update_docs do
|
@@ -26,11 +26,11 @@ task :update_docs do
|
|
26
26
|
Config::CONFIG["RUBY_INSTALL_NAME"])
|
27
27
|
|
28
28
|
help = "--help"
|
29
|
-
command = "ruby #{File.basename(
|
30
|
-
output = `#{ruby_path} #{
|
29
|
+
command = "ruby #{File.basename(INSTALLER)} #{help}"
|
30
|
+
output = `#{ruby_path} #{INSTALLER} #{help}`
|
31
31
|
|
32
32
|
# insert help output into README
|
33
|
-
replace_file(
|
33
|
+
replace_file(README) { |contents|
|
34
34
|
contents.sub(%r!#{command}.*?==!m) {
|
35
35
|
command + "\n\n " +
|
36
36
|
output + "\n=="
|
@@ -45,13 +45,13 @@ task :package => [:clean, :doc]
|
|
45
45
|
task :gem => :clean
|
46
46
|
|
47
47
|
Rake::RDocTask.new { |t|
|
48
|
-
t.main =
|
49
|
-
t.rdoc_files.include([
|
48
|
+
t.main = README
|
49
|
+
t.rdoc_files.include([README])
|
50
50
|
t.rdoc_dir = "html"
|
51
|
-
t.title = "P4Ruby: #{
|
51
|
+
t.title = "P4Ruby: #{GEMSPEC.summary}"
|
52
52
|
}
|
53
53
|
|
54
|
-
Rake::GemPackageTask.new(
|
54
|
+
Rake::GemPackageTask.new(GEMSPEC) { |t|
|
55
55
|
t.need_tar = true
|
56
56
|
}
|
57
57
|
|
data/install.rb
CHANGED
data/p4ruby.gemspec
CHANGED
@@ -1,30 +1,28 @@
|
|
1
1
|
|
2
2
|
Gem::Specification.new { |t|
|
3
3
|
t.name = "p4ruby"
|
4
|
-
t.version = "1.0.
|
4
|
+
t.version = "1.0.7"
|
5
5
|
t.summary = "Ruby interface to the Perforce API"
|
6
6
|
t.author = "Perforce Software (ruby gem by James M. Lawrence)"
|
7
7
|
t.email = "quixoticsycophant@gmail.com"
|
8
8
|
t.homepage = "p4ruby.rubyforge.org"
|
9
9
|
t.rubyforge_project = "p4ruby"
|
10
10
|
t.extensions << "Rakefile"
|
11
|
+
t.add_dependency "rake"
|
11
12
|
t.require_paths << "ext"
|
12
13
|
|
13
|
-
t.files = %w
|
14
|
+
t.files = %w[
|
14
15
|
README
|
15
16
|
Rakefile
|
16
17
|
install.rb
|
17
18
|
p4ruby.gemspec
|
18
|
-
|
19
|
+
]
|
19
20
|
|
20
|
-
rdoc_exclude = %w{
|
21
|
-
P4.rb
|
22
|
-
install\.rb
|
23
|
-
}
|
24
21
|
t.has_rdoc = true
|
25
22
|
t.extra_rdoc_files = ["README"]
|
26
|
-
t.
|
27
|
-
|
23
|
+
rdoc_exclude = t.files - t.extra_rdoc_files
|
24
|
+
t.rdoc_options +=
|
25
|
+
["--title", "P4Ruby: #{t.summary}", "--main", "README"] +
|
28
26
|
rdoc_exclude.inject(Array.new) { |acc, pattern|
|
29
27
|
acc + ["--exclude", pattern]
|
30
28
|
}
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perforce Software (ruby gem by James M. Lawrence)
|
@@ -9,10 +9,19 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-10-
|
12
|
+
date: 2008-10-05 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rake
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
16
25
|
description:
|
17
26
|
email: quixoticsycophant@gmail.com
|
18
27
|
executables: []
|
@@ -35,9 +44,11 @@ rdoc_options:
|
|
35
44
|
- --main
|
36
45
|
- README
|
37
46
|
- --exclude
|
38
|
-
-
|
47
|
+
- Rakefile
|
39
48
|
- --exclude
|
40
|
-
- install
|
49
|
+
- install.rb
|
50
|
+
- --exclude
|
51
|
+
- p4ruby.gemspec
|
41
52
|
require_paths:
|
42
53
|
- lib
|
43
54
|
- ext
|