pipeblock 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f37ea05002317bb901376d61d56d1b3e87658835
4
- data.tar.gz: 221c2071ef548ea2b21c941355e2390bc5420708
3
+ metadata.gz: 836897b4ad07e24f10ce0ae7cc1ccea88b19d9a2
4
+ data.tar.gz: f1c69c9cd8d99fc6743052a6ab92d687609e8aad
5
5
  SHA512:
6
- metadata.gz: 9e5894b9658bc40d76c8cab088f0dec335aa60526897f452dac0764ba0bff8b943232e3e7de95ae6acbe975efc96c5adadbada4ff7faccf450b425181302cbd6
7
- data.tar.gz: 4feaf48eb0eaa8a0f6deabb8d06cdb4b7e9324d2d53bfc2d5265ad8f4072a575039e957bdfb0abe759400399f65c91644c1c3bb25c185abf192be6e1db059753
6
+ metadata.gz: e2388be0581c20825d34ddc459ede6ae37f295b3f2e0af06a23b5cd9a84ff8ade9e2bb4c055aae00665f61233182077a356ddaaf6104b02e28956788ecd4c861
7
+ data.tar.gz: 53819c51f38ead7eeda920af8cd58de0bc8055380a51f90c8381d368dd8cf8355f365591e8fd3111408e614dfcc6b48735055f555ef656a1b041af2e8014b727
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.gem
data/README.md CHANGED
@@ -1,16 +1,8 @@
1
1
  # Pipeblock
2
+ Pipeblock brings the Pipe Operator flow of Functional Programming to Ruby.
3
+ It provides a very clean flow for working with static methods.
2
4
 
3
- TODO: Delete this and the text above, and describe your gem
4
-
5
- def divide(a, b)
6
- a / b rescue 0
7
- end
8
-
9
- pipe 10 do
10
- sum 90
11
- divide 2
12
- puts
13
- end
5
+ Add to Your Project:
14
6
 
15
7
  ```ruby
16
8
  gem 'pipeblock'
@@ -25,21 +17,21 @@ Or install it yourself as:
25
17
  $ gem install pipeblock
26
18
 
27
19
  ## Usage
20
+ ```ruby
21
+ # sample method
22
+ def cut(text, pattern, replace: '')
23
+ text.gsub(pattern, replace)
24
+ end
28
25
 
29
- TODO: Write usage instructions here
30
-
31
- ## Development
32
-
33
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
34
-
35
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
36
-
37
- ## Contributing
38
-
39
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pipeblock. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
40
-
26
+ pipe 'http://www.google.com' do
27
+ cut('http://www.')
28
+ cut('.com')
29
+ cut('gle', replace: "mba!")
30
+ puts
31
+ end
32
+ # goomba!
33
+ ```
41
34
 
42
35
  ## License
43
36
 
44
37
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
45
-
@@ -1,3 +1,3 @@
1
1
  module Pipeblock
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/pipeblock.gemspec CHANGED
@@ -25,4 +25,5 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency "bundler", "~> 1.12"
26
26
  spec.add_development_dependency "rake", "~> 10.0"
27
27
  spec.add_development_dependency "rspec", "~> 3.0"
28
+ spec.add_development_dependency "binding_of_caller", ">= 0.7.2"
28
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipeblock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Stephano
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-24 00:00:00.000000000 Z
11
+ date: 2016-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: binding_of_caller
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 0.7.2
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 0.7.2
55
69
  description: This project was created to improve code reading by passing the return
56
70
  method of a function as the first argument of the next inside a pipe block.
57
71
  email: