ants 0.2.4 → 0.2.5

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: 473241abeff9161336290855d89a455e3c9ca416
4
- data.tar.gz: dbb4139bad372a87b141c26470d46089ff5e66ab
3
+ metadata.gz: 1008a0eb3aebddf73a3e97ed26d6b31e44be8aab
4
+ data.tar.gz: 5d7f045067f3b0435fd359ceab457dd3e932678e
5
5
  SHA512:
6
- metadata.gz: fb8f7568cde05ea717805a96ecb18053a92656e8eb450b9b0d30bc96de353f3ef18738d34596282407e1f7bab332d88698022c8e6b32f11f0cef666fbc989017
7
- data.tar.gz: 84e4f5afba7c3056005bca4fefb1494b32bb382a2a48bac5d9e01a5751d81b2f7ac6cd69feacf52108f4c16aadf51258497a96399b3075876953db4d9dd5aa48
6
+ metadata.gz: 558b1939dc0ab28e54f029966815fb16278a954c1d0db70011e823709bd1488ed64f7a2ae805e09a2ebea50ef7505d1c4544847b581a4835fd3fe684d7d0a94e
7
+ data.tar.gz: 821e1ac2bb5298d443fd4c720ac8e5383442e04d90d9eec4a420001443a1e8f17de3c00f2a16a4f72eb8fb7429a873e8d5403a36f9c5b3686b12d9ea8732699d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ants (0.2.4)
4
+ ants (0.2.5)
5
5
  devise
6
6
  mongoid (>= 4.0)
7
7
  mongoid-slug (>= 4.0.0)
@@ -1,6 +1,6 @@
1
1
  module MenuHelper
2
2
  def menu(name)
3
- menu = Menu.find_by(name: name)
3
+ menu = Menu.find_or_create_by(name: name)
4
4
  html = ''
5
5
 
6
6
  menu.links.each do |l|
data/lib/ants/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ants
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ants
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kravets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-07 00:00:00.000000000 Z
11
+ date: 2015-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid