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 +4 -4
- data/Gemfile.lock +7 -10
- data/VERSION +1 -1
- data/app/models/concerns/minimum_viable_product/slugification.rb +5 -4
- data/minimum_viable_product.gemspec +4 -3
- data/project/.gitignore +45 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e05d598a711e0a078f598f248628f7508af8899
|
4
|
+
data.tar.gz: b22bae44b37fcca45ded1859fea09c055617579e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
42
|
-
activemodel (>=
|
43
|
-
activesupport (>=
|
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
|
-
|
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.
|
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.
|
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.
|
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
|
-
|
10
|
-
self.slug
|
11
|
-
|
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.
|
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
|
+
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-
|
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",
|
data/project/.gitignore
ADDED
@@ -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.
|
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-
|
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
|