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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d6f3c5eb31e9f8130f9a3bf63dde27c212bc8a9
4
- data.tar.gz: 84bcb313b624ff56d20b2eef416f5476c981ba28
3
+ metadata.gz: 2c53936ec8fd89d506d82e9326895b4d8253dd7e
4
+ data.tar.gz: bc9846386e5bf991727248e3d27eef6cba154bb4
5
5
  SHA512:
6
- metadata.gz: 74d8b81f3bdd9874a8fa2e39fb814433e87cb93ad08386a43c6754029e1530b05f6d48a4b64253f4de1138ba5b8d33d4b8f3801e16c3efa9bc34c0fb8965bb49
7
- data.tar.gz: 6ebb988d0f0a836bf4509b45066e58382358520208fa685ccc3f7276f58a3050cf6eeca36b742a257f6d72c277a46c8673010f60c3e099c579ea4f2cedb0e7ad
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
+
@@ -0,0 +1,4 @@
1
+ poogres
2
+ =======
3
+
4
+ Progress with style
@@ -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
@@ -0,0 +1,2 @@
1
+ require 'ruby-progressbar'
2
+ require 'core_extensions'
@@ -0,0 +1,3 @@
1
+ module Poogres
2
+ VERSION = '1.0.1'
3
+ end
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.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