wonder_navigation 0.1.1 → 0.1.2

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: d76249b8eec88051a188e99388c1975634a29be2
4
- data.tar.gz: 352d500b597833be7f75484bbb1f62c4e5372e49
3
+ metadata.gz: 7ccbeb8086d596d332843f980ed45de96f9b487f
4
+ data.tar.gz: 120137f6651aadb6b0b61605222515ff339c6f0c
5
5
  SHA512:
6
- metadata.gz: c1a0790d51e750d70556929d60f5c8ef7eda8bfc14799f32406984565c77deed0a7c847cc7f8bc7b7e6eabc488450c49200151838c07048a9a9efe273c23e3f2
7
- data.tar.gz: 4fc8b58b919bf87c65d84d5536752f0c14bbc8286423cc2baf5a34656ad8f943bd68ded2b11a005280755e8c21ae85cb7d7ad6bbb6817ee1faa5cd229ea32d18
6
+ metadata.gz: ae5aef2589c4093c0d8860d572ab8c4977ebfa02908c7234b8755c91019da1820acbc6c474ecf16ab7cb41baca8ead16ee44f15d3532b07071cab4a143395f3f
7
+ data.tar.gz: 3b8bba0191d0616b1063ecb107636014dc4399ced55704a9a8257d48bd0042aff6fed68e29e060e6c89276a4d2cadcacf47a32b3264c481d2f27aa3068373bd1
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Rails Wonderful Navigation
2
2
 
3
3
  [![Code Climate](https://codeclimate.com/github/douglaslise/wonder_navigation/badges/gpa.svg)](https://codeclimate.com/github/douglaslise/wonder_navigation)
4
+ [![Gem Version](https://badge.fury.io/rb/wonder_navigation.svg)](https://badge.fury.io/rb/wonder_navigation)
4
5
 
5
6
  Describe your Rails' menus and breadcrumbs in a single place, with support for permissions, fixed and resource based labels.
6
7
 
@@ -37,11 +37,11 @@ module WonderNavigation
37
37
  def resource(id, options = {}, &block)
38
38
  new = show = nil
39
39
  index = menu "#{id}_index", options do
40
- new = menu "#{id}_new", "Novo", visible: false
40
+ new = menu "#{id}_new", options.fetch(:new_label, I18n.t("wonder_navigation.resource.new", default: "New")), visible: false
41
41
  show = menu "#{id}_show" do
42
42
  label {|obj| obj.to_s }
43
43
  path {|obj| obj }
44
- menu "#{id}_edit", "Edição"
44
+ menu "#{id}_edit", I18n.t("wonder_navigation.resource.edit", default: "Edit")
45
45
  end
46
46
  end
47
47
  index.instance_exec(index, new, show, &block) if block_given?
@@ -1,3 +1,3 @@
1
1
  module WonderNavigation
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wonder_navigation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas Lise
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-03-29 00:00:00.000000000 Z
12
+ date: 2016-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails