get_link_list 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56c4b07c92f2176b14d5981640c0b9fbba434435
4
- data.tar.gz: f866d0f131cd00fe6e647dd3817f4d19d5665950
3
+ metadata.gz: 2af9e0d4658f7b05ad37bb095854f9d0ba30c667
4
+ data.tar.gz: caf7bdd05385dcca2637acea395f9233e7361088
5
5
  SHA512:
6
- metadata.gz: 6be2843a5e4f4264cacd933c9a35e36698e81be49aa8628bfbc1400052babaa5c15c0417484acb8e61b7eacc17a920cce0cb1695acad823687c09967f31f3eca
7
- data.tar.gz: 6d70b712ef81ab16da0bc32a68c61f27e635534821d45ac0fb865912bae898faf88e157781d481d1b2153835a226db18ec73f5483541ac4f0a11b15fe13b4792
6
+ metadata.gz: 636903de922f47f3225af197c905ca41ba2d328a17c5c24cf0517ac5ddd35a6993cd8080027994bdc51d47f06c6353cb1813964fbe7d5840538c53ceb24ab825
7
+ data.tar.gz: ad848ea408cccfefe8171d2280388f6a6444b49b045ed185ad09734f467521e78f26f78099129a888b8a31e03d8f9b65e633e16f42a45078d8f40d70286a294c
@@ -5,6 +5,14 @@
5
5
  margin: 0;
6
6
  text-decoration: none;
7
7
  list-style-type: none;
8
+ :after{
9
+ content: ".";
10
+ display: block;
11
+ height: 0;
12
+ font-size:0;
13
+ clear: both;
14
+ visibility:hidden;
15
+ }
8
16
  ul{
9
17
  padding: 0;
10
18
  margin: 0;
@@ -0,0 +1,13 @@
1
+ module GetLinkList
2
+ module Generators
3
+ class AssetsGenerator < Rails::Generators::Base
4
+ source_root File.expand_path("../templates", __FILE__)
5
+ desc "This generator installs js and css file"
6
+
7
+ def create_assets_file
8
+ template "index.js.coffee", File.join('app/assets/javascripts/get_link_list',"index.js.coffee")
9
+ template "index.css.scss", File.join('app/assets/stylesheets/get_link_list',"index.css.scss")
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,12 @@
1
+ module GetLinkList
2
+ module Generators
3
+ class ConfigGenerator < Rails::Generators::Base
4
+ source_root File.expand_path("../templates", __FILE__)
5
+ desc "This generator installs config file that ignores controller and action"
6
+
7
+ def create_config_file
8
+ template "get_link_list.rb", File.join('config/initializers',"get_link_list.rb")
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,9 @@
1
+ GetLinkList.configure do |config|
2
+ #write ignore controller and action like this.
3
+ #config.ignore_controller = ["controller_name1": ["action_name1","action_name2"],"controller_name2": ""]
4
+
5
+ #example)
6
+ #config.ignore_controller = ["rails/mailers": "","users/omniauth_callbacks": ""]
7
+
8
+ #config.ignore_controller = []
9
+ end
@@ -0,0 +1,61 @@
1
+ #get_link_list{
2
+ list-style: none;
3
+ font-size:12px;
4
+ padding: 0;
5
+ margin: 0;
6
+ text-decoration: none;
7
+ list-style-type: none;
8
+ :after{
9
+ content: ".";
10
+ display: block;
11
+ height: 0;
12
+ font-size:0;
13
+ clear: both;
14
+ visibility:hidden;
15
+ }
16
+ ul{
17
+ padding: 0;
18
+ margin: 0;
19
+ list-style: none;
20
+ font-size:12px;
21
+ z-index: 9999;
22
+ li{
23
+
24
+ float: left;
25
+ width: 100px;
26
+ height: 38px;
27
+ background: #ccc;
28
+ position: relative;
29
+ a:hover{
30
+ background: #f0f0f0;
31
+ }
32
+ a{
33
+ overflow: hidden;
34
+ display: block;
35
+ width: 100%;
36
+ height: 100%;
37
+ line-height: 38px;
38
+ text-indent: 10px;
39
+ text-decoration: none;
40
+ position:relative;
41
+ }
42
+
43
+ ul{
44
+ position: absolute;
45
+ display: none;
46
+
47
+ li{
48
+ display: block;
49
+ float:none;
50
+ }
51
+ }
52
+ }
53
+ ul:after{
54
+ content:".";
55
+ display: block;
56
+ clear: both;
57
+ height: 0;
58
+ visibility: hidden;
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,5 @@
1
+ $(document).on 'ready page:load', ->
2
+ $('#get_link_list ul li').hover (->
3
+ $(this).children('ul').stop(true,true).slideDown("fast")
4
+ ), ->
5
+ $(this).children('ul').stop(true,true).slideUp("fast")
@@ -1,3 +1,3 @@
1
1
  module GetLinkList
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get_link_list
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - candle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-07 00:00:00.000000000 Z
11
+ date: 2015-10-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: It showed your rails project GET path
14
14
  email:
@@ -30,6 +30,11 @@ files:
30
30
  - app/views/get_link_list/_get_link.html.haml
31
31
  - app/views/layouts/get_link_list/application.html.erb
32
32
  - config/routes.rb
33
+ - lib/generators/get_link_list/assets_generator.rb
34
+ - lib/generators/get_link_list/config_generator.rb
35
+ - lib/generators/get_link_list/templates/get_link_list.rb
36
+ - lib/generators/get_link_list/templates/index.css.scss
37
+ - lib/generators/get_link_list/templates/index.js.coffee
33
38
  - lib/get_link_list.rb
34
39
  - lib/get_link_list/config.rb
35
40
  - lib/get_link_list/engine.rb