unreliable 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2df9e50dfb3c9ec6d3775fbb8b0b93c14cacd7d713c9a6eca64a680e4bb7efb6
4
+ data.tar.gz: 113aaeb8922fb31194e00d1929eb9b6cb6faf1a64890572ff63a343684ad526a
5
+ SHA512:
6
+ metadata.gz: 6d436bcdfc0b08cf2dad17b0a5a4c9cda3374eace84ed9c459253f13134d2ffac8450a10fbbad1feed1772b2136ef7046a8293c949a0834e71b2782015f61eb3
7
+ data.tar.gz: da71c5004921c9328594558338f99b1d94062036281e95d3c991c608c26b3d8e6cbd0a9a66e4c28d7ddfd1dc375ac1ea8f68e60d54bc7f5764986f842f6a3eed
data/Appraisals ADDED
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ # The appraisal gem seems to be a convenient way to use this small config file to
4
+ # build the gemfiles/* for the GitHub CI matrix.
5
+ # Any `bundle update/install` should be accompanied by `bundle exec appraisal update/install`
6
+
7
+ appraise "activerecord-5.0" do
8
+ gem "activerecord", "~> 5.0.0"
9
+ gem "sqlite3", "~> 1.3.6"
10
+ end
11
+
12
+ appraise "activerecord-5.1" do
13
+ gem "activerecord", "~> 5.1.0"
14
+ gem "sqlite3", "~> 1.3.6"
15
+ end
16
+
17
+ appraise "activerecord-5.2" do
18
+ gem "activerecord", "~> 5.2.0"
19
+ gem "sqlite3", "~> 1.3.6"
20
+ end
21
+
22
+ appraise "activerecord-6.0" do
23
+ gem "activerecord", "~> 6.0.0"
24
+ end
25
+
26
+ appraise "activerecord-6.1" do
27
+ gem "activerecord", "~> 6.1.0"
28
+ end
29
+
30
+ appraise "activerecord-7.0" do
31
+ gem "activerecord", "~> 7.0.0"
32
+ end
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ## Unreliable 0.1.0 (March 1, 2022) ##
2
+
3
+ * Initial release.
@@ -0,0 +1,133 @@
1
+
2
+ # Contributor Covenant Code of Conduct
3
+
4
+ ## Our Pledge
5
+
6
+ We as members, contributors, and leaders pledge to make participation in our
7
+ community a harassment-free experience for everyone, regardless of age, body
8
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
9
+ identity and expression, level of experience, education, socio-economic status,
10
+ nationality, personal appearance, race, caste, color, religion, or sexual
11
+ identity and orientation.
12
+
13
+ We pledge to act and interact in ways that contribute to an open, welcoming,
14
+ diverse, inclusive, and healthy community.
15
+
16
+ ## Our Standards
17
+
18
+ Examples of behavior that contributes to a positive environment for our
19
+ community include:
20
+
21
+ * Demonstrating empathy and kindness toward other people
22
+ * Being respectful of differing opinions, viewpoints, and experiences
23
+ * Giving and gracefully accepting constructive feedback
24
+ * Accepting responsibility and apologizing to those affected by our mistakes,
25
+ and learning from the experience
26
+ * Focusing on what is best not just for us as individuals, but for the overall
27
+ community
28
+
29
+ Examples of unacceptable behavior include:
30
+
31
+ * The use of sexualized language or imagery, and sexual attention or advances of
32
+ any kind
33
+ * Trolling, insulting or derogatory comments, and personal or political attacks
34
+ * Public or private harassment
35
+ * Publishing others' private information, such as a physical or email address,
36
+ without their explicit permission
37
+ * Other conduct which could reasonably be considered inappropriate in a
38
+ professional setting
39
+
40
+ ## Enforcement Responsibilities
41
+
42
+ Community leaders are responsible for clarifying and enforcing our standards of
43
+ acceptable behavior and will take appropriate and fair corrective action in
44
+ response to any behavior that they deem inappropriate, threatening, offensive,
45
+ or harmful.
46
+
47
+ Community leaders have the right and responsibility to remove, edit, or reject
48
+ comments, commits, code, wiki edits, issues, and other contributions that are
49
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
50
+ decisions when appropriate.
51
+
52
+ ## Scope
53
+
54
+ This Code of Conduct applies within all community spaces, and also applies when
55
+ an individual is officially representing the community in public spaces.
56
+ Examples of representing our community include using an official e-mail address,
57
+ posting via an official social media account, or acting as an appointed
58
+ representative at an online or offline event.
59
+
60
+ ## Enforcement
61
+
62
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
63
+ reported to the community leaders responsible for enforcement at
64
+ `jamie@mccarthy.vg`.
65
+ All complaints will be reviewed and investigated promptly and fairly.
66
+
67
+ All community leaders are obligated to respect the privacy and security of the
68
+ reporter of any incident.
69
+
70
+ ## Enforcement Guidelines
71
+
72
+ Community leaders will follow these Community Impact Guidelines in determining
73
+ the consequences for any action they deem in violation of this Code of Conduct:
74
+
75
+ ### 1. Correction
76
+
77
+ **Community Impact**: Use of inappropriate language or other behavior deemed
78
+ unprofessional or unwelcome in the community.
79
+
80
+ **Consequence**: A private, written warning from community leaders, providing
81
+ clarity around the nature of the violation and an explanation of why the
82
+ behavior was inappropriate. A public apology may be requested.
83
+
84
+ ### 2. Warning
85
+
86
+ **Community Impact**: A violation through a single incident or series of
87
+ actions.
88
+
89
+ **Consequence**: A warning with consequences for continued behavior. No
90
+ interaction with the people involved, including unsolicited interaction with
91
+ those enforcing the Code of Conduct, for a specified period of time. This
92
+ includes avoiding interactions in community spaces as well as external channels
93
+ like social media. Violating these terms may lead to a temporary or permanent
94
+ ban.
95
+
96
+ ### 3. Temporary Ban
97
+
98
+ **Community Impact**: A serious violation of community standards, including
99
+ sustained inappropriate behavior.
100
+
101
+ **Consequence**: A temporary ban from any sort of interaction or public
102
+ communication with the community for a specified period of time. No public or
103
+ private interaction with the people involved, including unsolicited interaction
104
+ with those enforcing the Code of Conduct, is allowed during this period.
105
+ Violating these terms may lead to a permanent ban.
106
+
107
+ ### 4. Permanent Ban
108
+
109
+ **Community Impact**: Demonstrating a pattern of violation of community
110
+ standards, including sustained inappropriate behavior, harassment of an
111
+ individual, or aggression toward or disparagement of classes of individuals.
112
+
113
+ **Consequence**: A permanent ban from any sort of public interaction within the
114
+ community.
115
+
116
+ ## Attribution
117
+
118
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119
+ version 2.1, available at
120
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121
+
122
+ Community Impact Guidelines were inspired by
123
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124
+
125
+ For answers to common questions about this code of conduct, see the FAQ at
126
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127
+ [https://www.contributor-covenant.org/translations][translations].
128
+
129
+ [homepage]: https://www.contributor-covenant.org
130
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131
+ [Mozilla CoC]: https://github.com/mozilla/diversity
132
+ [FAQ]: https://www.contributor-covenant.org/faq
133
+ [translations]: https://www.contributor-covenant.org/translations
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2022 James McCarthy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,97 @@
1
+ # Unreliable
2
+
3
+ ![CI workflow](https://github.com/jamiemccarthy/unreliable/actions/workflows/ci.yml/badge.svg)
4
+ [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](code_of_conduct.md)
5
+
6
+ Relational databases do not guarantee the order results are returned in, unless an ORDER BY clause makes it unambiguous. However, in practice, they often happen to return the same order most of the time.
7
+
8
+ If your Rails code relies on that accidental ordering, that's a bug. And it's a bug that test suites often don't catch. Your tests may be passing accidentally.
9
+
10
+ In a Rails test environment, Unreliable patches ActiveRecord to always have a final ORDER BY clause that returns results in a random order.
11
+
12
+ With Unreliable installed, every ActiveRecord relation invoked by the test suite will have any ambiguity replaced with randomness. Thus, tests that rely on the ordering of at least two records will typically break at least half the time.
13
+
14
+ If you install Unreliable and your test suite starts failing, but only sometimes, that's your cue to check which relations and scopes your tests are using that you believe to be unambiguously ordered, but actually aren't.
15
+
16
+ Unreliable does nothing outside of test environments, and there is intentionally no way to enable Unreliable in any other environment.
17
+
18
+ # Implementation
19
+
20
+ Unreliable patches `ActiveRecord::QueryMethods#build_arel`, the point where an Arel is converted for use, to append an order to the existing order chain. (The patch is applied after ActiveRecord loads, using `ActiveSupport.on_load`, the standard interface since Rails 4.0.)
21
+
22
+ This means that the ORDER BY applies to not just SELECTs but e.g. delete_all and update_all. It also applies within subqueries.
23
+
24
+ By always appending the random order, we ensure unreliable ordering for relations that have no order at all, and also for relations with an ambiguous order. For example, ordering by a non-unique column, or a combination of multiple columns which together remain non-unique.
25
+
26
+ The patch is only applied when `Rails.env.test?`, and that boolean is also checked on every invocation to make certain it has no effect in any other environment.
27
+
28
+ `Unreliable::Config.disable do ... end` will turn it off for a block.
29
+
30
+ # Fun trivia
31
+
32
+ There are other ways you can order a relation but still have your query be ambiguous!
33
+
34
+ * ORDER BY a column with values that differ only by [character case](https://dev.mysql.com/doc/refman/8.0/en/sorting-rows.html),
35
+ * ORDER BY values that are identical within the [prefix length limit](https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_max_sort_length) examined for sorting
36
+
37
+ `unreliable` correctly tests these because the random order is always appended.
38
+
39
+ # Testing
40
+
41
+ To test locally, against the different versions of ActiveRecord, use Ruby 2.7, the only version currently compatible with all the ActiveRecord versions supported. Install the required gems with:
42
+
43
+ ```
44
+ gem install bundler
45
+ bundle install
46
+ bundle exec appraisal install
47
+ ```
48
+
49
+ Then you can run the tests with:
50
+
51
+ ```
52
+ bundle exec appraisal rake
53
+ ```
54
+
55
+ Appraisal ensures the tests run against every compatible minor version of ActiveRecord.
56
+
57
+ The GitHub CI workflow in `.github/` ensures those tests are also run against against every compatible minor version of Ruby.
58
+
59
+ Testing against ActiveRecord is done with [Combustion](https://github.com/pat/combustion), which stands up a local single-table SQLite database and an ActiveRecord-based model for it. This gives us more reliable coverage than mocking unit tests within ActiveRecord itself.
60
+
61
+ Some initial testing was done against a small but real Rails app locally, which looked like this (I mention this for historical interest only):
62
+
63
+ ```
64
+ Start with 1-line Gemfile `gem "rails", "~> x.y"`, bundle install, then
65
+
66
+ $ bundle exec rails new . --skip-javascript --skip-webpack-install --skip-sprockets --skip-turbolinks --skip-jbuilder --skip-spring
67
+
68
+ Add to Gemfile test block: gem "unreliable", path: "../unreliable", bundle install again
69
+
70
+ $ bundle exec rails generate model post title:string body:text
71
+ $ RAILS_ENV=test bundle exec rails db:migrate
72
+ $ RAILS_ENV=test bundle exec rails c
73
+ Loading test environment (Rails 7.0.1)
74
+ 3.0.1 :001 > puts Post.where(title: "abc").to_sql
75
+ (0.7ms) SELECT sqlite_version(*)
76
+ SELECT "posts".* FROM "posts" WHERE "posts"."title" = 'abc' ORDER BY RAND()
77
+ ```
78
+
79
+ # Development
80
+
81
+ When it's necessary to add new minor versions of ActiveRecord or Ruby, update the Appraisals file and run `bundle exec appraisal update` as well as the install, and update the matrix in the ci.yml workflow.
82
+
83
+ # Contributing
84
+
85
+ Thoughts and suggestions are welcome. Please read the code of conduct, then create an issue or pull request on GitHub.
86
+
87
+ Future work I'd like to see done includes:
88
+
89
+ * Moving to containerized testing, so the test suite can cover MySQL and Postgres.
90
+
91
+ * Addressing the deprecation warnings in the test suite for ActiveRecord 5.x. There are two: SQLite 1.3 warning of incompatibility with Ruby 3.2 (which is irrelevant since Rails 5 won't run on Ruby 3.2 and Rails 6 requires SQLite 1.4). And: `DEPRECATION WARNING: Leaving ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer set to false is deprecated.`
92
+
93
+ * I'd love to see if there is a way to patch test blocks to run them multiple times with different orders (pk asc, desc, rand). It's hard to see a clean way to do this with a BEGIN/ROLLBACK but maybe it's possible. I doubt there is one simple bottleneck for this in RSpec but I haven't looked into it. By nature this gem makes testing nondeterministic, and if there's a way to actually run queries multiple ways, that would be slower but more comprehensive. On the other hand, if a test suite only defines one fixture item, neither this improvement nor the current state of this gem can catch ordering issues.
94
+
95
+ # See also
96
+
97
+ [chaotic_order](https://rubygems.org/gems/chaotic_order)
data/Rakefile ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ begin
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
9
+ rescue LoadError
10
+ # no rspec available
11
+ end
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 5.0.0"
6
+ gem "sqlite3", "~> 1.3.6"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,143 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ unreliable (0.1.0)
5
+ activerecord (>= 5.0)
6
+ railties (>= 5.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionpack (5.0.7.2)
12
+ actionview (= 5.0.7.2)
13
+ activesupport (= 5.0.7.2)
14
+ rack (~> 2.0)
15
+ rack-test (~> 0.6.3)
16
+ rails-dom-testing (~> 2.0)
17
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
18
+ actionview (5.0.7.2)
19
+ activesupport (= 5.0.7.2)
20
+ builder (~> 3.1)
21
+ erubis (~> 2.7.0)
22
+ rails-dom-testing (~> 2.0)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
24
+ activemodel (5.0.7.2)
25
+ activesupport (= 5.0.7.2)
26
+ activerecord (5.0.7.2)
27
+ activemodel (= 5.0.7.2)
28
+ activesupport (= 5.0.7.2)
29
+ arel (~> 7.0)
30
+ activesupport (5.0.7.2)
31
+ concurrent-ruby (~> 1.0, >= 1.0.2)
32
+ i18n (>= 0.7, < 2)
33
+ minitest (~> 5.1)
34
+ tzinfo (~> 1.1)
35
+ appraisal (2.4.1)
36
+ bundler
37
+ rake
38
+ thor (>= 0.14.0)
39
+ arel (7.1.4)
40
+ ast (2.4.2)
41
+ builder (3.2.4)
42
+ combustion (1.3.5)
43
+ activesupport (>= 3.0.0)
44
+ railties (>= 3.0.0)
45
+ thor (>= 0.14.6)
46
+ concurrent-ruby (1.1.9)
47
+ crass (1.0.6)
48
+ diff-lcs (1.5.0)
49
+ docile (1.4.0)
50
+ erubis (2.7.0)
51
+ i18n (1.10.0)
52
+ concurrent-ruby (~> 1.0)
53
+ loofah (2.14.0)
54
+ crass (~> 1.0.2)
55
+ nokogiri (>= 1.5.9)
56
+ method_source (1.0.0)
57
+ minitest (5.15.0)
58
+ nokogiri (1.13.3-x86_64-linux)
59
+ racc (~> 1.4)
60
+ parallel (1.21.0)
61
+ parser (3.1.1.0)
62
+ ast (~> 2.4.1)
63
+ racc (1.6.0)
64
+ rack (2.2.3)
65
+ rack-test (0.6.3)
66
+ rack (>= 1.0)
67
+ rails-dom-testing (2.0.3)
68
+ activesupport (>= 4.2.0)
69
+ nokogiri (>= 1.6)
70
+ rails-html-sanitizer (1.4.2)
71
+ loofah (~> 2.3)
72
+ railties (5.0.7.2)
73
+ actionpack (= 5.0.7.2)
74
+ activesupport (= 5.0.7.2)
75
+ method_source
76
+ rake (>= 0.8.7)
77
+ thor (>= 0.18.1, < 2.0)
78
+ rainbow (3.1.1)
79
+ rake (13.0.6)
80
+ regexp_parser (2.2.1)
81
+ rexml (3.2.5)
82
+ rspec (3.11.0)
83
+ rspec-core (~> 3.11.0)
84
+ rspec-expectations (~> 3.11.0)
85
+ rspec-mocks (~> 3.11.0)
86
+ rspec-core (3.11.0)
87
+ rspec-support (~> 3.11.0)
88
+ rspec-expectations (3.11.0)
89
+ diff-lcs (>= 1.2.0, < 2.0)
90
+ rspec-support (~> 3.11.0)
91
+ rspec-mocks (3.11.0)
92
+ diff-lcs (>= 1.2.0, < 2.0)
93
+ rspec-support (~> 3.11.0)
94
+ rspec-support (3.11.0)
95
+ rubocop (1.25.1)
96
+ parallel (~> 1.10)
97
+ parser (>= 3.1.0.0)
98
+ rainbow (>= 2.2.2, < 4.0)
99
+ regexp_parser (>= 1.8, < 3.0)
100
+ rexml
101
+ rubocop-ast (>= 1.15.1, < 2.0)
102
+ ruby-progressbar (~> 1.7)
103
+ unicode-display_width (>= 1.4.0, < 3.0)
104
+ rubocop-ast (1.16.0)
105
+ parser (>= 3.1.1.0)
106
+ rubocop-performance (1.13.2)
107
+ rubocop (>= 1.7.0, < 2.0)
108
+ rubocop-ast (>= 0.4.0)
109
+ ruby-progressbar (1.11.0)
110
+ simplecov (0.21.2)
111
+ docile (~> 1.1)
112
+ simplecov-html (~> 0.11)
113
+ simplecov_json_formatter (~> 0.1)
114
+ simplecov-html (0.12.3)
115
+ simplecov_json_formatter (0.1.4)
116
+ sqlite3 (1.3.13)
117
+ standard (1.7.2)
118
+ rubocop (= 1.25.1)
119
+ rubocop-performance (= 1.13.2)
120
+ thor (1.2.1)
121
+ thread_safe (0.3.6)
122
+ tzinfo (1.2.9)
123
+ thread_safe (~> 0.1)
124
+ unicode-display_width (2.1.0)
125
+
126
+ PLATFORMS
127
+ x86_64-linux
128
+
129
+ DEPENDENCIES
130
+ activerecord (~> 5.0.0)
131
+ appraisal (~> 2.4)
132
+ bundler (~> 2.1)
133
+ combustion (~> 1.3)
134
+ rake (~> 13.0)
135
+ rspec
136
+ rubocop (~> 1.25)
137
+ simplecov (~> 0.21)
138
+ sqlite3 (~> 1.3.6)
139
+ standard (~> 1.7)
140
+ unreliable!
141
+
142
+ BUNDLED WITH
143
+ 2.3.8
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 5.1.0"
6
+ gem "sqlite3", "~> 1.3.6"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,143 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ unreliable (0.1.0)
5
+ activerecord (>= 5.0)
6
+ railties (>= 5.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionpack (5.1.7)
12
+ actionview (= 5.1.7)
13
+ activesupport (= 5.1.7)
14
+ rack (~> 2.0)
15
+ rack-test (>= 0.6.3)
16
+ rails-dom-testing (~> 2.0)
17
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
18
+ actionview (5.1.7)
19
+ activesupport (= 5.1.7)
20
+ builder (~> 3.1)
21
+ erubi (~> 1.4)
22
+ rails-dom-testing (~> 2.0)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
24
+ activemodel (5.1.7)
25
+ activesupport (= 5.1.7)
26
+ activerecord (5.1.7)
27
+ activemodel (= 5.1.7)
28
+ activesupport (= 5.1.7)
29
+ arel (~> 8.0)
30
+ activesupport (5.1.7)
31
+ concurrent-ruby (~> 1.0, >= 1.0.2)
32
+ i18n (>= 0.7, < 2)
33
+ minitest (~> 5.1)
34
+ tzinfo (~> 1.1)
35
+ appraisal (2.4.1)
36
+ bundler
37
+ rake
38
+ thor (>= 0.14.0)
39
+ arel (8.0.0)
40
+ ast (2.4.2)
41
+ builder (3.2.4)
42
+ combustion (1.3.5)
43
+ activesupport (>= 3.0.0)
44
+ railties (>= 3.0.0)
45
+ thor (>= 0.14.6)
46
+ concurrent-ruby (1.1.9)
47
+ crass (1.0.6)
48
+ diff-lcs (1.5.0)
49
+ docile (1.4.0)
50
+ erubi (1.10.0)
51
+ i18n (1.10.0)
52
+ concurrent-ruby (~> 1.0)
53
+ loofah (2.14.0)
54
+ crass (~> 1.0.2)
55
+ nokogiri (>= 1.5.9)
56
+ method_source (1.0.0)
57
+ minitest (5.15.0)
58
+ nokogiri (1.13.3-x86_64-linux)
59
+ racc (~> 1.4)
60
+ parallel (1.21.0)
61
+ parser (3.1.1.0)
62
+ ast (~> 2.4.1)
63
+ racc (1.6.0)
64
+ rack (2.2.3)
65
+ rack-test (1.1.0)
66
+ rack (>= 1.0, < 3)
67
+ rails-dom-testing (2.0.3)
68
+ activesupport (>= 4.2.0)
69
+ nokogiri (>= 1.6)
70
+ rails-html-sanitizer (1.4.2)
71
+ loofah (~> 2.3)
72
+ railties (5.1.7)
73
+ actionpack (= 5.1.7)
74
+ activesupport (= 5.1.7)
75
+ method_source
76
+ rake (>= 0.8.7)
77
+ thor (>= 0.18.1, < 2.0)
78
+ rainbow (3.1.1)
79
+ rake (13.0.6)
80
+ regexp_parser (2.2.1)
81
+ rexml (3.2.5)
82
+ rspec (3.11.0)
83
+ rspec-core (~> 3.11.0)
84
+ rspec-expectations (~> 3.11.0)
85
+ rspec-mocks (~> 3.11.0)
86
+ rspec-core (3.11.0)
87
+ rspec-support (~> 3.11.0)
88
+ rspec-expectations (3.11.0)
89
+ diff-lcs (>= 1.2.0, < 2.0)
90
+ rspec-support (~> 3.11.0)
91
+ rspec-mocks (3.11.0)
92
+ diff-lcs (>= 1.2.0, < 2.0)
93
+ rspec-support (~> 3.11.0)
94
+ rspec-support (3.11.0)
95
+ rubocop (1.25.1)
96
+ parallel (~> 1.10)
97
+ parser (>= 3.1.0.0)
98
+ rainbow (>= 2.2.2, < 4.0)
99
+ regexp_parser (>= 1.8, < 3.0)
100
+ rexml
101
+ rubocop-ast (>= 1.15.1, < 2.0)
102
+ ruby-progressbar (~> 1.7)
103
+ unicode-display_width (>= 1.4.0, < 3.0)
104
+ rubocop-ast (1.16.0)
105
+ parser (>= 3.1.1.0)
106
+ rubocop-performance (1.13.2)
107
+ rubocop (>= 1.7.0, < 2.0)
108
+ rubocop-ast (>= 0.4.0)
109
+ ruby-progressbar (1.11.0)
110
+ simplecov (0.21.2)
111
+ docile (~> 1.1)
112
+ simplecov-html (~> 0.11)
113
+ simplecov_json_formatter (~> 0.1)
114
+ simplecov-html (0.12.3)
115
+ simplecov_json_formatter (0.1.4)
116
+ sqlite3 (1.3.13)
117
+ standard (1.7.2)
118
+ rubocop (= 1.25.1)
119
+ rubocop-performance (= 1.13.2)
120
+ thor (1.2.1)
121
+ thread_safe (0.3.6)
122
+ tzinfo (1.2.9)
123
+ thread_safe (~> 0.1)
124
+ unicode-display_width (2.1.0)
125
+
126
+ PLATFORMS
127
+ x86_64-linux
128
+
129
+ DEPENDENCIES
130
+ activerecord (~> 5.1.0)
131
+ appraisal (~> 2.4)
132
+ bundler (~> 2.1)
133
+ combustion (~> 1.3)
134
+ rake (~> 13.0)
135
+ rspec
136
+ rubocop (~> 1.25)
137
+ simplecov (~> 0.21)
138
+ sqlite3 (~> 1.3.6)
139
+ standard (~> 1.7)
140
+ unreliable!
141
+
142
+ BUNDLED WITH
143
+ 2.3.8
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 5.2.0"
6
+ gem "sqlite3", "~> 1.3.6"
7
+
8
+ gemspec path: "../"