p4ruby 1.0.7 → 1.0.8

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.
Files changed (5) hide show
  1. data/CHANGES +11 -0
  2. data/Rakefile +0 -72
  3. data/install.rb +1 -1
  4. data/p4ruby.gemspec +2 -1
  5. metadata +6 -3
data/CHANGES ADDED
@@ -0,0 +1,11 @@
1
+
2
+ = p4ruby
3
+
4
+ == version 1.0.8
5
+
6
+ * Compensate for Perforce ftp server directory changes
7
+
8
+ == version 1.0.7
9
+
10
+ * First release.
11
+
data/Rakefile CHANGED
@@ -1,11 +1,5 @@
1
1
 
2
- require 'rake/gempackagetask'
3
- require 'rake/rdoctask'
4
- require 'rake/contrib/rubyforgepublisher'
5
-
6
2
  INSTALLER = './install.rb'
7
- README = "README"
8
- GEMSPEC = eval(File.read("p4ruby.gemspec"))
9
3
 
10
4
  #
11
5
  # default task compiles for the gem
@@ -15,69 +9,3 @@ task :default do
15
9
  ARGV.push "--gem"
16
10
  load INSTALLER
17
11
  end
18
-
19
- task :clean => :clobber do
20
- rm_rf ["work", "lib", "ext"]
21
- end
22
-
23
- task :update_docs do
24
- ruby_path = File.join(
25
- Config::CONFIG["bindir"],
26
- Config::CONFIG["RUBY_INSTALL_NAME"])
27
-
28
- help = "--help"
29
- command = "ruby #{File.basename(INSTALLER)} #{help}"
30
- output = `#{ruby_path} #{INSTALLER} #{help}`
31
-
32
- # insert help output into README
33
- replace_file(README) { |contents|
34
- contents.sub(%r!#{command}.*?==!m) {
35
- command + "\n\n " +
36
- output + "\n=="
37
- }
38
- }
39
- end
40
-
41
- task :doc => :update_docs
42
- task :doc => :rdoc
43
-
44
- task :package => [:clean, :doc]
45
- task :gem => :clean
46
-
47
- Rake::RDocTask.new { |t|
48
- t.main = README
49
- t.rdoc_files.include([README])
50
- t.rdoc_dir = "html"
51
- t.title = "P4Ruby: #{GEMSPEC.summary}"
52
- }
53
-
54
- Rake::GemPackageTask.new(GEMSPEC) { |t|
55
- t.need_tar = true
56
- }
57
-
58
- task :publish => :doc do
59
- Rake::RubyForgePublisher.new('p4ruby', 'quix').upload
60
- end
61
-
62
- task :release => [:package, :publish]
63
-
64
- ##################################################
65
- # util
66
-
67
- unless respond_to? :tap
68
- module Kernel
69
- def tap
70
- yield self
71
- self
72
- end
73
- end
74
- end
75
-
76
- def replace_file(file)
77
- old_contents = File.read(file)
78
- yield(old_contents).tap { |new_contents|
79
- File.open(file, "w") { |output|
80
- output.print(new_contents)
81
- }
82
- }
83
- end
data/install.rb CHANGED
@@ -148,7 +148,7 @@ class Installer
148
148
  @s.version_dir + "bin.#{@s.platform}" + @s.p4api.basename
149
149
  }
150
150
  @s.p4ruby.attribute(:remote) {
151
- @s.version_dir + "tools" + @s.p4ruby.basename
151
+ @s.version_dir + "bin.tools" + @s.p4ruby.basename
152
152
  }
153
153
 
154
154
  @s.attribute(:ftp) {
data/p4ruby.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new { |t|
3
3
  t.name = "p4ruby"
4
- t.version = "1.0.7"
4
+ t.version = "1.0.8"
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"
@@ -13,6 +13,7 @@ Gem::Specification.new { |t|
13
13
 
14
14
  t.files = %w[
15
15
  README
16
+ CHANGES
16
17
  Rakefile
17
18
  install.rb
18
19
  p4ruby.gemspec
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.7
4
+ version: 1.0.8
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-05 00:00:00 -04:00
12
+ date: 2009-04-01 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -32,6 +32,7 @@ extra_rdoc_files:
32
32
  - README
33
33
  files:
34
34
  - README
35
+ - CHANGES
35
36
  - Rakefile
36
37
  - install.rb
37
38
  - p4ruby.gemspec
@@ -44,6 +45,8 @@ rdoc_options:
44
45
  - --main
45
46
  - README
46
47
  - --exclude
48
+ - CHANGES
49
+ - --exclude
47
50
  - Rakefile
48
51
  - --exclude
49
52
  - install.rb
@@ -67,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
70
  requirements: []
68
71
 
69
72
  rubyforge_project: p4ruby
70
- rubygems_version: 1.3.0
73
+ rubygems_version: 1.3.1
71
74
  signing_key:
72
75
  specification_version: 2
73
76
  summary: Ruby interface to the Perforce API