minimum_viable_product 0.3.4 → 0.4.0

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: 05c9b6b6ddcb7005c42ab25a029d7d4496884eed
4
- data.tar.gz: 9fa29f75002a7a39e59ef5de29b1c80148a95440
3
+ metadata.gz: 01a752991d677b16872b2d851125868363b66624
4
+ data.tar.gz: 78eaecc0a2cc5811d667d2b4bf2ccb0cb640062e
5
5
  SHA512:
6
- metadata.gz: 75c5e490661ea92524bf1f68b390e496d0408295e040b5a0089e66a9963c0ec6ae2037433e8df52025bf19e7b601f59f7724b5d62ab923445cf5c0638eac51ab
7
- data.tar.gz: 840953077b07b01c9a64dcbec40173c3c6760fd1747423b19bb91742ea19a8bda4da8ab10ae6f22ab887e590a1b07500a65844f594a741f472cdf2c685d1b81f
6
+ metadata.gz: 24592f7cb95d77dee291f5e03bae2cdb6d232b857bb3337507bca649146add7a40fa18704a5832d6a2ade8f334d3bb5f8ba05dc697d2b43d7b1fadb441b32761
7
+ data.tar.gz: bcaf5169e7f7dff9ddcc917fc625f545456c16357b117f4e7b5eb097ec41f4b9becd304dfe22d17eba6bed70479072cdae46b3ea19c283cf421b27018b7f6dee
@@ -1,11 +1,7 @@
1
- require 'bootstrap-sass'
2
1
  require 'carrierwave'
3
- require 'client_side_validations'
4
- require 'client_side_validations/simple_form'
5
2
  require 'cloudinary'
6
3
  require 'faraday'
7
4
  require 'fog'
8
- require 'font-awesome-sass'
9
5
  require 'geocoder'
10
6
  require 'hashie'
11
7
  require 'jquery-rails'
@@ -1,3 +1,3 @@
1
1
  module MinimumViableProduct
2
- VERSION = "0.3.4"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.4
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Hunter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-06 00:00:00.000000000 Z
11
+ date: 2016-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: analytics-ruby
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: bootstrap-sass
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: carrierwave
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -122,20 +108,6 @@ dependencies:
122
108
  - - ">="
123
109
  - !ruby/object:Gem::Version
124
110
  version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: font-awesome-sass
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :runtime
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
111
  - !ruby/object:Gem::Dependency
140
112
  name: hashie
141
113
  requirement: !ruby/object:Gem::Requirement
@@ -419,7 +391,6 @@ files:
419
391
  - bin/mvp
420
392
  - config/initializers/assets.rb
421
393
  - config/initializers/canonical_host.rb
422
- - config/initializers/client_side_validations.rb
423
394
  - config/initializers/cloudinary.rb
424
395
  - config/initializers/geocoder.rb
425
396
  - config/initializers/iteration.rb
@@ -437,7 +408,6 @@ files:
437
408
  - lib/minimum_viable_product/ext/nil.rb
438
409
  - lib/minimum_viable_product/ext/string.rb
439
410
  - lib/minimum_viable_product/version.rb
440
- - lib/tasks/db.rake
441
411
  - lib/tasks/sitemap.rake
442
412
  - test/dummy/README.rdoc
443
413
  - test/dummy/Rakefile
@@ -1,20 +0,0 @@
1
- # ClientSideValidations Initializer
2
-
3
- # Disabled validators. The uniqueness validator is disabled by default for security issues. Enable it on your own responsibility!
4
- # ClientSideValidations::Config.disabled_validators = [:uniqueness]
5
-
6
- # Uncomment to validate number format with current I18n locale
7
- # ClientSideValidations::Config.number_format_with_locale = true
8
-
9
- # Uncomment the following block if you want each input field to have the validation messages attached.
10
- #
11
- # Note: client_side_validation requires the error to be encapsulated within
12
- # <label for="#{instance.send(:tag_id)}" class="message"></label>
13
- #
14
- # ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
15
- # unless html_tag =~ /^<label/
16
- # %{<div class="field_with_errors">#{html_tag}<label for="#{instance.send(:tag_id)}" class="message">#{instance.error_message.first}</label></div>}.html_safe
17
- # else
18
- # %{<div class="field_with_errors">#{html_tag}</div>}.html_safe
19
- # end
20
- # end
@@ -1,70 +0,0 @@
1
- require 'json'
2
-
3
- def run(cmd, quiet=true)
4
- puts "Running #{cmd}" if ENV['DEBUG'] == 'true'
5
- command = [cmd]
6
- command << "&>/dev/null" if quiet
7
- system(command.join(' '))
8
- end
9
-
10
- namespace :db do
11
- desc 'Pull down production database'
12
- task :import => ['db:dump:postgres', 'db:import:postgres'] do
13
- puts "Done"
14
- end
15
-
16
- namespace :capture do
17
- task :postgres do
18
- puts "Capturing Production Backup ..."
19
- run("heroku pg:backups capture", false)
20
- end
21
- end
22
-
23
- namespace :dump do
24
- task :postgres do
25
- Rake::Task["db:capture:postgres"].execute if ENV['CAPTURE']
26
- puts "Loading Production Dump ..."
27
- run("curl -o tmp/latest.dump `heroku pg:backups public-url`")
28
- end
29
-
30
- task :clean do
31
- run("rm tmp/latest.dump")
32
- end
33
- end
34
-
35
- namespace :import do
36
- task :postgres => ['kill_postgres_connections','db:drop','db:create'] do
37
- config = Rails.configuration.database_configuration
38
- host = config[Rails.env]["host"]
39
- database = config[Rails.env]["database"]
40
- username = config[Rails.env]["username"]
41
- password = config[Rails.env]["password"]
42
-
43
- puts "Importing to #{database} ..."
44
-
45
- cmd = ["pg_restore --verbose --clean --no-acl --no-owner"]
46
- cmd << "-h #{host}" if host.present?
47
- cmd << "-U #{username}" if username.present?
48
- cmd << "-p #{password}" if password.present?
49
- cmd << "-d #{database}"
50
- cmd << "tmp/latest.dump"
51
- run(cmd.join(' '))
52
- end
53
-
54
- task :kill_postgres_connections => :environment do
55
- env = "development"
56
- db_config = Rails.configuration.database_configuration[env]
57
- fail(ArgumentError, "Could not find db config entry for env (#{env})") unless db_config
58
- db_name = db_config['database']
59
-
60
- # thanks to http://stackoverflow.com/questions/12924466/capistrano-with-postgresql-error-database-is-being-accessed-by-other-users
61
- # previously, we were kill'ing the postgres processes: http://stackoverflow.com/questions/2369744/rails-postgres-drop-error-database-is-being-accessed-by-other-users
62
- cmd = %(psql -c "SELECT pid, pg_terminate_backend(pid) as terminated FROM pg_stat_activity WHERE pid <> pg_backend_pid();" -d '#{db_name}')
63
-
64
- unless run(cmd)
65
- fail $?.inspect
66
- end
67
- end
68
-
69
- end
70
- end