phcdevworks_scripts 1.0.0 → 2.1.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: 37ed3f5040988684613227057b05981012ee585f7ecb9c310914168e9b873b4a
4
- data.tar.gz: 7d859d8fb9d659eb42575c88745941415a2a7b8624d80bec743d5f0a4ae49a7f
3
+ metadata.gz: 7cef9eea0db3030cc0211815a8f257c4895a09f207bd16f185bf82660348382b
4
+ data.tar.gz: 892e6153c66b558278193633ed36c93925b9e69d17096a68aae5f3dfe5139152
5
5
  SHA512:
6
- metadata.gz: 74b87dacac423888a8159eab03abac0b0e28f4cf0df752617f2199cd13ed5125601c2bb81a217c0c3c60cb7eca91a2ead2849af51bc665d195c4ba24ac5e676e
7
- data.tar.gz: 8f8e05a6635b6b7836d1a285d5b0a87f1a32621b05e839e5339d2aef6c79d1113faf69a5d3d41a323072998006ea5c32a43e359fb23159919074dd9517003535
6
+ metadata.gz: b4ebb9aa1794205ea88251a1e142a42a8a6f0e3b1ba25e18de0ef89ab92061bfc4760101a28cf5c07704d3121a75300720ba0f63f323e6c0771fc1798a282fc4
7
+ data.tar.gz: 4670dc812072190c1f7118bde35102df1747d0749552d699680f0ae12f9dcdfb0635272b62f9d273b1d61d2bcfe14099c0e37b80f89d7204532b7529f3e1c659
@@ -1 +1,2 @@
1
- //= link_directory ../stylesheets/phcdevworks_scripts .css
1
+ //= link_directory ../javascripts/phcdevworks_scripts .js
2
+ //= link_directory ../stylesheets/phcdevworks_scripts .scss
@@ -33,6 +33,7 @@ module PhcdevworksScripts
33
33
  def create
34
34
  @script_author = Script::Author.new(script_author_params)
35
35
  @script_author.user_id = current_user.id
36
+ @script_author.org_id = current_user.org_id
36
37
  respond_to do |format|
37
38
  if @script_author.save
38
39
  format.html { redirect_to script_authors_path, :flash => { :success => 'Author has been Added.' }}
@@ -33,6 +33,7 @@ module PhcdevworksScripts
33
33
  def create
34
34
  @script_extension = Script::Extension.new(script_extension_params)
35
35
  @script_extension.user_id = current_user.id
36
+ @script_extension.org_id = current_user.org_id
36
37
  respond_to do |format|
37
38
  if @script_extension.save
38
39
  format.html { redirect_to script_extensions_path, :flash => { :success => 'Script Extension has been Added.' }}
@@ -33,6 +33,7 @@ module PhcdevworksScripts
33
33
  def create
34
34
  @script_listing = Script::Listing.new(script_listing_params)
35
35
  @script_listing.user_id = current_user.id
36
+ @script_listing.org_id = current_user.org_id
36
37
  respond_to do |format|
37
38
  if @script_listing.save
38
39
  format.html { redirect_to script_listings_path, :flash => { :success => 'Script Listing has been Added.' }}
@@ -33,6 +33,7 @@ module PhcdevworksScripts
33
33
  def create
34
34
  @script_url = script_listing.urls.create(script_url_params)
35
35
  @script_url.user_id = current_user.id
36
+ @script_url.org_id = current_user.org_id
36
37
  if @script_url.save
37
38
  redirect_to script_listing_urls_path, :flash => { :success => 'Author was successfully created.' }
38
39
  else
@@ -33,6 +33,7 @@ module PhcdevworksScripts
33
33
  def create
34
34
  @script_version = Script::Version.new(script_version_params)
35
35
  @script_version.user_id = current_user.id
36
+ @script_version.org_id = current_user.org_id
36
37
  respond_to do |format|
37
38
  if @script_version.save
38
39
  format.html { redirect_to script_versions_path, :flash => { :success => 'Script Version has been Added.' }}
@@ -31,6 +31,7 @@ module PhcdevworksScripts
31
31
  def create
32
32
  @snippet_post = Snippet::Post.new(snippet_post_params)
33
33
  @snippet_post.user_id = current_user.id
34
+ @snippet_post.org_id = current_user.org_id
34
35
  respond_to do |format|
35
36
  if @snippet_post.save
36
37
  format.html { redirect_to snippet_posts_path, :flash => { :success => 'Script Snippet has been Added.' }}
@@ -32,6 +32,7 @@ module PhcdevworksScripts
32
32
  def create
33
33
  @script_url = snippet_post.urls.create(script_url_params)
34
34
  @script_url.user_id = current_user.id
35
+ @script_url.org_id = current_user.org_id
35
36
  if @script_url.save
36
37
  redirect_to script_snippet_urls_path, :flash => { :success => 'Script url was successfully created.' }
37
38
  else
@@ -67,7 +67,7 @@
67
67
  <% end %>
68
68
 
69
69
  <% if defined?phcdevworks_press %>
70
- <!-- Sidebar - Sidebar Navigation - PHCPress CMS -->
70
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks Press -->
71
71
  <li class="nav-header">Article Management</li>
72
72
  <li class="has-sub">
73
73
  <a href="javascript:;">
@@ -91,11 +91,11 @@
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 - PHCPress CMS -->
94
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks Press -->
95
95
  <% end %>
96
96
 
97
97
  <% if defined?phcdevworks_scripts %>
98
- <!-- Sidebar - Sidebar Navigation - PHCScripts CDN and Code Snippet Manager -->
98
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks Scripts -->
99
99
  <li class="nav-header">Script Management</li>
100
100
  <li class="has-sub">
101
101
  <a href="javascript:;">
