proc_extensions 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 64b24b11314915d666312d064d8b407a806d1d52
4
+ data.tar.gz: 8967295d202dd6760653a67212a693835a83f852
5
+ SHA512:
6
+ metadata.gz: 21327da9034eb81da77ba3a00834337707d70c5a8037c2e65dc53f3354aa2c624c4c814a3290123dbfbdafc9a8281265e68238afccdea1878f1e72317a836fe8
7
+ data.tar.gz: 3d19d0258e4555b5de0ea378b8dd6319a8f365ff79431ce1c70e93c4624928a72ba00cd45a276294e00ddcecb6ad02fd276d1047e5bcef77e79d93f2976f59b6
data/.codeclimate.yml ADDED
@@ -0,0 +1,11 @@
1
+ ---
2
+ engines:
3
+ fixme:
4
+ enabled: true
5
+ rubocop:
6
+ enabled: true
7
+ ratings:
8
+ paths:
9
+ - "**.rb"
10
+ exclude_paths:
11
+ - spec/**/*
data/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ /Gemfile.lock
2
+ /coverage/
3
+ /pkg/
4
+ /tmp/
5
+ .idea/
6
+ *.swp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,9 @@
1
+ Metrics/LineLength:
2
+ Max: 110
3
+
4
+ Style/Documentation:
5
+ Enabled: false
6
+
7
+ AllCops:
8
+ Exclude:
9
+ - 'tmp/**/*'
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1
6
+ - 2.2
7
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/Guardfile ADDED
@@ -0,0 +1,4 @@
1
+ guard :rspec, cmd: 'bundle exec rspec' do
2
+ watch(%r{^lib/(.+)\.rb$}) { 'spec' }
3
+ watch(%r{^spec/(.+)\.rb$}) { 'spec' }
4
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Declan Whelan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,204 @@
1
+ [![Gem Version](https://badge.fury.io/rb/proc_extensions.png)](http://badge.fury.io/rb/proc_extensions)
2
+ [![Build Status](https://travis-ci.org/dwhelan/proc_extensions.png?branch=master)](https://travis-ci.org/dwhelan/proc_extensions)
3
+ [![Code Climate](https://codeclimate.com/github/dwhelan/proc_extensions/badges/gpa.svg)](https://codeclimate.com/github/dwhelan/proc_extensions)
4
+ [![Coverage Status](https://coveralls.io/repos/dwhelan/proc_extensions/badge.svg?branch=master&service=github)](https://coveralls.io/github/dwhelan/proc_extensions?branch=master)
5
+
6
+ ### ProcSource Class
7
+
8
+ The gem includes the `ProcSource` class which provides
9
+ access to the proc extensions without monkey patching the `Proc` class itself.
10
+
11
+ You can create a `ProcSource` with either a proc as a parameter or by passing a block to `ProcSource`.
12
+
13
+ ```ruby
14
+ p = proc { |a| a.to_s }
15
+
16
+
17
+ ps1 = ProcSource.new p
18
+ ps2 = ProcSource.new { |b| b.to_s }
19
+ ```
20
+
21
+ You can use the `raw_source` method to return the original source and
22
+ the `source` method to return the *sanitized* version of the source.
23
+
24
+ ```ruby
25
+ ps1.source # => "proc { |a| a.to_s }"
26
+ ps1.raw_source # => "proc { |a| a.to_s }"
27
+ ps1.to_s # => "proc { |a| a.to_s }"
28
+ ps1.inspect # => "proc { |a| a.to_s }"
29
+
30
+ ps1 == ps2 # => false
31
+ ps1.match ps2 # => true
32
+ ```
33
+
34
+ # Proc Extensions
35
+
36
+ Extensions to Proc support source extraction and comparison.
37
+
38
+ Optionsally methods can be added to the `Proc` class:
39
+ * `inspect`: returns source code if it can be extracted
40
+ * `source`, `raw_source`: returns source code
41
+ * `==`: determines if two procs have exactly the same source code
42
+ * `match`, `=~`: determines if two procs have the source code allowing for different parameter names
43
+
44
+ The above methods are not automatically included into the `Proc` class.
45
+ You need to explicitly include modules included in this gem.
46
+
47
+ **Note** This gem uses the [sourcify](https://github.com/ngty/sourcify) gem to extact proc source code. The `sourcify` gem
48
+ is no longer supported although it works as needed for the `proc_extensions` gem.
49
+
50
+ ## Installation
51
+
52
+ Add this line to your application's Gemfile:
53
+
54
+ ```ruby
55
+ gem 'proc_extensions'
56
+ ```
57
+
58
+ And then execute:
59
+
60
+ $ bundle
61
+
62
+ Or install it yourself as:
63
+
64
+ $ gem install proc_extensions
65
+
66
+ ## Usage
67
+
68
+ ```
69
+ require proc_extensions
70
+ ```
71
+
72
+ ### Extensions to the Proc class
73
+
74
+ #### inspect Method
75
+
76
+ The `inspect` methods is added to `Proc` when `ProcExtensions::Inspect` is included with `Proc`:
77
+
78
+ ```ruby
79
+ Proc.include ProcExtensions::Inspect # Ruby 2
80
+ Proc.send :include, ProcExtensions::Inspect # Ruby 1.9.3
81
+
82
+ ```
83
+
84
+ The `inspect` method will return the source code for the proc.
85
+
86
+ ```ruby
87
+ p = proc { |a| a.to_s }
88
+ l = lambda { |a| a.to_s }
89
+
90
+ p.inspect # => "proc { |a| a.to_s }"
91
+ l.inspect # => "lambda { |a| a.to_s }"
92
+ ```
93
+
94
+ If the source code cannot be extracted then the original `Proc#inspect` method will be called:
95
+
96
+ ```ruby
97
+ # Can't get source if multiple procs declared on the same line
98
+ p = proc { proc {} }
99
+ p.inspect # => "#<Proc:0x007fe72b879b90>"
100
+ ```
101
+
102
+ #### source Methods
103
+
104
+ The `source` and `raw_source` methods are added to `Proc` when `ProcExtensions::Source` is included with `Proc`:
105
+
106
+ ```ruby
107
+ Proc.include ProcExtensions::Source # Ruby 2
108
+ Proc.send :include, ProcExtensions::Source # Ruby 1.9.3
109
+ ```
110
+
111
+ The `Proc#source` method will return the source code for the Proc with
112
+ white space and comments removed. The `raw_source` method will return the original source.
113
+
114
+ ```ruby
115
+ p = proc { | a | a.to_s }
116
+ p.source # "proc { |a| a.to_s }"
117
+ p.raw_source # "proc { | a | a.to_s }"
118
+ ```
119
+ Lambda source will have the prefix 'lambda' rather than 'proc':
120
+
121
+ ```ruby
122
+ l = lambda { |a| a.to_s }
123
+ l.source # "lambda { |a| a.to_s }"
124
+ ```
125
+
126
+ If the source cannot be extracted then an exception will be raised by the `sourcify` gem.
127
+
128
+ #### match Methods
129
+
130
+ The `match` and `=~` methods are added to `Proc` when `ProcExtensions::Match` is included with `Proc`:
131
+
132
+ ```ruby
133
+ Proc.include ProcExtensions::Match # Ruby 2
134
+ Proc.send :include, ProcExtensions::Match # Ruby 1.9.3
135
+ ```
136
+
137
+ The `match(other)` method will return `true` if the procs are the same proc or
138
+ if the two procs have the same source code. The `=~` method is created as an alias for `match`.
139
+
140
+ ```ruby
141
+ proc1 = proc {}
142
+ proc2 = proc {}
143
+ proc3 = proc { |a| a.to_s }
144
+
145
+ proc1.match(proc2) # => true
146
+ proc1.match(proc3) # => false
147
+
148
+ proc1 =~ proc2 # => true
149
+ proc1 =~ proc3 # => false
150
+ ```
151
+
152
+ The source code for two procs are considered equal if they have the same body
153
+ even with different parameter names:
154
+
155
+ ```ruby
156
+ proc1 = proc { |a| a.to_s }
157
+ proc2 = proc { |b| b.to_s }
158
+
159
+ proc1.match(proc2) # => true
160
+ ```
161
+
162
+ If the procs are created via `&:method` then they will
163
+ be considered equal if they reference the same method:
164
+
165
+ ```ruby
166
+ proc1 = proc(&:to_s)
167
+ proc2 = proc(&:to_s)
168
+ proc3 = proc(&:to_a)
169
+
170
+ proc1.match(proc2) # => true
171
+ proc1.match(proc3) # => false
172
+ ```
173
+
174
+ If the source code cannot be extracted from either proc then `false` will be returned:
175
+
176
+ ```ruby
177
+ # Can't get source if multiple procs declared on the same line
178
+ proc1 = proc { proc {} }
179
+ proc2 = proc { proc {} }
180
+
181
+ proc1.match(proc2) # => false
182
+ ```
183
+
184
+ ## Ruby Versions Supported
185
+
186
+ * 1.9.3
187
+ * 2.0
188
+ * 2.1
189
+ * 2.2
190
+
191
+ ## Development
192
+
193
+ 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).
194
+
195
+ ## Contributing
196
+
197
+ Bug reports and pull requests are welcome on GitHub at https://github.com/dwhelan/proc_extensions.
198
+ This project is intended to be a safe, welcoming space for collaboration,
199
+ and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org)
200
+ code of conduct.
201
+
202
+ ## License
203
+
204
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+ require 'rubocop/rake_task'
4
+
5
+ RSpec::Core::RakeTask.new(:spec)
6
+ RuboCop::RakeTask.new do |task|
7
+ task.options << '--display-cop-names'
8
+ end
9
+
10
+ task default: [:spec, :rubocop, :build]
@@ -0,0 +1,14 @@
1
+ module ProcExtensions
2
+ module Inspect
3
+ def self.included(base)
4
+ base.class_eval do
5
+ # rubocop:disable Lint/NestedMethodDefinition
6
+ def inspect
7
+ ProcSource.new(self).inspect
8
+ rescue
9
+ super
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ module ProcExtensions
2
+ module Match
3
+ def self.included(base)
4
+ base.class_eval do
5
+ # rubocop:disable Lint/NestedMethodDefinition
6
+ def match(other)
7
+ ProcSource.new(other) == ProcSource.new(self)
8
+ end
9
+
10
+ alias_method :=~, :match
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,16 @@
1
+ module ProcExtensions
2
+ module Source
3
+ def self.included(base)
4
+ base.class_eval do
5
+ # rubocop:disable Lint/NestedMethodDefinition
6
+ def source
7
+ ProcSource.new(self).source
8
+ end
9
+
10
+ def raw_source
11
+ ProcSource.new(self).raw_source
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,93 @@
1
+ require 'sourcify'
2
+ require 'forwardable'
3
+
4
+ class ProcSource
5
+ extend Forwardable
6
+
7
+ SOURCIFY_ERRORS = [
8
+ Sourcify::MultipleMatchingProcsPerLineError,
9
+ Sourcify::CannotParseEvalCodeError,
10
+ Sourcify::CannotHandleCreatedOnTheFlyProcError
11
+ ]
12
+
13
+ def initialize(proc = nil, &block)
14
+ if proc
15
+ fail ArgumentError, 'cannot pass both an argument and a block' if block
16
+ fail ArgumentError, 'argument must be a Proc' unless proc.is_a?(Proc)
17
+ end
18
+
19
+ @proc = proc || block
20
+ end
21
+
22
+ def ==(other)
23
+ case
24
+ when other.proc == proc
25
+ true
26
+ when other.arity != arity || other.lambda? != lambda?
27
+ false
28
+ else
29
+ other.sexp == sexp
30
+ end
31
+ rescue *SOURCIFY_ERRORS
32
+ false
33
+ end
34
+
35
+ def match(other)
36
+ self == other || source_equal(other)
37
+ rescue *SOURCIFY_ERRORS
38
+ false
39
+ end
40
+
41
+ alias_method :=~, :match
42
+
43
+ def raw_source
44
+ extract_source(:to_raw_source)
45
+ end
46
+
47
+ def source
48
+ extract_source(:to_source)
49
+ end
50
+
51
+ def to_s
52
+ source
53
+ rescue *SOURCIFY_ERRORS
54
+ super
55
+ end
56
+
57
+ alias_method :inspect, :to_s
58
+
59
+ protected
60
+
61
+ attr_reader :proc
62
+
63
+ def_delegators :proc, :arity, :lambda?
64
+ def_delegators :sexp, :sexp_body, :count
65
+
66
+ def sexp
67
+ @sexp ||= proc.to_sexp
68
+ end
69
+
70
+ def parameters
71
+ sexp[2].sexp_body.to_a
72
+ end
73
+
74
+ def source_equal(other)
75
+ other.count == count && other.lambda? == lambda? && other.sexp == sexp_with_parameters_from(other)
76
+ end
77
+
78
+ private
79
+
80
+ def sexp_with_parameters_from(other_proc)
81
+ new_sexp = sexp.sub(sexp[2], other_proc.sexp[2])
82
+ other_proc.parameters.each_with_index do |to, index|
83
+ from = parameters[index]
84
+ new_sexp = new_sexp.gsub(s(:lvar, from), s(:lvar, to))
85
+ end
86
+ new_sexp
87
+ end
88
+
89
+ def extract_source(method)
90
+ proc_source = proc.public_send(method)
91
+ lambda? ? proc_source.sub('proc ', 'lambda ') : proc_source
92
+ end
93
+ end
@@ -0,0 +1,3 @@
1
+ module ProcExtensions
2
+ VERSION = '0.1.0'
3
+ end
@@ -0,0 +1,6 @@
1
+ require_relative 'proc_extensions/version'
2
+ require_relative 'proc_extensions/proc_source'
3
+
4
+ require_relative 'core_extensions/proc/inspect'
5
+ require_relative 'core_extensions/proc/match'
6
+ require_relative 'core_extensions/proc/source'
@@ -0,0 +1,40 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ require 'proc_extensions/version'
6
+
7
+ Gem::Specification.new do |gem|
8
+ gem.name = 'proc_extensions'
9
+ gem.version = ProcExtensions::VERSION
10
+ gem.authors = ['Declan Whelan']
11
+ gem.email = ['dwhelan@leanintuit.com']
12
+
13
+ gem.summary = 'Extensions to the Proc class to support source extraction and comparison.'
14
+ gem.description = 'Extensions to the Proc class to support source extraction and comparison.'
15
+ gem.homepage = 'https://github.com/dwhelan/proc_extensions'
16
+ gem.license = 'MIT'
17
+
18
+ gem.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^spec/}) }
19
+ gem.test_files = gem.files.grep(%r{^spec/})
20
+ gem.require_paths = ['lib']
21
+
22
+ gem.add_runtime_dependency 'sourcify', '~> 0.5'
23
+
24
+ gem.add_development_dependency 'bundler', '~> 1.10'
25
+ gem.add_development_dependency 'coveralls', '~> 0.7'
26
+ gem.add_development_dependency 'guard', '~> 2.13'
27
+ gem.add_development_dependency 'guard-rspec', '~> 4.6'
28
+
29
+ if RUBY_VERSION =~ /2/
30
+ gem.add_development_dependency 'pry-byebug', '~> 3.3'
31
+ else
32
+ gem.add_development_dependency 'pry-debugger', '~> 0.2'
33
+ end
34
+
35
+ gem.add_development_dependency 'rake', '~> 10.0'
36
+ gem.add_development_dependency 'rspec', '~> 3.0'
37
+ gem.add_development_dependency 'rspec-its', '~> 1.1'
38
+ gem.add_development_dependency 'rubocop', '~> 0.30'
39
+ gem.add_development_dependency 'simplecov', '~> 0.9'
40
+ end
metadata ADDED
@@ -0,0 +1,216 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: proc_extensions
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Declan Whelan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sourcify
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: coveralls
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.7'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.7'
55
+ - !ruby/object:Gem::Dependency
56
+ name: guard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.13'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.13'
69
+ - !ruby/object:Gem::Dependency
70
+ name: guard-rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '4.6'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '4.6'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry-byebug
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.3'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.3'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '10.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '10.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '3.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec-its
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '1.1'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '1.1'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rubocop
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '0.30'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '0.30'
153
+ - !ruby/object:Gem::Dependency
154
+ name: simplecov
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '0.9'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '0.9'
167
+ description: Extensions to the Proc class to support source extraction and comparison.
168
+ email:
169
+ - dwhelan@leanintuit.com
170
+ executables: []
171
+ extensions: []
172
+ extra_rdoc_files: []
173
+ files:
174
+ - ".codeclimate.yml"
175
+ - ".gitignore"
176
+ - ".rspec"
177
+ - ".rubocop.yml"
178
+ - ".travis.yml"
179
+ - CODE_OF_CONDUCT.md
180
+ - Gemfile
181
+ - Guardfile
182
+ - LICENSE.txt
183
+ - README.md
184
+ - Rakefile
185
+ - lib/core_extensions/proc/inspect.rb
186
+ - lib/core_extensions/proc/match.rb
187
+ - lib/core_extensions/proc/source.rb
188
+ - lib/proc_extensions.rb
189
+ - lib/proc_extensions/proc_source.rb
190
+ - lib/proc_extensions/version.rb
191
+ - proc_extensions.gemspec
192
+ homepage: https://github.com/dwhelan/proc_extensions
193
+ licenses:
194
+ - MIT
195
+ metadata: {}
196
+ post_install_message:
197
+ rdoc_options: []
198
+ require_paths:
199
+ - lib
200
+ required_ruby_version: !ruby/object:Gem::Requirement
201
+ requirements:
202
+ - - ">="
203
+ - !ruby/object:Gem::Version
204
+ version: '0'
205
+ required_rubygems_version: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - ">="
208
+ - !ruby/object:Gem::Version
209
+ version: '0'
210
+ requirements: []
211
+ rubyforge_project:
212
+ rubygems_version: 2.4.6
213
+ signing_key:
214
+ specification_version: 4
215
+ summary: Extensions to the Proc class to support source extraction and comparison.
216
+ test_files: []