drafting 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +10 -2
- data/Appraisals +7 -3
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/gemfiles/rails_4_1.gemfile +2 -2
- data/gemfiles/rails_4_2.gemfile +2 -2
- data/gemfiles/rails_5_0.gemfile +2 -2
- data/gemfiles/rails_5_1.gemfile +7 -0
- data/lib/drafting.rb +6 -0
- data/lib/drafting/version.rb +1 -1
- data/lib/generators/drafting/migration/templates/migration.rb +1 -1
- metadata +4 -6
- data/gemfiles/rails_4_1.gemfile.lock +0 -86
- data/gemfiles/rails_4_2.gemfile.lock +0 -86
- data/gemfiles/rails_5_0.gemfile.lock +0 -84
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61e04953e874ef520f0c4050d466663e9054668f
|
4
|
+
data.tar.gz: 48933b218cd25ebb903c194bd781664dcdce72af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a22afe0d44338e29007d41304a1a5e78cf1400a9a363a3de0f1a7834ef237dfcdac40f9bf31892f83c0ba3731fa380f44d6e89a4bf0f1fedee045b71e52bf1b6
|
7
|
+
data.tar.gz: db8a828b28ccc88474b2ce9296a4adb2e968941310462fd88de3adb119fe438ce8614e1da2aa6033b6e02e2da700fa3f1d4827a16f42cfe494300b5b05377a7c
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -2,17 +2,25 @@ language: ruby
|
|
2
2
|
rvm:
|
3
3
|
- 2.0.0
|
4
4
|
- 2.1.10
|
5
|
-
- 2.2.
|
6
|
-
- 2.3.
|
5
|
+
- 2.2.7
|
6
|
+
- 2.3.4
|
7
|
+
- 2.4.1
|
7
8
|
gemfile:
|
9
|
+
- gemfiles/rails_5_1.gemfile
|
8
10
|
- gemfiles/rails_5_0.gemfile
|
9
11
|
- gemfiles/rails_4_2.gemfile
|
10
12
|
- gemfiles/rails_4_1.gemfile
|
11
13
|
matrix:
|
12
14
|
exclude:
|
15
|
+
- rvm: 2.0.0
|
16
|
+
gemfile: gemfiles/rails_5_1.gemfile
|
17
|
+
- rvm: 2.1.10
|
18
|
+
gemfile: gemfiles/rails_5_1.gemfile
|
13
19
|
- rvm: 2.0.0
|
14
20
|
gemfile: gemfiles/rails_5_0.gemfile
|
15
21
|
- rvm: 2.1.10
|
16
22
|
gemfile: gemfiles/rails_5_0.gemfile
|
23
|
+
- rvm: 2.4.1
|
24
|
+
gemfile: gemfiles/rails_4_1.gemfile
|
17
25
|
before_install: gem update bundler
|
18
26
|
sudo: false
|
data/Appraisals
CHANGED
@@ -1,11 +1,15 @@
|
|
1
|
+
appraise "rails-5-1" do
|
2
|
+
gem "activerecord", "~> 5.1.0"
|
3
|
+
end
|
4
|
+
|
1
5
|
appraise "rails-5-0" do
|
2
|
-
gem "activerecord", "~> 5.0.
|
6
|
+
gem "activerecord", "~> 5.0.2"
|
3
7
|
end
|
4
8
|
|
5
9
|
appraise "rails-4-2" do
|
6
|
-
gem "activerecord", "~> 4.2.
|
10
|
+
gem "activerecord", "~> 4.2.8"
|
7
11
|
end
|
8
12
|
|
9
13
|
appraise "rails-4-1" do
|
10
|
-
gem "activerecord", "~> 4.1.
|
14
|
+
gem "activerecord", "~> 4.1.16"
|
11
15
|
end
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
data/gemfiles/rails_4_1.gemfile
CHANGED
data/gemfiles/rails_4_2.gemfile
CHANGED
data/gemfiles/rails_5_0.gemfile
CHANGED
data/lib/drafting.rb
CHANGED
@@ -7,3 +7,9 @@ require "drafting/instance_methods"
|
|
7
7
|
require "drafting/draft"
|
8
8
|
|
9
9
|
ActiveRecord::Base.extend Drafting::BaseClassMethods
|
10
|
+
|
11
|
+
Drafting::MIGRATION_BASE_CLASS = if ActiveRecord::VERSION::MAJOR >= 5
|
12
|
+
ActiveRecord::Migration[5.0]
|
13
|
+
else
|
14
|
+
ActiveRecord::Migration
|
15
|
+
end
|
data/lib/drafting/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drafting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Georg Ledermann
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -156,11 +156,9 @@ files:
|
|
156
156
|
- bin/setup
|
157
157
|
- drafting.gemspec
|
158
158
|
- gemfiles/rails_4_1.gemfile
|
159
|
-
- gemfiles/rails_4_1.gemfile.lock
|
160
159
|
- gemfiles/rails_4_2.gemfile
|
161
|
-
- gemfiles/rails_4_2.gemfile.lock
|
162
160
|
- gemfiles/rails_5_0.gemfile
|
163
|
-
- gemfiles/
|
161
|
+
- gemfiles/rails_5_1.gemfile
|
164
162
|
- lib/drafting.rb
|
165
163
|
- lib/drafting/base_class_methods.rb
|
166
164
|
- lib/drafting/class_methods.rb
|
@@ -189,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
187
|
version: '0'
|
190
188
|
requirements: []
|
191
189
|
rubyforge_project:
|
192
|
-
rubygems_version: 2.6.
|
190
|
+
rubygems_version: 2.6.11
|
193
191
|
signing_key:
|
194
192
|
specification_version: 4
|
195
193
|
summary: Save draft version of any ActiveRecord object
|
@@ -1,86 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../
|
3
|
-
specs:
|
4
|
-
drafting (0.2.0)
|
5
|
-
activerecord (>= 4.1)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
activemodel (4.1.15)
|
11
|
-
activesupport (= 4.1.15)
|
12
|
-
builder (~> 3.1)
|
13
|
-
activerecord (4.1.15)
|
14
|
-
activemodel (= 4.1.15)
|
15
|
-
activesupport (= 4.1.15)
|
16
|
-
arel (~> 5.0.0)
|
17
|
-
activesupport (4.1.15)
|
18
|
-
i18n (~> 0.6, >= 0.6.9)
|
19
|
-
json (~> 1.7, >= 1.7.7)
|
20
|
-
minitest (~> 5.1)
|
21
|
-
thread_safe (~> 0.1)
|
22
|
-
tzinfo (~> 1.1)
|
23
|
-
appraisal (2.1.0)
|
24
|
-
bundler
|
25
|
-
rake
|
26
|
-
thor (>= 0.14.0)
|
27
|
-
arel (5.0.1.20140414130214)
|
28
|
-
builder (3.2.2)
|
29
|
-
coveralls (0.8.13)
|
30
|
-
json (~> 1.8)
|
31
|
-
simplecov (~> 0.11.0)
|
32
|
-
term-ansicolor (~> 1.3)
|
33
|
-
thor (~> 0.19.1)
|
34
|
-
tins (~> 1.6.0)
|
35
|
-
diff-lcs (1.2.5)
|
36
|
-
docile (1.1.5)
|
37
|
-
factory_girl (4.7.0)
|
38
|
-
activesupport (>= 3.0.0)
|
39
|
-
i18n (0.7.0)
|
40
|
-
json (1.8.3)
|
41
|
-
minitest (5.9.0)
|
42
|
-
rake (11.2.2)
|
43
|
-
rspec (3.5.0)
|
44
|
-
rspec-core (~> 3.5.0)
|
45
|
-
rspec-expectations (~> 3.5.0)
|
46
|
-
rspec-mocks (~> 3.5.0)
|
47
|
-
rspec-core (3.5.0)
|
48
|
-
rspec-support (~> 3.5.0)
|
49
|
-
rspec-expectations (3.5.0)
|
50
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
51
|
-
rspec-support (~> 3.5.0)
|
52
|
-
rspec-mocks (3.5.0)
|
53
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
54
|
-
rspec-support (~> 3.5.0)
|
55
|
-
rspec-support (3.5.0)
|
56
|
-
simplecov (0.11.2)
|
57
|
-
docile (~> 1.1.0)
|
58
|
-
json (~> 1.8)
|
59
|
-
simplecov-html (~> 0.10.0)
|
60
|
-
simplecov-html (0.10.0)
|
61
|
-
sqlite3 (1.3.11)
|
62
|
-
term-ansicolor (1.3.2)
|
63
|
-
tins (~> 1.0)
|
64
|
-
thor (0.19.1)
|
65
|
-
thread_safe (0.3.5)
|
66
|
-
tins (1.6.0)
|
67
|
-
tzinfo (1.2.2)
|
68
|
-
thread_safe (~> 0.1)
|
69
|
-
|
70
|
-
PLATFORMS
|
71
|
-
ruby
|
72
|
-
|
73
|
-
DEPENDENCIES
|
74
|
-
activerecord (~> 4.1.15)
|
75
|
-
appraisal
|
76
|
-
bundler
|
77
|
-
coveralls
|
78
|
-
drafting!
|
79
|
-
factory_girl
|
80
|
-
rake
|
81
|
-
rspec
|
82
|
-
simplecov
|
83
|
-
sqlite3
|
84
|
-
|
85
|
-
BUNDLED WITH
|
86
|
-
1.12.5
|
@@ -1,86 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../
|
3
|
-
specs:
|
4
|
-
drafting (0.2.0)
|
5
|
-
activerecord (>= 4.1)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
activemodel (4.2.6)
|
11
|
-
activesupport (= 4.2.6)
|
12
|
-
builder (~> 3.1)
|
13
|
-
activerecord (4.2.6)
|
14
|
-
activemodel (= 4.2.6)
|
15
|
-
activesupport (= 4.2.6)
|
16
|
-
arel (~> 6.0)
|
17
|
-
activesupport (4.2.6)
|
18
|
-
i18n (~> 0.7)
|
19
|
-
json (~> 1.7, >= 1.7.7)
|
20
|
-
minitest (~> 5.1)
|
21
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
22
|
-
tzinfo (~> 1.1)
|
23
|
-
appraisal (2.1.0)
|
24
|
-
bundler
|
25
|
-
rake
|
26
|
-
thor (>= 0.14.0)
|
27
|
-
arel (6.0.3)
|
28
|
-
builder (3.2.2)
|
29
|
-
coveralls (0.8.13)
|
30
|
-
json (~> 1.8)
|
31
|
-
simplecov (~> 0.11.0)
|
32
|
-
term-ansicolor (~> 1.3)
|
33
|
-
thor (~> 0.19.1)
|
34
|
-
tins (~> 1.6.0)
|
35
|
-
diff-lcs (1.2.5)
|
36
|
-
docile (1.1.5)
|
37
|
-
factory_girl (4.7.0)
|
38
|
-
activesupport (>= 3.0.0)
|
39
|
-
i18n (0.7.0)
|
40
|
-
json (1.8.3)
|
41
|
-
minitest (5.9.0)
|
42
|
-
rake (11.2.2)
|
43
|
-
rspec (3.5.0)
|
44
|
-
rspec-core (~> 3.5.0)
|
45
|
-
rspec-expectations (~> 3.5.0)
|
46
|
-
rspec-mocks (~> 3.5.0)
|
47
|
-
rspec-core (3.5.0)
|
48
|
-
rspec-support (~> 3.5.0)
|
49
|
-
rspec-expectations (3.5.0)
|
50
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
51
|
-
rspec-support (~> 3.5.0)
|
52
|
-
rspec-mocks (3.5.0)
|
53
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
54
|
-
rspec-support (~> 3.5.0)
|
55
|
-
rspec-support (3.5.0)
|
56
|
-
simplecov (0.11.2)
|
57
|
-
docile (~> 1.1.0)
|
58
|
-
json (~> 1.8)
|
59
|
-
simplecov-html (~> 0.10.0)
|
60
|
-
simplecov-html (0.10.0)
|
61
|
-
sqlite3 (1.3.11)
|
62
|
-
term-ansicolor (1.3.2)
|
63
|
-
tins (~> 1.0)
|
64
|
-
thor (0.19.1)
|
65
|
-
thread_safe (0.3.5)
|
66
|
-
tins (1.6.0)
|
67
|
-
tzinfo (1.2.2)
|
68
|
-
thread_safe (~> 0.1)
|
69
|
-
|
70
|
-
PLATFORMS
|
71
|
-
ruby
|
72
|
-
|
73
|
-
DEPENDENCIES
|
74
|
-
activerecord (~> 4.2.6)
|
75
|
-
appraisal
|
76
|
-
bundler
|
77
|
-
coveralls
|
78
|
-
drafting!
|
79
|
-
factory_girl
|
80
|
-
rake
|
81
|
-
rspec
|
82
|
-
simplecov
|
83
|
-
sqlite3
|
84
|
-
|
85
|
-
BUNDLED WITH
|
86
|
-
1.12.5
|
@@ -1,84 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../
|
3
|
-
specs:
|
4
|
-
drafting (0.2.0)
|
5
|
-
activerecord (>= 4.1)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
activemodel (5.0.0)
|
11
|
-
activesupport (= 5.0.0)
|
12
|
-
activerecord (5.0.0)
|
13
|
-
activemodel (= 5.0.0)
|
14
|
-
activesupport (= 5.0.0)
|
15
|
-
arel (~> 7.0)
|
16
|
-
activesupport (5.0.0)
|
17
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
-
i18n (~> 0.7)
|
19
|
-
minitest (~> 5.1)
|
20
|
-
tzinfo (~> 1.1)
|
21
|
-
appraisal (2.1.0)
|
22
|
-
bundler
|
23
|
-
rake
|
24
|
-
thor (>= 0.14.0)
|
25
|
-
arel (7.0.0)
|
26
|
-
concurrent-ruby (1.0.2)
|
27
|
-
coveralls (0.8.13)
|
28
|
-
json (~> 1.8)
|
29
|
-
simplecov (~> 0.11.0)
|
30
|
-
term-ansicolor (~> 1.3)
|
31
|
-
thor (~> 0.19.1)
|
32
|
-
tins (~> 1.6.0)
|
33
|
-
diff-lcs (1.2.5)
|
34
|
-
docile (1.1.5)
|
35
|
-
factory_girl (4.7.0)
|
36
|
-
activesupport (>= 3.0.0)
|
37
|
-
i18n (0.7.0)
|
38
|
-
json (1.8.3)
|
39
|
-
minitest (5.9.0)
|
40
|
-
rake (11.2.2)
|
41
|
-
rspec (3.5.0)
|
42
|
-
rspec-core (~> 3.5.0)
|
43
|
-
rspec-expectations (~> 3.5.0)
|
44
|
-
rspec-mocks (~> 3.5.0)
|
45
|
-
rspec-core (3.5.0)
|
46
|
-
rspec-support (~> 3.5.0)
|
47
|
-
rspec-expectations (3.5.0)
|
48
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
49
|
-
rspec-support (~> 3.5.0)
|
50
|
-
rspec-mocks (3.5.0)
|
51
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
52
|
-
rspec-support (~> 3.5.0)
|
53
|
-
rspec-support (3.5.0)
|
54
|
-
simplecov (0.11.2)
|
55
|
-
docile (~> 1.1.0)
|
56
|
-
json (~> 1.8)
|
57
|
-
simplecov-html (~> 0.10.0)
|
58
|
-
simplecov-html (0.10.0)
|
59
|
-
sqlite3 (1.3.11)
|
60
|
-
term-ansicolor (1.3.2)
|
61
|
-
tins (~> 1.0)
|
62
|
-
thor (0.19.1)
|
63
|
-
thread_safe (0.3.5)
|
64
|
-
tins (1.6.0)
|
65
|
-
tzinfo (1.2.2)
|
66
|
-
thread_safe (~> 0.1)
|
67
|
-
|
68
|
-
PLATFORMS
|
69
|
-
ruby
|
70
|
-
|
71
|
-
DEPENDENCIES
|
72
|
-
activerecord (~> 5.0.0)
|
73
|
-
appraisal
|
74
|
-
bundler
|
75
|
-
coveralls
|
76
|
-
drafting!
|
77
|
-
factory_girl
|
78
|
-
rake
|
79
|
-
rspec
|
80
|
-
simplecov
|
81
|
-
sqlite3
|
82
|
-
|
83
|
-
BUNDLED WITH
|
84
|
-
1.12.5
|