scenic-mysql_adapter 1.0.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/.github/workflows/CI.yml +42 -0
- data/Appraisals +10 -26
- data/CHANGELOG.md +13 -0
- data/LICENSE.md +19 -0
- data/README.md +5 -3
- data/gemfiles/rails_71.gemfile +10 -0
- data/gemfiles/rails_72.gemfile +10 -0
- data/lib/scenic/mysql_adapter/version.rb +1 -1
- data/scenic-mysql_adapter.gemspec +6 -4
- metadata +45 -31
- data/.circleci/config.yml +0 -16
- data/gemfiles/rails_42.gemfile +0 -11
- data/gemfiles/rails_50.gemfile +0 -10
- data/gemfiles/rails_51.gemfile +0 -11
- data/gemfiles/rails_52.gemfile +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 38b40791f78663cace4e019c7b80cd45de3960fb74085a8e0d745290bb7f8a03
|
4
|
+
data.tar.gz: 0ef5d6a973d0d686a959936bd8b46ee446ccc8e1c76cc39339dbff7e365fbe96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03e0d08987fe24d717f2dc2bb7f4e5f71dc4b4d04185c0d7b4523df4a521bc84de30c4e7537e06eb7d118d73f94dd7b9b291be78ab66352cf3d5649a1fb97a54
|
7
|
+
data.tar.gz: 590c2092992f436a951080d8bc30b2ea1a7fd41bcb6343fcdfa879f47d5a62d9f22a6e7234d7e88a1cbb4a130e6219b3f056603764a4f6ec570e8082611ba0a9
|
@@ -0,0 +1,42 @@
|
|
1
|
+
name: Ruby
|
2
|
+
|
3
|
+
on: [push]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
name: CI-tests
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
strategy:
|
10
|
+
fail-fast: false
|
11
|
+
matrix:
|
12
|
+
ruby:
|
13
|
+
- '3.3'
|
14
|
+
- '3.2'
|
15
|
+
- '3.1'
|
16
|
+
client:
|
17
|
+
- 'trilogy'
|
18
|
+
- 'mysql2'
|
19
|
+
|
20
|
+
services:
|
21
|
+
mariadb:
|
22
|
+
image: mariadb:10.6
|
23
|
+
env:
|
24
|
+
MARIADB_ROOT_PASSWORD: root
|
25
|
+
MARIADB_DATABASE: scenic_mysql_adapter_test
|
26
|
+
ports:
|
27
|
+
- 3306:3306
|
28
|
+
|
29
|
+
steps:
|
30
|
+
- uses: actions/checkout@v3
|
31
|
+
|
32
|
+
- name: Setup Ruby
|
33
|
+
uses: ruby/setup-ruby@v1
|
34
|
+
with:
|
35
|
+
ruby-version: ${{ matrix.ruby }}
|
36
|
+
bundler-cache: true
|
37
|
+
|
38
|
+
- name: Run tests
|
39
|
+
env:
|
40
|
+
DATABASE_URL: ${{ matrix.client }}://root:root@127.0.0.1/scenic_mysql_adapter_test
|
41
|
+
run: |
|
42
|
+
bundle exec rake test
|
data/Appraisals
CHANGED
@@ -1,29 +1,13 @@
|
|
1
|
-
appraise "rails-
|
2
|
-
gem "
|
3
|
-
gem "
|
4
|
-
gem "
|
5
|
-
gem "
|
6
|
-
gem "activesupport", "~> 4.2", "< 5.0"
|
1
|
+
appraise "rails-71" do
|
2
|
+
gem "activerecord", "~> 7.1.0"
|
3
|
+
gem "activemodel", "~> 7.1.0"
|
4
|
+
gem "actionpack", "~> 7.1.0"
|
5
|
+
gem "activesupport", "~> 7.1.0"
|
7
6
|
end
|
8
7
|
|
9
|
-
appraise "rails-
|
10
|
-
gem "activerecord", "~>
|
11
|
-
gem "activemodel", "~>
|
12
|
-
gem "actionpack", "~>
|
13
|
-
gem "activesupport", "~>
|
14
|
-
end
|
15
|
-
|
16
|
-
appraise "rails-51" do
|
17
|
-
gem "mysql2", "0.4.4"
|
18
|
-
gem "activerecord", "~> 5.1", "< 5.2"
|
19
|
-
gem "activemodel", "~> 5.1", "< 5.2"
|
20
|
-
gem "actionpack", "~> 5.1", "< 5.2"
|
21
|
-
gem "activesupport", "~> 5.1", "< 5.2"
|
22
|
-
end
|
23
|
-
|
24
|
-
appraise "rails-52" do
|
25
|
-
gem "activerecord", "~> 5.2"
|
26
|
-
gem "activemodel", "~> 5.2"
|
27
|
-
gem "actionpack", "~> 5.2"
|
28
|
-
gem "activesupport", "~> 5.2"
|
8
|
+
appraise "rails-72" do
|
9
|
+
gem "activerecord", "~> 7.2.0"
|
10
|
+
gem "activemodel", "~> 7.2.0"
|
11
|
+
gem "actionpack", "~> 7.2.0"
|
12
|
+
gem "activesupport", "~> 7.2.0"
|
29
13
|
end
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
|
+
|
8
|
+
## [Unreleased]
|
9
|
+
|
10
|
+
## v1.1.0
|
11
|
+
|
12
|
+
- Support for Trilogy adapter [#2]
|
13
|
+
- Test against Rails 7.x [#2]
|
data/LICENSE.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2019
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
5
|
+
the Software without restriction, including without limitation the rights to
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
8
|
+
so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
MySQL adapter for [scenic](https://github.com/thoughtbot/scenic).
|
4
4
|
|
5
|
-
[![Gem](https://img.shields.io/gem/v/scenic-mysql_adapter.svg)](https://rubygems.org/gems/scenic-mysql_adapter)
|
5
|
+
[![Gem](https://img.shields.io/gem/v/scenic-mysql_adapter.svg)](https://rubygems.org/gems/scenic-mysql_adapter)
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -21,6 +21,8 @@ Then create the following file:
|
|
21
21
|
```ruby
|
22
22
|
# config/initializers/scenic.rb
|
23
23
|
|
24
|
+
require 'scenic/mysql_adapter'
|
25
|
+
|
24
26
|
Scenic.configure do |config|
|
25
27
|
config.database = Scenic::Adapters::MySQL.new
|
26
28
|
end
|
@@ -38,8 +40,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
38
40
|
|
39
41
|
## Contributing
|
40
42
|
|
41
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
43
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/cainlevy/scenic-mysql_adapter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
42
44
|
|
43
45
|
## Code of Conduct
|
44
46
|
|
45
|
-
Everyone interacting in the ScenicMysqlAdapter project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
47
|
+
Everyone interacting in the ScenicMysqlAdapter project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/cainlevy/scenic-mysql_adapter/blob/master/CODE_OF_CONDUCT.md).
|
@@ -10,7 +10,8 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["lance@cainlevy.net"]
|
11
11
|
|
12
12
|
spec.summary = %q{MySQL adapter for thoughtbot/scenic}
|
13
|
-
spec.homepage = "https://github.com/
|
13
|
+
spec.homepage = "https://github.com/cainlevy/scenic-mysql_adapter"
|
14
|
+
spec.license = "MIT"
|
14
15
|
|
15
16
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
16
17
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
@@ -29,10 +30,11 @@ Gem::Specification.new do |spec|
|
|
29
30
|
spec.require_paths = ["lib"]
|
30
31
|
|
31
32
|
spec.add_dependency "scenic", ">= 1.4.0"
|
32
|
-
spec.add_dependency "mysql2"
|
33
33
|
|
34
|
-
spec.add_development_dependency "bundler"
|
35
|
-
spec.add_development_dependency "rake"
|
34
|
+
spec.add_development_dependency "bundler"
|
35
|
+
spec.add_development_dependency "rake"
|
36
36
|
spec.add_development_dependency "minitest", "~> 5.0"
|
37
37
|
spec.add_development_dependency "appraisal"
|
38
|
+
spec.add_development_dependency "mysql2"
|
39
|
+
spec.add_development_dependency "trilogy"
|
38
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scenic-mysql_adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lance Ivy
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scenic
|
@@ -25,13 +25,13 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.4.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
|
-
type: :
|
34
|
+
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
@@ -39,49 +39,63 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '5.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '5.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: appraisal
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: mysql2
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: trilogy
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
101
|
- - ">="
|
@@ -94,27 +108,27 @@ dependencies:
|
|
94
108
|
- - ">="
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0'
|
97
|
-
description:
|
111
|
+
description:
|
98
112
|
email:
|
99
113
|
- lance@cainlevy.net
|
100
114
|
executables: []
|
101
115
|
extensions: []
|
102
116
|
extra_rdoc_files: []
|
103
117
|
files:
|
104
|
-
- ".
|
118
|
+
- ".github/workflows/CI.yml"
|
105
119
|
- ".gitignore"
|
106
120
|
- Appraisals
|
121
|
+
- CHANGELOG.md
|
107
122
|
- CODE_OF_CONDUCT.md
|
108
123
|
- Gemfile
|
124
|
+
- LICENSE.md
|
109
125
|
- README.md
|
110
126
|
- Rakefile
|
111
127
|
- bin/console
|
112
128
|
- bin/setup
|
113
129
|
- gemfiles/.bundle/config
|
114
|
-
- gemfiles/
|
115
|
-
- gemfiles/
|
116
|
-
- gemfiles/rails_51.gemfile
|
117
|
-
- gemfiles/rails_52.gemfile
|
130
|
+
- gemfiles/rails_71.gemfile
|
131
|
+
- gemfiles/rails_72.gemfile
|
118
132
|
- lib/scenic/adapters/my_sql.rb
|
119
133
|
- lib/scenic/adapters/railtie.rb
|
120
134
|
- lib/scenic/mysql_adapter.rb
|
@@ -122,11 +136,12 @@ files:
|
|
122
136
|
- lib/scenic/mysql_adapter/version.rb
|
123
137
|
- lib/scenic/mysql_adapter/views.rb
|
124
138
|
- scenic-mysql_adapter.gemspec
|
125
|
-
homepage: https://github.com/
|
126
|
-
licenses:
|
139
|
+
homepage: https://github.com/cainlevy/scenic-mysql_adapter
|
140
|
+
licenses:
|
141
|
+
- MIT
|
127
142
|
metadata:
|
128
143
|
allowed_push_host: https://rubygems.org
|
129
|
-
post_install_message:
|
144
|
+
post_install_message:
|
130
145
|
rdoc_options: []
|
131
146
|
require_paths:
|
132
147
|
- lib
|
@@ -141,9 +156,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
156
|
- !ruby/object:Gem::Version
|
142
157
|
version: '0'
|
143
158
|
requirements: []
|
144
|
-
|
145
|
-
|
146
|
-
signing_key:
|
159
|
+
rubygems_version: 3.1.6
|
160
|
+
signing_key:
|
147
161
|
specification_version: 4
|
148
162
|
summary: MySQL adapter for thoughtbot/scenic
|
149
163
|
test_files: []
|
data/.circleci/config.yml
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
version: 2
|
2
|
-
|
3
|
-
jobs:
|
4
|
-
build:
|
5
|
-
working_directory: ~/mysql_point
|
6
|
-
docker:
|
7
|
-
- image: circleci/ruby:2.3
|
8
|
-
environment:
|
9
|
-
DATABASE_URL: mysql2://root@127.0.0.1/circle_test
|
10
|
-
- image: circleci/mysql:5.7
|
11
|
-
|
12
|
-
steps:
|
13
|
-
- checkout
|
14
|
-
- run: bin/setup
|
15
|
-
- run: appraisal install
|
16
|
-
- run: appraisal rake test
|
data/gemfiles/rails_42.gemfile
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "mysql2", "0.4.4"
|
6
|
-
gem "activerecord", "~> 4.2", "< 5.0"
|
7
|
-
gem "activemodel", "~> 4.2", "< 5.0"
|
8
|
-
gem "actionpack", "~> 4.2", "< 5.0"
|
9
|
-
gem "activesupport", "~> 4.2", "< 5.0"
|
10
|
-
|
11
|
-
gemspec path: "../"
|
data/gemfiles/rails_50.gemfile
DELETED
data/gemfiles/rails_51.gemfile
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "mysql2", "0.4.4"
|
6
|
-
gem "activerecord", "~> 5.1", "< 5.2"
|
7
|
-
gem "activemodel", "~> 5.1", "< 5.2"
|
8
|
-
gem "actionpack", "~> 5.1", "< 5.2"
|
9
|
-
gem "activesupport", "~> 5.1", "< 5.2"
|
10
|
-
|
11
|
-
gemspec path: "../"
|