phccodesnipper 1.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/app/controllers/phccodesnipper/application_controller.rb +17 -17
- data/app/controllers/phccodesnipper/script/snippets_controller.rb +11 -10
- data/app/controllers/phccodesnipper/script/urls_controller.rb +3 -3
- data/app/models/phccodesnipper/script/snippet.rb +23 -1
- data/app/models/phccodesnipper/script/url.rb +8 -0
- data/app/views/layouts/phccodesnipper/application.html.erb +6 -5
- data/app/views/layouts/phccodesnipper/components/backend/footer/_footer.html.erb +5 -5
- data/app/views/layouts/phccodesnipper/components/backend/sidebars/_side_menu.html.erb +43 -26
- data/app/views/phccodesnipper/script/snippets/_form.html.erb +20 -17
- data/app/views/phccodesnipper/script/snippets/edit.html.erb +17 -21
- data/app/views/phccodesnipper/script/snippets/index.html.erb +14 -21
- data/app/views/phccodesnipper/script/snippets/new.html.erb +18 -22
- data/app/views/phccodesnipper/script/snippets/show.html.erb +4 -16
- data/app/views/phccodesnipper/script/urls/_form.html.erb +14 -10
- data/app/views/phccodesnipper/script/urls/edit.html.erb +10 -6
- data/app/views/phccodesnipper/script/urls/index.html.erb +21 -29
- data/app/views/phccodesnipper/script/urls/new.html.erb +11 -7
- data/app/views/phccodesnipper/script/urls/show.html.erb +4 -16
- data/config/initializers/friendly_id.rb +107 -0
- data/config/routes.rb +4 -4
- data/db/migrate/20190508091330_create_phccodesnipper_script_snippets.rb +1 -1
- data/db/migrate/20190513040626_create_friendly_id_slugs.rb +21 -0
- data/lib/phccodesnipper/engine.rb +16 -15
- data/lib/phccodesnipper/version.rb +1 -1
- data/lib/phccodesnipper.rb +0 -1
- metadata +68 -75
- data/app/assets/javascripts/phccodesnipper/script/snippets.coffee +0 -3
- data/app/assets/stylesheets/phccodesnipper/script/snippets.scss +0 -3
- data/app/assets/stylesheets/scaffolds.scss +0 -65
@@ -0,0 +1,107 @@
|
|
1
|
+
# FriendlyId Global Configuration
|
2
|
+
#
|
3
|
+
# Use this to set up shared configuration options for your entire application.
|
4
|
+
# Any of the configuration options shown here can also be applied to single
|
5
|
+
# models by passing arguments to the `friendly_id` class method or defining
|
6
|
+
# methods in your model.
|
7
|
+
#
|
8
|
+
# To learn more, check out the guide:
|
9
|
+
#
|
10
|
+
# http://norman.github.io/friendly_id/file.Guide.html
|
11
|
+
|
12
|
+
FriendlyId.defaults do |config|
|
13
|
+
# ## Reserved Words
|
14
|
+
#
|
15
|
+
# Some words could conflict with Rails's routes when used as slugs, or are
|
16
|
+
# undesirable to allow as slugs. Edit this list as needed for your app.
|
17
|
+
config.use :reserved
|
18
|
+
|
19
|
+
config.reserved_words = %w(new edit index session login logout users admin
|
20
|
+
stylesheets assets javascripts images)
|
21
|
+
|
22
|
+
# This adds an option to treat reserved words as conflicts rather than exceptions.
|
23
|
+
# When there is no good candidate, a UUID will be appended, matching the existing
|
24
|
+
# conflict behavior.
|
25
|
+
|
26
|
+
# config.treat_reserved_as_conflict = true
|
27
|
+
|
28
|
+
# ## Friendly Finders
|
29
|
+
#
|
30
|
+
# Uncomment this to use friendly finders in all models. By default, if
|
31
|
+
# you wish to find a record by its friendly id, you must do:
|
32
|
+
#
|
33
|
+
# MyModel.friendly.find('foo')
|
34
|
+
#
|
35
|
+
# If you uncomment this, you can do:
|
36
|
+
#
|
37
|
+
# MyModel.find('foo')
|
38
|
+
#
|
39
|
+
# This is significantly more convenient but may not be appropriate for
|
40
|
+
# all applications, so you must explicity opt-in to this behavior. You can
|
41
|
+
# always also configure it on a per-model basis if you prefer.
|
42
|
+
#
|
43
|
+
# Something else to consider is that using the :finders addon boosts
|
44
|
+
# performance because it will avoid Rails-internal code that makes runtime
|
45
|
+
# calls to `Module.extend`.
|
46
|
+
#
|
47
|
+
# config.use :finders
|
48
|
+
#
|
49
|
+
# ## Slugs
|
50
|
+
#
|
51
|
+
# Most applications will use the :slugged module everywhere. If you wish
|
52
|
+
# to do so, uncomment the following line.
|
53
|
+
#
|
54
|
+
# config.use :slugged
|
55
|
+
#
|
56
|
+
# By default, FriendlyId's :slugged addon expects the slug column to be named
|
57
|
+
# 'slug', but you can change it if you wish.
|
58
|
+
#
|
59
|
+
# config.slug_column = 'slug'
|
60
|
+
#
|
61
|
+
# By default, slug has no size limit, but you can change it if you wish.
|
62
|
+
#
|
63
|
+
# config.slug_limit = 255
|
64
|
+
#
|
65
|
+
# When FriendlyId can not generate a unique ID from your base method, it appends
|
66
|
+
# a UUID, separated by a single dash. You can configure the character used as the
|
67
|
+
# separator. If you're upgrading from FriendlyId 4, you may wish to replace this
|
68
|
+
# with two dashes.
|
69
|
+
#
|
70
|
+
# config.sequence_separator = '-'
|
71
|
+
#
|
72
|
+
# Note that you must use the :slugged addon **prior** to the line which
|
73
|
+
# configures the sequence separator, or else FriendlyId will raise an undefined
|
74
|
+
# method error.
|
75
|
+
#
|
76
|
+
# ## Tips and Tricks
|
77
|
+
#
|
78
|
+
# ### Controlling when slugs are generated
|
79
|
+
#
|
80
|
+
# As of FriendlyId 5.0, new slugs are generated only when the slug field is
|
81
|
+
# nil, but if you're using a column as your base method can change this
|
82
|
+
# behavior by overriding the `should_generate_new_friendly_id?` method that
|
83
|
+
# FriendlyId adds to your model. The change below makes FriendlyId 5.0 behave
|
84
|
+
# more like 4.0.
|
85
|
+
# Note: Use(include) Slugged module in the config if using the anonymous module.
|
86
|
+
# If you have `friendly_id :name, use: slugged` in the model, Slugged module
|
87
|
+
# is included after the anonymous module defined in the initializer, so it
|
88
|
+
# overrides the `should_generate_new_friendly_id?` method from the anonymous module.
|
89
|
+
#
|
90
|
+
# config.use :slugged
|
91
|
+
# config.use Module.new {
|
92
|
+
# def should_generate_new_friendly_id?
|
93
|
+
# slug.blank? || <your_column_name_here>_changed?
|
94
|
+
# end
|
95
|
+
# }
|
96
|
+
#
|
97
|
+
# FriendlyId uses Rails's `parameterize` method to generate slugs, but for
|
98
|
+
# languages that don't use the Roman alphabet, that's not usually sufficient.
|
99
|
+
# Here we use the Babosa library to transliterate Russian Cyrillic slugs to
|
100
|
+
# ASCII. If you use this, don't forget to add "babosa" to your Gemfile.
|
101
|
+
#
|
102
|
+
# config.use Module.new {
|
103
|
+
# def normalize_friendly_id(text)
|
104
|
+
# text.to_slug.normalize! :transliterations => [:russian, :latin]
|
105
|
+
# end
|
106
|
+
# }
|
107
|
+
end
|
data/config/routes.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
Phccodesnipper::Engine.routes.draw do
|
2
2
|
|
3
|
-
#
|
4
|
-
mount Phcaccounts::Engine, :at => '/'
|
5
|
-
|
6
|
-
# Routes - Engine
|
3
|
+
# Script Snippet Routes
|
7
4
|
namespace :script do
|
8
5
|
resources :snippets, class_name: 'Phccodesnipper::Script::Snippet' do
|
9
6
|
resources :urls, class_name: 'Phccodesnipper::Script::Url'
|
10
7
|
end
|
11
8
|
end
|
12
9
|
|
10
|
+
# PHCAccounts Routes
|
11
|
+
mount Phcaccounts::Engine, :at => '/'
|
12
|
+
|
13
13
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIGRATION_CLASS =
|
2
|
+
if ActiveRecord::VERSION::MAJOR >= 5
|
3
|
+
ActiveRecord::Migration["#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}"]
|
4
|
+
else
|
5
|
+
ActiveRecord::Migration
|
6
|
+
end
|
7
|
+
|
8
|
+
class CreateFriendlyIdSlugs < MIGRATION_CLASS
|
9
|
+
def change
|
10
|
+
create_table :friendly_id_slugs do |t|
|
11
|
+
t.string :slug, :null => false
|
12
|
+
t.integer :sluggable_id, :null => false
|
13
|
+
t.string :sluggable_type, :limit => 50
|
14
|
+
t.string :scope
|
15
|
+
t.datetime :created_at
|
16
|
+
end
|
17
|
+
add_index :friendly_id_slugs, [:sluggable_type, :sluggable_id]
|
18
|
+
add_index :friendly_id_slugs, [:slug, :sluggable_type], length: { slug: 140, sluggable_type: 50 }
|
19
|
+
add_index :friendly_id_slugs, [:slug, :sluggable_type, :scope], length: { slug: 70, sluggable_type: 50, scope: 70 }, unique: true
|
20
|
+
end
|
21
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Phccodesnipper
|
2
2
|
class Engine < ::Rails::Engine
|
3
|
-
|
3
|
+
|
4
4
|
# PHCTheme Dependencies
|
5
5
|
require 'phctheme1'
|
6
6
|
require 'phctheme2'
|
@@ -9,7 +9,8 @@ module Phccodesnipper
|
|
9
9
|
require 'phctheme5'
|
10
10
|
require 'phctheme6'
|
11
11
|
require 'phctheme7'
|
12
|
-
|
12
|
+
|
13
|
+
# PHCAdmin Dependencies
|
13
14
|
require 'phcadmin1'
|
14
15
|
require 'phcadmin2'
|
15
16
|
require 'phcadmin3'
|
@@ -17,32 +18,32 @@ module Phccodesnipper
|
|
17
18
|
require 'phcadmin5'
|
18
19
|
require 'phcadmin6'
|
19
20
|
require 'phcadmin7'
|
20
|
-
|
21
|
-
#
|
21
|
+
|
22
|
+
# PHCHelper Dependencies
|
22
23
|
require 'phccorehelpers'
|
23
24
|
require 'phcmenus'
|
24
25
|
require 'phcnotifi'
|
25
26
|
require 'phctitleseo'
|
26
|
-
|
27
|
-
#
|
27
|
+
|
28
|
+
# Frontend Dependencies
|
28
29
|
require 'gravtastic'
|
29
30
|
require 'friendly_id'
|
30
|
-
|
31
|
-
#
|
31
|
+
|
32
|
+
# Upload Dependencies
|
32
33
|
require 'aws-sdk-s3'
|
33
34
|
require 'google-cloud-storage'
|
34
35
|
require 'mini_magick'
|
35
|
-
|
36
|
-
# Database
|
36
|
+
|
37
|
+
# Database Dependencies
|
37
38
|
require 'paper_trail'
|
38
39
|
require 'pg'
|
39
|
-
|
40
|
-
#
|
40
|
+
|
41
|
+
# Payment Dependencies
|
41
42
|
require 'phcaccounts'
|
42
43
|
|
43
44
|
# Isolate Namespace
|
44
45
|
isolate_namespace Phccodesnipper
|
45
|
-
|
46
|
+
|
46
47
|
# Testing Generator
|
47
48
|
config.generators do |g|
|
48
49
|
g.test_framework :rspec,
|
@@ -55,7 +56,7 @@ module Phccodesnipper
|
|
55
56
|
g.fixture_replacement :factory_bot,
|
56
57
|
dir: "spec/factories"
|
57
58
|
end
|
58
|
-
|
59
|
+
|
59
60
|
# Load Requried Helper Files
|
60
61
|
config.to_prepare do
|
61
62
|
Phcaccounts::ApplicationController.helper(ApplicationHelper)
|
@@ -64,6 +65,6 @@ module Phccodesnipper
|
|
64
65
|
Phcnotifi::ApplicationController.helper(ApplicationHelper)
|
65
66
|
Phctitleseo::ApplicationController.helper(ApplicationHelper)
|
66
67
|
end
|
67
|
-
|
68
|
+
|
68
69
|
end
|
69
70
|
end
|
data/lib/phccodesnipper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phccodesnipper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -36,266 +36,266 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '51.1'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '51.1'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: phcadmin2
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '53.1'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '53.1'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: phcadmin3
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '46.1'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
74
|
+
version: '46.1'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: phcadmin4
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
81
|
+
version: '28.1'
|
82
82
|
type: :runtime
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
88
|
+
version: '28.1'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: phcadmin5
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
95
|
+
version: '27.1'
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
102
|
+
version: '27.1'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: phcadmin6
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '16.1'
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '16.1'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: phcadmin7
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
123
|
+
version: '10.1'
|
124
124
|
type: :runtime
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
130
|
+
version: '10.1'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: phctheme1
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
137
|
+
version: '56.1'
|
138
138
|
type: :runtime
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
144
|
+
version: '56.1'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: phctheme2
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: '
|
151
|
+
version: '45.1'
|
152
152
|
type: :runtime
|
153
153
|
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: '
|
158
|
+
version: '45.1'
|
159
159
|
- !ruby/object:Gem::Dependency
|
160
160
|
name: phctheme3
|
161
161
|
requirement: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
163
|
- - "~>"
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: '
|
165
|
+
version: '25.1'
|
166
166
|
type: :runtime
|
167
167
|
prerelease: false
|
168
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
170
|
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: '
|
172
|
+
version: '25.1'
|
173
173
|
- !ruby/object:Gem::Dependency
|
174
174
|
name: phctheme4
|
175
175
|
requirement: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: '
|
179
|
+
version: '23.1'
|
180
180
|
type: :runtime
|
181
181
|
prerelease: false
|
182
182
|
version_requirements: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - "~>"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: '
|
186
|
+
version: '23.1'
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: phctheme5
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|
190
190
|
requirements:
|
191
191
|
- - "~>"
|
192
192
|
- !ruby/object:Gem::Version
|
193
|
-
version: '
|
193
|
+
version: '18.1'
|
194
194
|
type: :runtime
|
195
195
|
prerelease: false
|
196
196
|
version_requirements: !ruby/object:Gem::Requirement
|
197
197
|
requirements:
|
198
198
|
- - "~>"
|
199
199
|
- !ruby/object:Gem::Version
|
200
|
-
version: '
|
200
|
+
version: '18.1'
|
201
201
|
- !ruby/object:Gem::Dependency
|
202
202
|
name: phctheme6
|
203
203
|
requirement: !ruby/object:Gem::Requirement
|
204
204
|
requirements:
|
205
205
|
- - "~>"
|
206
206
|
- !ruby/object:Gem::Version
|
207
|
-
version: '
|
207
|
+
version: '11.1'
|
208
208
|
type: :runtime
|
209
209
|
prerelease: false
|
210
210
|
version_requirements: !ruby/object:Gem::Requirement
|
211
211
|
requirements:
|
212
212
|
- - "~>"
|
213
213
|
- !ruby/object:Gem::Version
|
214
|
-
version: '
|
214
|
+
version: '11.1'
|
215
215
|
- !ruby/object:Gem::Dependency
|
216
216
|
name: phctheme7
|
217
217
|
requirement: !ruby/object:Gem::Requirement
|
218
218
|
requirements:
|
219
219
|
- - "~>"
|
220
220
|
- !ruby/object:Gem::Version
|
221
|
-
version: '
|
221
|
+
version: '5.1'
|
222
222
|
type: :runtime
|
223
223
|
prerelease: false
|
224
224
|
version_requirements: !ruby/object:Gem::Requirement
|
225
225
|
requirements:
|
226
226
|
- - "~>"
|
227
227
|
- !ruby/object:Gem::Version
|
228
|
-
version: '
|
228
|
+
version: '5.1'
|
229
229
|
- !ruby/object:Gem::Dependency
|
230
230
|
name: phccorehelpers
|
231
231
|
requirement: !ruby/object:Gem::Requirement
|
232
232
|
requirements:
|
233
233
|
- - "~>"
|
234
234
|
- !ruby/object:Gem::Version
|
235
|
-
version: '
|
235
|
+
version: '7.1'
|
236
236
|
type: :runtime
|
237
237
|
prerelease: false
|
238
238
|
version_requirements: !ruby/object:Gem::Requirement
|
239
239
|
requirements:
|
240
240
|
- - "~>"
|
241
241
|
- !ruby/object:Gem::Version
|
242
|
-
version: '
|
242
|
+
version: '7.1'
|
243
243
|
- !ruby/object:Gem::Dependency
|
244
244
|
name: phcmenus
|
245
245
|
requirement: !ruby/object:Gem::Requirement
|
246
246
|
requirements:
|
247
247
|
- - "~>"
|
248
248
|
- !ruby/object:Gem::Version
|
249
|
-
version: '
|
249
|
+
version: '5.1'
|
250
250
|
type: :runtime
|
251
251
|
prerelease: false
|
252
252
|
version_requirements: !ruby/object:Gem::Requirement
|
253
253
|
requirements:
|
254
254
|
- - "~>"
|
255
255
|
- !ruby/object:Gem::Version
|
256
|
-
version: '
|
256
|
+
version: '5.1'
|
257
257
|
- !ruby/object:Gem::Dependency
|
258
258
|
name: phcnotifi
|
259
259
|
requirement: !ruby/object:Gem::Requirement
|
260
260
|
requirements:
|
261
261
|
- - "~>"
|
262
262
|
- !ruby/object:Gem::Version
|
263
|
-
version: '
|
263
|
+
version: '49.1'
|
264
264
|
type: :runtime
|
265
265
|
prerelease: false
|
266
266
|
version_requirements: !ruby/object:Gem::Requirement
|
267
267
|
requirements:
|
268
268
|
- - "~>"
|
269
269
|
- !ruby/object:Gem::Version
|
270
|
-
version: '
|
270
|
+
version: '49.1'
|
271
271
|
- !ruby/object:Gem::Dependency
|
272
272
|
name: phctitleseo
|
273
273
|
requirement: !ruby/object:Gem::Requirement
|
274
274
|
requirements:
|
275
275
|
- - "~>"
|
276
276
|
- !ruby/object:Gem::Version
|
277
|
-
version: '
|
277
|
+
version: '48.1'
|
278
278
|
type: :runtime
|
279
279
|
prerelease: false
|
280
280
|
version_requirements: !ruby/object:Gem::Requirement
|
281
281
|
requirements:
|
282
282
|
- - "~>"
|
283
283
|
- !ruby/object:Gem::Version
|
284
|
-
version: '
|
284
|
+
version: '48.1'
|
285
285
|
- !ruby/object:Gem::Dependency
|
286
286
|
name: friendly_id
|
287
287
|
requirement: !ruby/object:Gem::Requirement
|
288
288
|
requirements:
|
289
289
|
- - "~>"
|
290
290
|
- !ruby/object:Gem::Version
|
291
|
-
version: '5.
|
291
|
+
version: '5.3'
|
292
292
|
type: :runtime
|
293
293
|
prerelease: false
|
294
294
|
version_requirements: !ruby/object:Gem::Requirement
|
295
295
|
requirements:
|
296
296
|
- - "~>"
|
297
297
|
- !ruby/object:Gem::Version
|
298
|
-
version: '5.
|
298
|
+
version: '5.3'
|
299
299
|
- !ruby/object:Gem::Dependency
|
300
300
|
name: gravtastic
|
301
301
|
requirement: !ruby/object:Gem::Requirement
|
@@ -316,28 +316,28 @@ dependencies:
|
|
316
316
|
requirements:
|
317
317
|
- - "~>"
|
318
318
|
- !ruby/object:Gem::Version
|
319
|
-
version: '1.
|
319
|
+
version: '1.49'
|
320
320
|
type: :runtime
|
321
321
|
prerelease: false
|
322
322
|
version_requirements: !ruby/object:Gem::Requirement
|
323
323
|
requirements:
|
324
324
|
- - "~>"
|
325
325
|
- !ruby/object:Gem::Version
|
326
|
-
version: '1.
|
326
|
+
version: '1.49'
|
327
327
|
- !ruby/object:Gem::Dependency
|
328
328
|
name: google-cloud-storage
|
329
329
|
requirement: !ruby/object:Gem::Requirement
|
330
330
|
requirements:
|
331
331
|
- - "~>"
|
332
332
|
- !ruby/object:Gem::Version
|
333
|
-
version: '1.
|
333
|
+
version: '1.21'
|
334
334
|
type: :runtime
|
335
335
|
prerelease: false
|
336
336
|
version_requirements: !ruby/object:Gem::Requirement
|
337
337
|
requirements:
|
338
338
|
- - "~>"
|
339
339
|
- !ruby/object:Gem::Version
|
340
|
-
version: '1.
|
340
|
+
version: '1.21'
|
341
341
|
- !ruby/object:Gem::Dependency
|
342
342
|
name: mini_magick
|
343
343
|
requirement: !ruby/object:Gem::Requirement
|
@@ -358,42 +358,42 @@ dependencies:
|
|
358
358
|
requirements:
|
359
359
|
- - "~>"
|
360
360
|
- !ruby/object:Gem::Version
|
361
|
-
version: 0.17
|
361
|
+
version: '0.17'
|
362
362
|
type: :runtime
|
363
363
|
prerelease: false
|
364
364
|
version_requirements: !ruby/object:Gem::Requirement
|
365
365
|
requirements:
|
366
366
|
- - "~>"
|
367
367
|
- !ruby/object:Gem::Version
|
368
|
-
version: 0.17
|
368
|
+
version: '0.17'
|
369
369
|
- !ruby/object:Gem::Dependency
|
370
370
|
name: multi_json
|
371
371
|
requirement: !ruby/object:Gem::Requirement
|
372
372
|
requirements:
|
373
373
|
- - "~>"
|
374
374
|
- !ruby/object:Gem::Version
|
375
|
-
version: '1.
|
375
|
+
version: '1.14'
|
376
376
|
type: :runtime
|
377
377
|
prerelease: false
|
378
378
|
version_requirements: !ruby/object:Gem::Requirement
|
379
379
|
requirements:
|
380
380
|
- - "~>"
|
381
381
|
- !ruby/object:Gem::Version
|
382
|
-
version: '1.
|
382
|
+
version: '1.14'
|
383
383
|
- !ruby/object:Gem::Dependency
|
384
384
|
name: oj
|
385
385
|
requirement: !ruby/object:Gem::Requirement
|
386
386
|
requirements:
|
387
387
|
- - "~>"
|
388
388
|
- !ruby/object:Gem::Version
|
389
|
-
version: '3.
|
389
|
+
version: '3.9'
|
390
390
|
type: :runtime
|
391
391
|
prerelease: false
|
392
392
|
version_requirements: !ruby/object:Gem::Requirement
|
393
393
|
requirements:
|
394
394
|
- - "~>"
|
395
395
|
- !ruby/object:Gem::Version
|
396
|
-
version: '3.
|
396
|
+
version: '3.9'
|
397
397
|
- !ruby/object:Gem::Dependency
|
398
398
|
name: rabl
|
399
399
|
requirement: !ruby/object:Gem::Requirement
|
@@ -414,14 +414,14 @@ dependencies:
|
|
414
414
|
requirements:
|
415
415
|
- - "~>"
|
416
416
|
- !ruby/object:Gem::Version
|
417
|
-
version: '
|
417
|
+
version: '3.0'
|
418
418
|
type: :runtime
|
419
419
|
prerelease: false
|
420
420
|
version_requirements: !ruby/object:Gem::Requirement
|
421
421
|
requirements:
|
422
422
|
- - "~>"
|
423
423
|
- !ruby/object:Gem::Version
|
424
|
-
version: '
|
424
|
+
version: '3.0'
|
425
425
|
- !ruby/object:Gem::Dependency
|
426
426
|
name: paper_trail
|
427
427
|
requirement: !ruby/object:Gem::Requirement
|
@@ -456,22 +456,19 @@ dependencies:
|
|
456
456
|
requirements:
|
457
457
|
- - "~>"
|
458
458
|
- !ruby/object:Gem::Version
|
459
|
-
version: '
|
459
|
+
version: '42.1'
|
460
460
|
type: :runtime
|
461
461
|
prerelease: false
|
462
462
|
version_requirements: !ruby/object:Gem::Requirement
|
463
463
|
requirements:
|
464
464
|
- - "~>"
|
465
465
|
- !ruby/object:Gem::Version
|
466
|
-
version: '
|
466
|
+
version: '42.1'
|
467
467
|
- !ruby/object:Gem::Dependency
|
468
468
|
name: sqlite3
|
469
469
|
requirement: !ruby/object:Gem::Requirement
|
470
470
|
requirements:
|
471
471
|
- - "~>"
|
472
|
-
- !ruby/object:Gem::Version
|
473
|
-
version: '1.3'
|
474
|
-
- - "<"
|
475
472
|
- !ruby/object:Gem::Version
|
476
473
|
version: '1.4'
|
477
474
|
type: :development
|
@@ -479,9 +476,6 @@ dependencies:
|
|
479
476
|
version_requirements: !ruby/object:Gem::Requirement
|
480
477
|
requirements:
|
481
478
|
- - "~>"
|
482
|
-
- !ruby/object:Gem::Version
|
483
|
-
version: '1.3'
|
484
|
-
- - "<"
|
485
479
|
- !ruby/object:Gem::Version
|
486
480
|
version: '1.4'
|
487
481
|
- !ruby/object:Gem::Dependency
|
@@ -504,70 +498,70 @@ dependencies:
|
|
504
498
|
requirements:
|
505
499
|
- - "~>"
|
506
500
|
- !ruby/object:Gem::Version
|
507
|
-
version: '3.
|
501
|
+
version: '3.29'
|
508
502
|
type: :development
|
509
503
|
prerelease: false
|
510
504
|
version_requirements: !ruby/object:Gem::Requirement
|
511
505
|
requirements:
|
512
506
|
- - "~>"
|
513
507
|
- !ruby/object:Gem::Version
|
514
|
-
version: '3.
|
508
|
+
version: '3.29'
|
515
509
|
- !ruby/object:Gem::Dependency
|
516
510
|
name: minitest
|
517
511
|
requirement: !ruby/object:Gem::Requirement
|
518
512
|
requirements:
|
519
513
|
- - "~>"
|
520
514
|
- !ruby/object:Gem::Version
|
521
|
-
version: '5.
|
515
|
+
version: '5.12'
|
522
516
|
type: :development
|
523
517
|
prerelease: false
|
524
518
|
version_requirements: !ruby/object:Gem::Requirement
|
525
519
|
requirements:
|
526
520
|
- - "~>"
|
527
521
|
- !ruby/object:Gem::Version
|
528
|
-
version: '5.
|
522
|
+
version: '5.12'
|
529
523
|
- !ruby/object:Gem::Dependency
|
530
524
|
name: rspec-rails
|
531
525
|
requirement: !ruby/object:Gem::Requirement
|
532
526
|
requirements:
|
533
527
|
- - "~>"
|
534
528
|
- !ruby/object:Gem::Version
|
535
|
-
version: '3.
|
529
|
+
version: '3.9'
|
536
530
|
type: :development
|
537
531
|
prerelease: false
|
538
532
|
version_requirements: !ruby/object:Gem::Requirement
|
539
533
|
requirements:
|
540
534
|
- - "~>"
|
541
535
|
- !ruby/object:Gem::Version
|
542
|
-
version: '3.
|
536
|
+
version: '3.9'
|
543
537
|
- !ruby/object:Gem::Dependency
|
544
538
|
name: factory_bot_rails
|
545
539
|
requirement: !ruby/object:Gem::Requirement
|
546
540
|
requirements:
|
547
541
|
- - "~>"
|
548
542
|
- !ruby/object:Gem::Version
|
549
|
-
version: '5.
|
543
|
+
version: '5.1'
|
550
544
|
type: :development
|
551
545
|
prerelease: false
|
552
546
|
version_requirements: !ruby/object:Gem::Requirement
|
553
547
|
requirements:
|
554
548
|
- - "~>"
|
555
549
|
- !ruby/object:Gem::Version
|
556
|
-
version: '5.
|
550
|
+
version: '5.1'
|
557
551
|
- !ruby/object:Gem::Dependency
|
558
552
|
name: faker
|
559
553
|
requirement: !ruby/object:Gem::Requirement
|
560
554
|
requirements:
|
561
555
|
- - "~>"
|
562
556
|
- !ruby/object:Gem::Version
|
563
|
-
version: '
|
557
|
+
version: '2.6'
|
564
558
|
type: :development
|
565
559
|
prerelease: false
|
566
560
|
version_requirements: !ruby/object:Gem::Requirement
|
567
561
|
requirements:
|
568
562
|
- - "~>"
|
569
563
|
- !ruby/object:Gem::Version
|
570
|
-
version: '
|
564
|
+
version: '2.6'
|
571
565
|
- !ruby/object:Gem::Dependency
|
572
566
|
name: launchy
|
573
567
|
requirement: !ruby/object:Gem::Requirement
|
@@ -626,7 +620,7 @@ dependencies:
|
|
626
620
|
version: '3.142'
|
627
621
|
description: Ruby on Rails 5.2 engine to manage and post code snippets.
|
628
622
|
email:
|
629
|
-
- info@
|
623
|
+
- info@phcdevworks.com
|
630
624
|
executables: []
|
631
625
|
extensions: []
|
632
626
|
extra_rdoc_files: []
|
@@ -636,10 +630,7 @@ files:
|
|
636
630
|
- Rakefile
|
637
631
|
- app/assets/config/phccodesnipper_manifest.js
|
638
632
|
- app/assets/javascripts/phccodesnipper/application.js
|
639
|
-
- app/assets/javascripts/phccodesnipper/script/snippets.coffee
|
640
633
|
- app/assets/stylesheets/phccodesnipper/application.scss
|
641
|
-
- app/assets/stylesheets/phccodesnipper/script/snippets.scss
|
642
|
-
- app/assets/stylesheets/scaffolds.scss
|
643
634
|
- app/controllers/phccodesnipper/application_controller.rb
|
644
635
|
- app/controllers/phccodesnipper/script/snippets_controller.rb
|
645
636
|
- app/controllers/phccodesnipper/script/urls_controller.rb
|
@@ -666,9 +657,11 @@ files:
|
|
666
657
|
- app/views/phccodesnipper/script/urls/index.html.erb
|
667
658
|
- app/views/phccodesnipper/script/urls/new.html.erb
|
668
659
|
- app/views/phccodesnipper/script/urls/show.html.erb
|
660
|
+
- config/initializers/friendly_id.rb
|
669
661
|
- config/routes.rb
|
670
662
|
- db/migrate/20190502060733_create_phccodesnipper_script_urls.rb
|
671
663
|
- db/migrate/20190508091330_create_phccodesnipper_script_snippets.rb
|
664
|
+
- db/migrate/20190513040626_create_friendly_id_slugs.rb
|
672
665
|
- lib/phccodesnipper.rb
|
673
666
|
- lib/phccodesnipper/engine.rb
|
674
667
|
- lib/phccodesnipper/version.rb
|
@@ -692,7 +685,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
692
685
|
- !ruby/object:Gem::Version
|
693
686
|
version: '0'
|
694
687
|
requirements: []
|
695
|
-
rubygems_version: 3.0.
|
688
|
+
rubygems_version: 3.0.4
|
696
689
|
signing_key:
|
697
690
|
specification_version: 4
|
698
691
|
summary: Rails 5.2 Code Blog Engine
|