uuids 4.1.2 → 4.1.3

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: c19cc8038584b292cd59a02adcb4a05cbac196df
4
- data.tar.gz: 4b275fb3e28a46259b9ab5e66f628370b9003013
3
+ metadata.gz: 26ab118cb2345e2661d2db7cd4dfeda6729531b8
4
+ data.tar.gz: e86f8c257d37ecd12e95d05301f1973ef92bf9d8
5
5
  SHA512:
6
- metadata.gz: 9c859f191c64ac2308aa82943553232c89300f784d932009e4dad6d135a4d76e361c58651243307b1e72adda2786a9a40266e41d5f5b1afc989c3b2bc5113f27
7
- data.tar.gz: ba8b045684148f125afb35ef4ea9ceb0fe0ef2d20af67063089f3385cd7e7031835fd3c3cdd299569d65a9ed0f83e52542f1fc698731f338bcb37b80a034a3b1
6
+ metadata.gz: 30236a707e43fd13e383659b3b50b3d304ccf26a078d288b07789253c2ae1421114bf6dd37a4adc566305795fd8f823b1431bb8ad8e8e2d0fe7b5ab4a1bd26d0
7
+ data.tar.gz: 78b2169f231d9a70ec7786a1d7940d7ced442fca689884d42078b6f8dfb08945e4e7944f603cfa9c1e3b6584c79091563f43fe978690adb24b7cf57ac0b18bfe
data/app/services/add.rb CHANGED
@@ -52,7 +52,7 @@ module Uuids
52
52
  rescue => err
53
53
  publish :error, err.messages
54
54
  else
55
- on_uuid_created
55
+ publish :created, uuid, messages
56
56
  end
57
57
 
58
58
  private
@@ -61,11 +61,7 @@ module Uuids
61
61
 
62
62
  def create_uuid
63
63
  @uuid = Models::Uuid.create! record: record, value: value
64
- end
65
-
66
- def on_uuid_created
67
64
  add_message "success", :created, uuid: uuid, record: name
68
- publish :created, uuid, messages
69
65
  end
70
66
 
71
67
  def name
data/lib/uuids/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Uuids
2
2
 
3
3
  # Current release.
4
- VERSION = "4.1.2"
4
+ VERSION = "4.1.3"
5
5
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uuids
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.2
4
+ version: 4.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kozin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-19 00:00:00.000000000 Z
11
+ date: 2014-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hexx-active_record
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: coveralls
29
29
  requirement: !ruby/object:Gem::Requirement