amoeba 3.2.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/jruby.yml +27 -0
- data/.github/workflows/ruby_25.yml +30 -0
- data/.github/workflows/ruby_26.yml +30 -0
- data/.github/workflows/ruby_27.yml +30 -0
- data/.github/workflows/ruby_30.yml +34 -0
- data/.github/workflows/ruby_31.yml +34 -0
- data/.github/workflows/ruby_32.yml +34 -0
- data/.github/workflows/ruby_head.yml +34 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +11 -7
- data/.rubocop_todo.yml +120 -0
- data/Appraisals +21 -38
- data/CHANGELOG.md +14 -0
- data/Gemfile +5 -2
- data/LICENSE.md +11 -0
- data/README.md +2 -16
- data/Rakefile +2 -0
- data/amoeba.gemspec +15 -12
- data/gemfiles/activerecord_5.2.gemfile +9 -8
- data/gemfiles/activerecord_6.0.gemfile +9 -8
- data/gemfiles/activerecord_6.1.gemfile +9 -8
- data/gemfiles/activerecord_7.0.gemfile +19 -0
- data/gemfiles/activerecord_head.gemfile +10 -13
- data/gemfiles/jruby_activerecord_7.0.gemfile +20 -0
- data/gemfiles/jruby_activerecord_head.gemfile +13 -15
- data/lib/amoeba/class_methods.rb +2 -0
- data/lib/amoeba/cloner.rb +11 -4
- data/lib/amoeba/config.rb +23 -51
- data/lib/amoeba/instance_methods.rb +3 -0
- data/lib/amoeba/macros/base.rb +4 -1
- data/lib/amoeba/macros/has_and_belongs_to_many.rb +2 -0
- data/lib/amoeba/macros/has_many.rb +2 -0
- data/lib/amoeba/macros/has_one.rb +4 -0
- data/lib/amoeba/macros.rb +2 -0
- data/lib/amoeba/version.rb +3 -1
- data/lib/amoeba.rb +6 -2
- data/spec/lib/amoeba_spec.rb +45 -31
- data/spec/spec_helper.rb +13 -5
- data/spec/support/data.rb +22 -15
- data/spec/support/models.rb +39 -38
- metadata +60 -29
- data/.travis.yml +0 -110
- data/gemfiles/activerecord_4.2.gemfile +0 -18
- data/gemfiles/activerecord_5.0.gemfile +0 -18
- data/gemfiles/activerecord_5.1.gemfile +0 -18
- data/gemfiles/jruby_activerecord_6.1.gemfile +0 -19
data/.travis.yml
DELETED
@@ -1,110 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.2
|
4
|
-
- 2.3
|
5
|
-
- 2.4
|
6
|
-
- 2.5
|
7
|
-
- 2.6
|
8
|
-
- 2.7
|
9
|
-
- 3.0
|
10
|
-
- ruby-head
|
11
|
-
- jruby
|
12
|
-
gemfile:
|
13
|
-
- gemfiles/activerecord_4.2.gemfile
|
14
|
-
- gemfiles/activerecord_5.0.gemfile
|
15
|
-
- gemfiles/activerecord_5.1.gemfile
|
16
|
-
- gemfiles/activerecord_5.2.gemfile
|
17
|
-
- gemfiles/activerecord_6.0.gemfile
|
18
|
-
- gemfiles/activerecord_6.1.gemfile
|
19
|
-
- gemfiles/jruby_activerecord_6.1.gemfile
|
20
|
-
- gemfiles/activerecord_head.gemfile
|
21
|
-
- gemfiles/jruby_activerecord_head.gemfile
|
22
|
-
matrix:
|
23
|
-
allow_failures:
|
24
|
-
- rvm: ruby-head
|
25
|
-
- rvm: jruby
|
26
|
-
# These may work if there is a new version of sqlite3 1.3.x supporting
|
27
|
-
# Ruby 3.0
|
28
|
-
- rvm: 3.0
|
29
|
-
gemfile: gemfiles/activerecord_5.0.gemfile
|
30
|
-
- rvm: 3.0
|
31
|
-
gemfile: gemfiles/activerecord_5.1.gemfile
|
32
|
-
- rvm: 3.0
|
33
|
-
gemfile: gemfiles/activerecord_5.2.gemfile
|
34
|
-
exclude:
|
35
|
-
- rvm: 2.2
|
36
|
-
gemfile: gemfiles/activerecord_6.0.gemfile
|
37
|
-
- rvm: 2.2
|
38
|
-
gemfile: gemfiles/activerecord_6.1.gemfile
|
39
|
-
- rvm: 2.2
|
40
|
-
gemfile: gemfiles/activerecord_head.gemfile
|
41
|
-
- rvm: 2.2
|
42
|
-
gemfile: gemfiles/jruby_activerecord_6.1.gemfile
|
43
|
-
- rvm: 2.2
|
44
|
-
gemfile: gemfiles/jruby_activerecord_head.gemfile
|
45
|
-
- rvm: 2.3
|
46
|
-
gemfile: gemfiles/activerecord_6.0.gemfile
|
47
|
-
- rvm: 2.3
|
48
|
-
gemfile: gemfiles/activerecord_6.1.gemfile
|
49
|
-
- rvm: 2.3
|
50
|
-
gemfile: gemfiles/activerecord_head.gemfile
|
51
|
-
- rvm: 2.3
|
52
|
-
gemfile: gemfiles/jruby_activerecord_6.1.gemfile
|
53
|
-
- rvm: 2.3
|
54
|
-
gemfile: gemfiles/jruby_activerecord_head.gemfile
|
55
|
-
- rvm: 2.4
|
56
|
-
gemfile: gemfiles/activerecord_6.0.gemfile
|
57
|
-
- rvm: 2.4
|
58
|
-
gemfile: gemfiles/activerecord_6.1.gemfile
|
59
|
-
- rvm: 2.4
|
60
|
-
gemfile: gemfiles/activerecord_head.gemfile
|
61
|
-
- rvm: 2.4
|
62
|
-
gemfile: gemfiles/jruby_activerecord_6.1.gemfile
|
63
|
-
- rvm: 2.4
|
64
|
-
gemfile: gemfiles/jruby_activerecord_head.gemfile
|
65
|
-
- rvm: 2.5
|
66
|
-
gemfile: gemfiles/activerecord_head.gemfile
|
67
|
-
- rvm: 2.5
|
68
|
-
gemfile: gemfiles/jruby_activerecord_6.1.gemfile
|
69
|
-
- rvm: 2.5
|
70
|
-
gemfile: gemfiles/jruby_activerecord_head.gemfile
|
71
|
-
- rvm: 2.6
|
72
|
-
gemfile: gemfiles/activerecord_head.gemfile
|
73
|
-
- rvm: 2.6
|
74
|
-
gemfile: gemfiles/jruby_activerecord_6.1.gemfile
|
75
|
-
- rvm: 2.6
|
76
|
-
gemfile: gemfiles/jruby_activerecord_head.gemfile
|
77
|
-
- rvm: 2.7
|
78
|
-
gemfile: gemfiles/activerecord_4.2.gemfile
|
79
|
-
- rvm: 2.7
|
80
|
-
gemfile: gemfiles/jruby_activerecord_6.1.gemfile
|
81
|
-
- rvm: 2.7
|
82
|
-
gemfile: gemfiles/jruby_activerecord_head.gemfile
|
83
|
-
- rvm: 3.0
|
84
|
-
gemfile: gemfiles/activerecord_4.2.gemfile
|
85
|
-
- rvm: 3.0
|
86
|
-
gemfile: gemfiles/jruby_activerecord_6.1.gemfile
|
87
|
-
- rvm: 3.0
|
88
|
-
gemfile: gemfiles/jruby_activerecord_head.gemfile
|
89
|
-
- rvm: ruby-head
|
90
|
-
gemfile: gemfiles/activerecord_4.2.gemfile
|
91
|
-
- rvm: ruby-head
|
92
|
-
gemfile: gemfiles/jruby_activerecord_6.1.gemfile
|
93
|
-
- rvm: ruby-head
|
94
|
-
gemfile: gemfiles/jruby_activerecord_head.gemfile
|
95
|
-
- rvm: jruby
|
96
|
-
gemfile: gemfiles/activerecord_4.2.gemfile
|
97
|
-
- rvm: jruby
|
98
|
-
gemfile: gemfiles/activerecord_5.0.gemfile
|
99
|
-
- rvm: jruby
|
100
|
-
gemfile: gemfiles/activerecord_5.1.gemfile
|
101
|
-
- rvm: jruby
|
102
|
-
gemfile: gemfiles/activerecord_5.2.gemfile
|
103
|
-
- rvm: jruby
|
104
|
-
gemfile: gemfiles/activerecord_6.0.gemfile
|
105
|
-
- rvm: jruby
|
106
|
-
gemfile: gemfiles/activerecord_6.1.gemfile
|
107
|
-
- rvm: jruby
|
108
|
-
gemfile: gemfiles/activerecord_head.gemfile
|
109
|
-
bundler_args: --without local_development
|
110
|
-
before_install: gem install bundler -v 1.17.3
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "activerecord", "~> 4.2.0"
|
6
|
-
|
7
|
-
group :development, :test do
|
8
|
-
gem "rake"
|
9
|
-
gem "coveralls", require: false
|
10
|
-
gem "sqlite3", "~> 1.3.0"
|
11
|
-
end
|
12
|
-
|
13
|
-
group :local_development do
|
14
|
-
gem "pry"
|
15
|
-
gem "appraisal"
|
16
|
-
end
|
17
|
-
|
18
|
-
gemspec path: "../"
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "activerecord", "~> 5.0.0"
|
6
|
-
|
7
|
-
group :development, :test do
|
8
|
-
gem "rake"
|
9
|
-
gem "coveralls", require: false
|
10
|
-
gem "sqlite3", "~> 1.3.0"
|
11
|
-
end
|
12
|
-
|
13
|
-
group :local_development do
|
14
|
-
gem "pry"
|
15
|
-
gem "appraisal"
|
16
|
-
end
|
17
|
-
|
18
|
-
gemspec path: "../"
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "activerecord", "~> 5.1.0"
|
6
|
-
|
7
|
-
group :development, :test do
|
8
|
-
gem "rake"
|
9
|
-
gem "coveralls", require: false
|
10
|
-
gem "sqlite3", "~> 1.3.0"
|
11
|
-
end
|
12
|
-
|
13
|
-
group :local_development do
|
14
|
-
gem "pry"
|
15
|
-
gem "appraisal"
|
16
|
-
end
|
17
|
-
|
18
|
-
gemspec path: "../"
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "activerecord", "~> 6.1.0"
|
6
|
-
|
7
|
-
group :development, :test do
|
8
|
-
gem "rake"
|
9
|
-
gem "coveralls", require: false
|
10
|
-
gem "activerecord-jdbc-adapter", "~> 61.0"
|
11
|
-
gem "activerecord-jdbcsqlite3-adapter", "~> 61.0"
|
12
|
-
end
|
13
|
-
|
14
|
-
group :local_development do
|
15
|
-
gem "pry"
|
16
|
-
gem "appraisal"
|
17
|
-
end
|
18
|
-
|
19
|
-
gemspec path: "../"
|