ar_transaction_changes 1.0.3 → 1.1.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: dee69d077e80d97ea14b3bfd42f5c72b29efe5cb
4
- data.tar.gz: 3cdaee8e653e2887654511ba94f7ce0472a2a05d
3
+ metadata.gz: 819e175a8fd364bb81f216e4431e3481c4fb4458
4
+ data.tar.gz: de05ff5509c551638af333b7b42117cd33e4b1f0
5
5
  SHA512:
6
- metadata.gz: 6f16fa2f099397788016cbdd12ed8af5d2bf5fea01584de3b2750e495800794b8604abc0f42f85810098ed020380b9e370cd4f697d27d41f6cb9a1661daaff23
7
- data.tar.gz: 607698eba2112879f2b49b52c08e8fa51648fe6bf03ac221389ef3a33f740643b8f0a05c1d4cefaa75585061dd8b2e16d86ec599be1e2d740e2b3a56207e2829
6
+ metadata.gz: dcf1129a18a18cf496049e54ef46169c40ce6d36cc7ac67c7ae688188fb89a614813418e4d143e6a36e6bf1f0d1413dfd156d960f0cb1694ce0f1af934c6e6be
7
+ data.tar.gz: baadb5f8e2083168eaea6eac1374bfc871fa55820b7569a510b6f9a22a93d242c327d1211d19ae3e3cc6270373d871f30eb14975bdde70758fb7e7d32ed34031
data/.travis.yml CHANGED
@@ -2,15 +2,25 @@ language: ruby
2
2
  sudo: false
3
3
 
4
4
  rvm:
5
- - 1.9.3
6
5
  - 2.0.0
7
6
  - 2.1.5
7
+ - 2.2.4
8
8
 
9
9
  gemfile:
10
10
  - gemfiles/rails_3_2.gemfile
11
11
  - gemfiles/rails_4_0.gemfile
12
12
  - gemfiles/rails_4_1.gemfile
13
13
  - gemfiles/rails_4_2.gemfile
14
+ - gemfiles/rails_5.gemfile
15
+
16
+ matrix:
17
+ exclude:
18
+ - rvm: 2.0.0
19
+ gemfile: gemfiles/rails_5.gemfile
20
+ - rvm: 2.1.5
21
+ gemfile: gemfiles/rails_5.gemfile
22
+ - rvm: 2.2.4
23
+ gemfile: gemfiles/rails_3_2.gemfile
14
24
 
15
25
  services:
16
26
  - mysql
data/Appraisals CHANGED
@@ -16,3 +16,7 @@ end
16
16
  appraise "rails-4-2" do
17
17
  gem "rails", "~> 4.2.0"
18
18
  end
19
+
20
+ appraise "rails-5" do
21
+ gem "rails", "~> 5.0.0.beta4"
22
+ end
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency "activerecord", ">= 3.0", "< 5.0"
20
+ gem.add_dependency "activerecord", ">= 3.0", "< 6.0", "!= 4.2.3"
21
21
 
22
22
  gem.add_development_dependency("rake")
23
23
  gem.add_development_dependency("mysql2")
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.0.0.beta4"
6
+
7
+ gemspec :path => "../"
@@ -1,7 +1,7 @@
1
1
  require "ar_transaction_changes/version"
2
2
 
3
3
  module ArTransactionChanges
4
- if ActiveRecord::VERSION::MAJOR == 4 && ActiveRecord::VERSION::MINOR == 2 && ActiveRecord::VERSION::TINY != 3
4
+ if ActiveRecord::VERSION::MAJOR > 4 || (ActiveRecord::VERSION::MAJOR == 4 && ActiveRecord::VERSION::MINOR == 2)
5
5
  def _run_create_callbacks
6
6
  ret = super
7
7
  store_transaction_changed_attributes if ret != false
@@ -1,3 +1,3 @@
1
1
  module ArTransactionChanges
2
- VERSION = "1.0.3"
2
+ VERSION = "1.1.0"
3
3
  end
data/test/test_helper.rb CHANGED
@@ -10,6 +10,12 @@ config_filename = test_dir.join("database.yml").exist? ? "database.yml" : "datab
10
10
  database_yml = YAML.load(test_dir.join(config_filename).read)
11
11
  ActiveRecord::Base.establish_connection database_yml['test']
12
12
 
13
+ if Gem::Version.new(ActiveRecord::VERSION::STRING) < Gem::Version.new("4.1")
14
+ class ActiveRecord::ConnectionAdapters::Mysql2Adapter
15
+ NATIVE_DATABASE_TYPES[:primary_key] = "int(11) auto_increment PRIMARY KEY"
16
+ end
17
+ end
18
+
13
19
  ActiveRecord::Base.connection.tap do |db|
