twenty-server 0.5.6 → 0.5.8

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: dea1ad302d6a0d97724553541aa9fc2b01f8a4a48faa9e30983f51827b9407ba
4
- data.tar.gz: 8bec34fcf0498dcc2fedaa95dd6d857d400cc6728dd5d891edfc68155ce0a094
3
+ metadata.gz: e3de5088ddccb20ecdabf3fb225c997773206e5d795e68a7bf57f2f787faba14
4
+ data.tar.gz: 574ff4a56adcd608bb950c4e572b63737dc8823c1f1055909a6ac02aee4d5c85
5
5
  SHA512:
6
- metadata.gz: 20de5cea99568ce83847aaf13ee125298d58fa76640c4986298da9eb794f86feaf07fc71aef5d1cc51406c49ceb357d159ef124c5261cebf3f897eef7130287c
7
- data.tar.gz: 8d621a10caa0e5074a570b80574f2efb8bc4337126e0915a6dbd24c2e0f16b30a2dfdf1af01ae7c8c962b9e9a8a516f754d53bc06cd9a86c9d66b2bd77005960
6
+ metadata.gz: 76d9d40d0184140c79d643b20dc0d17c55929c298e17622896ba18f0bcbcbd804c277d7018019025720d68877b0abe7f84ccea7f09d1ae8df93879775a6d2768
7
+ data.tar.gz: a271cf45789f44a934fc1e3e2e932d153b78a6667ce6f73ca0e949b78a0a5c2214061e92f327c7f32fe60bf7fd23ce14a4d5dbdbab64336212f23e70df1c6f9e
@@ -2,6 +2,7 @@
2
2
 
3
3
  Sequel.migration do
4
4
  up do
5
+ next if table_exists?(:projects)
5
6
  create_table(:projects) do
6
7
  primary_key :id
7
8
  String :name, null: false
@@ -2,6 +2,7 @@
2
2
 
3
3
  Sequel.migration do
4
4
  up do
5
+ next if table_exists?(:tasks)
5
6
  create_table(:tasks) do |t|
6
7
  primary_key :id
7
8
  String :title, null: false
@@ -1,7 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  Sequel.migration do
4
+ column_exists = ->(table, column) do
5
+ schema = Twenty.connection.schema(table)
6
+ schema.find { |(key,_)| key == column }
7
+ end
8
+
4
9
  up do
10
+ next if column_exists.call(:projects, :color)
5
11
  default = Twenty::Mixin::Colorable.random_color
6
12
  add_column :projects, :color, :string, null: false, default:
7
13
  end
@@ -5,8 +5,8 @@ module Twenty::Rack
5
5
  require_relative "rack/graphql"
6
6
 
7
7
  ##
8
- # @param [Hash] options
9
- # A hash of server options.
8
+ # @param [Hash, #to_h] options
9
+ # Hash of server options
10
10
  #
11
11
  # @return [Thread]
12
12
  def self.server(options = {})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twenty-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - '0x1eef'
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-27 00:00:00.000000000 Z
11
+ date: 2024-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.1'
61
+ version: 0.2.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.1'
68
+ version: 0.2.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: test-unit
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -134,7 +134,8 @@ files:
134
134
  homepage: https://github.com/0x1eef/twenty#readme
135
135
  licenses:
136
136
  - 0BSD
137
- metadata: {}
137
+ metadata:
138
+ source_code_uri: https://github.com/0x1eef/twenty#readme
138
139
  post_install_message:
139
140
  rdoc_options: []
140
141
  require_paths: