lab42_core 0.0.1

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: 0b1b53a7117e5bcc77392e003507108f2d614304
4
+ data.tar.gz: 124320608f777e41b30a1e9f4febe25d022fd3f4
5
+ SHA512:
6
+ metadata.gz: 434596f773636fe36929511e5521bc2cc29cb56444f683a825418eeeb23892edc218c30dac4f707085a43fafe09e174ff7d329483e14113a0cd42414102e8179
7
+ data.tar.gz: 05c3669197233517c10889d3e4a989b307812e74d60dd27b082b44fb0f0611cbe2e641a851aae3389fc7804ba6d69027499d798b7fd774a861ad95981b85089b
data/LICENSE ADDED
@@ -0,0 +1,10 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2012 Robert Dober
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10
+
data/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # lab42\_core
2
+
3
+ Ruby Core Module Extensions (in the spirit of lab419/core)
4
+
5
+ ## Dir
6
+
7
+ ```ruby
8
+ Dir.walk "**/*" do | partial_path, full_path |
9
+ end
10
+ ```
11
+
12
+ ## Enumerable
13
+
14
+ ```ruby
15
+ enum.grep2 expr # ===>
16
+ enum.partition{ |ele| expr === ele }
17
+ ```
@@ -0,0 +1,10 @@
1
+ class << Dir
2
+ def files glob_para
3
+ glob( glob_para ).map do |f|
4
+ full = File.join pwd, f
5
+ require 'pry'
6
+ next if File.directory? full
7
+ [f, full]
8
+ end.compact
9
+ end
10
+ end
@@ -0,0 +1,5 @@
1
+ module Enumerable
2
+ def grep2 expr
3
+ partition{ |ele| expr === ele }
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module Lab42
2
+ module Core
3
+ VERSION = "0.0.1"
4
+ end # module Core
5
+ end # module Lab42
data/lib/lab42/core.rb ADDED
@@ -0,0 +1,2 @@
1
+ require 'lab42/core/dir'
2
+ require 'lab42/core/enumerable'
metadata ADDED
@@ -0,0 +1,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lab42_core
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Robert Dober
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-08-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: pry
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 0.9.12
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.9.12
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 2.13.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 2.13.0
41
+ description: Hash, Dir and more extensions
42
+ email: robert.dober@gmail.com
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files: []
46
+ files:
47
+ - lib/lab42/core.rb
48
+ - lib/lab42/core/enumerable.rb
49
+ - lib/lab42/core/version.rb
50
+ - lib/lab42/core/dir.rb
51
+ - LICENSE
52
+ - README.md
53
+ homepage: https://github.com/RobertDober/lab42_core
54
+ licenses:
55
+ - MIT
56
+ metadata: {}
57
+ post_install_message:
58
+ rdoc_options: []
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - '>='
64
+ - !ruby/object:Gem::Version
65
+ version: 2.0.0
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ requirements: []
72
+ rubyforge_project:
73
+ rubygems_version: 2.0.3
74
+ signing_key:
75
+ specification_version: 4
76
+ summary: What I am missing in Ruby
77
+ test_files: []