sequel_bitemporal 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/sequel/plugins/bitemporal.rb +1 -0
- data/sequel_bitemporal.gemspec +1 -1
- data/spec/bitemporal_date_spec.rb +6 -0
- data/spec/bitemporal_time_spec.rb +6 -0
- metadata +13 -13
data/sequel_bitemporal.gemspec
CHANGED
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "sequel_bitemporal"
|
|
6
|
-
s.version = "0.4.
|
|
6
|
+
s.version = "0.4.6"
|
|
7
7
|
s.authors = ["Joseph HALTER", "Jonathan TRON"]
|
|
8
8
|
s.email = ["joseph.halter@thetalentbox.com", "jonathan.tron@thetalentbox.com"]
|
|
9
9
|
s.homepage = "https://github.com/TalentBox/sequel_bitemporal"
|
|
@@ -418,6 +418,7 @@ describe "Sequel::Plugins::Bitemporal", "with audit" do
|
|
|
418
418
|
master = @master_class.new
|
|
419
419
|
master.should_receive(:updated_by_id).and_return(updated_by_id = stub)
|
|
420
420
|
@audit_class.should_receive(:audit).with(
|
|
421
|
+
master,
|
|
421
422
|
{},
|
|
422
423
|
hash_including({name: "Single Standard", price: 98}),
|
|
423
424
|
Date.today,
|
|
@@ -431,6 +432,7 @@ describe "Sequel::Plugins::Bitemporal", "with audit" do
|
|
|
431
432
|
@audit_class.stub(:audit)
|
|
432
433
|
master.update_attributes name: "Single Standard", price: 98
|
|
433
434
|
@audit_class.should_receive(:audit).with(
|
|
435
|
+
master,
|
|
434
436
|
hash_including({name: "Single Standard", price: 98}),
|
|
435
437
|
hash_including({name: "King size", price: 98}),
|
|
436
438
|
Date.today,
|
|
@@ -444,6 +446,7 @@ describe "Sequel::Plugins::Bitemporal", "with audit" do
|
|
|
444
446
|
@audit_class.stub(:audit)
|
|
445
447
|
master.update_attributes name: "Single Standard", price: 98
|
|
446
448
|
@audit_class.should_receive(:audit).with(
|
|
449
|
+
master,
|
|
447
450
|
hash_including({name: "Single Standard", price: 98}),
|
|
448
451
|
hash_including({name: "King size", price: 98}),
|
|
449
452
|
Date.today,
|
|
@@ -468,6 +471,7 @@ describe "Sequel::Plugins::Bitemporal", "with audit, specifying how to get the u
|
|
|
468
471
|
master = @master_class.new
|
|
469
472
|
master.should_receive(:author_id).and_return(updated_by_id = stub)
|
|
470
473
|
@audit_class.should_receive(:audit).with(
|
|
474
|
+
master,
|
|
471
475
|
{},
|
|
472
476
|
hash_including({name: "Single Standard", price: 98}),
|
|
473
477
|
Date.today,
|
|
@@ -481,6 +485,7 @@ describe "Sequel::Plugins::Bitemporal", "with audit, specifying how to get the u
|
|
|
481
485
|
@audit_class.stub(:audit)
|
|
482
486
|
master.update_attributes name: "Single Standard", price: 98
|
|
483
487
|
@audit_class.should_receive(:audit).with(
|
|
488
|
+
master,
|
|
484
489
|
hash_including({name: "Single Standard", price: 98}),
|
|
485
490
|
hash_including({name: "King size", price: 98}),
|
|
486
491
|
Date.today,
|
|
@@ -494,6 +499,7 @@ describe "Sequel::Plugins::Bitemporal", "with audit, specifying how to get the u
|
|
|
494
499
|
@audit_class.stub(:audit)
|
|
495
500
|
master.update_attributes name: "Single Standard", price: 98
|
|
496
501
|
@audit_class.should_receive(:audit).with(
|
|
502
|
+
master,
|
|
497
503
|
hash_including({name: "Single Standard", price: 98}),
|
|
498
504
|
hash_including({name: "King size", price: 98}),
|
|
499
505
|
Date.today,
|
|
@@ -354,6 +354,7 @@ describe "Sequel::Plugins::Bitemporal", "with audit" do
|
|
|
354
354
|
master = @master_class.new
|
|
355
355
|
master.should_receive(:updated_by_id).and_return(updated_by_id = stub)
|
|
356
356
|
@audit_class.should_receive(:audit).with(
|
|
357
|
+
master,
|
|
357
358
|
{},
|
|
358
359
|
hash_including({name: "Single Standard", price: 98}),
|
|
359
360
|
Time.now,
|
|
@@ -367,6 +368,7 @@ describe "Sequel::Plugins::Bitemporal", "with audit" do
|
|
|
367
368
|
@audit_class.stub(:audit)
|
|
368
369
|
master.update_attributes name: "Single Standard", price: 98
|
|
369
370
|
@audit_class.should_receive(:audit).with(
|
|
371
|
+
master,
|
|
370
372
|
hash_including({name: "Single Standard", price: 98}),
|
|
371
373
|
hash_including({name: "King size", price: 98}),
|
|
372
374
|
Time.now,
|
|
@@ -380,6 +382,7 @@ describe "Sequel::Plugins::Bitemporal", "with audit" do
|
|
|
380
382
|
@audit_class.stub(:audit)
|
|
381
383
|
master.update_attributes name: "Single Standard", price: 98
|
|
382
384
|
@audit_class.should_receive(:audit).with(
|
|
385
|
+
master,
|
|
383
386
|
hash_including({name: "Single Standard", price: 98}),
|
|
384
387
|
hash_including({name: "King size", price: 98}),
|
|
385
388
|
Time.now,
|
|
@@ -405,6 +408,7 @@ describe "Sequel::Plugins::Bitemporal", "with audit, specifying how to get the u
|
|
|
405
408
|
master = @master_class.new
|
|
406
409
|
master.should_receive(:author_id).and_return(updated_by_id = stub)
|
|
407
410
|
@audit_class.should_receive(:audit).with(
|
|
411
|
+
master,
|
|
408
412
|
{},
|
|
409
413
|
hash_including({name: "Single Standard", price: 98}),
|
|
410
414
|
Time.now,
|
|
@@ -418,6 +422,7 @@ describe "Sequel::Plugins::Bitemporal", "with audit, specifying how to get the u
|
|
|
418
422
|
@audit_class.stub(:audit)
|
|
419
423
|
master.update_attributes name: "Single Standard", price: 98
|
|
420
424
|
@audit_class.should_receive(:audit).with(
|
|
425
|
+
master,
|
|
421
426
|
hash_including({name: "Single Standard", price: 98}),
|
|
422
427
|
hash_including({name: "King size", price: 98}),
|
|
423
428
|
Time.now,
|
|
@@ -431,6 +436,7 @@ describe "Sequel::Plugins::Bitemporal", "with audit, specifying how to get the u
|
|
|
431
436
|
@audit_class.stub(:audit)
|
|
432
437
|
master.update_attributes name: "Single Standard", price: 98
|
|
433
438
|
@audit_class.should_receive(:audit).with(
|
|
439
|
+
master,
|
|
434
440
|
hash_including({name: "Single Standard", price: 98}),
|
|
435
441
|
hash_including({name: "King size", price: 98}),
|
|
436
442
|
Time.now,
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sequel_bitemporal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -14,7 +14,7 @@ date: 2011-12-17 00:00:00.000000000 Z
|
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: sequel
|
|
17
|
-
requirement: &
|
|
17
|
+
requirement: &70350931791700 !ruby/object:Gem::Requirement
|
|
18
18
|
none: false
|
|
19
19
|
requirements:
|
|
20
20
|
- - ~>
|
|
@@ -22,10 +22,10 @@ dependencies:
|
|
|
22
22
|
version: 3.30.0
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
|
-
version_requirements: *
|
|
25
|
+
version_requirements: *70350931791700
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: sqlite3
|
|
28
|
-
requirement: &
|
|
28
|
+
requirement: &70350931805020 !ruby/object:Gem::Requirement
|
|
29
29
|
none: false
|
|
30
30
|
requirements:
|
|
31
31
|
- - ! '>='
|
|
@@ -33,10 +33,10 @@ dependencies:
|
|
|
33
33
|
version: '0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
|
-
version_requirements: *
|
|
36
|
+
version_requirements: *70350931805020
|
|
37
37
|
- !ruby/object:Gem::Dependency
|
|
38
38
|
name: rspec
|
|
39
|
-
requirement: &
|
|
39
|
+
requirement: &70350931822120 !ruby/object:Gem::Requirement
|
|
40
40
|
none: false
|
|
41
41
|
requirements:
|
|
42
42
|
- - ~>
|
|
@@ -44,10 +44,10 @@ dependencies:
|
|
|
44
44
|
version: 2.8.0.rc1
|
|
45
45
|
type: :development
|
|
46
46
|
prerelease: false
|
|
47
|
-
version_requirements: *
|
|
47
|
+
version_requirements: *70350931822120
|
|
48
48
|
- !ruby/object:Gem::Dependency
|
|
49
49
|
name: timecop
|
|
50
|
-
requirement: &
|
|
50
|
+
requirement: &70350931835100 !ruby/object:Gem::Requirement
|
|
51
51
|
none: false
|
|
52
52
|
requirements:
|
|
53
53
|
- - ! '>='
|
|
@@ -55,10 +55,10 @@ dependencies:
|
|
|
55
55
|
version: '0'
|
|
56
56
|
type: :development
|
|
57
57
|
prerelease: false
|
|
58
|
-
version_requirements: *
|
|
58
|
+
version_requirements: *70350931835100
|
|
59
59
|
- !ruby/object:Gem::Dependency
|
|
60
60
|
name: rake
|
|
61
|
-
requirement: &
|
|
61
|
+
requirement: &70350931833740 !ruby/object:Gem::Requirement
|
|
62
62
|
none: false
|
|
63
63
|
requirements:
|
|
64
64
|
- - ! '>='
|
|
@@ -66,7 +66,7 @@ dependencies:
|
|
|
66
66
|
version: '0'
|
|
67
67
|
type: :development
|
|
68
68
|
prerelease: false
|
|
69
|
-
version_requirements: *
|
|
69
|
+
version_requirements: *70350931833740
|
|
70
70
|
description: Bitemporal versioning for sequel, fully tested.
|
|
71
71
|
email:
|
|
72
72
|
- joseph.halter@thetalentbox.com
|
|
@@ -102,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
102
102
|
version: '0'
|
|
103
103
|
segments:
|
|
104
104
|
- 0
|
|
105
|
-
hash: -
|
|
105
|
+
hash: -4266328145069519175
|
|
106
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
none: false
|
|
108
108
|
requirements:
|
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
111
111
|
version: '0'
|
|
112
112
|
segments:
|
|
113
113
|
- 0
|
|
114
|
-
hash: -
|
|
114
|
+
hash: -4266328145069519175
|
|
115
115
|
requirements: []
|
|
116
116
|
rubyforge_project:
|
|
117
117
|
rubygems_version: 1.8.10
|