phcdevworks_press 0.1.0 → 0.2.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
2
  SHA256:
3
- metadata.gz: 6bba65c663e162b1595b93e6cb93f0900ebdf352954bd23ec018ef0d9763b511
4
- data.tar.gz: b1ac0dd376e8857870c2d15f3044a2c1b2c0a6f40035489496acb542095a46a8
3
+ metadata.gz: 0e3c6c54f0dadde1e011636e0f80b3d0f2393dd9a8bee81d85af07d445909f26
4
+ data.tar.gz: 1595d006d75d1cd67c69480155e9dca1be36437cb2aa33b4a4b85ca01d35d39a
5
5
  SHA512:
6
- metadata.gz: 036ecb78ba1293af94665b0cd4d0866df34312d53c7419e201580fca4832b16c614e2c27fdfc83472e3cfb4e5476f06519383a9fd1546d830113a3fef78588ba
7
- data.tar.gz: 600d1302fec0bb97496433bda547a42e3a56a8eccab46740061a2f65e1e294b136ef0c41979fa25c9edc78f7cf0585ae2e14789d8f55e1479c495d83d3a0ad78
6
+ metadata.gz: 54ca5a14c293f8d0f1004225451b1aceead1ae791d0e88eb6d5366e36dffaab5eacfd4f080404aa3247f61afe71d66c025a28a5bfc98e95acd828c94e29530c2
7
+ data.tar.gz: 63a3bfc8acb5dbdd377680d2934b6f7dd50bf24da5b0aa1567f4109611aea83dfc6ff28e919db0b20dbc64cb05b353d11c508a1e8b3d9aab474f49012540f42a
@@ -23,10 +23,10 @@
23
23
  </a>
24
24
  <div class="dropdown-menu dropdown-menu-right">
25
25
  <%= link_to phcdevworks_accounts.edit_user_registration_path, class: "dropdown-item" do %>
26
- <i class="fas fa-cogs"></i> Account Settings
26
+ <i class="fad fa-cogs"></i> Account Settings
27
27
  <% end %>
28
28
  <%= link_to phcdevworks_accounts.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
29
- <i class="fas fa-sign-out-alt"></i> Logout
29
+ <i class="fad fa-sign-out-alt"></i> Logout
30
30
  <% end %>
31
31
  </div>
32
32
  </li>
@@ -34,4 +34,4 @@
34
34
 
35
35
  </ul>
36
36
  <% end %>
37
- <!-- Topbar - Navigation Main -->
37
+ <!-- Topbar - Navigation Main -->
@@ -26,7 +26,7 @@
26
26
  </li>
27
27
  <li>
28
28
  <%= link_to phcdevworks_accounts.destroy_user_session_path do %>
29
- <i class="fas fa-sign-out-alt"></i> Logout
29
+ <i class="fad fa-sign-out-alt"></i> Logout
30
30
  <% end %>
31
31
  </li>
32
32
  </ul>
@@ -67,7 +67,7 @@
67
67
  <% end %>
68
68
 
69
69
  <% if defined?phcdevworks_press %>
70
- <!-- Sidebar - Sidebar Navigation - phcdevworks_press -->
70
+ <!-- Sidebar - Sidebar Navigation - PHCPress CMS -->
71
71
  <li class="nav-header">Article Management</li>
72
72
  <li class="has-sub">
73
73
  <a href="javascript:;">
@@ -91,7 +91,48 @@
91
91
  <li class="<%= phc_menu_active_controller('phcdevworks_press/article/categories#new') %>"><%= link_to('New Category', phcdevworks_press.new_article_category_path) %></li>
92
92
  </ul>
93
93
  </li>
94
- <!-- Sidebar - Sidebar Navigation - phcdevworks_press -->
94
+ <!-- Sidebar - Sidebar Navigation - PHCPress CMS -->
95
+ <% end %>
96
+
97
+ <% if defined?phcdevworks_scripts %>
98
+ <!-- Sidebar - Sidebar Navigation - PHCScripts CDN and Code Snippet Manager -->
99
+ <li class="nav-header">Script Management</li>
100
+ <li class="has-sub">
101
+ <a href="javascript:;">
102
+ <b class="caret"></b>
103
+ <i class="fad fa-laptop-code"></i>
104
+ <span>Script Posts</span>
105
+ </a>
106
+ <ul class="sub-menu">
107
+ <li class="<%= phc_menu_active_controller('phcdevworks_scripts/script/listings') %>"><%= link_to "All Script Listings", phcdevworks_scripts.script_listings_path %></li>
108
+ <li class="<%= phc_menu_active_controller('phcdevworks_scripts/script/listings#new') %>"><%= link_to "Add a New Listing", phcdevworks_scripts.new_script_listing_path %></li>
109
+ </ul>
110
+ </li>
111
+ <li class="has-sub">
112
+ <a href="javascript:;">
113
+ <b class="caret"></b>
114
+ <i class="fad fa-sitemap"></i>
115
+ <span>Script Extras</span>
116
+ </a>
117
+ <ul class="sub-menu">
118
+ <li class="<%= phc_menu_active_controller('phcdevworks_scripts/script/authors') %>"><%= link_to "Script Authors", phcdevworks_scripts.script_authors_path %></li>
119
+ <li class="<%= phc_menu_active_controller('phcdevworks_scripts/script/extensions') %>"><%= link_to "Script Extensions", phcdevworks_scripts.script_extensions_path %></li>
120
+ <li class="<%= phc_menu_active_controller('phcdevworks_scripts/script/versions') %>"><%= link_to "Script Versions", phcdevworks_scripts.script_versions_path %></li>
121
+ </ul>
122
+ </li>
123
+ <li class="nav-header">Code Snippets</li>
124
+ <li class="has-sub">
125
+ <a href="javascript:;">
126
+ <b class="caret"></b>
127
+ <i class="fad fa-code"></i>
128
+ <span>Code Snippets</span>
129
+ </a>
130
+ <ul class="sub-menu">
131
+ <li class="<%= phc_menu_active_controller('phcdevworks_scripts/script/posts') %>"><%= link_to 'Snippet Index', phcdevworks_scripts.snippet_posts_path %></li>
132
+ <li class="<%= phc_menu_active_controller('phcdevworks_scripts/script/posts#new') %>"><%= link_to 'New Snippet', phcdevworks_scripts.new_snippet_post_path %></li>
133
+ </ul>
134
+ </li>
135
+ <!-- Sidebar - Sidebar Navigation - PHCScripts CDN and Code Snippet Manager -->
95
136
  <% end %>
96
137
 
97
138
  <% if current_user && current_user.admin? %>
@@ -139,4 +180,4 @@
139
180
  <!-- Sidebar - Sidebar Navigation -->
140
181
 
141
182
  </div>
142
- <!-- Sidebar for PHCDevworks Engines -->
183
+ <!-- Sidebar for PHCDevworks Engines -->
@@ -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
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksPress
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_press
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-14 00:00:00.000000000 Z
11
+ date: 2019-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 0.8.0
187
+ version: 0.9.0
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 0.8.0
194
+ version: 0.9.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: sqlite3
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -260,6 +260,7 @@ files:
260
260
  - app/views/phcdevworks_press/article/posts/new.html.erb
261
261
  - app/views/phcdevworks_press/blog/articles/index.html.erb
262
262
  - app/views/phcdevworks_press/blog/articles/show.html.erb
263
+ - config/initializers/friendly_id.rb
263
264
  - config/routes.rb
264
265
  - db/migrate/20170517064030_create_phcdevworks_press_post_versions.rb
265
266
  - db/migrate/20170517064427_create_phcdevworks_press_category_versions.rb