kiba-plus 0.1.13 → 0.1.14

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: bbe35735f2f3a6127a9ab2c5d95729f9a7e5a6fa
4
- data.tar.gz: 8d975f78c52c8e3b0515c7403aeeddcd61d63c50
3
+ metadata.gz: ccfeb1e0e0d0597a534850d23ce04f5cee5114ec
4
+ data.tar.gz: c40ac9e7aefeaea658074cc2000978476ad4f549
5
5
  SHA512:
6
- metadata.gz: a4065afb5ecf4fc54aba299173dad3fc628f365bd273eab056178e04bfeb618b446dfa4203e0ca7fb73864c3ea1a0ff32a3bf2e88a4e1a392bef732020a2bd1f
7
- data.tar.gz: 879cede2ab9990971ed4a263a61365cff64a99838cc0c42fc58abecf83640b791c88973c6f1aad6821938ebe96e3adfbb223d2a3efc4aaa0ea02a3e2db74a8e0
6
+ metadata.gz: 5b5fc63b73b49e96f1a82bdd8be7b763c891787fb357d8fb37e3e98f4393a91ea8d65f23250cb26dca83fae05d6e79f3e3a0359044d1ab9e9e39b2a31728814f
7
+ data.tar.gz: 96f7bb6eb6c0273f24f0d71d04417d50f9e7ab548309503d56201c2a78c63b2117a6f42e9f79ea9a5c0b4ebd86385ba4989ea2e45015d1e65ce7f4241fc776cb
@@ -90,7 +90,7 @@ module Kiba
90
90
  job_name,
91
91
  created_at,
92
92
  status) VALUES
93
- (NULL, '#{job_name}', '#{start_at.to_s}', 'executing')
93
+ (NULL, '#{job_name}', '#{start_at.utc.strftime("%Y-%m-%dT%H:%M:%S.%L")}', 'executing')
94
94
  SQL
95
95
  Kiba::Plus.logger.info sql
96
96
  @client.query(sql)
@@ -106,7 +106,7 @@ module Kiba
106
106
  job_name,
107
107
  created_at,
108
108
  status) VALUES
109
- (NULL, '#{job_name}', '#{start_at.to_s}', 'executing') RETURNING id
109
+ (NULL, '#{job_name}', '#{start_at.utc.strftime("%Y-%m-%dT%H:%M:%S.%L")}', 'executing') RETURNING id
110
110
  SQL
111
111
  Kiba::Plus.logger.info sql
112
112
  @client.query(sql)
@@ -143,7 +143,7 @@ module Kiba
143
143
  end
144
144
 
145
145
  def complete_job
146
- sql = "UPDATE #{job_table_name} SET status = 'completed', completed_at = '#{completed_at.to_s}' WHERE id = #{job_id} AND job_name = '#{job_name}'"
146
+ sql = %Q/UPDATE #{job_table_name} SET status = 'completed', completed_at = '#{completed_at.utc.strftime("%Y-%m-%dT%H:%M:%S.%L")}' WHERE id = #{job_id} AND job_name = '#{job_name}'/
147
147
  Kiba::Plus.logger.info sql
148
148
  @client.query(sql)
149
149
  end
@@ -1,5 +1,5 @@
1
1
  module Kiba
2
2
  module Plus
3
- VERSION = "0.1.13"
3
+ VERSION = "0.1.14"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kiba-plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hooopo