go_links 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: 05774564ac5e9dec0982ef0d9e91f475fba3cbfe
4
- data.tar.gz: 1b498d825956edda2b25118c380edcde8ae93af6
3
+ metadata.gz: 356d7f78b3675ac1742fd17a8796380b4ab8a857
4
+ data.tar.gz: 18ddb4b475c6f71f66bc85f091454d8b7f1a37bd
5
5
  SHA512:
6
- metadata.gz: 34eed9b4d8f868670087d65502fb093d50a9b04a304027d8886af2d0e815bd0ecd4118460652fcb3b2cba660d784fea027329808c70b302275ae263980208940
7
- data.tar.gz: ff312e568f91d9678873feb2406aec8e9b4b77e528e385553cc43db8d599cc31b3a0109c49a53ec69d7a5b6051aa0617ee6ee93efbb133f9a1fd65488d6204e2
6
+ metadata.gz: 55cc203f72cbb479bc2d6a3214346c28dcba1d9d9231484cdfc14a457ae61ea32a73477d9f9aaaa610f496d45b5f5e8afea3848e4ee15a55eb734926d7e6b292
7
+ data.tar.gz: 641f758949e0ca8e47543ca8b1f65c3027001582745151a407e8dad33348a9ad1ceaa000380651b02cf79ee3c9fd9d11c19c02e7e334152ba294510e1d508200
@@ -1,5 +1,4 @@
1
1
  class Plugins::GoLink::AdminController < CamaleonCms::Apps::PluginsAdminController
2
- include Plugins::GoLink::MainHelper
3
2
  before_action :set_link, only: [:show]
4
3
 
5
4
  def new
@@ -2,9 +2,6 @@
2
2
  "title": "Go Links",
3
3
  "descr": "",
4
4
  "key": "go_links", // must be the name of the folder of your plugin, sample: app/views/plugins/<my_plugin> ==> 'my_plugin'
5
- "helpers": [
6
- "Plugins::GoLink::MainHelper"
7
- ],
8
5
  "hooks": {
9
6
  "on_active": ["go_link_on_active"],
10
7
  "on_inactive": ["go_link_on_inactive"],
@@ -1,3 +1,3 @@
1
1
  module GoLinks
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: go_links
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Kulp
@@ -20,12 +20,11 @@ files:
20
20
  - MIT-LICENSE
21
21
  - README.md
22
22
  - Rakefile
23
- - app/assets/config/go_link_manifest.js
23
+ - app/assets/config/go_links_manifest.js
24
24
  - app/controllers/plugins/go_link/admin_controller.rb
25
- - app/helpers/plugins/go_link/main_helper.rb
26
25
  - app/models/plugins/go_link/go_link.rb
27
- - app/views/plugins/go_links/admin/new.html.erb
28
- - app/views/plugins/go_links/admin/settings.html.erb
26
+ - app/views/plugins/go_link/admin/new.html.erb
27
+ - app/views/plugins/go_link/admin/settings.html.erb
29
28
  - config/camaleon_plugin.json
30
29
  - config/initializers/custom_models.rb
31
30
  - config/routes.rb
@@ -1,29 +0,0 @@
1
- module Plugins::GoLink::MainHelper
2
- def self.included(klass)
3
- # klass.helper_method [:my_helper_method] rescue "" # here your methods accessible from views
4
- end
5
-
6
- # here all actions on going to active
7
- # you can run sql commands like this:
8
- # results = ActiveRecord::Base.connection.execute(query);
9
- # plugin: plugin model
10
- def go_link_on_active(plugin)
11
- end
12
-
13
- # here all actions on going to inactive
14
- # plugin: plugin model
15
- def go_link_on_inactive(plugin)
16
- end
17
-
18
- # here all actions to upgrade for a new version
19
- # plugin: plugin model
20
- def go_link_on_upgrade(plugin)
21
- end
22
-
23
- # hook listener to add settings link below the title of current plugin (if it is installed)
24
- # args: {plugin (Hash), links (Array)}
25
- # permit to add unlimmited of links...
26
- def go_link_on_plugin_options(args)
27
- args[:links] << link_to('Settings', admin_plugins_go_link_settings_path)
28
- end
29
- end