active_domain 0.5.0.rc3 → 0.5.0.rc4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 511ca7a7749f35b56a2aad9b5cf0a9ef4158708a
4
- data.tar.gz: 861b6d048d1b9ba9b5fb52ca554e23b6227a441f
3
+ metadata.gz: 4294b261d9693394c64dc71701c7c379acd369f0
4
+ data.tar.gz: 5f4d3bb6088a46eddbbc4011ba9e6d74b89363a3
5
5
  SHA512:
6
- metadata.gz: 72c725819b1986036bf99dce15fd3390435d626d9de7ec3f55697dad34198c78f9dfa9d556a76837ba0cb7695a83b7f07d4e9b6556f959a5d01b8790f482daf2
7
- data.tar.gz: 1e8c35aa33e3f073344f9b124b11bb107bbe87fecc4f4aad8dfd891e87bcad5a272d59cc1097323750aaf19aef59d3f3fbcbb439f16d545e9b21cd09d5d50544
6
+ metadata.gz: 58967c73f53662a93e169fae3f1d1fcb4cdfb3e3b66ea3d91496019a647e061c0d82e0a59f9b9ada67328d16d9447b3c7813389868c91662a5f90fd2a9780083
7
+ data.tar.gz: 60b1b44f8e8678befabb4b4d2d26530bcd736d9066eb21cb9196c7a99092b6f434144b7f613a4ee122894c001d2b377482b26e75d1d7cbe7fd7aa7dbae3e1a83
@@ -10,7 +10,7 @@ module ActiveDomain
10
10
  end
11
11
 
12
12
  def self.create_or_get(command_name)
13
- UniqueCommandId.where(command: command_name).first || UniqueCommandId.create!(command: command_name, last_id: 0)
13
+ UniqueCommandId.find_or_create_by! command: command_name
14
14
  end
15
15
 
16
16
  def self.create_new(command)
@@ -2,7 +2,7 @@ class CreateUniqueCommandIds < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :unique_command_ids do |t|
4
4
  t.string :command
5
- t.integer :last_id
5
+ t.integer :last_id, default: 0
6
6
  end
7
7
  add_index :unique_command_ids, :command, unique: true
8
8
  end
@@ -1,7 +1,7 @@
1
1
  module ActiveDomain
2
2
  # Returns the version of the currently loaded ActiveDomain as a Gem::Version
3
3
  def self.version
4
- Gem::Version.new '0.5.0.rc3'
4
+ Gem::Version.new '0.5.0.rc4'
5
5
  end
6
6
 
7
7
  module VERSION #:nodoc:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_domain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0.rc3
4
+ version: 0.5.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - HicknHack Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-24 00:00:00.000000000 Z
11
+ date: 2014-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_event
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.5.0.rc3
19
+ version: 0.5.0.rc4
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: 0.5.0.rc3
26
+ version: 0.5.0.rc4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement