loser 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/loser.rb +5 -8
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd25c0e910d3f98a1f5c8e587c9894fc912f0c57
|
4
|
+
data.tar.gz: be27ec68137b7256b0bdb685b4880141219b0344
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdc4b362198183251300cfced673d0732849c06bb70772877ff11543accbe1354885246a38af5e3e47f62c04f667f9d5eaa88efa2d07cafc8c0da6411bbeac8a
|
7
|
+
data.tar.gz: 7465782dd17c1cd49bbb4be23d5ccc8c8f77ef9cea1570cd93aad58bc126407f118b5eb79f8c990fac51d65b8bc5c9a19dcedeefb1ece618da1068c054b2a923
|
data/lib/loser.rb
CHANGED
@@ -16,17 +16,14 @@ module Loser
|
|
16
16
|
errors.join(separator)
|
17
17
|
end
|
18
18
|
|
19
|
-
def
|
19
|
+
def lose(msg)
|
20
20
|
self.errors << msg
|
21
21
|
false
|
22
22
|
end
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
yield
|
28
|
-
rescue
|
29
|
-
fail 'Erro inesperado, tente novamente.'
|
24
|
+
def fail(msg)
|
25
|
+
warn "[DEPRECATION] `fail` is deprecated. Please use `lose` instead."
|
26
|
+
lose(msg)
|
30
27
|
end
|
31
28
|
|
32
|
-
end
|
29
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcus Mansur
|
@@ -28,17 +28,17 @@ require_paths:
|
|
28
28
|
- lib
|
29
29
|
required_ruby_version: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
36
|
-
- -
|
36
|
+
- - ">="
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: '0'
|
39
39
|
requirements: []
|
40
40
|
rubyforge_project:
|
41
|
-
rubygems_version: 2.
|
41
|
+
rubygems_version: 2.2.2
|
42
42
|
signing_key:
|
43
43
|
specification_version: 4
|
44
44
|
summary: Loser!
|