14
20
  db.drop_table(:users) if db.table_exists?(:users)
15
21
  db.create_table(:users) do |t|
metadata CHANGED
@@ -1,75 +1,81 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar_transaction_changes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Thacker-Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-16 00:00:00.000000000 Z
11
+ date: 2016-05-04 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
19
  version: '3.0'
20
- - - "<"
20
+ - - <
21
21
  - !ruby/object:Gem::Version
22
- version: '5.0'
22
+ version: '6.0'
23
+ - - '!='
24
+ - !ruby/object:Gem::Version
25
+ version: 4.2.3
23
26
  type: :runtime
24
27
  prerelease: false
25
28
  version_requirements: !ruby/object:Gem::Requirement
26
29
  requirements:
27
- - - ">="
30
+ - - '>='
28
31
  - !ruby/object:Gem::Version
29
32
  version: '3.0'
30
- - - "<"
33
+ - - <
34
+ - !ruby/object:Gem::Version
35
+ version: '6.0'
36
+ - - '!='
31
37
  - !ruby/object:Gem::Version
32
- version: '5.0'
38
+ version: 4.2.3
33
39
  - !ruby/object:Gem::Dependency
34
40
  name: rake
35
41
  requirement: !ruby/object:Gem::Requirement
36
42
  requirements:
37
- - - ">="
43
+ - - '>='
38
44
  - !ruby/object:Gem::Version
39
45
  version: '0'
40
46
  type: :development
41
47
  prerelease: false
42
48
  version_requirements: !ruby/object:Gem::Requirement
43
49
  requirements:
44
- - - ">="
50
+ - - '>='
45
51
  - !ruby/object:Gem::Version
46
52
  version: '0'
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: mysql2
49
55
  requirement: !ruby/object:Gem::Requirement
50
56
  requirements:
51
- - - ">="
57
+ - - '>='
52
58
  - !ruby/object:Gem::Version
53
59
  version: '0'
54
60
  type: :development
55
61
  prerelease: false
56
62
  version_requirements: !ruby/object:Gem::Requirement
57
63
  requirements:
58
- - - ">="
64
+ - - '>='
59
65
  - !ruby/object:Gem::Version
60
66
  version: '0'
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: appraisal
63
69
  requirement: !ruby/object:Gem::Requirement
64
70
  requirements:
65
- - - ">="
71
+ - - '>='
66
72
  - !ruby/object:Gem::Version
67
73
  version: '0'
68
74
  type: :development
69
75
  prerelease: false
70
76
  version_requirements: !ruby/object:Gem::Requirement
71
77
  requirements:
72
- - - ">="
78
+ - - '>='
73
79
  - !ruby/object:Gem::Version
74
80
  version: '0'
75
81
  description: Solves the problem of trying to get all the changes to an object during
@@ -80,8 +86,8 @@ executables: []
80
86
  extensions: []
81
87
  extra_rdoc_files: []
82
88
  files:
83
- - ".gitignore"
84
- - ".travis.yml"
89
+ - .gitignore
90
+ - .travis.yml
85
91
  - Appraisals
86
92
  - Gemfile
87
93
  - LICENSE.txt
@@ -92,6 +98,7 @@ files:
92
98
  - gemfiles/rails_4_0.gemfile
93
99
  - gemfiles/rails_4_1.gemfile
94
100
  - gemfiles/rails_4_2.gemfile
101
+ - gemfiles/rails_5.gemfile
95
102
  - lib/ar_transaction_changes.rb
96
103
  - lib/ar_transaction_changes/version.rb
97
104
  - test/database.yml.default
@@ -107,17 +114,17 @@ require_paths:
107
114
  - lib
108
115
  required_ruby_version: !ruby/object:Gem::Requirement
109
116
  requirements:
110
- - - ">="
117
+ - - '>='
111
118
  - !ruby/object:Gem::Version
112
119
  version: '0'
113
120
  required_rubygems_version: !ruby/object:Gem::Requirement
114
121
  requirements:
115
- - - ">="
122
+ - - '>='
116
123
  - !ruby/object:Gem::Version
117
124
  version: '0'
118
125
  requirements: []
119
126
  rubyforge_project:
120
- rubygems_version: 2.4.5.1
127
+ rubygems_version: 2.0.14.1
121
128
  signing_key:
122
129
  specification_version: 4
123
130
  summary: Store transaction changes for active record objects