pa 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,12 @@
1
- require "bundler/setup"
2
- require "stringio"
1
+ require "pd"
3
2
  require "pa"
4
3
 
5
- $specdir = Pa.dir(__FILE__)
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 Kernel
25
- private
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
- def xdescribe(*args, &blk)
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
- def xit(*args, &blk)
40
- it *args do
41
- pending "xxxxxxxx"
42
- end
43
- end
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.0
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 00:00:00.000000000 Z
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.21
83
+ rubygems_version: 1.8.24
86
84
  signing_key:
87
85
  specification_version: 3
88
86
  summary: a path library for Ruby
@@ -1,13 +0,0 @@
1
- require "spec_helper"
2
-
3
- Util = Pa::Util
4
-
5
- describe Util do
6
- describe ".join" do
7
- it %~join(".", "foo") to "foo", not "./foo"~ do
8
- Util.join(".", "a", "b").should == "a/b"
9
- Util.join("a", "b", "c").should == "a/b/c"
10
- end
11
- end
12
- end
13
-