pa 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.travis.yml +0 -5
- data/CHANGELOG +6 -0
- data/Gemfile.lock +11 -12
- data/README.md +4 -9
- data/lib/pa.rb +191 -193
- data/lib/pa/cmd.rb +18 -9
- data/lib/pa/directory.rb +15 -17
- data/lib/pa/path.rb +126 -76
- data/lib/pa/state.rb +22 -24
- data/lib/pa/util.rb +114 -17
- data/lib/pa/version.rb +1 -1
- data/pa.gemspec +1 -0
- data/pa.watchr +3 -3
- data/spec/data/tmp/.gitkeep +0 -0
- data/spec/pa/cmd_spec.rb +10 -12
- data/spec/pa/directory_spec.rb +6 -11
- data/spec/pa/path_spec.rb +48 -42
- data/spec/pa_spec.rb +168 -155
- data/spec/spec_helper.rb +22 -20
- metadata +5 -7
- data/spec/pa/util_spec.rb +0 -13
data/spec/spec_helper.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
require "
|
2
|
-
require "stringio"
|
1
|
+
require "pd"
|
3
2
|
require "pa"
|
4
3
|
|
5
|
-
$
|
4
|
+
$spec_dir = File.expand_path("..", __FILE__)
|
5
|
+
$spec_data = File.join($spec_dir, "data")
|
6
|
+
$spec_tmp = File.join($spec_dir, "tmp")
|
6
7
|
|
7
8
|
RSpec.configure do |config|
|
8
|
-
def capture(stream)
|
9
|
+
def capture(stream=:stdout)
|
9
10
|
begin
|
10
11
|
stream = stream.to_s
|
11
12
|
eval "$#{stream} = StringIO.new"
|
@@ -21,24 +22,25 @@ RSpec.configure do |config|
|
|
21
22
|
alias :silence :capture
|
22
23
|
end
|
23
24
|
|
24
|
-
module
|
25
|
-
|
25
|
+
module RSpec
|
26
|
+
module Core
|
27
|
+
module DSL
|
28
|
+
def xdescribe(*args, &blk)
|
29
|
+
describe *args do
|
30
|
+
pending
|
31
|
+
end
|
32
|
+
end
|
26
33
|
|
27
|
-
|
28
|
-
describe *args do
|
29
|
-
pending "xxxxxxxxx"
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
def xcontext(*args, &blk)
|
34
|
-
context *args do
|
35
|
-
pending "xxxxxxxxx"
|
34
|
+
alias xcontext xdescribe
|
36
35
|
end
|
37
36
|
end
|
37
|
+
end
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
39
|
+
def public_all_methods(*klasses)
|
40
|
+
klasses.each {|klass|
|
41
|
+
klass.class_eval {
|
42
|
+
public *(self.protected_instance_methods(false) + self.private_instance_methods(false))
|
43
|
+
public_class_method *(self.protected_methods(false) + self.private_methods(false))
|
44
|
+
}
|
45
|
+
}
|
44
46
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pd
|
@@ -38,6 +38,7 @@ files:
|
|
38
38
|
- .gitignore
|
39
39
|
- .rspec
|
40
40
|
- .travis.yml
|
41
|
+
- CHANGELOG
|
41
42
|
- Gemfile
|
42
43
|
- Gemfile.lock
|
43
44
|
- README.md
|
@@ -52,11 +53,11 @@ files:
|
|
52
53
|
- lib/pa/version.rb
|
53
54
|
- pa.gemspec
|
54
55
|
- pa.watchr
|
56
|
+
- spec/data/tmp/.gitkeep
|
55
57
|
- spec/pa/cmd_spec.rb
|
56
58
|
- spec/pa/directory_spec.rb
|
57
59
|
- spec/pa/path_spec.rb
|
58
60
|
- spec/pa/state_spec.rb
|
59
|
-
- spec/pa/util_spec.rb
|
60
61
|
- spec/pa_spec.rb
|
61
62
|
- spec/spec_helper.rb
|
62
63
|
homepage: http://github.com/GutenYe/pa
|
@@ -71,9 +72,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
71
72
|
- - ! '>='
|
72
73
|
- !ruby/object:Gem::Version
|
73
74
|
version: '0'
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
hash: 1635973500048505799
|
77
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
76
|
none: false
|
79
77
|
requirements:
|
@@ -82,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
80
|
version: '0'
|
83
81
|
requirements: []
|
84
82
|
rubyforge_project: xx
|
85
|
-
rubygems_version: 1.8.
|
83
|
+
rubygems_version: 1.8.24
|
86
84
|
signing_key:
|
87
85
|
specification_version: 3
|
88
86
|
summary: a path library for Ruby
|
data/spec/pa/util_spec.rb
DELETED