activerecord-transactionable 2.0.4 → 2.0.5

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
  SHA256:
3
- metadata.gz: 40e310ce0f07066a58c6b6a813b79c8f5dcfda4c63775e0eba78becbea0f156a
4
- data.tar.gz: 0d583ee211e147bb1d14c514bdb3497091433fa00733fdefcfc4571446425e5b
3
+ metadata.gz: 96137ce954d37b568395f503412d411d43a983236e48d6dcd58c83ac6d7a7a13
4
+ data.tar.gz: 470cf29ae223a65b71236c80561c3805d551fe27b7108f5c0865f636b6efe822
5
5
  SHA512:
6
- metadata.gz: 428e31d3bee1d6c842d27b6a17d6143d1ad00c781e9663e4ea6ff9da5e4b8f1f584d2147f2f3c69330de1e31defdd2722a2015e0dc8f4a11718b6ba4cce4cefd
7
- data.tar.gz: e14d70b5d072b34303cce8f38f7ddacc13282bd6f0d45e05baa6789d1f81c248fbd170010943d2a09d03c9047fc361d72652304c2af0fdf4a208ed509eaa7a0d
6
+ metadata.gz: 2068ebe17f122c06ec41dadc5dac80a712306d630568c4c66ad0cf4b4c70f41ba2801fbdc363c34b061d0e7eeb5f3db06de67d476d92509693ba56904fed17e5
7
+ data.tar.gz: f61cbc9aa98ca625538e45e5062198205d6d199710abd93da1092644d1d759184e7ed33eacf056dde08a6a6ba4561d9eaf8e640b4a4379ec753238fa09fbd0cf
@@ -0,0 +1,12 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: [pboling] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
+ patreon: galtzo # Replace with a single Patreon username
5
+ open_collective: # Replace with a single Open Collective username
6
+ ko_fi: pboling # Replace with a single Ko-fi username
7
+ tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8
+ community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
+ liberapay: pboling # Replace with a single Liberapay username
10
+ issuehunt: pboling # Replace with a single IssueHunt username
11
+ otechie: # Replace with a single Otechie username
12
+ custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "04:29"
8
+ open-pull-requests-limit: 10
@@ -0,0 +1,37 @@
1
+ name: Do Not Use These Rubies
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ - '*-maintenance'
8
+ - '*-dev'
9
+ tags:
10
+ - '!*' # Do not execute on tags
11
+ pull_request:
12
+ branches:
13
+ - '*'
14
+
15
+ jobs:
16
+ test:
17
+ name: Specs - Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
18
+ if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
19
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ ruby:
23
+ - 2.1
24
+ runs-on: ubuntu-18.04
25
+ continue-on-error: ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }}
26
+ steps:
27
+ - name: Checkout
28
+ uses: actions/checkout@v2
29
+ - name: Install cURL Headers
30
+ run: sudo apt-get install libcurl4-openssl-dev
31
+ - name: Setup Ruby & Bundle
32
+ uses: ruby/setup-ruby@v1
33
+ with:
34
+ ruby-version: ${{ matrix.ruby }}
35
+ bundler-cache: true
36
+ - name: Run tests
37
+ run: bundle exec rake test
@@ -0,0 +1,34 @@
1
+ name: Code Style Checks
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ - '*-maintenance'
8
+ - '*-dev'
9
+ tags:
10
+ - '!*' # Do not execute on tags
11
+ pull_request:
12
+ branches:
13
+ - '*'
14
+
15
+ jobs:
16
+ rubocop:
17
+ name: Rubocop
18
+ if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
19
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ ruby:
23
+ - 2.6
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - name: Checkout
27
+ uses: actions/checkout@v2
28
+ - name: Setup Ruby & Bundle
29
+ uses: ruby/setup-ruby@v1
30
+ with:
31
+ ruby-version: ${{ matrix.ruby }}
32
+ bundler-cache: true
33
+ - name: Run Rubocop
34
+ run: bundle exec rubocop -DESP
@@ -0,0 +1,57 @@
1
+ name: Supported Rubies
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ - '*-maintenance'
8
+ - '*-dev'
9
+ tags:
10
+ - '!*' # Do not execute on tags
11
+ pull_request:
12
+ branches:
13
+ - '*'
14
+
15
+ jobs:
16
+ test:
17
+ name: Specs - Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
18
+ if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
19
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ ruby:
23
+ - truffleruby-head
24
+ - ruby-head
25
+ - 3.0
26
+ - 2.7
27
+ - 2.6
28
+ runs-on: ubuntu-latest
29
+ continue-on-error: ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }}
30
+ steps:
31
+ - uses: amancevice/setup-code-climate@v0
32
+ name: CodeClimate Install
33
+ if: matrix.ruby == '2.6' && github.event_name != 'pull_request'
34
+ with:
35
+ cc_test_reporter_id: ${{ secrets.CC_TEST_REPORTER_ID }}
36
+ - name: Checkout
37
+ uses: actions/checkout@v2
38
+ - name: Setup Ruby & Bundle
39
+ uses: ruby/setup-ruby@v1
40
+ with:
41
+ ruby-version: ${{ matrix.ruby }}
42
+ bundler-cache: true
43
+ - name: CodeClimate Pre-build Notification
44
+ run: cc-test-reporter before-build
45
+ if: matrix.ruby == '2.6' && github.event_name != 'pull_request'
46
+ continue-on-error: ${{ matrix.allow_failures != 'false' }}
47
+ - name: Run tests
48
+ run: bundle exec rake test
49
+ - uses: codecov/codecov-action@v2
50
+ with:
51
+ flags: unittests
52
+ name: codecov-upload
53
+ fail_ci_if_error: true
54
+ - name: CodeClimate Post-build Notification
55
+ run: cc-test-reporter after-build
56
+ if: matrix.ruby == '2.6' && github.event_name != 'pull_request' && always()
57
+ continue-on-error: ${{ matrix.allow_failures != 'false' }}
@@ -0,0 +1,40 @@
1
+ name: Unsupported Rubies
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ - '*-maintenance'
8
+ - '*-dev'
9
+ tags:
10
+ - '!*' # Do not execute on tags
11
+ pull_request:
12
+ branches:
13
+ - '*'
14
+
15
+ jobs:
16
+ test:
17
+ name: Specs - Ruby ${{ matrix.ruby }} ${{ matrix.name_extra || '' }}
18
+ if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
19
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ ruby:
23
+ - 2.5
24
+ - 2.4
25
+ - 2.3
26
+ - 2.2
27
+ runs-on: ubuntu-18.04
28
+ continue-on-error: ${{ matrix.allow_failure || endsWith(matrix.ruby, 'head') }}
29
+ steps:
30
+ - name: Checkout
31
+ uses: actions/checkout@v2
32
+ - name: Install cURL Headers
33
+ run: sudo apt-get install libcurl4-openssl-dev
34
+ - name: Setup Ruby & Bundle
35
+ uses: ruby/setup-ruby@v1
36
+ with:
37
+ ruby-version: ${{ matrix.ruby }}
38
+ bundler-cache: true
39
+ - name: Run tests
40
+ run: bundle exec rake test
data/.gitignore CHANGED
@@ -8,4 +8,5 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
 
