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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d6f0744e97155966fa7ce57be4b5a54af87f87df
4
- data.tar.gz: c4e85b7b3f4ddd1515c0c18dc41137fc477ad4a8
2
+ SHA256:
3
+ metadata.gz: 38b40791f78663cace4e019c7b80cd45de3960fb74085a8e0d745290bb7f8a03
4
+ data.tar.gz: 0ef5d6a973d0d686a959936bd8b46ee446ccc8e1c76cc39339dbff7e365fbe96
5
5
  SHA512:
6
- metadata.gz: e6ca4956ad189e565a7abeea03fa71092aa4010b9147cc3c9315e51d7d150d1b57897992b186ddcb331594d2a49c0d7e9778fe2fa6cac6d68b00e8a0d1634f3a
7
- data.tar.gz: 18ee7349eeaa535d474a57d47eba3ed0e429ce177e858a75767d233d30f7e1a17de6c92db4805dd18a951b0eff55ea5aaa77a9553a75f8dcd07545e28f04bd19
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-42" do
2
- gem "mysql2", "0.4.4"
3
- gem "activerecord", "~> 4.2", "< 5.0"
4
- gem "activemodel", "~> 4.2", "< 5.0"
5
- gem "actionpack", "~> 4.2", "< 5.0"
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-50" do
10
- gem "activerecord", "~> 5.0", "< 5.1"
11
- gem "activemodel", "~> 5.0", "< 5.1"
12
- gem "actionpack", "~> 5.0", "< 5.1"
13
- gem "activesupport", "~> 5.0", "< 5.1"
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)[![master branch](https://img.shields.io/circleci/project/github/EmpaticoOrg/scenic-mysql_adapter.svg)](https://circleci.com/gh/EmpaticoOrg/scenic-mysql_adapter/tree/master)
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/EmpaticoOrg/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.
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/EmpaticoOrg/scenic-mysql_adapter/blob/master/CODE_OF_CONDUCT.md).
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).
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 7.1.0"
6
+ gem "activemodel", "~> 7.1.0"
7
+ gem "actionpack", "~> 7.1.0"
8
+ gem "activesupport", "~> 7.1.0"
9
+
10
+ gemspec path: "../"
@@ -0,0 +1,10 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 7.2.0"
6
+ gem "activemodel", "~> 7.2.0"
7
+ gem "actionpack", "~> 7.2.0"
8
+ gem "activesupport", "~> 7.2.0"
9
+
10
+ gemspec path: "../"
@@ -1,5 +1,5 @@
1
1
  module Scenic
2
2
  module MysqlAdapter
3
- VERSION = "1.0.1"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -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/EmpaticoOrg/scenic-mysql_adapter"
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", "~> 1.15"
35
- spec.add_development_dependency "rake", "~> 10.0"
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.1
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: 2018-05-21 00:00:00.000000000 Z
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: mysql2
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: :runtime
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: bundler
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '1.15'
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: '1.15'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rake
56
+ name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '10.0'
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: '10.0'
68
+ version: '5.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: minitest
70
+ name: appraisal
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '5.0'
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: '5.0'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: appraisal
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
- - ".circleci/config.yml"
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/rails_42.gemfile
115
- - gemfiles/rails_50.gemfile
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/EmpaticoOrg/scenic-mysql_adapter
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
- rubyforge_project:
145
- rubygems_version: 2.6.13
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
@@ -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: "../"
@@ -1,10 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 5.0", "< 5.1"
6
- gem "activemodel", "~> 5.0", "< 5.1"
7
- gem "actionpack", "~> 5.0", "< 5.1"
8
- gem "activesupport", "~> 5.0", "< 5.1"
9
-
10
- gemspec path: "../"
@@ -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: "../"
@@ -1,10 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 5.2"
6
- gem "activemodel", "~> 5.2"
7
- gem "actionpack", "~> 5.2"
8
- gem "activesupport", "~> 5.2"
9
-
10
- gemspec path: "../"