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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4a2761cfc95474cdb9dabc2a55e898083089229
4
- data.tar.gz: 00d2179d119e1a9062e5a452bde77a27cbcdb522
3
+ metadata.gz: a6c989a06fec67e9d3328dd1642dc09229b86730
4
+ data.tar.gz: 7653b548b373a200b328cf1da81fe2466be27698
5
5
  SHA512:
6
- metadata.gz: 8e86ecbb39ac5b6bef6cf35a5cb8d42abc22ff5967617b46a36033ca96bdb82b929ddf01dcbb55e034fafdb1257e76fde87614dbb99abc6ca64126074f60e5d8
7
- data.tar.gz: 9196bc25e8519a4c761169659659ef191ebf2213b2c989670e66110f01c0456a5c09d179f4eaa691f2a6b278c5c8c92e1fe0d901a7d1419732ce1e90d2898aeb
6
+ metadata.gz: 727796540b355b3eebb311640594dfb350310d68c2a431d1cd53d1497e93dc77ede42579387c874f1d12aa5d1f41fa210603b8d9dffac3bd531d49a966e25d80
7
+ data.tar.gz: 2131d2f5411e33ef21d358435d7b28034ef9c2bb3318ffad1f6b3e348b80500287fdf6eecaa47d5b365b2d24501c4cb19d8c2e7e8016dfc0b2c3c0cf926540e2
data/.gitignore CHANGED
@@ -8,3 +8,10 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /.idea/
11
+
12
+ # Ignore testing files
13
+ spec/internal/log
14
+ spec/internal/db/*.sqlite
15
+
16
+ # Ignore Appraisal gemfile lock files: https://github.com/thoughtbot/appraisal#version-control
17
+ gemfiles/*.gemfile.lock
@@ -1,4 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.1
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
@@ -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
 
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.2.0"
6
+ gem "mysql2"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.2.0"
6
+ gem "pg"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.2.0"
6
+ gem "sqlite3"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.0.0.beta3"
6
+ gem "mysql2"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.0.0.beta3"
6
+ gem "pg"
7
+
8
+ gemspec :path => "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.0.0.beta3"
6
+ gem "sqlite3"
7
+
8
+ gemspec :path => "../"
@@ -1,3 +1,3 @@
1
1
  module TransactionTimestamps
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -20,10 +20,10 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
 
23
- spec.add_dependency "activerecord", "~> 4.0"
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.1.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-01-22 00:00:00.000000000 Z
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.0'
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.0'
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: sqlite3
70
+ name: combustion
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.0'
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: '1.0'
82
+ version: 0.5.0
83
83
  - !ruby/object:Gem::Dependency
84
- name: combustion
84
+ name: appraisal
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 0.5.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.5.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