phcscriptcdnpro 11.2.0 → 11.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb +1 -1
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +16 -6
- data/db/migrate/20160714193304_create_phcscriptcdnpro_versions.rb +0 -80
- data/db/migrate/20170423035208_create_friendly_id_slugs.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4f5ac76a9480523f7d0fcd9c4c0d68bc0ec24a2
|
4
|
+
data.tar.gz: adddbcb4fa08c40b02c037cd6a4a59f14d867036
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c562437eb517cc6bf0b9972295728af2403efb02dfaa0674bf9b0694418877f451ed6c56c72d8495b999c44ee59ce2678945aec9a3add470a6f02d4f80614ee8
|
7
|
+
data.tar.gz: 9be9127672606d68d389d96db21065d5c05096951b9c8ab34248a2626f05258151b98741c7267e1d073287ddf90d61c14d19a7b8f3f5d57608a0dc0a51d65866
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcscriptcdnpro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.2.
|
4
|
+
version: 11.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '5.1'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 5.1.1
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,6 +27,9 @@ dependencies:
|
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '5.1'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 5.1.1
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: pg
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,14 +90,20 @@ dependencies:
|
|
84
90
|
requirements:
|
85
91
|
- - "~>"
|
86
92
|
- !ruby/object:Gem::Version
|
87
|
-
version: '12.
|
93
|
+
version: '12.2'
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 12.2.1
|
88
97
|
type: :runtime
|
89
98
|
prerelease: false
|
90
99
|
version_requirements: !ruby/object:Gem::Requirement
|
91
100
|
requirements:
|
92
101
|
- - "~>"
|
93
102
|
- !ruby/object:Gem::Version
|
94
|
-
version: '12.
|
103
|
+
version: '12.2'
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 12.2.1
|
95
107
|
- !ruby/object:Gem::Dependency
|
96
108
|
name: jquery-rails
|
97
109
|
requirement: !ruby/object:Gem::Requirement
|
@@ -710,14 +722,12 @@ files:
|
|
710
722
|
- app/views/phcscriptcdnpro/script/versions/show.html.erb
|
711
723
|
- config/initializers/friendly_id.rb
|
712
724
|
- config/routes.rb
|
713
|
-
- db/migrate/20160714193304_create_phcscriptcdnpro_versions.rb
|
714
725
|
- db/migrate/20160821183652_create_phcscriptcdnpro_script_listings.rb
|
715
726
|
- db/migrate/20160821183714_create_phcscriptcdnpro_script_authors.rb
|
716
727
|
- db/migrate/20160821183735_create_phcscriptcdnpro_script_extensions.rb
|
717
728
|
- db/migrate/20160821183805_create_phcscriptcdnpro_script_licences.rb
|
718
729
|
- db/migrate/20160821183830_create_phcscriptcdnpro_script_urls.rb
|
719
730
|
- db/migrate/20160821183946_create_phcscriptcdnpro_script_versions.rb
|
720
|
-
- db/migrate/20170423035208_create_friendly_id_slugs.rb
|
721
731
|
- lib/phcscriptcdnpro.rb
|
722
732
|
- lib/phcscriptcdnpro/engine.rb
|
723
733
|
- lib/phcscriptcdnpro/version.rb
|
@@ -1,80 +0,0 @@
|
|
1
|
-
# This migration creates the `versions` table, the only schema PT requires.
|
2
|
-
# All other migrations PT provides are optional.
|
3
|
-
class CreatePhcscriptcdnproVersions < ActiveRecord::Migration[5.1]
|
4
|
-
# Class names of MySQL adapters.
|
5
|
-
# - `MysqlAdapter` - Used by gems: `mysql`, `activerecord-jdbcmysql-adapter`.
|
6
|
-
# - `Mysql2Adapter` - Used by `mysql2` gem.
|
7
|
-
MYSQL_ADAPTERS = [
|
8
|
-
"ActiveRecord::ConnectionAdapters::MysqlAdapter",
|
9
|
-
"ActiveRecord::ConnectionAdapters::Mysql2Adapter"
|
10
|
-
].freeze
|
11
|
-
|
12
|
-
# The largest text column available in all supported RDBMS is
|
13
|
-
# 1024^3 - 1 bytes, roughly one gibibyte. We specify a size
|
14
|
-
# so that MySQL will use `longtext` instead of `text`. Otherwise,
|
15
|
-
# when serializing very large objects, `text` might not be big enough.
|
16
|
-
TEXT_BYTES = 1_073_741_823
|
17
|
-
|
18
|
-
def change
|
19
|
-
create_table :versions, versions_table_options do |t|
|
20
|
-
t.string :item_type, item_type_options
|
21
|
-
t.integer :item_id, null: false
|
22
|
-
t.string :event, null: false
|
23
|
-
t.string :whodunnit
|
24
|
-
t.text :object, limit: TEXT_BYTES
|
25
|
-
|
26
|
-
# Known issue in MySQL: fractional second precision
|
27
|
-
# -------------------------------------------------
|
28
|
-
#
|
29
|
-
# MySQL timestamp columns do not support fractional seconds unless
|
30
|
-
# defined with "fractional seconds precision". MySQL users should manually
|
31
|
-
# add fractional seconds precision to this migration, specifically, to
|
32
|
-
# the `created_at` column.
|
33
|
-
# (https://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html)
|
34
|
-
#
|
35
|
-
# MySQL users should also upgrade to rails 4.2, which is the first
|
36
|
-
# version of ActiveRecord with support for fractional seconds in MySQL.
|
37
|
-
# (https://github.com/rails/rails/pull/14359)
|
38
|
-
#
|
39
|
-
t.datetime :created_at
|
40
|
-
end
|
41
|
-
add_index :versions, [:item_type, :item_id]
|
42
|
-
end
|
43
|
-
|
44
|
-
private
|
45
|
-
|
46
|
-
# MySQL 5.6 utf8mb4 limit is 191 chars for keys used in indexes.
|
47
|
-
# See https://github.com/airblade/paper_trail/issues/651
|
48
|
-
def item_type_options
|
49
|
-
opt = { null: false }
|
50
|
-
opt[:limit] = 191 if mysql?
|
51
|
-
opt
|
52
|
-
end
|
53
|
-
|
54
|
-
def mysql?
|
55
|
-
MYSQL_ADAPTERS.include?(connection.class.name)
|
56
|
-
end
|
57
|
-
|
58
|
-
# Even modern versions of MySQL still use `latin1` as the default character
|
59
|
-
# encoding. Many users are not aware of this, and run into trouble when they
|
60
|
-
# try to use PaperTrail in apps that otherwise tend to use UTF-8. Postgres, by
|
61
|
-
# comparison, uses UTF-8 except in the unusual case where the OS is configured
|
62
|
-
# with a custom locale.
|
63
|
-
#
|
64
|
-
# - https://dev.mysql.com/doc/refman/5.7/en/charset-applications.html
|
65
|
-
# - http://www.postgresql.org/docs/9.4/static/multibyte.html
|
66
|
-
#
|
67
|
-
# Furthermore, MySQL's original implementation of UTF-8 was flawed, and had
|
68
|
-
# to be fixed later by introducing a new charset, `utf8mb4`.
|
69
|
-
#
|
70
|
-
# - https://mathiasbynens.be/notes/mysql-utf8mb4
|
71
|
-
# - https://dev.mysql.com/doc/refman/5.5/en/charset-unicode-utf8mb4.html
|
72
|
-
#
|
73
|
-
def versions_table_options
|
74
|
-
if mysql?
|
75
|
-
{ options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci" }
|
76
|
-
else
|
77
|
-
{}
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
class CreateFriendlyIdSlugs < ActiveRecord::Migration[5.1]
|
2
|
-
|
3
|
-
def change
|
4
|
-
create_table :friendly_id_slugs do |t|
|
5
|
-
t.string :slug, :null => false
|
6
|
-
t.integer :sluggable_id, :null => false
|
7
|
-
t.string :sluggable_type, :limit => 50
|
8
|
-
t.string :scope
|
9
|
-
t.datetime :created_at
|
10
|
-
end
|
11
|
-
add_index :friendly_id_slugs, :sluggable_id
|
12
|
-
add_index :friendly_id_slugs, [:slug, :sluggable_type], length: { slug: 140, sluggable_type: 50 }
|
13
|
-
add_index :friendly_id_slugs, [:slug, :sluggable_type, :scope], length: { slug: 70, sluggable_type: 50, scope: 70 }, unique: true
|
14
|
-
add_index :friendly_id_slugs, :sluggable_type
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|