rapns 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,10 @@ class RapnsGenerator < Rails::Generators::Base
3
3
  source_root File.expand_path('../templates', __FILE__)
4
4
 
5
5
  def self.next_migration_number(path)
6
- Time.now.utc.strftime("%Y%m%d%H%M%S")
6
+ @time ||= Time.now.utc
7
+ @calls ||= -1
8
+ @calls += 1
9
+ (@time + @calls.seconds).strftime("%Y%m%d%H%M%S")
7
10
  end
8
11
 
9
12
  def copy_migration
data/lib/rapns/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rapns
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapns
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-07 00:00:00.000000000 Z
12
+ date: 2012-02-15 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Easy to use library for Apple's Push Notification Service with Rails
15
15
  3