loser 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/loser.rb +5 -8
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 24684aeb40148e4a97e42b7c42f03563d1101451
4
- data.tar.gz: cf789ed0aa1c25e82a47d86de76384bba14842c4
3
+ metadata.gz: dd25c0e910d3f98a1f5c8e587c9894fc912f0c57
4
+ data.tar.gz: be27ec68137b7256b0bdb685b4880141219b0344
5
5
  SHA512:
6
- metadata.gz: 0c38800e1be4074107c169bc7c12551b5168cc27e1b64bc7b45204ffda3b5a2c89841247445ff43609671771c30f1e190912e7777e2630720865a9575d07f106
7
- data.tar.gz: 4f12c0edc5ce2f2a7aaa94fd222370f9d3386a633a950264340ece52d16b95373380c8bbce978210dfb7954ad6188b5bd673959d491273bace7fac3c4d2c987d
6
+ metadata.gz: bdc4b362198183251300cfced673d0732849c06bb70772877ff11543accbe1354885246a38af5e3e47f62c04f667f9d5eaa88efa2d07cafc8c0da6411bbeac8a
7
+ data.tar.gz: 7465782dd17c1cd49bbb4be23d5ccc8c8f77ef9cea1570cd93aad58bc126407f118b5eb79f8c990fac51d65b8bc5c9a19dcedeefb1ece618da1068c054b2a923
@@ -16,17 +16,14 @@ module Loser
16
16
  errors.join(separator)
17
17
  end
18
18
 
19
- def fail(msg)
19
+ def lose(msg)
20
20
  self.errors << msg
21
21
  false
22
22
  end
23
23
 
24
- private
25
-
26
- def safe
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.1
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.1.11
41
+ rubygems_version: 2.2.2
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: Loser!