11
- gemfiles/*gemfile.lock
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
1
  --format documentation
2
2
  --color
3
+ --require spec_helper
data/.rubocop.yml CHANGED
@@ -1,4 +1,121 @@
1
- Metrics/LineLength:
2
- Description: 'Limit lines to 80 characters.'
3
- StyleGuide: '#80-character-limits'
4
- Enabled: false
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ require:
4
+ - 'rubocop-md'
5
+ - 'rubocop-minitest'
6
+ - 'rubocop-packaging'
7
+ - 'rubocop-performance'
8
+ - 'rubocop-rake'
9
+ - 'rubocop-rspec'
10
+ - 'rubocop-thread_safety'
11
+
12
+ AllCops:
13
+ NewCops: enable
14
+ DisplayCopNames: true # Display the name of the failing cops
15
+ TargetRubyVersion: 2.6 # Oldest non-EOL Ruby
16
+
17
+ Gemspec/DateAssignment: # new in 1.10
18
+ Enabled: true
19
+ Layout/DotPosition:
20
+ Enabled: true
21
+ EnforcedStyle: trailing
22
+ Layout/LineEndStringConcatenationIndentation: # new in 1.18
23
+ Enabled: true
24
+ Layout/SpaceBeforeBrackets: # new in 1.7
25
+ Enabled: true
26
+ Lint/AmbiguousAssignment: # new in 1.7
27
+ Enabled: true
28
+ Lint/AmbiguousOperatorPrecedence: # new in 1.21
29
+ Enabled: true
30
+ Lint/AmbiguousRange: # new in 1.19
31
+ Enabled: true
32
+ Lint/DeprecatedConstants: # new in 1.8
33
+ Enabled: true
34
+ Lint/DuplicateBranch: # new in 1.3
35
+ Enabled: true
36
+ Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
37
+ Enabled: true
38
+ Lint/EmptyBlock: # new in 1.1
39
+ Enabled: true
40
+ Lint/EmptyClass: # new in 1.3
41
+ Enabled: true
42
+ Lint/EmptyInPattern: # new in 1.16
43
+ Enabled: true
44
+ Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
45
+ Enabled: true
46
+ Lint/LambdaWithoutLiteralBlock: # new in 1.8
47
+ Enabled: true
48
+ Lint/NoReturnInBeginEndBlocks: # new in 1.2
49
+ Enabled: true
50
+ Lint/NumberedParameterAssignment: # new in 1.9
51
+ Enabled: true
52
+ Lint/OrAssignmentToConstant: # new in 1.9
53
+ Enabled: true
54
+ Lint/RedundantDirGlobSort: # new in 1.8
55
+ Enabled: true
56
+ Lint/RequireRelativeSelfPath: # new in 1.22
57
+ Enabled: true
58
+ Lint/SymbolConversion: # new in 1.9
59
+ Enabled: true
60
+ Lint/ToEnumArguments: # new in 1.1
61
+ Enabled: true
62
+ Lint/TripleQuotes: # new in 1.9
63
+ Enabled: true
64
+ Lint/UnexpectedBlockArity: # new in 1.5
65
+ Enabled: true
66
+ Lint/UnmodifiedReduceAccumulator: # new in 1.1
67
+ Enabled: true
68
+ Metrics/BlockLength:
69
+ IgnoredMethods:
70
+ - context
71
+ - describe
72
+ - it
73
+ - shared_context
74
+ - shared_examples
75
+ - shared_examples_for
76
+ Security/IoMethods: # new in 1.22
77
+ Enabled: true
78
+ Style/ArgumentsForwarding: # new in 1.1
79
+ Enabled: true
80
+ Style/CollectionCompact: # new in 1.2
81
+ Enabled: true
82
+ Style/DocumentDynamicEvalDefinition: # new in 1.1
83
+ Enabled: true
84
+ Style/EndlessMethod: # new in 1.8
85
+ Enabled: true
86
+ Style/HashConversion: # new in 1.10
87
+ Enabled: true
88
+ Style/HashExcept: # new in 1.7
89
+ Enabled: true
90
+ Style/IfWithBooleanLiteralBranches: # new in 1.9
91
+ Enabled: true
92
+ Style/InPatternThen: # new in 1.16
93
+ Enabled: true
94
+ Style/MultilineInPatternThen: # new in 1.16
95
+ Enabled: true
96
+ Style/NegatedIfElseCondition: # new in 1.2
97
+ Enabled: true
98
+ Style/NilLambda: # new in 1.3
99
+ Enabled: true
100
+ Style/NumberedParameters: # new in 1.22
101
+ Enabled: true
102
+ Style/NumberedParametersLimit: # new in 1.22
103
+ Enabled: true
104
+ Style/QuotedSymbols: # new in 1.16
105
+ Enabled: true
106
+ Style/RedundantArgument: # new in 1.4
107
+ Enabled: true
108
+ Style/RedundantSelfAssignmentBranch: # new in 1.19
109
+ Enabled: true
110
+ Style/SelectByRegexp: # new in 1.22
111
+ Enabled: true
112
+ Style/StringChars: # new in 1.12
113
+ Enabled: true
114
+ Style/StringLiterals:
115
+ Enabled: true
116
+ EnforcedStyle: double_quotes
117
+ Style/StringLiteralsInInterpolation:
118
+ Enabled: true
119
+ EnforcedStyle: double_quotes
120
+ Style/SwapValues: # new in 1.1
121
+ Enabled: true
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,138 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2021-11-09 16:50:27 UTC using RuboCop version 1.22.3.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Configuration parameters: Include.
11
+ # Include: **/*.gemspec
12
+ Gemspec/RequiredRubyVersion:
13
+ Exclude:
14
+ - 'activerecord-transactionable.gemspec'
15
+
16
+ # Offense count: 1
17
+ # Configuration parameters: Include.
18
+ # Include: **/*.gemspec
19
+ Gemspec/RubyVersionGlobalsUsage:
20
+ Exclude:
21
+ - 'activerecord-transactionable.gemspec'
22
+
23
+ # Offense count: 2
24
+ # Cop supports --auto-correct.
25
+ # Configuration parameters: Width, IgnoredPatterns.
26
+ Layout/IndentationWidth:
27
+ Exclude:
28
+ - 'README.md'
29
+
30
+ # Offense count: 5
31
+ # Configuration parameters: AllowedMethods.
32
+ # AllowedMethods: enums
33
+ Lint/ConstantDefinitionInBlock:
34
+ Exclude:
35
+ - 'spec/activerecord/transactionable_spec.rb'
36
+
37
+ # Offense count: 1
38
+ Lint/MissingSuper:
39
+ Exclude:
40
+ - 'spec/config/active_record.rb'
41
+
42
+ # Offense count: 6
43
+ # Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
44
+ Metrics/AbcSize:
45
+ Max: 32
46
+
47
+ # Offense count: 1
48
+ # Configuration parameters: IgnoredMethods.
49
+ Metrics/CyclomaticComplexity:
50
+ Max: 10
51
+
52
+ # Offense count: 6
53
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
54
+ Metrics/MethodLength:
55
+ Max: 37
56
+
57
+ # Offense count: 1
58
+ # Configuration parameters: CountComments, CountAsOne.
59
+ Metrics/ModuleLength:
60
+ Max: 135
61
+
62
+ # Offense count: 3
63
+ # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
64
+ Metrics/ParameterLists:
65
+ Max: 8
66
+
67
+ # Offense count: 1
68
+ # Configuration parameters: IgnoredMethods.
69
+ Metrics/PerceivedComplexity:
70
+ Max: 12
71
+
72
+ # Offense count: 1
73
+ Packaging/GemspecGit:
74
+ Exclude:
75
+ - 'activerecord-transactionable.gemspec'
76
+
77
+ # Offense count: 38
78
+ # Configuration parameters: Prefixes.
79
+ # Prefixes: when, with, without
80
+ RSpec/ContextWording:
81
+ Exclude:
82
+ - 'spec/activerecord/transactionable_spec.rb'
83
+
84
+ # Offense count: 5
85
+ RSpec/LeakyConstantDeclaration:
86
+ Exclude:
87
+ - 'spec/activerecord/transactionable_spec.rb'
88
+
89
+ # Offense count: 48
90
+ # Configuration parameters: .
91
+ # SupportedStyles: have_received, receive
92
+ RSpec/MessageSpies:
93
+ EnforcedStyle: receive
94
+
95
+ # Offense count: 27
96
+ RSpec/MultipleExpectations:
97
+ Max: 2
98
+
99
+ # Offense count: 44
100
+ # Configuration parameters: IgnoreSharedExamples.
101
+ RSpec/NamedSubject:
102
+ Exclude:
103
+ - 'spec/activerecord/transactionable_spec.rb'
104
+
105
+ # Offense count: 49
106
+ RSpec/NestedGroups:
107
+ Max: 8
108
+
109
+ # Offense count: 5
110
+ # Configuration parameters: AllowedConstants.
111
+ Style/Documentation:
112
+ Exclude:
113
+ - '**/*.md'
114
+ - '**/*.markdown'
115
+ - 'lib/activerecord/transactionable.rb'
116
+ - 'lib/activerecord/transactionable/result.rb'
117
+ - 'spec/activerecord/transactionable_spec.rb'
118
+ - 'spec/config/active_record.rb'
119
+
120
+ # Offense count: 2
121
+ # Configuration parameters: MinBodyLength.
122
+ Style/GuardClause:
123
+ Exclude:
124
+ - 'README.md'
125
+ - 'spec/activerecord/transactionable_spec.rb'
126
+
127
+ # Offense count: 2
128
+ ThreadSafety/InstanceVariableInClassMethod:
129
+ Exclude:
130
+ - 'spec/activerecord/transactionable_spec.rb'
131
+
132
+ # Offense count: 68
133
+ # Cop supports --auto-correct.
134
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
135
+ # URISchemes: http, https
136
+ # IgnoredPatterns: (?-mix:^\#)
137
+ Layout/LineLength:
138
+ Max: 272
data/.simplecov ADDED
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ SimpleCov.start do
4
+ add_filter "/spec/"
5
+ end
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at peter.boling@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,26 @@
1
+ ## Contributing
2
+
3
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/pboling/activerecord-transactionable][source]. This project is
4
+ intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
5
+ the [code of conduct][conduct].
6
+
7
+ To submit a patch, please fork the project and create a patch with
8
+ tests. Once you're happy with it send a pull request!
9
+
10
+ ## Contributors
11
+
12
+ [![Contributors](https://contrib.rocks/image?repo=pboling/activerecord-transactionable)][contributors]
13
+
14
+ Made with [contributors-img][contrib-rocks].
15
+
16
+ [comment]: <> (Following links are used by README, CONTRIBUTING)
17
+
18
+ [conduct]: https://github.com/pboling/activerecord-transactionable/blob/master/CODE_OF_CONDUCT.md
19
+
20
+ [contrib-rocks]: https://contrib.rocks
21
+
22
+ [contributors]: https://github.com/pboling/activerecord-transactionable/graphs/contributors
23
+
24
+ [comment]: <> (Following links are used by README, CONTRIBUTING, Homepage)
25
+
26
+ [source]: https://github.com/pboling/activerecord-transactionable/
data/Gemfile CHANGED
@@ -1,18 +1,8 @@
1
- source 'https://rubygems.org'
1
+ # frozen_string_literal: true
2
2
 
3
- git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
-
5
- group :test do
6
- gem 'byebug', '~> 10', platform: :mri, require: false
7
- gem 'pry', '~> 0', platform: :mri, require: false
8
- gem 'pry-byebug', '~> 3', platform: :mri, require: false
9
- gem 'rubocop', '~> 0.59.0'
10
- gem 'rubocop-rspec', '~> 1.24.0'
11
- gem 'simplecov', '~> 0', require: false
12
- end
3
+ source "https://rubygems.org"
13
4
 
14
- # So the gem can run the simple test suite against the raw bundled gems without the complex BUNDLE_GEMFILE setup
15
- gem 'sqlite3', platforms: [:ruby]
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
16
6
 
17
7
  # Specify your gem's dependencies in activerecord-transactionable.gemspec
18
8
  gemspec
data/LICENSE CHANGED
@@ -1,7 +1,21 @@
1
- Copyright (c) 2016 - 2018 Peter H. Boling
1
+ The MIT License (MIT)
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3
+ Copyright (c) 2016 - 2018, 2021 Peter H. Boling
4
4
 
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
6
11
 
7
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.