inferno_core 0.4.2 → 0.4.3

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: 7eeff3e3be6b7d10c7fbd77ae32a64cf26dad18278d71f01c291e7d40727752d
4
+ data.tar.gz: 0506db9f4e60f56d76b0f43ec1dff411288d7d141df85dacc8c718cc417f24ed
5
5
  SHA512:
6
- metadata.gz: eb6b665f31c1e7dc9b22fde26fae00b55a337aa3c4b6fbbb9bf4666dd9ac7e4fb439f14d1a46b5025ca7459b5cbc0417f8bcbdddb1609152b0844dd15112a841
7
- data.tar.gz: 4ae2f34f6f2a60479a19e24ef67c4b828569243c3022b71c3b996bca61eb587f7132e2323392431b82debd78f0c6bf51d504dd55faec94c59a6cb4e746552032
6
+ metadata.gz: 0ac87f806f8f5df20ca88471448b81f165eb8291ab1bce028a24b0d00fb6349962e63f9157f337a4501b23cfaa0561d0a802e0c8cc4e1fa113e8afc4a76ec9e0
7
+ data.tar.gz: 41161c6b1b86caf0cdbb898bc35e98e4f23c52f162a0698bba84f69bfbea535a2ae83f1e59e7a9b6cb3a2fcf48621a3f7c9c961d2e7199f3b0bc46d5b9438117
@@ -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.3'.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.3
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-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -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