@@ -132,7 +132,63 @@
132
132
  <li class="<%= phc_menu_active_controller('phcdevworks_scripts/script/posts#new') %>"><%= link_to 'New Snippet', phcdevworks_scripts.new_snippet_post_path %></li>
133
133
  </ul>
134
134
  </li>
135
- <!-- Sidebar - Sidebar Navigation - PHCScripts CDN and Code Snippet Manager -->
135
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks Scripts -->
136
+ <% end %>
137
+
138
+ <% if defined?phcdevworks_real_estate %>
139
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
140
+ <li class="nav-header">Listing Management</li>
141
+ <li class="has-sub">
142
+ <a href="javascript:;">
143
+ <b class="caret"></b>
144
+ <i class="fad fa-home-lg"></i>
145
+ <span>Property Listings</span>
146
+ </a>
147
+ <ul class="sub-menu">
148
+ <li class="<%= phc_menu_active_controller('phcdevworks_real_estate/property/listings') %>"><%= link_to 'Listing Index', phcdevworks_real_estate.property_listings_path %></li>
149
+ <li class="<%= phc_menu_active_controller('phcdevworks_real_estate/property/listings#new') %>"><%= link_to 'New Listing', phcdevworks_real_estate.new_property_listing_path %></li>
150
+ </ul>
151
+ </li>
152
+ <li class="has-sub">
153
+ <a href="javascript:;">
154
+ <b class="caret"></b>
155
+ <i class="fad fa-list-alt"></i>
156
+ <span>Listing Features</span>
157
+ </a>
158
+ <ul class="sub-menu">
159
+ <li class="<%= phc_menu_active_controller('phcdevworks_real_estate/property/listings') %>"><%= link_to 'Features Index', phcdevworks_real_estate.property_features_path %></li>
160
+ <li class="<%= phc_menu_active_controller('phcdevworks_real_estate/property/listings#new') %>"><%= link_to 'New Features', phcdevworks_real_estate.new_property_feature_path %></li>
161
+ </ul>
162
+ </li>
163
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
164
+ <% end %>
165
+
166
+ <% if defined?phcdevworks_tutorials %>
167
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
168
+ <li class="nav-header">Tutorials</li>
169
+ <li class="has-sub">
170
+ <a href="javascript:;">
171
+ <b class="caret"></b>
172
+ <i class="fad fa-chalkboard-teacher"></i>
173
+ <span>Tutorial Posts</span>
174
+ </a>
175
+ <ul class="sub-menu">
176
+ <li class="<%= phc_menu_active_controller('phcdevworks_tutorials/tutorials/posts') %>"><%= link_to 'Tutorial Index', phcdevworks_tutorials.tutorial_posts_path %></li>
177
+ <li class="<%= phc_menu_active_controller('phcdevworks_tutorials/tutorials/posts#new') %>"><%= link_to 'New Tutorial', phcdevworks_tutorials.new_tutorial_post_path %></li>
178
+ </ul>
179
+ </li>
180
+ <li class="has-sub">
181
+ <a href="javascript:;">
182
+ <b class="caret"></b>
183
+ <i class="fad fa-sitemap"></i>
184
+ <span>Tutorial Categories</span>
185
+ </a>
186
+ <ul class="sub-menu">
187
+ <li class="<%= phc_menu_active_controller('phcdevworks_tutorials/tutorials/categories') %>"><%= link_to 'Category Index', phcdevworks_tutorials.tutorial_categories_path %></li>
188
+ <li class="<%= phc_menu_active_controller('phcdevworks_tutorials/tutorials/categories#new') %>"><%= link_to 'New Category', phcdevworks_tutorials.new_tutorial_category_path %></li>
189
+ </ul>
190
+ </li>
191
+ <!-- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
136
192
  <% end %>
137
193
 
138
194
  <% if current_user && current_user.admin? %>
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksScripts
2
- VERSION = '1.0.0'
2
+ VERSION = '2.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_scripts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.1.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-21 00:00:00.000000000 Z
11
+ date: 2019-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -198,14 +198,14 @@ dependencies:
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 1.0.0
201
+ version: 1.1.0
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 1.0.0
208
+ version: 1.1.0
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: sqlite3
211
211
  requirement: !ruby/object:Gem::Requirement
@@ -322,7 +322,6 @@ files:
322
322
  - app/views/phcdevworks_scripts/snippet/urls/show.html.erb
323
323
  - config/initializers/friendly_id.rb
324
324
  - config/routes.rb
325
- - db/migrate/20170509002355_create_phcdevworks_scripts_friendly_id_slugs.rb
326
325
  - db/migrate/20170517064030_create_phcdevworks_scripts_extension_versions.rb
327
326
  - db/migrate/20170517064049_create_phcdevworks_scripts_listing_versions.rb
328
327
  - db/migrate/20170517064114_create_phcdevworks_scripts_scriptversion_versions.rb
@@ -1,18 +0,0 @@
1
- class CreatePhcdevworksScriptsFriendlyIdSlugs < ActiveRecord::Migration[5.2]
2
- def change
3
-
4
- create_table :phcdevworks_scripts_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
-
12
- add_index :phcdevworks_scripts_friendly_id_slugs, :sluggable_id
13
- add_index :phcdevworks_scripts_friendly_id_slugs, [:slug, :sluggable_type], name: 'scriptcdnpro_fri_id_slugable_type', length: { slug: 140, sluggable_type: 50 }
14
- add_index :phcdevworks_scripts_friendly_id_slugs, [:slug, :sluggable_type, :scope], name: 'scriptcdnpro_fri_id_slugable_scope_type', length: { slug: 70, sluggable_type: 50, scope: 70 }, unique: true
15
- add_index :phcdevworks_scripts_friendly_id_slugs, :sluggable_type
16
-
17
- end
18
- end