minimum_viable_product 0.0.23 → 0.0.24

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: 79ca64c758ce4600855f92b3a5e43614409c1fe4
4
- data.tar.gz: 9afa5a67c65d81e0102ee1f3db227a30392466a9
3
+ metadata.gz: 335595a0273eaaf7a6063a03ac5be1e00bce01db
4
+ data.tar.gz: ed9e7a45e2cefb1d5ef0005f683b8e86fb5d3af7
5
5
  SHA512:
6
- metadata.gz: a70fed7ef6ab77614c4025f598511e4c04e8d742fbc7e2f8f672e096b1d0d85bff422b0b1840a35adb1acdd04e7b024c4d30c5709fd21a6755f1ad5b64b993d8
7
- data.tar.gz: b53e7e830cc1fb5e19a59c3431508bbfcdf86f7cd627b1d4a1978b5ccf922995d9624a46183aa2e7723cb45b75bf7d75fe9dc3ce2431997d04ca3fb94e361084
6
+ metadata.gz: 45ada1de4a1ee53db2eaa0c54df951a7cfe5ac61ead7070c78c7c77d9f3b26fde60539c2d3910618db4258fa9f0d447a3a7c86ae8803c9bbd7b652219544aaa4
7
+ data.tar.gz: c2474929bb308e44b5350f9c8df75cdd73d8837dc91dbd1d149ff617e51b4491ca233efda790df480b193c1b100f80f38059e4239a30a3ac7d0dee41babe7b84
@@ -1,16 +1,18 @@
1
- module Slugification
2
- extend ActiveSupport::Concern
1
+ module MinimumViableProduct
2
+ module Slugification
3
+ extend ActiveSupport::Concern
3
4
 
4
- module ClassMethods
5
- def slugify(name, opts={})
6
- _opts = opts.reverse_merge(:if => lambda{ |obj| obj.send("#{name}_changed?".to_sym) })
7
- before_validation -> { self.slug = slugify(self.send(name.to_sym)) }, _opts
5
+ module ClassMethods
6
+ def slugify(name, opts={})
7
+ _opts = opts.reverse_merge(:if => lambda{ |obj| obj.send("#{name}_changed?".to_sym) })
8
+ before_validation -> { self.slug = slugify(self.send(name.to_sym)) }, _opts
9
+ end
8
10
  end
9
- end
10
11
 
11
- private
12
+ private
12
13
 
13
- def slugify(str)
14
- str.gsub(/\s/,'_').dasherize.downcase
14
+ def slugify(str)
15
+ str.gsub(/\s/,'_').dasherize.downcase
16
+ end
15
17
  end
16
18
  end
@@ -1,3 +1,3 @@
1
1
  module MinimumViableProduct
2
- VERSION = "0.0.23"
2
+ VERSION = "0.0.24"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimum_viable_product
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Hunter