overture 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: 5f0d61e78928fa9a2632f02a2b8585b9b4c72f40e94607c82620d85e88dadf68
4
- data.tar.gz: 693f15ca2c7605f91466675b69034a9564705e1da12d193248922805229b9fe8
3
+ metadata.gz: 7bc3bb4954eec44c918d74beff3547c612b3ec53621ac03232eb13c0a2fa620b
4
+ data.tar.gz: c97759c0737c42da34d87bfb47de20ad34c610569b6eda792332a05df855b933
5
5
  SHA512:
6
- metadata.gz: 5ae9931060de12c83439c1bede4abd32a0fabe67b22c87db03a17fb53f65371e301879731d76f18adbe806a4b0f6aa30a26ea40da7751329737d13df08e31f8a
7
- data.tar.gz: 75872e72b6668ba506ab89b390b644ebfd308abfbe14716631005edb9d0e02887c3e6062f6d0bea08f9b7697d313da5ed8afbf6d064ee9077ac8d87fae3dc014
6
+ metadata.gz: 123b2b6743561b93bf847106fc97772cf9d8d68d42d02e2246b668c5fd11cadf8c32b0d0b5e2e8a4077b59ada702c03249cbbdb17c3114a766ee00b4f387c857
7
+ data.tar.gz: 388463c1f9f4878b5266ca191005e7a4cf9b151ff613850edfa989527ce5f8a31513f741186a6092dd7d0bfc7effbfb31198a58c87618c93461dabaae98a2f3e
@@ -6,8 +6,8 @@ Sequel.migration do
6
6
  up do
7
7
  create_table(table_name) do
8
8
  primary_key :id
9
- DateTime :created_at, null: false
10
- DateTime :updated_at, null: false
9
+ DateTime :created_at, null: false, default: Sequel.function(:now)
10
+ DateTime :updated_at, null: false, default: Sequel.function(:now)
11
11
  end
12
12
  end
13
13
 
@@ -2,4 +2,3 @@
2
2
 
3
3
  require 'dotenv/load'
4
4
  require 'overture/version'
5
-
@@ -16,7 +16,7 @@ module Overture
16
16
  pg_json
17
17
  pg_timestamptz
18
18
  named_timezones
19
- ],
19
+ ]
20
20
  }.freeze
21
21
 
22
22
  module_function
@@ -27,4 +27,3 @@ module Overture
27
27
  end
28
28
  end
29
29
  end
30
-
@@ -71,4 +71,3 @@ module Overture
71
71
  end
72
72
  end
73
73
  end
74
-
@@ -8,4 +8,3 @@ module Interactor
8
8
  end
9
9
  end
10
10
  end
11
-
@@ -9,4 +9,3 @@ module Overture
9
9
  Model.plugin :many_through_many
10
10
  Model.plugin :defaults_setter
11
11
  end
12
-
@@ -15,4 +15,3 @@ module Overture
15
15
  end
16
16
  end
17
17
  end
18
-
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Overture
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
6
-
@@ -12,10 +12,6 @@ namespace :db do
12
12
  DB ||= Overture::Database.connect(ENV['DATABASE_URL'])
13
13
  version = args[:version].to_i if args[:version]
14
14
 
15
- def pk_uuid(name)
16
- column name, :uuid, primary_key: true, default: Sequel.function(:uuid_generate_v4)
17
- end
18
-
19
15
  puts "Migrating database to #{version ? "version #{version}" : 'latest version'}..."
20
16
  Sequel::Migrator.run(DB, 'migrations', target: version)
21
17
  end
@@ -41,4 +37,3 @@ namespace :db do
41
37
  end
42
38
  end
43
39
  end
44
-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: overture
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edgar JS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-10 00:00:00.000000000 Z
11
+ date: 2019-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt