subwrap 0.3.10 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
- data/ProjectInfo.rb +3 -3
- data/bin/command_completion_for_subwrap +1 -1
- data/bin/subwrap +1 -1
- data/bin/svn +1 -1
- data/lib/subwrap.rb +1 -1
- data/lib/subwrap/subversion.rb +10 -7
- data/lib/subwrap/subversion_extensions.rb +4 -1
- data/lib/subwrap/svn_command.rb +21 -16
- data/test/subversion_extensions_test.rb +5 -5
- data/test/svn_command_test.rb +4 -4
- data/test/test_helper.rb +2 -2
- metadata +12 -12
data/ProjectInfo.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'facets/
|
2
|
+
require 'facets/filelist' if !defined?(FileList)
|
3
3
|
|
4
4
|
module Project
|
5
5
|
PrettyName = "Subwrap: Enhanced Subversion Command"
|
6
6
|
Name = "subwrap"
|
7
7
|
RubyForgeName = "subwrap"
|
8
|
-
Version = "0.3.
|
8
|
+
Version = "0.3.12"
|
9
9
|
Specification = Gem::Specification.new do |s|
|
10
10
|
s.name = Project::Name
|
11
11
|
s.summary = "A nifty wrapper command for Subversion's command-line svn client"
|
@@ -52,6 +52,6 @@ after selecting an option from the menu, but it will work without it.
|
|
52
52
|
s.executables = ['command_completion_for_subwrap', '_subwrap_post_install', 'subwrap']
|
53
53
|
#s.executables = "svn" # Doing this actually causes RubyGems to override the existing /usr/bin/svn during install. Not good!
|
54
54
|
end
|
55
|
-
end
|
55
|
+
end unless defined?(Project)
|
56
56
|
|
57
57
|
|
data/bin/subwrap
CHANGED
data/bin/svn
CHANGED
data/lib/subwrap.rb
CHANGED
data/lib/subwrap/subversion.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# Tested by: ../../test/subversion_test.rb
|
2
|
+
#$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..')
|
2
3
|
$loaded ||= {}; if !$loaded[File.expand_path(__FILE__)]; $loaded[File.expand_path(__FILE__)] = true;
|
3
4
|
|
4
5
|
require 'fileutils'
|
@@ -7,14 +8,16 @@ require 'rexml/xpath'
|
|
7
8
|
require 'rubygems'
|
8
9
|
|
9
10
|
gem 'facets'
|
10
|
-
|
11
|
-
require 'facets/
|
12
|
-
require 'facets/
|
13
|
-
require 'facets/
|
14
|
-
require 'facets/
|
15
|
-
require 'facets/
|
11
|
+
silence_warnings do
|
12
|
+
require 'facets/kernel/silence'
|
13
|
+
require 'facets/kernel/load'
|
14
|
+
require 'facets/enumerable/uniq_by'
|
15
|
+
require 'facets/fileutils/which'
|
16
|
+
require 'facets/fileutils/whereis'
|
17
|
+
end
|
16
18
|
|
17
19
|
gem 'quality_extensions'
|
20
|
+
require 'quality_extensions/module/initializer'
|
18
21
|
require 'quality_extensions/kernel/windows_platform'
|
19
22
|
|
20
23
|
|
@@ -22,7 +25,7 @@ require 'quality_extensions/kernel/windows_platform'
|
|
22
25
|
#gem 'activesupport' # mattr_accessor
|
23
26
|
#require 'active_support'
|
24
27
|
#require 'active_support/core_ext/module/attribute_accessors'
|
25
|
-
#require 'facets/
|
28
|
+
#require 'facets/class/cattr'
|
26
29
|
gem 'quality_extensions'
|
27
30
|
require 'quality_extensions/module/attribute_accessors'
|
28
31
|
require 'quality_extensions/module/guard_method'
|
@@ -3,7 +3,10 @@
|
|
3
3
|
gem 'colored'
|
4
4
|
require 'colored'
|
5
5
|
|
6
|
-
require 'facets/
|
6
|
+
require 'facets/class_extension'
|
7
|
+
#require '/var/lib/gems/1.8/gems/xfacets-1.8.54/lib/facets/core/module/class_extension.rb'
|
8
|
+
|
9
|
+
require 'subwrap/svn_command'
|
7
10
|
|
8
11
|
class Array
|
9
12
|
def to_regexp_char_class
|
data/lib/subwrap/svn_command.rb
CHANGED
@@ -2,19 +2,20 @@
|
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
4
|
|
5
|
-
|
5
|
+
require 'facets'
|
6
|
+
#gem 'facets', '>=1.8.51'
|
6
7
|
#require 'facets/more/command' # Not until they include my changes
|
7
|
-
require 'facets/
|
8
|
-
require 'facets/
|
9
|
-
require 'facets/
|
10
|
-
require 'facets/
|
11
|
-
require 'facets/
|
12
|
-
require 'facets/
|
13
|
-
require 'facets/
|
14
|
-
require 'facets/
|
15
|
-
require 'facets/
|
16
|
-
require 'facets/
|
17
|
-
require 'facets/
|
8
|
+
#require 'facets/kernel/load'
|
9
|
+
#require 'facets/kernel/with' # returning
|
10
|
+
#require 'facets/enumerable/every'
|
11
|
+
#require 'facets/array/select' # select!
|
12
|
+
#require 'facets/string/margin'
|
13
|
+
#require 'facets/string/lines'
|
14
|
+
#require 'facets/string/index_all'
|
15
|
+
#require 'facets/string/to_re'
|
16
|
+
#require 'facets/string/to_rx'
|
17
|
+
#require 'facets/ruby' # to_proc
|
18
|
+
#require 'facets/kernel/in'
|
18
19
|
|
19
20
|
gem 'quality_extensions', '>=0.0.3'
|
20
21
|
require 'quality_extensions/enumerable/enum'
|
@@ -32,10 +33,11 @@ require 'stringio'
|
|
32
33
|
gem 'colored'
|
33
34
|
require 'colored' # Lets us do "a".white.bold instead of "\033[1ma\033[0m"
|
34
35
|
|
35
|
-
|
36
|
-
require_local '
|
37
|
-
require_local '
|
38
|
-
|
36
|
+
silence_warnings do
|
37
|
+
require_local '../../ProjectInfo'
|
38
|
+
require_local 'subversion'
|
39
|
+
require_local 'subversion_extensions'
|
40
|
+
end
|
39
41
|
|
40
42
|
begin
|
41
43
|
gem 'termios'
|
@@ -134,6 +136,7 @@ def confirm(question, options = ['Yes', 'No'])
|
|
134
136
|
end
|
135
137
|
|
136
138
|
#Subversion.extend(Subversion::Extensions)
|
139
|
+
require 'subwrap/subversion_extensions'
|
137
140
|
module Subversion
|
138
141
|
include(Subversion::Extensions)
|
139
142
|
end
|
@@ -158,6 +161,7 @@ end
|
|
158
161
|
module Subversion
|
159
162
|
class SvnCommand
|
160
163
|
|
164
|
+
silence_warnings do
|
161
165
|
# Constants
|
162
166
|
C_standard_remote_command_options = {
|
163
167
|
[:__username] => 1,
|
@@ -173,6 +177,7 @@ module Subversion
|
|
173
177
|
[:__editor_cmd] => 1,
|
174
178
|
[:__encoding] => 1,
|
175
179
|
}
|
180
|
+
end
|
176
181
|
|
177
182
|
# This shouldn't be necessary. Console::Command should allow introspection. But until such time...
|
178
183
|
@@subcommand_list = [
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/test_helper'
|
2
|
-
require 'subversion_extensions'
|
2
|
+
require 'subwrap/subversion_extensions'
|
3
3
|
|
4
4
|
Subversion.color = false # Makes testing simpler. We can just test that the *colorization* features are working via *manual* tests.
|
5
5
|
|
@@ -33,7 +33,7 @@ ________________________________________ externals _____________________________
|
|
33
33
|
M applications/underlord/vendor/plugins/nifty/tasks/shared/base.rake
|
34
34
|
End
|
35
35
|
|
36
|
-
assert_equal expected, out = Subversion
|
36
|
+
assert_equal expected, out = Subversion.status_lines_filter( input ), out.inspect
|
37
37
|
end
|
38
38
|
|
39
39
|
def test_update_lines_filter
|
@@ -53,7 +53,7 @@ U gemables/calculator/lib/calculator_extensions.rb
|
|
53
53
|
U plugins/flubber/tasks/shared/blah.rb
|
54
54
|
End
|
55
55
|
|
56
|
-
assert_equal expected, out = Subversion
|
56
|
+
assert_equal expected, out = Subversion.update_lines_filter( input ), out.inspect
|
57
57
|
end
|
58
58
|
|
59
59
|
def test_unadded_filter
|
@@ -66,7 +66,7 @@ End
|
|
66
66
|
? gemables/calculator/lib/calculator_extensions.rb
|
67
67
|
End
|
68
68
|
|
69
|
-
assert_equal expected, out = Subversion
|
70
|
-
assert_equal ['gemables/calculator/lib/calculator_extensions.rb'], out = Subversion
|
69
|
+
assert_equal expected, out = Subversion.unadded_lines_filter( input ), out.inspect
|
70
|
+
assert_equal ['gemables/calculator/lib/calculator_extensions.rb'], out = Subversion.unadded_filter( input ), out.inspect
|
71
71
|
end
|
72
72
|
end
|
data/test/svn_command_test.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
$mock_subversion = true
|
2
2
|
require File.dirname(__FILE__) + '/test_helper'
|
3
3
|
require_local '../lib/subwrap/svn_command.rb'
|
4
|
-
require 'facets/
|
4
|
+
require 'facets/string/to_re'
|
5
5
|
require 'yaml'
|
6
|
-
require 'facets/
|
6
|
+
require 'facets/module/alias'
|
7
7
|
require 'quality_extensions/colored/toggleability'
|
8
8
|
require 'quality_extensions/regexp/join'
|
9
9
|
|
@@ -523,8 +523,8 @@ class SvnViewCommitsTest < BaseSvnCommandTest
|
|
523
523
|
|+++ lib/svn_command.rb (revision 2342)
|
524
524
|
|@@ -3,9 +3,11 @@
|
525
525
|
| require 'facets/more/command'
|
526
|
-
| require 'facets/
|
527
|
-
| require 'facets/
|
526
|
+
| require 'facets/string/margin'
|
527
|
+
| require 'facets/kernel/load'
|
528
528
|
|+require 'extensions/symbol'
|
529
529
|
| require 'pp'
|
530
530
|
| require 'termios'
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.4
|
3
3
|
specification_version: 1
|
4
4
|
name: subwrap
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.
|
7
|
-
date:
|
6
|
+
version: 0.3.12
|
7
|
+
date: 2008-06-11 00:00:00 -07:00
|
8
8
|
summary: A nifty wrapper command for Subversion's command-line svn client
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -39,26 +39,26 @@ post_install_message: |
|
|
39
39
|
authors:
|
40
40
|
- Tyler Rick
|
41
41
|
files:
|
42
|
-
- lib/subwrap.rb
|
43
|
-
- lib/subwrap/svn_command.rb
|
44
|
-
- lib/subwrap/subversion.rb
|
45
42
|
- lib/subwrap/subversion_extensions.rb
|
46
|
-
-
|
43
|
+
- lib/subwrap/subversion.rb
|
44
|
+
- lib/subwrap/svn_command.rb
|
45
|
+
- lib/subwrap.rb
|
47
46
|
- test/subversion_extensions_test.rb
|
48
|
-
- test/subversion_test.rb
|
49
47
|
- test/svn_command_test.rb
|
50
|
-
-
|
48
|
+
- test/subversion_test.rb
|
49
|
+
- test/test_helper.rb
|
51
50
|
- bin/subwrap
|
52
|
-
- bin/
|
51
|
+
- bin/rscm_test
|
53
52
|
- bin/command_completion_for_subwrap
|
54
53
|
- bin/svn
|
54
|
+
- bin/_subwrap_post_install
|
55
55
|
- ProjectInfo.rb
|
56
56
|
- Readme
|
57
57
|
test_files:
|
58
|
-
- test/test_helper.rb
|
59
58
|
- test/subversion_extensions_test.rb
|
60
|
-
- test/subversion_test.rb
|
61
59
|
- test/svn_command_test.rb
|
60
|
+
- test/subversion_test.rb
|
61
|
+
- test/test_helper.rb
|
62
62
|
rdoc_options:
|
63
63
|
- --title
|
64
64
|
- subwrap
|