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 +4 -4
- data/app/assets/config/{go_link_manifest.js → go_links_manifest.js} +0 -0
- data/app/controllers/plugins/go_link/admin_controller.rb +0 -1
- data/app/views/plugins/{go_links → go_link}/admin/new.html.erb +0 -0
- data/app/views/plugins/{go_links → go_link}/admin/settings.html.erb +0 -0
- data/config/camaleon_plugin.json +0 -3
- data/lib/go_links/version.rb +1 -1
- metadata +4 -5
- data/app/helpers/plugins/go_link/main_helper.rb +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 356d7f78b3675ac1742fd17a8796380b4ab8a857
|
4
|
+
data.tar.gz: 18ddb4b475c6f71f66bc85f091454d8b7f1a37bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55cc203f72cbb479bc2d6a3214346c28dcba1d9d9231484cdfc14a457ae61ea32a73477d9f9aaaa610f496d45b5f5e8afea3848e4ee15a55eb734926d7e6b292
|
7
|
+
data.tar.gz: 641f758949e0ca8e47543ca8b1f65c3027001582745151a407e8dad33348a9ad1ceaa000380651b02cf79ee3c9fd9d11c19c02e7e334152ba294510e1d508200
|
File without changes
|
File without changes
|
File without changes
|
data/config/camaleon_plugin.json
CHANGED
@@ -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"],
|
data/lib/go_links/version.rb
CHANGED
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.
|
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/
|
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/
|
28
|
-
- app/views/plugins/
|
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
|