poogres 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +22 -0
- data/README.md +4 -0
- data/lib/core_extensions.rb +18 -0
- data/lib/poogres.rb +2 -0
- data/lib/poogres/version.rb +3 -0
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c53936ec8fd89d506d82e9326895b4d8253dd7e
|
4
|
+
data.tar.gz: bc9846386e5bf991727248e3d27eef6cba154bb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15ec49db108e8371d213b50a8cea7f31c7fd3b0bafb5433f48d42ec7c7366fe5b84d4a33fc266419a0dcf591d8ac939daa0690d07a73a257b85299914f4a9c9b
|
7
|
+
data.tar.gz: 9bbb7fc28e67f9f1f5cc7f13b5c47e79bf23235cf2ed371af3cf30dc18d2ac5fe9a88539b7a681bfe6f689128fdc1abc18d5106fbe34e26b3fe42b6ce7f20270
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2014 Benoit Bénézech
|
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 all
|
13
|
+
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 THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/README.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
class Integer
|
2
|
+
def poopoos(smiley = '😍')
|
3
|
+
|
4
|
+
pb = ProgressBar.create(format: "%e %b 🚽 #{smiley} %i %p%% %t",
|
5
|
+
progress_mark: '💩',
|
6
|
+
remainder_mark: ' ',
|
7
|
+
total: self)
|
8
|
+
Thread.current.instance_variable_set(:@poopoo, pb)
|
9
|
+
end
|
10
|
+
|
11
|
+
alias :poopoos_for :poopoos
|
12
|
+
end
|
13
|
+
|
14
|
+
class Object
|
15
|
+
def poopoo!
|
16
|
+
Thread.current.instance_variable_get(:@poopoo).increment
|
17
|
+
end
|
18
|
+
end
|
data/lib/poogres.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poogres
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bbenezech
|
@@ -30,7 +30,12 @@ email: benoit.bbenezech@gmail.com
|
|
30
30
|
executables: []
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
|
-
files:
|
33
|
+
files:
|
34
|
+
- LICENSE
|
35
|
+
- README.md
|
36
|
+
- lib/core_extensions.rb
|
37
|
+
- lib/poogres.rb
|
38
|
+
- lib/poogres/version.rb
|
34
39
|
homepage: https://github.com/bbenezech/poogres
|
35
40
|
licenses:
|
36
41
|
- MIT
|