semantic_navigation 0.1.5 → 0.1.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTJlZmViMTQyN2MwYzdkOWEzNGM3MjI3NzdhYjdmNDMxZTQ3YzI1ZQ==
4
+ YjQyM2FkNTJkYzI4N2FhMjM3ZmZjZmNhYTQ4ZmI3NGYzMzU1YmMwMA==
5
5
  data.tar.gz: !binary |-
6
- ZTYzMGYzYzVjZTJhNjg5YzQ4NzMyMDE4YTZhODJhYzkyNGY4MjVjYw==
6
+ ZGQ2NDA5NmRhOTMxMjc4NjUyMjUxZTg0ODQ2MmM5MzQ0ZmY5MTYwZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjIzODE1YzM1YWQ5OTlhYjA1Njk3NGMyOTc4ZWYxNzU3NDQ0ZTg4OTMyMWJk
10
- NTgzZTNjMmM3Mjk5Zjk1YmQ2YjM3OWM0MmVlOTM3MDQ5YjlhZGI5NTc1Nzgx
11
- YmFkN2EyNDUxYTExZGNjNDk3ZGY1MTllZWJhZWI2MzczMjZkYWU=
9
+ ZGQwOWFlOWVlOWMyMGUzMWFiOGUzMWM5NWQzNGNhZmIzYjgxNjM0ODUxMTll
10
+ NmIyMGRmYzhiNmQwMmFiZTI5ZDhiYjUwZGVlZjg2NDhmYjI3ZjYwNTUwZDRk
11
+ OTZhNmU1ODEzZWRlZjQyZDNhYjUxOWZhNDZjYTk1ZWQ1OWYzMjg=
12
12
  data.tar.gz: !binary |-
13
- Zjk0YTU4YzQyYTExNDU1Mjg5ZjZiYTdmZTliOGI4OTZiMjBmZjEwODQwODc0
14
- NTFkOTM2OWYyNTUxZWI5Y2VlMTZmYjljOTRkYzMyZjRlNzY1Y2I3NmIyNzdj
15
- OWU4NjcxZDAxMzcyYzNlNmIwYzgxNzk0YjFkZWMyZThlMTYxNzQ=
13
+ NTk3ZmM2NzU1NTRhZTA2YzdiMDRmYzFmZDFhYTA5YThhYTY0NWNjY2QxNmE2
14
+ ZDY5MzgyODdmYjgzYjZmYjA0NmEwN2YwNmYzNzJkNzdiYjE5M2Y0YjRlN2I2
15
+ YTlhNmU5MTcwMGRiYjJkODljYzgyNzVmYTY4MjQ4MmQ5MjA5YjA=
data/TODO CHANGED
@@ -12,7 +12,8 @@ Concept:
12
12
  - active_if method, can accept Proc
13
13
  - add possibility for routes like {controller: 'some_controller', actions: ['index', 'new', 'create']}, or
14
14
  "some_controller#(index|new|create)"
15
+ - add wrap_false property for item
15
16
 
16
17
  Convention over configuration:
17
18
  - Move menu definitions outside the initializers folder
18
- - Leave menu configuration options in initalizers folder
19
+ - Leave menu configuration options in initalizers folder
@@ -2,14 +2,14 @@ module SemanticNavigation
2
2
  module Generators
3
3
  class BreadcrumbRendererGenerator < ::Rails::Generators::NamedBase
4
4
  source_root File.expand_path("../templates", __FILE__)
5
- desc "This generator creates list like rendering class"
5
+ desc "This generator creates breadcrumb like rendering class"
6
6
 
7
- def generate_list_renderer
7
+ def generate_breadcrumb_renderer
8
8
  template "breadcrumb_renderer.rb", "app/models/renderers/#{file_name}.rb"
9
9
  end
10
10
 
11
11
  def register_renderer
12
- semantic_navigation_config = Railtie.actual_config_location
12
+ semantic_navigation_config = SemanticNavigation.actual_config_location
13
13
  register_string = " register_renderer :#{file_name}, Renderers::#{class_name}\n"
14
14
  inject_into_file semantic_navigation_config, register_string, :after => "SemanticNavigation::Configuration.run do\n"
15
15
  end
@@ -9,7 +9,7 @@ module SemanticNavigation
9
9
  end
10
10
 
11
11
  def register_renderer
12
- semantic_navigation_config = Railtie.actual_config_location
12
+ semantic_navigation_config = SemanticNavigation.actual_config_location
13
13
  register_string = " register_renderer :#{file_name}, Renderers::#{class_name}\n"
14
14
  inject_into_file semantic_navigation_config, register_string, :after => "SemanticNavigation::Configuration.run do\n"
15
15
  end
@@ -1,3 +1,3 @@
1
1
  module SemanticNavigation
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semantic_navigation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Gribovski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-18 00:00:00.000000000 Z
11
+ date: 2014-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec