tapp 1.5.0.rc → 1.5.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7f204ef5e7b14c7f1de308a222bc65df05b087de
4
+ data.tar.gz: b0e5b1475d15a752c95412f1ace2f7cdf611e4c0
5
+ SHA512:
6
+ metadata.gz: c63aa7abe4a33c2f77764521346e4dbd3216311c243454a63debbd64bb8124c25d5729ab47f669c0b024b6f04b5db4df648eac1ac49869442b0e4314312413ae
7
+ data.tar.gz: a03d80ca5a9c138dec1b526f062731159b0e8905d7c2ad7401e3edd5ee7fcb4ba8a311a57149d49116debd0cdff4658bb918bf55ffbb310aa41bda72f6f670b3
data/.gitignore CHANGED
@@ -1,22 +1,3 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC
1
+ .bundle/
22
2
  Gemfile.lock
3
+ pkg/
@@ -1,7 +1,14 @@
1
1
  language: ruby
2
+
2
3
  rvm:
3
4
  - 1.9.3
5
+ - 2.0.0
6
+ - 2.1
7
+ - 2.2
4
8
  - ruby-head
5
- - rbx-18mode
6
- - rbx-19mode
9
+
10
+ matrix:
11
+ allow_failures:
12
+ rvm: ruby-head
13
+
7
14
  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://travis-ci.org/esminc/tapp.svg?branch=master)](https://travis-ci.org/esminc/tapp) [![Code Climate](https://codeclimate.com/github/esminc/tapp/badges/gpa.svg)](https://codeclimate.com/github/esminc/tapp)
2
2
 
3
3
  ## Install
4
4
 
@@ -13,10 +13,8 @@ module Tapp
13
13
  @config ||= Tapp::Configuration.new
14
14
  end
15
15
 
16
- def configure
17
- yield config
18
-
19
- config
16
+ def configure(&block)
17
+ config.tap(&block)
20
18
  end
21
19
  end
22
20
  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
  end
18
18
  end
@@ -1,5 +1,3 @@
1
- require 'tapp'
2
-
3
1
  module Tapp
4
2
  module Util
5
3
  module_function
@@ -1,3 +1,3 @@
1
1
  module Tapp
2
- VERSION = '1.5.0.rc'
2
+ VERSION = '1.5.0'
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
+ """
@@ -4,6 +4,10 @@ require 'tapp/turnip'
4
4
  RSpec.configure do |config|
5
5
  config.include Tapp::Turnip::Steps
6
6
 
7
+ config.expect_with :rspec do |expects|
8
+ expects.syntax = :should
9
+ end
10
+
7
11
  config.before do
8
12
  Tapp.config.reset
9
13
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0.rc
5
- prerelease: 6
4
+ version: 1.5.0
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: 2015-02-24 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
  description: tap { pp self }
@@ -51,9 +46,9 @@ executables:
51
46
  extensions: []
52
47
  extra_rdoc_files: []
53
48
  files:
54
- - .gitignore
55
- - .rspec
56
- - .travis.yml
49
+ - ".gitignore"
50
+ - ".rspec"
51
+ - ".travis.yml"
57
52
  - CHANGELOG.md
58
53
  - Gemfile
59
54
  - LICENSE
@@ -80,27 +75,26 @@ files:
80
75
  - tapp.gemspec
81
76
  homepage: http://github.com/esminc/tapp
82
77
  licenses: []
78
+ metadata: {}
83
79
  post_install_message:
84
80
  rdoc_options: []
85
81
  require_paths:
86
82
  - lib
87
83
  required_ruby_version: !ruby/object:Gem::Requirement
88
- none: false
89
84
  requirements:
90
- - - ! '>='
85
+ - - ">="
91
86
  - !ruby/object:Gem::Version
92
87
  version: '0'
93
88
  required_rubygems_version: !ruby/object:Gem::Requirement
94
- none: false
95
89
  requirements:
96
- - - ! '>'
90
+ - - ">="
97
91
  - !ruby/object:Gem::Version
98
- version: 1.3.1
92
+ version: '0'
99
93
  requirements: []
100
94
  rubyforge_project:
101
- rubygems_version: 1.8.23
95
+ rubygems_version: 2.4.5
102
96
  signing_key:
103
- specification_version: 3
97
+ specification_version: 4
104
98
  summary: tap { pp self }
105
99
  test_files:
106
100
  - spec/acceptance/custom_printer.feature