vanity_slug 0.0.6 → 0.0.7

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: ff429e2d72431d0416105975a5d5bf96eb159e96
4
- data.tar.gz: dc6726780c59b1155b732c78ba441037adef5742
3
+ metadata.gz: 748ea9a41509d508a7e623b695630419f972d08b
4
+ data.tar.gz: 594193f825015a1a8008502beb8e14a8cbc22209
5
5
  SHA512:
6
- metadata.gz: 4996f46fd0a8fd83838047da80148ea4aab8cbc3f66c26a5aacc5f190393bdc54fad029d850ab2d7c629bae6859cd01bce65afa1791d5263e84d912beaaaa63d
7
- data.tar.gz: 378f03922ff90e99c80e3a746e45f0d03cec65fe794e1303448a66528f79893eb72f9114cf352fb9bb7364c8dc5afe7e742514f72083746e81293119c5e07782
6
+ metadata.gz: 824bfd4f7916bc75de1b46ac4e09f77b8aed419a458ed351aeec7106f0d90e1a95ebaee96ad72bcaf017afaa254f577ea3024a91fdb5b13fe2e0241f7ad1753b
7
+ data.tar.gz: 5416e0389f55ba0645ec026fc7aa2a4bd660e16b8046e21f2df39df2a32c425b44a731d72a3ba7cd5f4f1484409b6d08e1352622c9e47568540ce125666dabb9
@@ -50,7 +50,7 @@ ActiveSupport.on_load :active_record do
50
50
  potential_slug += "-#{i}"
51
51
 
52
52
  while vanity_slug_exists?(potential_slug)
53
- potential_slug.gsub!(/-\d$/, "-#{i += 1}")
53
+ potential_slug.gsub!(/-\d*$/, "-#{i += 1}")
54
54
  end
55
55
  end
56
56
 
@@ -1,3 +1,3 @@
1
1
  module VanitySlug
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vanity_slug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Merwin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-28 00:00:00.000000000 Z
11
+ date: 2017-08-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: root level Vanity Slug for any model
14
14
  email: