ect 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (8) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +8 -0
  3. data/LICENSE.txt +21 -0
  4. data/Makefile +40 -0
  5. data/README.md +12 -0
  6. data/ect.gemspec +36 -0
  7. data/lib/ect.rb +11 -0
  8. metadata +64 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5126d9a6b41dac42288d17490888f694db777cd9
4
+ data.tar.gz: 8921d691ff8243ca99c5ba1c97cef8788fb3ce16
5
+ SHA512:
6
+ metadata.gz: b2f6db49f856706f42544c71a5839304b469b22e2901d2be363a2476af9559c807bc247b5473bca009b1fea5e354dc205b55e8aa1661821bb58a85740f60dcb1
7
+ data.tar.gz: 1df6f620b267f9372d2bbd902e26b9a59efccfd9be4f850e162920d3d85503f08d08220af1255af5becb9a53bb70100160bf1b0195c1445922c0ac9a5aebbda3
data/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+
2
+ # ect CHANGELOG.md
3
+
4
+
5
+ ## ect 1.0.0 not yet released
6
+
7
+ - alias #bisect to Enumerable#partition
8
+
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+
2
+ Copyright (c) 2017-2017, John Mettraux, jmettraux@gmail.com
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in
12
+ all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ THE SOFTWARE.
21
+
data/Makefile ADDED
@@ -0,0 +1,40 @@
1
+
2
+ ## core make ##
3
+
4
+ NAME = \
5
+ $(shell ruby -e "s = eval(File.read(Dir['*.gemspec'][0])); puts s.name")
6
+ VERSION = \
7
+ $(shell ruby -e "s = eval(File.read(Dir['*.gemspec'][0])); puts s.version")
8
+
9
+ count_lines:
10
+ find lib -name "*.rb" | xargs cat | ruby -e "p STDIN.readlines.count { |l| l = l.strip; l[0, 1] != '#' && l != '' }"
11
+ cl: count_lines
12
+
13
+ gemspec_validate:
14
+ @echo "---"
15
+ ruby -e "s = eval(File.read(Dir['*.gemspec'].first)); s.validate"
16
+ @echo "---"
17
+
18
+ name: gemspec_validate
19
+ @echo "$(NAME) $(VERSION)"
20
+
21
+ build: gemspec_validate
22
+ gem build $(NAME).gemspec
23
+ mkdir -p pkg
24
+ mv $(NAME)-$(VERSION).gem pkg/
25
+
26
+ push: build
27
+ gem push pkg/$(NAME)-$(VERSION).gem
28
+
29
+ spec:
30
+ bundle exec rspec
31
+ test: spec
32
+
33
+
34
+ ## specific to project ##
35
+
36
+
37
+ ## done ##
38
+
39
+ .PHONY: build push spec
40
+
data/README.md ADDED
@@ -0,0 +1,12 @@
1
+
2
+ # ect
3
+
4
+ [![Gem Version](https://badge.fury.io/rb/et-orbi.svg)](http://badge.fury.io/rb/ect)
5
+
6
+ Methods ending in `ect`.
7
+
8
+
9
+ ## LICENSE
10
+
11
+ MIT, see [LICENSE.txt](LICENSE.txt)
12
+
data/ect.gemspec ADDED
@@ -0,0 +1,36 @@
1
+
2
+ Gem::Specification.new do |s|
3
+
4
+ s.name = 'ect'
5
+
6
+ s.version = File.read(
7
+ File.expand_path('../lib/ect.rb', __FILE__)
8
+ ).match(/ VERSION *= *['"]([^'"]+)/)[1]
9
+
10
+ s.platform = Gem::Platform::RUBY
11
+ s.authors = [ 'John Mettraux' ]
12
+ s.email = [ 'jmettraux@gmail.com' ]
13
+ s.homepage = 'http://github.com/jmettraux/ect'
14
+ s.license = 'MIT'
15
+ s.summary = 'Methods ending in ect'
16
+
17
+ s.description = %{
18
+ Methods ending in ect
19
+ }.strip
20
+
21
+ #s.files = `git ls-files`.split("\n")
22
+ s.files = Dir[
23
+ 'README.{md,txt}',
24
+ 'CHANGELOG.{md,txt}', 'CREDITS.{md,txt}', 'LICENSE.{md,txt}',
25
+ 'Makefile',
26
+ 'lib/**/*.rb', #'spec/**/*.rb', 'test/**/*.rb',
27
+ "#{s.name}.gemspec",
28
+ ]
29
+
30
+ #s.add_runtime_dependency 'raabro', '>= 1.1.3'
31
+
32
+ s.add_development_dependency 'rspec', '~> 3.6'
33
+
34
+ s.require_path = 'lib'
35
+ end
36
+
data/lib/ect.rb ADDED
@@ -0,0 +1,11 @@
1
+
2
+ module Ect
3
+
4
+ VERSION = '0.0.1'
5
+ end
6
+
7
+ module Enumerable
8
+
9
+ alias bisect partition
10
+ end
11
+
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ect
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - John Mettraux
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-10-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.6'
27
+ description: Methods ending in ect
28
+ email:
29
+ - jmettraux@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - CHANGELOG.md
35
+ - LICENSE.txt
36
+ - Makefile
37
+ - README.md
38
+ - ect.gemspec
39
+ - lib/ect.rb
40
+ homepage: http://github.com/jmettraux/ect
41
+ licenses:
42
+ - MIT
43
+ metadata: {}
44
+ post_install_message:
45
+ rdoc_options: []
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ requirements: []
59
+ rubyforge_project:
60
+ rubygems_version: 2.6.13
61
+ signing_key:
62
+ specification_version: 4
63
+ summary: Methods ending in ect
64
+ test_files: []