scenic-mysql 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +11 -0
- data/bin/console +14 -0
- data/bin/rake +17 -0
- data/bin/rspec +17 -0
- data/bin/setup +8 -0
- data/lib/scenic-mysql.rb +2 -0
- data/lib/scenic/adapters/mysql.rb +163 -0
- data/lib/scenic/adapters/mysql/connection.rb +23 -0
- data/lib/scenic/adapters/mysql/errors.rb +25 -0
- data/lib/scenic/adapters/mysql/indexes.rb +50 -0
- data/lib/scenic/adapters/mysql/views.rb +47 -0
- data/lib/scenic/mysql.rb +3 -0
- data/lib/scenic/mysql/version.rb +5 -0
- data/scenic-mysql.gemspec +32 -0
- metadata +164 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: debd8d685f6a17303ba3e74957e47141ff982d4c
|
4
|
+
data.tar.gz: bfd9d028e50e0d9cff8cd38d91cc905cd0611a32
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 831e1a2a86c4b3fe8e757ea53aab615c94b4925e0387ae66b29e016e0c9430935c4ad8afb188510fcaf29bad52cb40ba5f17e1d331c877704f21b9251376dd5f
|
7
|
+
data.tar.gz: d4d56f4e47135475af9f7aa4a7d0e8b3b38c6a1c7f9cc4fa1524cb2f9dbbed292cc9c2b6b6669408fdf1397676cd45e50911dfcd7962a2278c61cad842724b24
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Rennan Oliveira
|
4
|
+
|
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:
|
11
|
+
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# Scenic::Mysql
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/scenic/mysql`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'scenic-mysql'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install scenic-mysql
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/scenic-mysql.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'scenic/mysql'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require 'pry'
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/rake
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
#
|
4
|
+
# This file was generated by Bundler.
|
5
|
+
#
|
6
|
+
# The application 'rake' is installed as part of a gem, and
|
7
|
+
# this file is here to facilitate running it.
|
8
|
+
#
|
9
|
+
|
10
|
+
require 'pathname'
|
11
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
12
|
+
Pathname.new(__FILE__).realpath)
|
13
|
+
|
14
|
+
require 'rubygems'
|
15
|
+
require 'bundler/setup'
|
16
|
+
|
17
|
+
load Gem.bin_path('rake', 'rake')
|
data/bin/rspec
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
#
|
4
|
+
# This file was generated by Bundler.
|
5
|
+
#
|
6
|
+
# The application 'rspec' is installed as part of a gem, and
|
7
|
+
# this file is here to facilitate running it.
|
8
|
+
#
|
9
|
+
|
10
|
+
require 'pathname'
|
11
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
12
|
+
Pathname.new(__FILE__).realpath)
|
13
|
+
|
14
|
+
require 'rubygems'
|
15
|
+
require 'bundler/setup'
|
16
|
+
|
17
|
+
load Gem.bin_path('rspec-core', 'rspec')
|
data/bin/setup
ADDED
data/lib/scenic-mysql.rb
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
require_relative 'mysql/connection'
|
2
|
+
require_relative 'mysql/errors'
|
3
|
+
require_relative 'mysql/indexes'
|
4
|
+
require_relative 'mysql/views'
|
5
|
+
|
6
|
+
module Scenic
|
7
|
+
# Scenic database adapters.
|
8
|
+
#
|
9
|
+
# Scenic ships with a Postgres adapter only but can be extended with
|
10
|
+
# additional adapters. This adapter {Adapters::Mysql} implements the
|
11
|
+
# interface described on {Adapters::Postgres}.
|
12
|
+
module Adapters
|
13
|
+
# An adapter for managing Mysql views.
|
14
|
+
#
|
15
|
+
# These methods are used internally by Scenic and are not intended for direct
|
16
|
+
# use. Methods that alter database schema are intended to be called via
|
17
|
+
# {Statements}, while {#refresh_materialized_view} is called via
|
18
|
+
# {Scenic.database}.
|
19
|
+
#
|
20
|
+
# The methods are documented here for insight into specifics of how Scenic
|
21
|
+
# integrates with Mysql and the responsibilities of {Adapters}.
|
22
|
+
class Mysql
|
23
|
+
# Creates an instance of the Scenic Mysql adapter.
|
24
|
+
#
|
25
|
+
# Postgres is the default adapter for Scenic. To use this Mysql adapter,
|
26
|
+
# follow the example bellow
|
27
|
+
#
|
28
|
+
# @param [#connection] connectable An object that returns the connection
|
29
|
+
# for Scenic to use. Defaults to `ActiveRecord::Base`.
|
30
|
+
#
|
31
|
+
# @example
|
32
|
+
# Scenic.configure do |config|
|
33
|
+
# config.adapter = Scenic::Adapters::Mysql.new
|
34
|
+
# end
|
35
|
+
def initialize(connectable = ActiveRecord::Base)
|
36
|
+
@connectable = connectable
|
37
|
+
end
|
38
|
+
|
39
|
+
# Returns an array of views in the database.
|
40
|
+
#
|
41
|
+
# This collection of views is used by the [Scenic::SchemaDumper] to
|
42
|
+
# populate the `schema.rb` file.
|
43
|
+
#
|
44
|
+
# @return [Array<Scenic::View>]
|
45
|
+
def views
|
46
|
+
Views.new(connection).all
|
47
|
+
end
|
48
|
+
|
49
|
+
# Creates a view in the database.
|
50
|
+
#
|
51
|
+
# This is typically called in a migration via {Statements#create_view}.
|
52
|
+
#
|
53
|
+
# @param name The name of the view to create
|
54
|
+
# @param sql_definition The SQL schema for the view.
|
55
|
+
#
|
56
|
+
# @return [void]
|
57
|
+
def create_view(name, sql_definition)
|
58
|
+
execute "CREATE VIEW #{quote_table_name(name)} AS #{sql_definition};"
|
59
|
+
end
|
60
|
+
|
61
|
+
# Updates a view in the database.
|
62
|
+
#
|
63
|
+
# This results in a {#drop_view} followed by a {#create_view}. The
|
64
|
+
# explicitness of that two step process is preferred to `CREATE OR
|
65
|
+
# REPLACE VIEW` because the former ensures that the view you are trying to
|
66
|
+
# update did, in fact, already exist. Additionally, `CREATE OR REPLACE
|
67
|
+
# VIEW` is allowed only to add new columns to the end of an existing
|
68
|
+
# view schema. Existing columns cannot be re-ordered, removed, or have
|
69
|
+
# their types changed. Drop and create overcomes this limitation as well.
|
70
|
+
#
|
71
|
+
# This is typically called in a migration via {Statements#update_view}.
|
72
|
+
#
|
73
|
+
# @param name The name of the view to update
|
74
|
+
# @param sql_definition The SQL schema for the updated view.
|
75
|
+
#
|
76
|
+
# @return [void]
|
77
|
+
def update_view(name, sql_definition)
|
78
|
+
drop_view(name)
|
79
|
+
create_view(name, sql_definition)
|
80
|
+
end
|
81
|
+
|
82
|
+
# Replaces a view in the database using `CREATE OR REPLACE VIEW`.
|
83
|
+
#
|
84
|
+
# This results in a `CREATE OR REPLACE VIEW`. Most of the time the
|
85
|
+
# explicitness of the two step process used in {#update_view} is preferred
|
86
|
+
# to `CREATE OR REPLACE VIEW` because the former ensures that the view you
|
87
|
+
# are trying to update did, in fact, already exist. Additionally,
|
88
|
+
# `CREATE OR REPLACE VIEW` is allowed only to add new columns to the end
|
89
|
+
# of an existing view schema. Existing columns cannot be re-ordered,
|
90
|
+
# removed, or have their types changed. Drop and create overcomes this
|
91
|
+
# limitation as well.
|
92
|
+
#
|
93
|
+
# However, when there is a tangled dependency tree
|
94
|
+
# `CREATE OR REPLACE VIEW` can be preferable.
|
95
|
+
#
|
96
|
+
# This is typically called in a migration via
|
97
|
+
# {Statements#replace_view}.
|
98
|
+
#
|
99
|
+
# @param name The name of the view to update
|
100
|
+
# @param sql_definition The SQL schema for the updated view.
|
101
|
+
#
|
102
|
+
# @return [void]
|
103
|
+
def replace_view(name, sql_definition)
|
104
|
+
execute "CREATE OR REPLACE VIEW #{quote_table_name(name)} AS #{sql_definition};"
|
105
|
+
end
|
106
|
+
|
107
|
+
# Drops the named view from the database
|
108
|
+
#
|
109
|
+
# This is typically called in a migration via {Statements#drop_view}.
|
110
|
+
#
|
111
|
+
# @param name The name of the view to drop
|
112
|
+
#
|
113
|
+
# @return [void]
|
114
|
+
def drop_view(name)
|
115
|
+
execute "DROP VIEW #{quote_table_name(name)};"
|
116
|
+
end
|
117
|
+
|
118
|
+
# @raise [MaterializedViewsNotSupportedError] as Mysql does not support
|
119
|
+
# materialized views.
|
120
|
+
#
|
121
|
+
# @return [void]
|
122
|
+
def create_materialized_view(_name, _sql_definition)
|
123
|
+
raise MaterializedViewsNotSupportedError
|
124
|
+
end
|
125
|
+
|
126
|
+
# @raise [MaterializedViewsNotSupportedError] as Mysql does not support
|
127
|
+
# materialized views.
|
128
|
+
#
|
129
|
+
# @return [void]
|
130
|
+
def update_materialized_view(_name, _sql_definition)
|
131
|
+
raise MaterializedViewsNotSupportedError
|
132
|
+
end
|
133
|
+
|
134
|
+
|
135
|
+
# @raise [MaterializedViewsNotSupportedError] as Mysql does not support
|
136
|
+
# materialized views.
|
137
|
+
#
|
138
|
+
# @return [void]
|
139
|
+
def drop_materialized_view(_name)
|
140
|
+
raise MaterializedViewsNotSupportedError
|
141
|
+
end
|
142
|
+
|
143
|
+
|
144
|
+
# @raise [MaterializedViewsNotSupportedError] as Mysql does not support
|
145
|
+
# materialized views.
|
146
|
+
#
|
147
|
+
# @return [void]
|
148
|
+
def refresh_materialized_view(_name, _concurrently: false)
|
149
|
+
raise MaterializedViewsNotSupportedError
|
150
|
+
end
|
151
|
+
|
152
|
+
private
|
153
|
+
|
154
|
+
attr_reader :connectable
|
155
|
+
delegate :execute, :quote_table_name, to: :connection
|
156
|
+
|
157
|
+
def connection
|
158
|
+
connectable.connection
|
159
|
+
end
|
160
|
+
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Scenic
|
2
|
+
module Adapters
|
3
|
+
class Mysql
|
4
|
+
# Decorates an ActiveRecord connection with methods that help determine
|
5
|
+
# the connections capabilities.
|
6
|
+
#
|
7
|
+
# As Mysql does not support materialized views, this class is a no-op
|
8
|
+
#
|
9
|
+
# @api private
|
10
|
+
class Connection < SimpleDelegator
|
11
|
+
# False always for Mysql
|
12
|
+
#
|
13
|
+
# @return [Boolean]
|
14
|
+
def supports_materialized_views?; false; end
|
15
|
+
|
16
|
+
# False always for Mysql
|
17
|
+
#
|
18
|
+
# @return [Boolean]
|
19
|
+
def supports_concurrent_refreshes?; false; end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Scenic
|
2
|
+
module Adapters
|
3
|
+
class Mysql
|
4
|
+
# Raised when a materialized view operation is attempted on a database
|
5
|
+
# version that does not support materialized views.
|
6
|
+
#
|
7
|
+
# Materialized views are not supported on Mysql.
|
8
|
+
class MaterializedViewsNotSupportedError < StandardError
|
9
|
+
def initialize
|
10
|
+
super('Materialized views not supported in Mysql')
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
# Raised when attempting a concurrent materialized view refresh on a
|
15
|
+
# database version that does not support that.
|
16
|
+
#
|
17
|
+
# Materialized views are not supported on Mysql.
|
18
|
+
class ConcurrentRefreshesNotSupportedError < MaterializedViewsNotSupportedError
|
19
|
+
def initialize
|
20
|
+
super
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
module Scenic
|
2
|
+
module Adapters
|
3
|
+
class Mysql
|
4
|
+
# Fetches indexes on objects from the Mysql connection.
|
5
|
+
#
|
6
|
+
# @api private
|
7
|
+
class Indexes
|
8
|
+
def initialize(connection:)
|
9
|
+
@connection = connection
|
10
|
+
end
|
11
|
+
|
12
|
+
# Indexes on the provided object.
|
13
|
+
#
|
14
|
+
# @param name [String] The name of the object we want indexes from.
|
15
|
+
# @return [Array<Scenic::Index>]
|
16
|
+
def on(name)
|
17
|
+
indexes_on(name).map.(&method(:index_from_database))
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
attr_reader :connection
|
23
|
+
delegate :quote_table_name, to: :connection
|
24
|
+
|
25
|
+
def indexes_on(name)
|
26
|
+
connection.exec_query(<<-SQL)
|
27
|
+
SHOW INDEX FROM '#{name}'
|
28
|
+
WHERE Key_name <> 'PRIMARY'
|
29
|
+
SQL
|
30
|
+
end
|
31
|
+
|
32
|
+
def index_from_database(result)
|
33
|
+
Scenic::Index.new(
|
34
|
+
object_name: result['Table'],
|
35
|
+
index_name: result['Key_name'],
|
36
|
+
definition: index_definition_for(result)
|
37
|
+
)
|
38
|
+
end
|
39
|
+
|
40
|
+
def index_definition_for(result)
|
41
|
+
<<-SQL
|
42
|
+
CREATE INDEX '#{result["Key_name"]}'
|
43
|
+
ON '#{result["Table"]}' ('#{result["Column_name"]}')
|
44
|
+
USING '#{result["Index_type"]}'
|
45
|
+
SQL
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
module Scenic
|
2
|
+
module Adapters
|
3
|
+
class Mysql
|
4
|
+
# Fetches defined views from the mysql connection.
|
5
|
+
# @api private
|
6
|
+
class Views
|
7
|
+
def initialize(connection)
|
8
|
+
@connection = connection
|
9
|
+
end
|
10
|
+
|
11
|
+
# All of the views that this connection has defined.
|
12
|
+
# Mysql will return these views ordered by name.
|
13
|
+
# Difference from the original Postgres adapter:
|
14
|
+
# Mysql2 gem only watches one schema at a time.
|
15
|
+
#
|
16
|
+
# This will not include materialized views as these are not
|
17
|
+
# supported by mysql.
|
18
|
+
#
|
19
|
+
# @return [Array<Scenic::View>]
|
20
|
+
def all
|
21
|
+
views_from_mysql.map(&method(:to_scenic_view))
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
attr_reader :connection
|
27
|
+
|
28
|
+
def views_from_mysql
|
29
|
+
ActiveRecord::Base.connection.exec_query(<<-SQL)
|
30
|
+
SELECT TABLE_NAME, VIEW_DEFINITION, TABLE_SCHEMA
|
31
|
+
FROM information_schema.VIEWS
|
32
|
+
WHERE TABLE_SCHEMA = DATABASE();
|
33
|
+
SQL
|
34
|
+
end
|
35
|
+
|
36
|
+
def to_scenic_view(result)
|
37
|
+
Scenic::View.new(
|
38
|
+
name: result['TABLE_NAME'],
|
39
|
+
definition: result['VIEW_DEFINITION'].strip,
|
40
|
+
materialized: false
|
41
|
+
)
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
data/lib/scenic/mysql.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'scenic/mysql/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'scenic-mysql'
|
8
|
+
spec.version = Scenic::Mysql::VERSION
|
9
|
+
spec.authors = ['Rennan Oliveira', 'Abraão Miranda']
|
10
|
+
spec.email = ['renmcoliver@gmail.com', 'abraaomirandar@gmail.com']
|
11
|
+
|
12
|
+
spec.summary = %q{Mysql adapter for the scenic gem}
|
13
|
+
spec.description = %q{Adds Mysql adapter to the scenic gem}
|
14
|
+
spec.homepage = 'https://github.com/rennanoliveira/scenic-mysql'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
|
21
|
+
spec.require_paths = ['lib']
|
22
|
+
|
23
|
+
spec.add_development_dependency 'bundler', '>= 1.5'
|
24
|
+
spec.add_development_dependency 'database_cleaner'
|
25
|
+
spec.add_development_dependency 'rake'
|
26
|
+
spec.add_development_dependency 'rspec', '>= 3.3'
|
27
|
+
spec.add_development_dependency 'mysql2', '>= 0.4.4'
|
28
|
+
spec.add_development_dependency 'pry'
|
29
|
+
|
30
|
+
spec.add_dependency 'scenic', '>= 1.3'
|
31
|
+
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,164 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: scenic-mysql
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Rennan Oliveira
|
8
|
+
- Abraão Miranda
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2016-10-03 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.5'
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.5'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: database_cleaner
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rake
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rspec
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '3.3'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '3.3'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: mysql2
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.4.4
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 0.4.4
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: pry
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: scenic
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '1.3'
|
105
|
+
type: :runtime
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '1.3'
|
112
|
+
description: Adds Mysql adapter to the scenic gem
|
113
|
+
email:
|
114
|
+
- renmcoliver@gmail.com
|
115
|
+
- abraaomirandar@gmail.com
|
116
|
+
executables: []
|
117
|
+
extensions: []
|
118
|
+
extra_rdoc_files: []
|
119
|
+
files:
|
120
|
+
- ".gitignore"
|
121
|
+
- ".rspec"
|
122
|
+
- ".travis.yml"
|
123
|
+
- Gemfile
|
124
|
+
- LICENSE.txt
|
125
|
+
- README.md
|
126
|
+
- Rakefile
|
127
|
+
- bin/console
|
128
|
+
- bin/rake
|
129
|
+
- bin/rspec
|
130
|
+
- bin/setup
|
131
|
+
- lib/scenic-mysql.rb
|
132
|
+
- lib/scenic/adapters/mysql.rb
|
133
|
+
- lib/scenic/adapters/mysql/connection.rb
|
134
|
+
- lib/scenic/adapters/mysql/errors.rb
|
135
|
+
- lib/scenic/adapters/mysql/indexes.rb
|
136
|
+
- lib/scenic/adapters/mysql/views.rb
|
137
|
+
- lib/scenic/mysql.rb
|
138
|
+
- lib/scenic/mysql/version.rb
|
139
|
+
- scenic-mysql.gemspec
|
140
|
+
homepage: https://github.com/rennanoliveira/scenic-mysql
|
141
|
+
licenses:
|
142
|
+
- MIT
|
143
|
+
metadata: {}
|
144
|
+
post_install_message:
|
145
|
+
rdoc_options: []
|
146
|
+
require_paths:
|
147
|
+
- lib
|
148
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
requirements: []
|
159
|
+
rubyforge_project:
|
160
|
+
rubygems_version: 2.5.1
|
161
|
+
signing_key:
|
162
|
+
specification_version: 4
|
163
|
+
summary: Mysql adapter for the scenic gem
|
164
|
+
test_files: []
|