minimum_viable_product 0.7.9 → 0.7.10

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: eb95491c19db38820d311026b3bb8401f617186f
4
- data.tar.gz: 9f8f1157a3f2885b90ef3b24672ab2ce32aa76dd
3
+ metadata.gz: 8e05d598a711e0a078f598f248628f7508af8899
4
+ data.tar.gz: b22bae44b37fcca45ded1859fea09c055617579e
5
5
  SHA512:
6
- metadata.gz: 31fdbf18a48b26514c233f39c8786318021e24e42d085a876f6b10e3cb265caef4c39f2a02ddc8de9d2c3da2a3a55eb8169ba5ddf903040950774bf33557f6aa
7
- data.tar.gz: d9109fdc4595421c3646d8a50372c140996596ad53600131bc86fb619ab7c9dc3760fe4c3d87cb5d4df481788cd3b0ea684857735a7d5fecda67fd1e01f7bdd5
6
+ metadata.gz: cdc6857393458e9f62c63b311898dda4dd1d7bc50d7c40b0b6f3195d84fa1966d849c0010b4870e8401876090654cd15eb3bdb74b976343510ad4591d4e7f88d
7
+ data.tar.gz: 40e6e9b5462f52c2b75e0f2a82cbd5f37b085d10f69e6986969a8366e231f9cc71c54705a89a013e410281c7deb705280b148940c1a5da894ff755d3a53eb38b
data/Gemfile.lock CHANGED
@@ -33,18 +33,16 @@ GEM
33
33
  rack (>= 0.9.0)
34
34
  binding_of_caller (0.7.2)
35
35
  debug_inspector (>= 0.0.1)
36
- builder (3.2.2)
36
+ builder (3.2.3)
37
37
  bullet (5.4.0)
38
38
  activesupport (>= 3.0.0)
39
39
  uniform_notifier (~> 1.10.0)
40
40
  byebug (9.0.6)
41
- carrierwave (0.11.2)
42
- activemodel (>= 3.2.0)
43
- activesupport (>= 3.2.0)
44
- json (>= 1.7)
41
+ carrierwave (1.0.0)
42
+ activemodel (>= 4.0.0)
43
+ activesupport (>= 4.0.0)
45
44
  mime-types (>= 1.16)
46
- mimemagic (>= 0.3.0)
47
- cloudinary (1.2.4)
45
+ cloudinary (1.4.0)
48
46
  aws_cf_signer
49
47
  rest-client
50
48
  coderay (1.1.1)
@@ -200,7 +198,7 @@ GEM
200
198
  highline (1.7.8)
201
199
  http-cookie (1.0.3)
202
200
  domain_name (~> 0.5)
203
- i18n (0.7.0)
201
+ i18n (0.8.0)
204
202
  inflecto (0.0.2)
205
203
  ipaddress (0.8.3)
206
204
  jeweler (2.0.1)
@@ -212,14 +210,13 @@ GEM
212
210
  nokogiri (>= 1.5.10)
213
211
  rake
214
212
  rdoc
215
- json (1.8.3)
213
+ json (1.8.6)
216
214
  jwt (1.5.6)
217
215
  loofah (2.0.3)
218
216
  nokogiri (>= 1.5.9)
219
217
  mime-types (3.1)
220
218
  mime-types-data (~> 3.2015)
221
219
  mime-types-data (3.2016.0521)
222
- mimemagic (0.3.2)
223
220
  mini_portile2 (2.1.0)
224
221
  minitest (5.10.1)
225
222
  multi_json (1.12.1)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.9
1
+ 0.7.10
@@ -4,11 +4,12 @@ module MinimumViableProduct
4
4
 
5
5
  module ClassMethods
6
6
  def slugify(name, opts={})
7
- _opts = opts.reverse_merge(:if => lambda{ |obj| obj.send("#{name}_changed?".to_sym) })
8
7
  before_validation -> {
9
- self.slug = slugify(self.send(name.to_sym))
10
- self.slug += SecureRandom.uuid if self.class.find_by(slug: self.slug).present?
11
- }, _opts
8
+ return true if self.slug.present?
9
+ self.slug = slugify(self.send(name.to_sym))
10
+ self.slug += "-#{SecureRandom.uuid}" if self.class.find_by(slug: self.slug).present?
11
+ }, opts
12
+ validates :slug, uniqueness: true
12
13
  end
13
14
  end
14
15
 
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: minimum_viable_product 0.7.9 ruby lib
5
+ # stub: minimum_viable_product 0.7.10 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "minimum_viable_product"
9
- s.version = "0.7.9"
9
+ s.version = "0.7.10"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Ian Hunter"]
14
- s.date = "2017-01-14"
14
+ s.date = "2017-02-05"
15
15
  s.description = "Built for Developers. Ideal for MVPs, product ideation and validation."
16
16
  s.email = "ianhunter@gmail.com"
17
17
  s.extra_rdoc_files = [
@@ -79,6 +79,7 @@ Gem::Specification.new do |s|
79
79
  "minimum_viable_product.gemspec",
80
80
  "mvp.gemspec",
81
81
  "package.json",
82
+ "project/.gitignore",
82
83
  "project/Gemfile",
83
84
  "project/Gemfile.lock",
84
85
  "project/Procfile",
@@ -0,0 +1,45 @@
1
+ *.rbc
2
+ capybara-*.html
3
+ .rspec
4
+ /log
5
+ /tmp
6
+ /db/*.sqlite3
7
+ /db/*.sqlite3-journal
8
+ /public/system
9
+ /coverage/
10
+ /spec/tmp
11
+ **.orig
12
+ rerun.txt
13
+ pickle-email-*.html
14
+ /node_modules
15
+
16
+ # TODO Comment out this rule if you are OK with secrets being uploaded to the repo
17
+ config/initializers/secret_token.rb
18
+
19
+ # Only include if you have production secrets in this file, which is no longer a Rails default
20
+ # config/secrets.yml
21
+
22
+ # dotenv
23
+ # TODO Comment out this rule if environment variables can be committed
24
+ .env
25
+
26
+ ## Environment normalization:
27
+ /.bundle
28
+ /vendor/bundle
29
+
30
+ # these should all be checked in to normalize the environment:
31
+ # Gemfile.lock, .ruby-version, .ruby-gemset
32
+
33
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
34
+ .rvmrc
35
+
36
+ # if using bower-rails ignore default bower_components path bower.json files
37
+ /vendor/assets/bower_components
38
+ *.bowerrc
39
+ bower.json
40
+
41
+ # Ignore pow environment settings
42
+ .powenv
43
+
44
+ # Ignore Byebug command history file.
45
+ .byebug_history
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimum_viable_product
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.9
4
+ version: 0.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Hunter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-14 00:00:00.000000000 Z
11
+ date: 2017-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave
@@ -358,6 +358,7 @@ files:
358
358
  - minimum_viable_product.gemspec
359
359
  - mvp.gemspec
360
360
  - package.json
361
+ - project/.gitignore
361
362
  - project/Gemfile
362
363
  - project/Gemfile.lock
363
364
  - project/Procfile