pd 1.0.5 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data/.travis.yml +9 -0
  2. data/Gemfile +1 -3
  3. data/README.md +13 -12
  4. data/lib/pd.rb +8 -8
  5. data/lib/pd/version.rb +1 -1
  6. data/pd.gemspec +0 -2
  7. metadata +5 -15
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.3
5
+ - jruby-18mode
6
+ - jruby-19mode
7
+ - rbx-18mode
8
+ - rbx-19mode
9
+ script: bundle exec rspec spec
data/Gemfile CHANGED
@@ -1,6 +1,4 @@
1
- source :rubygems
2
-
3
- gem "awesome_print"
1
+ source "https://rubygems.org"
4
2
 
5
3
  group :development do
6
4
  gem "rspec"
data/README.md CHANGED
@@ -1,30 +1,31 @@
1
- pd, some helper methods to help debuging
2
- ==========================================
3
-
4
- | Homepage: | https://github.com/GutenYe/pd |
5
- |----------------|------------------------------------------------------ |
6
- | Author: | Guten |
7
- | License: | MIT-LICENSE |
8
- | Documentation: | http://rubydoc.info/gems/pd/frames |
1
+ # pd, some helper methods to help debuging [![Build Status](https://secure.travis-ci.org/GutenYe/pd.png)](http://travis-ci.org/GutenYe/pd)
2
+
3
+ | | |
4
+ |----------------|--------------------------------------|
5
+ | Homepage: | https://github.com/GutenYe/pd |
6
+ | Author: | Guten |
7
+ | License: | MIT-LICENSE |
8
+ | Documentation: | http://rubydoc.info/gems/pd/frames |
9
9
  | Issue Tracker: | https://github.com/GutenYe/pd/issues |
10
+ | Platforms: | Ruby 1.8.7, 1.9.3; JRuby; Rubinius |
10
11
 
11
12
  Overview
12
13
  --------
13
14
 
14
- 1. add 'pd' method to Kernel, 'pd' is much easy to search than orignal 'p' method.
15
- 2. include 'awesome_print' gem
15
+ 1. add `pd` method to Kernel, `pd` is much easy to search than orignal `p` method.
16
+ 2. require "pp"
16
17
 
17
18
  Install
18
19
  ----------
19
20
 
20
- gem install pd
21
+ [sudo] gem install pd
21
22
 
22
23
  Copyright
23
24
  ---------
24
25
 
25
26
  (the MIT License)
26
27
 
27
- Copyright (c) 2011 Guten
28
+ Copyright (c) 2011-2012 Guten
28
29
 
29
30
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
30
31
 
data/lib/pd.rb CHANGED
@@ -1,15 +1,16 @@
1
1
  autoload :Pd_VERSION, "pd/version"
2
2
 
3
3
  module Kernel
4
+ private
5
+
4
6
  # print for debug
5
7
  #
6
8
  # @overlaod pd(obj, ...)
7
- # @param [Symbol]
8
- #
9
- #
10
- # @overload pd(title, obj, ...)
11
- # @param [Symbol] title if first arg is a Captial Symbol, use it as title
12
- # @return [nil]
9
+ #
10
+ # @example
11
+ #
12
+ # pd("a", 2, :foo) -> "a" 2 :foo
13
+ #
13
14
  def pd(*args)
14
15
  puts args.map{|v|v.inspect}.join(" ")
15
16
  end
@@ -23,5 +24,4 @@ module Kernel
23
24
  end
24
25
  end
25
26
 
26
- require "ap"
27
-
27
+ require "pp"
@@ -1 +1 @@
1
- Pd_VERSION = "1.0.5"
1
+ Pd_VERSION = "1.1.0"
data/pd.gemspec CHANGED
@@ -14,6 +14,4 @@ a print helper method for debug to Kernel
14
14
  s.rubyforge_project = "xx"
15
15
 
16
16
  s.files = `git ls-files`.split("\n")
17
-
18
- s.add_dependency "awesome_print"
19
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,19 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-26 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: awesome_print
16
- requirement: &11456500 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: *11456500
12
+ date: 2012-08-18 00:00:00.000000000 Z
13
+ dependencies: []
25
14
  description: ! 'a print helper method for debug to Kernel
26
15
 
27
16
  '
@@ -32,6 +21,7 @@ extra_rdoc_files: []
32
21
  files:
33
22
  - .gitignore
34
23
  - .rspec
24
+ - .travis.yml
35
25
  - .yardopts
36
26
  - Gemfile
37
27
  - README.md
@@ -62,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
52
  version: '0'
63
53
  requirements: []
64
54
  rubyforge_project: xx
65
- rubygems_version: 1.8.11
55
+ rubygems_version: 1.8.24
66
56
  signing_key:
67
57
  specification_version: 3
68
58
  summary: some helper methods to help debuging