tapp 1.4.0 → 1.4.1

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 38e02e650a387df7aa6a8428fa0f4acd62354045
4
+ data.tar.gz: f12d94f1754403691baca4c058cb9730a0e40926
5
+ SHA512:
6
+ metadata.gz: 64308928255176b3ca811a4344ed9c4e4492198a4c655c3e97609e1272f7e345e0d449cfab482eafd29148896515938ebc0ebda843de3e30ff522d91d320eb09
7
+ data.tar.gz: 8ba1f379c3316ac277b0c90fffa39eeba5faa3ac6ffa28232bf8f349bdc1ca27ae1905ace2cccefea4e3a9ff33b91bc5b689c9d040d0d2d2a157e1ab24b2265c
data/.travis.yml CHANGED
@@ -1,7 +1,13 @@
1
1
  language: ruby
2
+
2
3
  rvm:
3
4
  - 1.9.3
5
+ - 2.0.0
6
+ - 2.1.0
4
7
  - ruby-head
5
- - rbx-18mode
6
- - rbx-19mode
8
+
9
+ matrix:
10
+ allow_failures:
11
+ rvm: ruby-head
12
+
7
13
  script: bundle exec rspec
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # tapp ![Build Status](https://secure.travis-ci.org/esminc/tapp.png?branch=master)
1
+ # tapp [![Build Status](https://secure.travis-ci.org/esminc/tapp.png?branch=master)](http://travis-ci.org/#!/esminc/tapp) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/esminc/tapp)
2
2
 
3
3
  ## Install
4
4
 
data/lib/tapp.rb CHANGED
@@ -11,10 +11,8 @@ module Tapp
11
11
  @config ||= Tapp::Configuration.new
12
12
  end
13
13
 
14
- def configure
15
- yield config
16
-
17
- config
14
+ def configure(&block)
15
+ config.tap(&block)
18
16
  end
19
17
  end
20
18
  end
@@ -11,8 +11,8 @@ module Tapp
11
11
  }
12
12
  end
13
13
 
14
- def taputs
15
- tapp :puts
14
+ def taputs(&block)
15
+ tapp :puts, &block
16
16
  end
17
17
 
18
18
  def taap
data/lib/tapp/util.rb CHANGED
@@ -1,5 +1,3 @@
1
- require 'tapp'
2
-
3
1
  module Tapp
4
2
  module Util
5
3
  module_function
data/lib/tapp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tapp
2
- VERSION = '1.4.0'
2
+ VERSION = '1.4.1'
3
3
  end
@@ -14,3 +14,19 @@ Feature: Object#taputs
14
14
  3
15
15
  5
16
16
  """
17
+
18
+ Scenario: Call taputs with block
19
+ Given I have the following code:
20
+ """
21
+ (1..5).taputs(&:count).select(&:odd?).taputs
22
+ """
23
+
24
+ When Ruby it
25
+
26
+ Then I should see:
27
+ """
28
+ 5
29
+ 1
30
+ 3
31
+ 5
32
+ """
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
5
- prerelease:
4
+ version: 1.4.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Keita Urashima
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-07-08 00:00:00.000000000 Z
11
+ date: 2014-07-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: thor
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: turnip
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: awesome_print
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: tap { pp self }
@@ -67,9 +60,9 @@ executables:
67
60
  extensions: []
68
61
  extra_rdoc_files: []
69
62
  files:
70
- - .gitignore
71
- - .rspec
72
- - .travis.yml
63
+ - ".gitignore"
64
+ - ".rspec"
65
+ - ".travis.yml"
73
66
  - CHANGELOG.md
74
67
  - Gemfile
75
68
  - LICENSE
@@ -96,27 +89,26 @@ files:
96
89
  - tapp.gemspec
97
90
  homepage: http://github.com/esminc/tapp
98
91
  licenses: []
92
+ metadata: {}
99
93
  post_install_message:
100
94
  rdoc_options: []
101
95
  require_paths:
102
96
  - lib
103
97
  required_ruby_version: !ruby/object:Gem::Requirement
104
- none: false
105
98
  requirements:
106
- - - ! '>='
99
+ - - ">="
107
100
  - !ruby/object:Gem::Version
108
101
  version: '0'
109
102
  required_rubygems_version: !ruby/object:Gem::Requirement
110
- none: false
111
103
  requirements:
112
- - - ! '>='
104
+ - - ">="
113
105
  - !ruby/object:Gem::Version
114
106
  version: '0'
115
107
  requirements: []
116
108
  rubyforge_project:
117
- rubygems_version: 1.8.23
109
+ rubygems_version: 2.2.2
118
110
  signing_key:
119
- specification_version: 3
111
+ specification_version: 4
120
112
  summary: tap { pp self }
121
113
  test_files:
122
114
  - spec/acceptance/default_printer.feature
@@ -125,3 +117,4 @@ test_files:
125
117
  - spec/acceptance/taputs.feature
126
118
  - spec/spec_helper.rb
127
119
  - spec/steps/global_steps.rb
120
+ has_rdoc: