scenic-mysql_adapter 1.0.2 → 1.1.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/CI.yml +14 -12
- data/Appraisals +10 -24
- data/CHANGELOG.md +13 -0
- data/README.md +3 -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 +3 -2
- metadata +29 -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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
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
|
data/.github/workflows/CI.yml
CHANGED
@@ -10,13 +10,21 @@ jobs:
|
|
10
10
|
fail-fast: false
|
11
11
|
matrix:
|
12
12
|
ruby:
|
13
|
+
- '3.3'
|
13
14
|
- '3.2'
|
14
15
|
- '3.1'
|
15
|
-
|
16
|
-
- '
|
17
|
-
- '
|
18
|
-
|
19
|
-
|
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
|
20
28
|
|
21
29
|
steps:
|
22
30
|
- uses: actions/checkout@v3
|
@@ -27,14 +35,8 @@ jobs:
|
|
27
35
|
ruby-version: ${{ matrix.ruby }}
|
28
36
|
bundler-cache: true
|
29
37
|
|
30
|
-
- name: Start and create DB
|
31
|
-
run: |
|
32
|
-
sudo service mysql start
|
33
|
-
sleep 10
|
34
|
-
mysql -u root -proot -e "CREATE DATABASE scenic_mysql_adapter_test;"
|
35
|
-
|
36
38
|
- name: Run tests
|
37
39
|
env:
|
38
|
-
DATABASE_URL:
|
40
|
+
DATABASE_URL: ${{ matrix.client }}://root:root@127.0.0.1/scenic_mysql_adapter_test
|
39
41
|
run: |
|
40
42
|
bundle exec rake test
|
data/Appraisals
CHANGED
@@ -1,27 +1,13 @@
|
|
1
|
-
appraise "rails-
|
2
|
-
gem "activerecord", "~>
|
3
|
-
gem "activemodel", "~>
|
4
|
-
gem "actionpack", "~>
|
5
|
-
gem "activesupport", "~>
|
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"
|
6
6
|
end
|
7
7
|
|
8
|
-
appraise "rails-
|
9
|
-
gem "activerecord", "~>
|
10
|
-
gem "activemodel", "~>
|
11
|
-
gem "actionpack", "~>
|
12
|
-
gem "activesupport", "~>
|
13
|
-
end
|
14
|
-
|
15
|
-
appraise "rails-51" do
|
16
|
-
gem "activerecord", "~> 5.1", "< 5.2"
|
17
|
-
gem "activemodel", "~> 5.1", "< 5.2"
|
18
|
-
gem "actionpack", "~> 5.1", "< 5.2"
|
19
|
-
gem "activesupport", "~> 5.1", "< 5.2"
|
20
|
-
end
|
21
|
-
|
22
|
-
appraise "rails-52" do
|
23
|
-
gem "activerecord", "~> 5.2"
|
24
|
-
gem "activemodel", "~> 5.2"
|
25
|
-
gem "actionpack", "~> 5.2"
|
26
|
-
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"
|
27
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/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
|
|
@@ -40,8 +40,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
40
40
|
|
41
41
|
## Contributing
|
42
42
|
|
43
|
-
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.
|
44
44
|
|
45
45
|
## Code of Conduct
|
46
46
|
|
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/
|
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,7 @@ 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
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
@@ -30,10 +30,11 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.require_paths = ["lib"]
|
31
31
|
|
32
32
|
spec.add_dependency "scenic", ">= 1.4.0"
|
33
|
-
spec.add_dependency "mysql2"
|
34
33
|
|
35
34
|
spec.add_development_dependency "bundler"
|
36
35
|
spec.add_development_dependency "rake"
|
37
36
|
spec.add_development_dependency "minitest", "~> 5.0"
|
38
37
|
spec.add_development_dependency "appraisal"
|
38
|
+
spec.add_development_dependency "mysql2"
|
39
|
+
spec.add_development_dependency "trilogy"
|
39
40
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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
|
@@ -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,7 +39,7 @@ 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
|
- - ">="
|
@@ -53,7 +53,21 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '5.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '5.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: appraisal
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - ">="
|
@@ -67,21 +81,21 @@ dependencies:
|
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
84
|
+
name: mysql2
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- - "
|
87
|
+
- - ">="
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
89
|
+
version: '0'
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- - "
|
94
|
+
- - ">="
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
96
|
+
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
98
|
+
name: trilogy
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
101
|
- - ">="
|
@@ -104,6 +118,7 @@ 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
|
109
124
|
- LICENSE.md
|
@@ -112,10 +127,8 @@ files:
|
|
112
127
|
- bin/console
|
113
128
|
- bin/setup
|
114
129
|
- gemfiles/.bundle/config
|
115
|
-
- gemfiles/
|
116
|
-
- gemfiles/
|
117
|
-
- gemfiles/rails_51.gemfile
|
118
|
-
- gemfiles/rails_52.gemfile
|
130
|
+
- gemfiles/rails_71.gemfile
|
131
|
+
- gemfiles/rails_72.gemfile
|
119
132
|
- lib/scenic/adapters/my_sql.rb
|
120
133
|
- lib/scenic/adapters/railtie.rb
|
121
134
|
- lib/scenic/mysql_adapter.rb
|
@@ -123,7 +136,7 @@ files:
|
|
123
136
|
- lib/scenic/mysql_adapter/version.rb
|
124
137
|
- lib/scenic/mysql_adapter/views.rb
|
125
138
|
- scenic-mysql_adapter.gemspec
|
126
|
-
homepage: https://github.com/
|
139
|
+
homepage: https://github.com/cainlevy/scenic-mysql_adapter
|
127
140
|
licenses:
|
128
141
|
- MIT
|
129
142
|
metadata:
|
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: "../"
|