inferno_core 0.4.2 → 0.4.4

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: 9d984c60dfe1b57fb5459e3a7128eefc3c8c364bf2841baa72f0fbdbb1df1c1f
4
- data.tar.gz: 534f1ff6d2c5dabeecc6c3530138906c9f62238d57822722bc4ef427032ff0ef
3
+ metadata.gz: 0fc53d7cfc20506e263bf358bba6d477fb6dff4b0523530bd2aef3d191283c28
4
+ data.tar.gz: aff080de4856187943390ee5478dfdd791a8962e21067be89aa7a5d40708e84c
5
5
  SHA512:
6
- metadata.gz: eb6b665f31c1e7dc9b22fde26fae00b55a337aa3c4b6fbbb9bf4666dd9ac7e4fb439f14d1a46b5025ca7459b5cbc0417f8bcbdddb1609152b0844dd15112a841
7
- data.tar.gz: 4ae2f34f6f2a60479a19e24ef67c4b828569243c3022b71c3b996bca61eb587f7132e2323392431b82debd78f0c6bf51d504dd55faec94c59a6cb4e746552032
6
+ metadata.gz: b1f8fb8df13079cc0f8f9007fb1d550ec96760fe9438bc4281115c26c1a6beb55e9e7dd826f87f6dea9d4b5c97c0546cb6090fbf2370febf5c2568c333f0fda4
7
+ data.tar.gz: 9136dc23b84c4da21bbfd0c79cddab3d16e2aa25528a88b5636f47968aa8e801b657a1daac56f211ca0fd9c567484fcea8d1556ec8a0bc9fb206aa97ee5b8822
@@ -0,0 +1,9 @@
1
+ Sequel.migration do
2
+ change do
3
+ drop_column :headers, :created_at
4
+ drop_column :headers, :updated_at
5
+
6
+ drop_column :messages, :created_at
7
+ drop_column :messages, :updated_at
8
+ end
9
+ end
@@ -77,8 +77,6 @@ Sequel.migration do
77
77
  foreign_key :result_id, :results, :type=>String, :size=>36, :null=>false, :key=>[:id]
78
78
  String :type, :size=>255, :null=>false
79
79
  String :message, :text=>true, :null=>false
80
- DateTime :created_at, :null=>false
81
- DateTime :updated_at, :null=>false
82
80
 
83
81
  index [:id]
84
82
  index [:result_id]
@@ -111,8 +109,6 @@ Sequel.migration do
111
109
  String :type, :size=>255, :null=>false
112
110
  String :name, :size=>255, :null=>false
113
111
  String :value, :text=>true
114
- DateTime :created_at, :null=>false
115
- DateTime :updated_at, :null=>false
116
112
 
117
113
  index [:id]
118
114
  index [:request_id]
@@ -12,12 +12,8 @@ module Inferno
12
12
  # @return [String] header value
13
13
  # @!attribute type
14
14
  # @return [String] request/response
15
- # @!attribute created_at
16
- # @return [Time]
17
- # @!attribute updated_at
18
- # @return [Time]
19
15
  class Header < Entity
20
- ATTRIBUTES = [:id, :request_id, :name, :type, :value, :created_at, :updated_at].freeze
16
+ ATTRIBUTES = [:id, :request_id, :name, :type, :value].freeze
21
17
 
22
18
  include Inferno::Entities::Attributes
23
19
 
@@ -39,9 +35,7 @@ module Inferno
39
35
  request_id:,
40
36
  type:,
41
37
  name:,
42
- value:,
43
- created_at:,
44
- updated_at:
38
+ value:
45
39
  }.compact
46
40
  end
47
41
  end
@@ -14,12 +14,8 @@ module Inferno
14
14
  # @return [String]
15
15
  # @!attribute message
16
16
  # @return [String]
17
- # @!attribute created_at
18
- # @return [Time]
19
- # @!attribute updated_at
20
- # @return [Time]
21
17
  class Message < Entity
22
- ATTRIBUTES = [:id, :index, :message, :result_id, :result, :type, :created_at, :updated_at].freeze
18
+ ATTRIBUTES = [:id, :index, :message, :result_id, :result, :type].freeze
23
19
  TYPES = ['error', 'warning', 'info'].freeze
24
20
 
25
21
  include Inferno::Entities::Attributes
@@ -6,9 +6,6 @@ module Inferno
6
6
 
7
7
  def before_create
8
8
  self.id = SecureRandom.uuid
9
- time = Time.now
10
- self.created_at ||= time
11
- self.updated_at ||= time
12
9
  super
13
10
  end
14
11
 
@@ -16,9 +16,6 @@ module Inferno
16
16
 
17
17
  def before_create
18
18
  self.id = SecureRandom.uuid
19
- time = Time.now
20
- self.created_at ||= time
21
- self.updated_at ||= time
22
19
  super
23
20
  end
24
21
 
@@ -1,4 +1,4 @@
1
1
  module Inferno
2
2
  # Standard patterns for gem versions: https://guides.rubygems.org/patterns/
3
- VERSION = '0.4.2'.freeze
3
+ VERSION = '0.4.4'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inferno_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen MacVicar
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-10-27 00:00:00.000000000 Z
13
+ date: 2022-11-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -186,14 +186,14 @@ dependencies:
186
186
  requirements:
187
187
  - - '='
188
188
  - !ruby/object:Gem::Version
189
- version: 2.0.0.beta2
189
+ version: 2.0.0
190
190
  type: :runtime
191
191
  prerelease: false
192
192
  version_requirements: !ruby/object:Gem::Requirement
193
193
  requirements:
194
194
  - - '='
195
195
  - !ruby/object:Gem::Version
196
- version: 2.0.0.beta2
196
+ version: 2.0.0
197
197
  - !ruby/object:Gem::Dependency
198
198
  name: oj
199
199
  requirement: !ruby/object:Gem::Requirement
@@ -556,6 +556,7 @@ files:
556
556
  - lib/inferno/db/migrations/005_add_updated_at_index_to_results.rb
557
557
  - lib/inferno/db/migrations/006_remove_unused_tables.rb
558
558
  - lib/inferno/db/migrations/007_add_suite_options.rb
559
+ - lib/inferno/db/migrations/008_remove_timestamps.rb
559
560
  - lib/inferno/db/schema.rb
560
561
  - lib/inferno/dsl.rb
561
562
  - lib/inferno/dsl/assertions.rb