scenic 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/NEWS.md +11 -0
- data/README.md +13 -7
- data/lib/generators/scenic/view/view_generator.rb +1 -1
- data/lib/scenic/adapters/postgres.rb +1 -1
- data/lib/scenic/version.rb +1 -1
- metadata +3 -4
- data/gemfiles/rails42_with_fg_rails.gemfile +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b290ff753726250886a22d6d44016df9dbc430e2
|
4
|
+
data.tar.gz: b21216f75c821900f63a945d3b1776377782ab2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae4faa886ffb7206a3ecd393e35b8db14cc393512f10f03b459610c5e5adb10a4f932ebf7c255af421949180048cd137398065b25f593686f286f56e15bdaf7f
|
7
|
+
data.tar.gz: 3fd626600f95296defa7cd9caaad902d1b89c9007eb4b027d250dcb9866343f155db6dbf8c06b4aaa942e341a61710d255dbff75da1ba5dcd72c00b248a97515
|
data/.gitignore
CHANGED
data/NEWS.md
CHANGED
@@ -5,6 +5,15 @@ changelog, see the [CHANGELOG] for each version via the version links.
|
|
5
5
|
|
6
6
|
[CHANGELOG]: https://github.com/thoughtbot/scenic/commits/master
|
7
7
|
|
8
|
+
## [1.4.1] - December 15, 2017
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
|
12
|
+
- View migrations created under Rails 5 and newer will use the current migration
|
13
|
+
version in the generated migration class rather than always using `5.0`.
|
14
|
+
|
15
|
+
[1.4.1]: https://github.com/thoughtbot/scenic/compare/v1.4.0...v1.4.1
|
16
|
+
|
8
17
|
## [1.4.0] - May 11, 2017
|
9
18
|
|
10
19
|
### Added
|
@@ -23,6 +32,8 @@ changelog, see the [CHANGELOG] for each version via the version links.
|
|
23
32
|
and newer apps.
|
24
33
|
- Using the `scenic:model` generator will no longer create a fixture or factory.
|
25
34
|
|
35
|
+
[1.4.0]: https://github.com/thoughtbot/scenic/compare/v1.3.0...v1.4.0
|
36
|
+
|
26
37
|
## [1.3.0] - May 27, 2016
|
27
38
|
|
28
39
|
### Added
|
data/README.md
CHANGED
@@ -132,8 +132,6 @@ no different than a table.
|
|
132
132
|
class SearchResult < ActiveRecord::Base
|
133
133
|
belongs_to :searchable, polymorphic: true
|
134
134
|
|
135
|
-
private
|
136
|
-
|
137
135
|
# this isn't strictly necessary, but it will prevent
|
138
136
|
# rails from calling save, which would fail anyway.
|
139
137
|
def readonly?
|
@@ -198,6 +196,7 @@ Scenic gives you `drop_view` too:
|
|
198
196
|
```ruby
|
199
197
|
def change
|
200
198
|
drop_view :search_results, revert_to_version: 2
|
199
|
+
drop_view :materialized_admin_reports, revert_to_version: 3, materialized: true
|
201
200
|
end
|
202
201
|
```
|
203
202
|
|
@@ -231,18 +230,25 @@ add_column :posts, :title, :string
|
|
231
230
|
update_view :posts_with_aggregate_data, version: 2, revert_to_version: 2
|
232
231
|
```
|
233
232
|
|
234
|
-
**When will you support MySQL?**
|
233
|
+
**When will you support MySQL, SQLite, or other databases?**
|
235
234
|
|
236
|
-
We have no plans to add first-party
|
237
|
-
(the maintainers) do not currently have a use for
|
238
|
-
maintaining a library effectively requires regular use
|
239
|
-
not in a good position to support MySQL
|
235
|
+
We have no plans to add first-party adapters for other relational databases at
|
236
|
+
this time because we (the maintainers) do not currently have a use for them.
|
237
|
+
It's our experience that maintaining a library effectively requires regular use
|
238
|
+
of its features. We're not in a good position to support MySQL, SQLite or other
|
239
|
+
database users.
|
240
240
|
|
241
241
|
Scenic *does* support configuring different database adapters and should be
|
242
242
|
extendable with adapter libraries. If you implement such an adapter, we're happy
|
243
243
|
to review and link to it. We're also happy to make changes that would better
|
244
244
|
accommodate adapter gems.
|
245
245
|
|
246
|
+
We are aware of the following existing adapter libraries for Scenic which may
|
247
|
+
meet your needs:
|
248
|
+
|
249
|
+
* [scenic_sqlite_adapter](https://github.com/pdebelak/scenic_sqlite_adapter)
|
250
|
+
* [scenic-mysql_adapter](https://github.com/EmpaticoOrg/scenic-mysql_adapter.)
|
251
|
+
|
246
252
|
## About
|
247
253
|
|
248
254
|
Scenic is maintained by [Derek Prior] and [Caleb Thompson], funded by
|
@@ -64,7 +64,7 @@ module Scenic
|
|
64
64
|
|
65
65
|
def activerecord_migration_class
|
66
66
|
if ActiveRecord::Migration.respond_to?(:current_version)
|
67
|
-
"ActiveRecord::Migration[
|
67
|
+
"ActiveRecord::Migration[#{ActiveRecord::Migration.current_version}]"
|
68
68
|
else
|
69
69
|
"ActiveRecord::Migration"
|
70
70
|
end
|
@@ -33,7 +33,7 @@ module Scenic
|
|
33
33
|
#
|
34
34
|
# @example
|
35
35
|
# Scenic.configure do |config|
|
36
|
-
# config.
|
36
|
+
# config.database = Scenic::Adapters::Postgres.new
|
37
37
|
# end
|
38
38
|
def initialize(connectable = ActiveRecord::Base)
|
39
39
|
@connectable = connectable
|
data/lib/scenic/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scenic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Prior
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-12-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: appraisal
|
@@ -208,7 +208,6 @@ files:
|
|
208
208
|
- gemfiles/rails40.gemfile
|
209
209
|
- gemfiles/rails41.gemfile
|
210
210
|
- gemfiles/rails42.gemfile
|
211
|
-
- gemfiles/rails42_with_fg_rails.gemfile
|
212
211
|
- gemfiles/rails50.gemfile
|
213
212
|
- gemfiles/rails51.gemfile
|
214
213
|
- gemfiles/rails_edge.gemfile
|
@@ -290,7 +289,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
290
289
|
version: '0'
|
291
290
|
requirements: []
|
292
291
|
rubyforge_project:
|
293
|
-
rubygems_version: 2.
|
292
|
+
rubygems_version: 2.6.14
|
294
293
|
signing_key:
|
295
294
|
specification_version: 4
|
296
295
|
summary: Support for database views in Rails migrations
|