transaction_timestamps 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +7 -0
- data/.travis.yml +8 -1
- data/Appraisals +29 -0
- data/README.md +6 -0
- data/gemfiles/rails_4.2_mysql.gemfile +8 -0
- data/gemfiles/rails_4.2_postgres.gemfile +8 -0
- data/gemfiles/rails_4.2_sqlite.gemfile +8 -0
- data/gemfiles/rails_5_mysql.gemfile +8 -0
- data/gemfiles/rails_5_postgres.gemfile +8 -0
- data/gemfiles/rails_5_sqlite.gemfile +8 -0
- data/lib/transaction_timestamps/version.rb +1 -1
- data/transaction_timestamps.gemspec +2 -2
- metadata +21 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6c989a06fec67e9d3328dd1642dc09229b86730
|
4
|
+
data.tar.gz: 7653b548b373a200b328cf1da81fe2466be27698
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 727796540b355b3eebb311640594dfb350310d68c2a431d1cd53d1497e93dc77ede42579387c874f1d12aa5d1f41fa210603b8d9dffac3bd531d49a966e25d80
|
7
|
+
data.tar.gz: 2131d2f5411e33ef21d358435d7b28034ef9c2bb3318ffad1f6b3e348b80500287fdf6eecaa47d5b365b2d24501c4cb19d8c2e7e8016dfc0b2c3c0cf926540e2
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 2.2.
|
3
|
+
- 2.2.3
|
4
4
|
before_install: gem install bundler -v 1.11.2
|
5
|
+
gemfile:
|
6
|
+
- gemfiles/rails_4.2_sqlite.gemfile
|
7
|
+
- gemfiles/rails_4.2_postgres.gemfile
|
8
|
+
- gemfiles/rails_4.2_mysql.gemfile
|
9
|
+
- gemfiles/rails_5_sqlite.gemfile
|
10
|
+
- gemfiles/rails_5_postgres.gemfile
|
11
|
+
- gemfiles/rails_5_mysql.gemfile
|
data/Appraisals
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
appraise "rails-4.2-sqlite" do
|
2
|
+
gem "rails", "~> 4.2.0"
|
3
|
+
gem 'sqlite3'
|
4
|
+
end
|
5
|
+
|
6
|
+
appraise "rails-4.2-postgres" do
|
7
|
+
gem "rails", "~> 4.2.0"
|
8
|
+
gem 'pg'
|
9
|
+
end
|
10
|
+
|
11
|
+
appraise "rails-4.2-mysql" do
|
12
|
+
gem "rails", "~> 4.2.0"
|
13
|
+
gem 'mysql2'
|
14
|
+
end
|
15
|
+
|
16
|
+
appraise "rails-5-sqlite" do
|
17
|
+
gem "rails", "~> 5.0.0.beta3"
|
18
|
+
gem 'sqlite3'
|
19
|
+
end
|
20
|
+
|
21
|
+
appraise "rails-5-postgres" do
|
22
|
+
gem "rails", "~> 5.0.0.beta3"
|
23
|
+
gem 'pg'
|
24
|
+
end
|
25
|
+
|
26
|
+
appraise "rails-5-mysql" do
|
27
|
+
gem "rails", "~> 5.0.0.beta3"
|
28
|
+
gem 'mysql2'
|
29
|
+
end
|
data/README.md
CHANGED
@@ -4,6 +4,10 @@ Transaction timestamps sets a Rails model's `created_at` and `updated_at` timest
|
|
4
4
|
rather than the current time. This is useful for aligning the timestamps of different models saved within a single
|
5
5
|
transaction to be exactly the same.
|
6
6
|
|
7
|
+
## Requirements
|
8
|
+
|
9
|
+
`transaction_timestamps` depends on Rails >= 4.2
|
10
|
+
|
7
11
|
## Installation
|
8
12
|
|
9
13
|
Add this line to your application's Gemfile:
|
@@ -34,6 +38,8 @@ event in the transaction is used.
|
|
34
38
|
|
35
39
|
## Contributing
|
36
40
|
|
41
|
+
Install all depedencies with `appraisal install`. Run tests on all supported systems with `appraisal rspec`.
|
42
|
+
|
37
43
|
Bug reports and pull requests are welcome on GitHub at https://github.com/coupa/transaction_timestamps.
|
38
44
|
|
39
45
|
|
@@ -20,10 +20,10 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
22
|
|
23
|
-
spec.add_dependency "activerecord", "
|
23
|
+
spec.add_dependency "activerecord", ">= 4.2"
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.11"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
26
26
|
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
-
spec.add_development_dependency "sqlite3", "~> 1.0"
|
28
27
|
spec.add_development_dependency "combustion", "~> 0.5.0"
|
28
|
+
spec.add_development_dependency 'appraisal'
|
29
29
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transaction_timestamps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kent Mewhort @ Coupa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '4.
|
19
|
+
version: '4.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '4.
|
26
|
+
version: '4.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,33 +67,33 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: combustion
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 0.5.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 0.5.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: appraisal
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0
|
96
|
+
version: '0'
|
97
97
|
description: Keeps the timestamps for all models created or updated in at transaction
|
98
98
|
the same
|
99
99
|
email:
|
@@ -107,10 +107,17 @@ files:
|
|
107
107
|
- ".ruby-gemset"
|
108
108
|
- ".ruby-version"
|
109
109
|
- ".travis.yml"
|
110
|
+
- Appraisals
|
110
111
|
- Gemfile
|
111
112
|
- LICENSE.txt
|
112
113
|
- README.md
|
113
114
|
- Rakefile
|
115
|
+
- gemfiles/rails_4.2_mysql.gemfile
|
116
|
+
- gemfiles/rails_4.2_postgres.gemfile
|
117
|
+
- gemfiles/rails_4.2_sqlite.gemfile
|
118
|
+
- gemfiles/rails_5_mysql.gemfile
|
119
|
+
- gemfiles/rails_5_postgres.gemfile
|
120
|
+
- gemfiles/rails_5_sqlite.gemfile
|
114
121
|
- lib/transaction_timestamps.rb
|
115
122
|
- lib/transaction_timestamps/railtie.rb
|
116
123
|
- lib/transaction_timestamps/timestamp.rb
|