rom-yesql 0.5.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.action_hero.yml +20 -0
- data/.devtools/templates/README.md.erb +29 -0
- data/.devtools/templates/changelog.erb +43 -0
- data/.devtools/templates/release.erb +36 -0
- data/.github/FUNDING.yml +1 -0
- data/.github/ISSUE_TEMPLATE/bug-report.md +26 -0
- data/.github/ISSUE_TEMPLATE/config.yml +5 -0
- data/.github/SUPPORT.md +3 -0
- data/.github/workflows/ci.yml +61 -0
- data/.github/workflows/docsite.yml +63 -0
- data/.github/workflows/rubocop.yml +46 -0
- data/.github/workflows/sync_configs.yml +53 -0
- data/.rspec +2 -0
- data/.rubocop.yml +210 -37
- data/CHANGELOG.md +41 -12
- data/CODEOWNERS +1 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/CONTRIBUTING.md +29 -0
- data/Gemfile +9 -7
- data/Gemfile.devtools +20 -0
- data/Guardfile +7 -5
- data/LICENSE +20 -0
- data/README.md +13 -26
- data/Rakefile +5 -3
- data/changelog.yml +38 -0
- data/lib/rom/yesql/dataset.rb +2 -0
- data/lib/rom/yesql/gateway.rb +21 -18
- data/lib/rom/yesql/relation/class_interface.rb +5 -4
- data/lib/rom/yesql/relation.rb +10 -13
- data/lib/rom/yesql/version.rb +3 -1
- data/lib/rom/yesql.rb +4 -2
- data/lib/rom-yesql.rb +4 -2
- data/project.yml +2 -0
- data/rakelib/rubocop.rake +5 -3
- data/rom-yesql.gemspec +9 -8
- data/spec/integration/adapter_spec.rb +26 -24
- data/spec/shared/database_setup.rb +5 -3
- data/spec/shared/repository_setup.rb +8 -6
- data/spec/shared/users_and_tasks.rb +9 -7
- data/spec/spec_helper.rb +13 -19
- data/spec/support/coverage.rb +15 -0
- data/spec/support/rspec_options.rb +16 -0
- data/spec/support/warnings.rb +10 -0
- data/spec/unit/rom/yesql/repository_spec.rb +12 -10
- metadata +37 -53
- data/.rubocop_todo.yml +0 -21
- data/.travis.yml +0 -30
- data/LICENSE.txt +0 -22
data/.rubocop.yml
CHANGED
@@ -1,74 +1,247 @@
|
|
1
|
-
#
|
2
|
-
inherit_from: .rubocop_todo.yml
|
3
|
-
|
4
|
-
# Exclude temporary files
|
1
|
+
# This is a config synced from rom-rb/template-gem repo
|
5
2
|
AllCops:
|
3
|
+
TargetRubyVersion: 3.1
|
4
|
+
NewCops: enable
|
5
|
+
SuggestExtensions: false
|
6
|
+
Exclude:
|
7
|
+
- spec/support/coverage.rb
|
8
|
+
- spec/support/warnings.rb
|
9
|
+
- spec/support/rspec_options.rb
|
10
|
+
- Gemfile.devtools
|
11
|
+
- "*.gemspec"
|
12
|
+
|
13
|
+
Layout/ArgumentAlignment:
|
14
|
+
Enabled: false
|
15
|
+
EnforcedStyle: with_fixed_indentation
|
16
|
+
|
17
|
+
Layout/SpaceAroundMethodCallOperator:
|
18
|
+
Enabled: false
|
19
|
+
|
20
|
+
Layout/SpaceInLambdaLiteral:
|
21
|
+
Enabled: false
|
22
|
+
|
23
|
+
Layout/MultilineMethodCallIndentation:
|
24
|
+
Enabled: true
|
25
|
+
EnforcedStyle: indented
|
26
|
+
|
27
|
+
Layout/FirstArrayElementIndentation:
|
28
|
+
EnforcedStyle: consistent
|
29
|
+
|
30
|
+
Layout/SpaceInsideHashLiteralBraces:
|
31
|
+
Enabled: true
|
32
|
+
EnforcedStyle: no_space
|
33
|
+
EnforcedStyleForEmptyBraces: no_space
|
34
|
+
|
35
|
+
Layout/LineLength:
|
36
|
+
Max: 120
|
37
|
+
Exclude:
|
38
|
+
- "spec/**/*_spec.rb"
|
39
|
+
|
40
|
+
Lint/AmbiguousBlockAssociation:
|
41
|
+
Enabled: true
|
42
|
+
# because 'expect { foo }.to change { bar }' is fine
|
6
43
|
Exclude:
|
7
|
-
-
|
44
|
+
- "spec/**/*.rb"
|
8
45
|
|
9
|
-
|
10
|
-
Lint/AssignmentInCondition:
|
46
|
+
Lint/BooleanSymbol:
|
11
47
|
Enabled: false
|
12
48
|
|
13
|
-
|
14
|
-
|
49
|
+
Lint/MissingSuper:
|
50
|
+
Enabled: false
|
51
|
+
|
52
|
+
Lint/ConstantDefinitionInBlock:
|
53
|
+
Enabled: false
|
54
|
+
|
55
|
+
Lint/EmptyBlock:
|
56
|
+
Exclude:
|
57
|
+
- "spec/**/*.rb"
|
58
|
+
|
59
|
+
Lint/EmptyClass:
|
60
|
+
Exclude:
|
61
|
+
- "spec/**/*.rb"
|
62
|
+
|
63
|
+
Lint/RaiseException:
|
64
|
+
Enabled: false
|
65
|
+
|
66
|
+
Lint/StructNewOverride:
|
67
|
+
Enabled: false
|
68
|
+
|
69
|
+
Lint/SuppressedException:
|
15
70
|
Exclude:
|
16
|
-
-
|
71
|
+
- "spec/**/*.rb"
|
17
72
|
|
18
|
-
|
19
|
-
Metrics/LineLength:
|
73
|
+
Lint/UselessMethodDefinition:
|
20
74
|
Exclude:
|
21
|
-
- rom
|
75
|
+
- "lib/rom/struct.rb"
|
76
|
+
|
77
|
+
Lint/UnderscorePrefixedVariableName:
|
78
|
+
Enabled: false
|
79
|
+
|
80
|
+
Lint/ToEnumArguments:
|
81
|
+
Exclude:
|
82
|
+
- "lib/rom/command.rb"
|
83
|
+
|
84
|
+
Naming/MethodParameterName:
|
85
|
+
Enabled: false
|
86
|
+
|
87
|
+
Naming/AccessorMethodName:
|
88
|
+
Enabled: false
|
89
|
+
|
90
|
+
Naming/VariableNumber:
|
91
|
+
Enabled: false
|
92
|
+
|
93
|
+
Naming/PredicateName:
|
94
|
+
Enabled: false
|
95
|
+
|
96
|
+
Naming/FileName:
|
97
|
+
Exclude:
|
98
|
+
- "lib/*-*.rb"
|
99
|
+
|
100
|
+
Naming/MethodName:
|
101
|
+
Enabled: false
|
102
|
+
|
103
|
+
Naming/MemoizedInstanceVariableName:
|
104
|
+
Enabled: false
|
105
|
+
|
106
|
+
Metrics/MethodLength:
|
107
|
+
Enabled: false
|
108
|
+
|
109
|
+
Metrics/ModuleLength:
|
110
|
+
Enabled: false
|
111
|
+
|
112
|
+
Metrics/ClassLength:
|
113
|
+
Enabled: false
|
114
|
+
|
115
|
+
Metrics/BlockLength:
|
116
|
+
Enabled: false
|
117
|
+
|
118
|
+
Metrics/AbcSize:
|
119
|
+
Max: 36
|
120
|
+
|
121
|
+
Metrics/CyclomaticComplexity:
|
122
|
+
Enabled: true
|
123
|
+
Max: 12
|
124
|
+
|
125
|
+
Metrics/PerceivedComplexity:
|
126
|
+
Max: 14
|
22
127
|
|
23
|
-
|
24
|
-
Style/AlignParameters:
|
128
|
+
Metrics/ParameterLists:
|
25
129
|
Enabled: false
|
26
130
|
|
27
|
-
|
131
|
+
Style/AccessorGrouping:
|
132
|
+
Enabled: false
|
133
|
+
|
134
|
+
Style/ExponentialNotation:
|
135
|
+
Enabled: false
|
136
|
+
|
137
|
+
Style/HashEachMethods:
|
138
|
+
Enabled: false
|
139
|
+
|
140
|
+
Style/HashTransformKeys:
|
141
|
+
Enabled: false
|
142
|
+
|
143
|
+
Style/HashTransformValues:
|
144
|
+
Enabled: false
|
145
|
+
|
146
|
+
Style/AccessModifierDeclarations:
|
147
|
+
Enabled: false
|
148
|
+
|
149
|
+
Style/Alias:
|
150
|
+
Enabled: true
|
151
|
+
EnforcedStyle: prefer_alias_method
|
152
|
+
|
28
153
|
Style/AsciiComments:
|
29
154
|
Enabled: false
|
30
155
|
|
31
|
-
# Allow using braces for value-returning blocks
|
32
156
|
Style/BlockDelimiters:
|
33
157
|
Enabled: false
|
34
158
|
|
35
|
-
|
159
|
+
Style/ClassAndModuleChildren:
|
160
|
+
Enabled: false
|
161
|
+
|
162
|
+
Style/ConditionalAssignment:
|
163
|
+
Enabled: false
|
164
|
+
|
165
|
+
Style/DateTime:
|
166
|
+
Enabled: false
|
167
|
+
|
36
168
|
Style/Documentation:
|
37
169
|
Enabled: false
|
38
170
|
|
39
|
-
|
171
|
+
Style/EachWithObject:
|
172
|
+
Enabled: false
|
173
|
+
|
174
|
+
Style/FormatString:
|
175
|
+
Enabled: false
|
176
|
+
|
40
177
|
Style/GuardClause:
|
41
178
|
Enabled: false
|
42
179
|
|
43
|
-
|
180
|
+
Style/IfUnlessModifier:
|
181
|
+
Enabled: false
|
182
|
+
|
44
183
|
Style/Lambda:
|
45
184
|
Enabled: false
|
46
185
|
|
47
|
-
|
186
|
+
Style/LambdaCall:
|
187
|
+
Enabled: false
|
188
|
+
|
189
|
+
Style/ParallelAssignment:
|
190
|
+
Enabled: false
|
191
|
+
|
192
|
+
Style/StabbyLambdaParentheses:
|
193
|
+
Enabled: false
|
194
|
+
|
195
|
+
Style/StringLiterals:
|
196
|
+
Enabled: true
|
197
|
+
EnforcedStyle: double_quotes
|
198
|
+
ConsistentQuotesInMultiline: false
|
199
|
+
|
200
|
+
Style/StringLiteralsInInterpolation:
|
201
|
+
Enabled: true
|
202
|
+
EnforcedStyle: double_quotes
|
203
|
+
|
204
|
+
Style/SymbolArray:
|
205
|
+
Enabled: false
|
206
|
+
|
207
|
+
Style/OptionalBooleanParameter:
|
208
|
+
Enabled: false
|
209
|
+
|
48
210
|
Style/MultilineBlockChain:
|
49
211
|
Enabled: false
|
50
212
|
|
51
|
-
|
52
|
-
|
53
|
-
Exclude:
|
54
|
-
- lib/rom/command_registry.rb
|
213
|
+
Style/DocumentDynamicEvalDefinition:
|
214
|
+
Enabled: false
|
55
215
|
|
56
|
-
|
57
|
-
|
58
|
-
EnforcedStyle: only_raise
|
216
|
+
Style/TrailingUnderscoreVariable:
|
217
|
+
Enabled: false
|
59
218
|
|
60
|
-
|
61
|
-
Style/SpaceAroundOperators:
|
219
|
+
Style/MultipleComparison:
|
62
220
|
Enabled: false
|
63
221
|
|
64
|
-
|
65
|
-
Style/StringLiterals:
|
222
|
+
Style/StringConcatenation:
|
66
223
|
Enabled: false
|
67
224
|
|
68
|
-
|
69
|
-
Style/TrivialAccessors:
|
225
|
+
Style/OpenStructUse:
|
70
226
|
Enabled: false
|
71
227
|
|
72
|
-
|
73
|
-
|
74
|
-
|
228
|
+
Style/MapToHash:
|
229
|
+
Enabled: false
|
230
|
+
|
231
|
+
Style/FormatStringToken:
|
232
|
+
Enabled: false
|
233
|
+
|
234
|
+
Style/StructInheritance:
|
235
|
+
Enabled: false
|
236
|
+
|
237
|
+
Style/PreferredHashMethods:
|
238
|
+
Enabled: false
|
239
|
+
|
240
|
+
Style/DoubleNegation:
|
241
|
+
Enabled: false
|
242
|
+
|
243
|
+
Style/MissingRespondToMissing:
|
244
|
+
Enabled: false
|
245
|
+
|
246
|
+
Style/CombinableLoops:
|
247
|
+
Enabled: false
|
data/CHANGELOG.md
CHANGED
@@ -1,49 +1,78 @@
|
|
1
|
-
|
1
|
+
<!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
|
2
|
+
|
3
|
+
## 1.1.0 2025-01-19
|
4
|
+
|
5
|
+
Updated to work with rom 5.4.0
|
6
|
+
|
7
|
+
|
8
|
+
[Compare v1.0.0...v1.1.0](https://github.com/rom-rb/rom-yesql/compare/v1.0.0...v1.1.0)
|
9
|
+
|
10
|
+
## 1.0.0 2020-12-06
|
11
|
+
|
12
|
+
Updated to work with rom 6.0.0 (@mrship)
|
13
|
+
|
14
|
+
|
15
|
+
[Compare v0.5.1...v1.0.0](https://github.com/rom-rb/rom-yesql/compare/v0.5.1...v1.0.0)
|
16
|
+
|
17
|
+
## 0.5.1 2017-03-30
|
2
18
|
|
3
19
|
Updated rom dependency (flash-gordon)
|
4
20
|
|
21
|
+
|
5
22
|
[Compare v0.5.0...v0.5.1](https://github.com/rom-rb/rom-yesql/compare/v0.5.0...v0.5.1)
|
6
23
|
|
7
|
-
##
|
24
|
+
## 0.5.0 2017-03-28
|
8
25
|
|
9
26
|
Updated to work with rom 3.2.0 (flash-gordon)
|
10
27
|
|
28
|
+
|
11
29
|
[Compare v0.4.0...v0.5.0](https://github.com/rom-rb/rom-yesql/compare/v0.4.0...v0.5.0)
|
12
30
|
|
13
|
-
##
|
31
|
+
## 0.4.0 2017-02-10
|
14
32
|
|
15
33
|
Updated to work with rom 3.0.0
|
16
34
|
|
35
|
+
|
17
36
|
[Compare v0.3.0...v0.4.0](https://github.com/rom-rb/rom-yesql/compare/v0.3.0...v0.4.0)
|
18
37
|
|
19
|
-
##
|
20
|
-
|
21
|
-
[Compare v0.2.0...v0.3.0](https://github.com/rom-rb/rom-yesql/compare/v0.2.0...v0.3.0)
|
38
|
+
## 0.3.0 2016-07-31
|
22
39
|
|
23
40
|
Updated to work with rom 2.0.0
|
24
41
|
|
25
|
-
|
42
|
+
|
43
|
+
[Compare v0.2.0...v0.3.0](https://github.com/rom-rb/rom-yesql/compare/v0.2.0...v0.3.0)
|
44
|
+
|
45
|
+
## 0.2.0 2015-08-19
|
26
46
|
|
27
47
|
Updated to work with rom 0.9.0
|
28
48
|
|
49
|
+
|
29
50
|
[Compare v0.1.1...v0.2.0](https://github.com/rom-rb/rom-yesql/compare/v0.1.1...v0.2.0)
|
30
51
|
|
31
|
-
##
|
52
|
+
## 0.1.1 2015-07-27
|
53
|
+
|
54
|
+
Updated to work with rom 0.8 (solnic)
|
32
55
|
|
33
56
|
### Changed
|
34
57
|
|
35
|
-
Updated to work with rom 0.8 (solnic)
|
58
|
+
- Updated to work with rom 0.8 (solnic)
|
36
59
|
|
37
60
|
[Compare v0.1.0...v0.1.1](https://github.com/rom-rb/rom-yesql/compare/v0.1.0...v0.1.1)
|
38
61
|
|
39
|
-
##
|
62
|
+
## 0.1.0 2015-03-22
|
40
63
|
|
41
64
|
Bump rom dep to 0.6.0 final
|
42
65
|
|
43
|
-
|
66
|
+
|
67
|
+
[Compare v0.0.2...v0.1.0](https://github.com/rom-rb/rom-yesql/compare/v0.0.2...v0.1.0)
|
68
|
+
|
69
|
+
## 0.0.2 2015-03-21
|
44
70
|
|
45
71
|
Update to work with rom 0.6.0
|
46
72
|
|
47
|
-
|
73
|
+
|
74
|
+
[Compare v0.0.1...v0.0.2](https://github.com/rom-rb/rom-yesql/compare/v0.0.1...v0.0.2)
|
75
|
+
|
76
|
+
## 0.0.1 2015-03-01
|
48
77
|
|
49
78
|
First public release \o/
|
data/CODEOWNERS
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
* @solnic
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers 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. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.4.0, available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct](https://www.contributor-covenant.org/version/1/4/code-of-conduct)
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Issue Guidelines
|
2
|
+
|
3
|
+
## Reporting bugs
|
4
|
+
|
5
|
+
If you found a bug, report an issue and describe what's the expected behavior versus what actually happens. If the bug causes a crash, attach a full backtrace. If possible, a reproduction script showing the problem is highly appreciated.
|
6
|
+
|
7
|
+
## Reporting feature requests
|
8
|
+
|
9
|
+
Report a feature request **only after discussing it first on [discourse.rom-rb.org](https://discourse.rom-rb.org)** where it was accepted. Please provide a concise description of the feature.
|
10
|
+
|
11
|
+
## Reporting questions, support requests, ideas, concerns etc.
|
12
|
+
|
13
|
+
**PLEASE DON'T** - use [discourse.rom-rb.org](https://discourse.rom-rb.org) instead.
|
14
|
+
|
15
|
+
# Pull Request Guidelines
|
16
|
+
|
17
|
+
A Pull Request will only be accepted if it addresses a specific issue that was reported previously, or fixes typos, mistakes in documentation etc.
|
18
|
+
|
19
|
+
Other requirements:
|
20
|
+
|
21
|
+
1) Do not open a pull request if you can't provide tests along with it. If you have problems writing tests, ask for help in the related issue.
|
22
|
+
2) Follow the style conventions of the surrounding code. In most cases, this is standard ruby style.
|
23
|
+
3) Add API documentation if it's a new feature
|
24
|
+
4) Update API documentation if it changes an existing feature
|
25
|
+
5) Bonus points for sending a PR which updates user documentation in the `docsite` directory
|
26
|
+
|
27
|
+
# Asking for help
|
28
|
+
|
29
|
+
If these guidelines aren't helpful, and you're stuck, please post a message on [discourse.rom-rb.org](https://discourse.rom-rb.org).
|
data/Gemfile
CHANGED
@@ -1,15 +1,17 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
2
4
|
|
3
5
|
gemspec
|
4
6
|
|
7
|
+
eval_gemfile "Gemfile.devtools"
|
8
|
+
|
5
9
|
group :test do
|
6
|
-
gem
|
7
|
-
gem
|
8
|
-
gem
|
9
|
-
gem 'sqlite3', platforms: [:mri, :rbx]
|
10
|
-
gem 'jdbc-sqlite3', platforms: :jruby
|
10
|
+
gem "jdbc-sqlite3", platforms: :jruby
|
11
|
+
gem "rspec", "~> 3.5"
|
12
|
+
gem "sqlite3", platforms: %i[mri rbx]
|
11
13
|
end
|
12
14
|
|
13
15
|
group :tools do
|
14
|
-
gem
|
16
|
+
gem "byebug", platforms: [:mri]
|
15
17
|
end
|
data/Gemfile.devtools
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# this file is managed by rom-rb/devtools project
|
4
|
+
|
5
|
+
gem "rake", ">= 12.3.3"
|
6
|
+
|
7
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
8
|
+
|
9
|
+
group :test do
|
10
|
+
gem "simplecov", require: false, platforms: :ruby
|
11
|
+
gem "simplecov-cobertura", require: false, platforms: :ruby
|
12
|
+
gem "rexml", require: false
|
13
|
+
|
14
|
+
gem "warning"
|
15
|
+
end
|
16
|
+
|
17
|
+
group :tools do
|
18
|
+
# this is the same version that we use on codacy
|
19
|
+
gem "rubocop", "1.69.2"
|
20
|
+
end
|
data/Guardfile
CHANGED
@@ -1,19 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
group :red_green_refactor, halt_on_fail: true do
|
2
4
|
guard :rspec, cmd: "rspec", all_on_start: true do
|
3
5
|
# run all specs if Gemfile.lock is modified
|
4
|
-
watch(
|
6
|
+
watch("Gemfile.lock") { "spec" }
|
5
7
|
|
6
8
|
# run all specs if any library code is modified
|
7
|
-
watch(%r{\Alib/.+\.rb\z}) {
|
9
|
+
watch(%r{\Alib/.+\.rb\z}) { "spec" }
|
8
10
|
|
9
11
|
# run all specs if supporting files are modified
|
10
|
-
watch(
|
11
|
-
watch(%r{\Aspec/(?:lib|support|shared)/.+\.rb\z}) {
|
12
|
+
watch("spec/spec_helper.rb") { "spec" }
|
13
|
+
watch(%r{\Aspec/(?:lib|support|shared)/.+\.rb\z}) { "spec" }
|
12
14
|
|
13
15
|
# run a spec if it is modified
|
14
16
|
watch(%r{\Aspec/(?:unit|integration)/.+_spec\.rb\z})
|
15
17
|
|
16
|
-
notification :tmux, display_message: true if ENV.key?(
|
18
|
+
notification :tmux, display_message: true if ENV.key?("TMUX")
|
17
19
|
end
|
18
20
|
|
19
21
|
guard :rubocop do
|
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015-2021 rom-rb team
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
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, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,39 +1,26 @@
|
|
1
1
|
[gem]: https://rubygems.org/gems/rom-yesql
|
2
|
-
[
|
3
|
-
[
|
4
|
-
[codeclimate]: https://codeclimate.com/github/rom-rb/rom-yesql
|
2
|
+
[actions]: https://github.com/rom-rb/rom-yesql/actions
|
3
|
+
[chat]: https://rom-rb.zulipchat.com
|
5
4
|
[inchpages]: http://inch-ci.org/github/rom-rb/rom-yesql
|
6
5
|
|
7
|
-
# rom-yesql
|
6
|
+
# rom-yesql [![Join the chat at https://rom-rb.zulipchat.com](https://img.shields.io/badge/rom--rb-join%20chat-%23346b7a.svg)][chat]
|
8
7
|
|
9
8
|
[![Gem Version](https://badge.fury.io/rb/rom-yesql.svg)][gem]
|
10
|
-
[![
|
11
|
-
[![
|
12
|
-
[![
|
13
|
-
[![Test Coverage](https://codeclimate.com/github/rom-rb/rom-yesql/badges/coverage.svg)][codeclimate]
|
14
|
-
[![Inline docs](http://inch-ci.org/github/rom-rb/rom-yesql.svg?branch=master)][inchpages]
|
9
|
+
[![CI Status](https://github.com/rom-rb/rom-yesql/workflows/ci/badge.svg)][actions]
|
10
|
+
[![RuboCop](https://github.com/rom-rb/rom-yesql/actions/workflows/rubocop.yml/badge.svg)](https://github.com/rom-rb/rom-yesql/actions/workflows/rubocop.yml)
|
11
|
+
[![Inline docs](http://inch-ci.org/github/rom-rb/rom-yesql.svg?branch=main)][inchpages]
|
15
12
|
|
13
|
+
## Links
|
16
14
|
|
17
|
-
|
15
|
+
* [User documentation](http://rom-rb.org/learn/yesql)
|
16
|
+
* [API documentation](http://rubydoc.info/gems/rom-yesql)
|
18
17
|
|
19
|
-
|
20
|
-
* [ROM user docs](http://rom-rb.org/learn)
|
18
|
+
## Supported Ruby versions
|
21
19
|
|
22
|
-
|
20
|
+
This library officially supports the following Ruby versions:
|
23
21
|
|
24
|
-
|
25
|
-
|
26
|
-
```ruby
|
27
|
-
gem 'rom-yesql'
|
28
|
-
```
|
29
|
-
|
30
|
-
And then execute:
|
31
|
-
|
32
|
-
$ bundle
|
33
|
-
|
34
|
-
Or install it yourself as:
|
35
|
-
|
36
|
-
$ gem install rom-yesql
|
22
|
+
* MRI >= `3.1`
|
23
|
+
* JRuby >= `9.4` (not tested)
|
37
24
|
|
38
25
|
## License
|
39
26
|
|
data/Rakefile
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "bundler/gem_tasks"
|
4
|
+
require "rspec/core/rake_task"
|
3
5
|
|
4
6
|
RSpec::Core::RakeTask.new(:spec)
|
5
7
|
task default: [:ci]
|
6
8
|
|
7
|
-
desc
|
9
|
+
desc "Run CI tasks"
|
8
10
|
task ci: [:spec]
|
data/changelog.yml
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
- version: 1.1.0
|
3
|
+
date: '2025-01-19'
|
4
|
+
summary: Updated to work with rom 5.4.0
|
5
|
+
changed:
|
6
|
+
- Minimal Ruby version is now 3.1.0 (@flash-gordon)
|
7
|
+
- version: 1.0.0
|
8
|
+
date: '2020-12-06'
|
9
|
+
summary: Updated to work with rom 6.0.0 (@mrship)
|
10
|
+
- version: 0.5.1
|
11
|
+
date: '2017-03-30'
|
12
|
+
summary: Updated rom dependency (flash-gordon)
|
13
|
+
- version: 0.5.0
|
14
|
+
date: '2017-03-28'
|
15
|
+
summary: Updated to work with rom 3.2.0 (flash-gordon)
|
16
|
+
- version: 0.4.0
|
17
|
+
date: '2017-02-10'
|
18
|
+
summary: Updated to work with rom 3.0.0
|
19
|
+
- version: 0.3.0
|
20
|
+
date: '2016-07-31'
|
21
|
+
summary: Updated to work with rom 2.0.0
|
22
|
+
- version: 0.2.0
|
23
|
+
date: '2015-08-19'
|
24
|
+
summary: Updated to work with rom 0.9.0
|
25
|
+
- version: 0.1.1
|
26
|
+
date: '2015-07-27'
|
27
|
+
changed:
|
28
|
+
- Updated to work with rom 0.8 (solnic)
|
29
|
+
summary: Updated to work with rom 0.8 (solnic)
|
30
|
+
- version: 0.1.0
|
31
|
+
date: '2015-03-22'
|
32
|
+
summary: Bump rom dep to 0.6.0 final
|
33
|
+
- version: 0.0.2
|
34
|
+
date: '2015-03-21'
|
35
|
+
summary: Update to work with rom 0.6.0
|
36
|
+
- version: 0.0.1
|
37
|
+
date: '2015-03-01'
|
38
|
+
summary: First public release \o/
|