minimum_viable_product 0.0.32 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a2c167c5ffa24c5ca99043f483d1b8ac412533f
4
- data.tar.gz: e1ace7598d820db51e4502ebc1b99eeda4b2d3ec
3
+ metadata.gz: f9ffc3051eca03f36e4152e7cfb75581336caddf
4
+ data.tar.gz: 9abc048bc34bfcf65fb17991503e08b4828407a6
5
5
  SHA512:
6
- metadata.gz: 5770f40f264b7be984fc8a1fdcf618aae2cc3565462d18c558d3fb3ffa2fb2bdcfc69adbe7d7568c8f9a9daca1e640c5a98a9ef1452f122822f450279f5285c8
7
- data.tar.gz: 1e1ab64fff7924b2b2f3664f4a1099a1bd8dbadd363b7489817c797f7fd816f0bb961c4002c643678e6f35a723247628b4db3415bdd5effe693bea68b84fd326
6
+ metadata.gz: 5b8cc279e01278ffe1b01e4b4b8f43cadde3d2ada76d54cc20cdb2ba05206766b87b41663e7361ab17d70d791ec2740ea8513c9fa08ae3c02e37da4d24297a40
7
+ data.tar.gz: cd6826b145f8a224d9dd6bc176b6d82dd1e141886336726a3c68a9d60c0e393936b9891fdde0652f95fda4d091562b96b65331df8eeadf3bba849d3756dce983
@@ -0,0 +1 @@
1
+ ENV['PROJECT_NAME'] ||= JSON.parse(Rails.root.join('package.json').read)["name"]
data/config/routes.rb CHANGED
@@ -10,7 +10,7 @@ Rails.application.routes.draw do
10
10
  end
11
11
 
12
12
  get 'robots.txt', to: 'minimum_viable_product/seo#robots', as: :robots
13
- get '/sitemap.xml.gz', to: redirect("https://#{ENV['AWS_S3_BUCKET']}.s3.amazonaws.com/nailsalons/sitemaps/sitemap.xml.gz"), as: :sitemap
13
+ get '/sitemap.xml.gz', to: redirect("https://#{ENV['AWS_S3_BUCKET']}.s3.amazonaws.com/#{ENV['PROJECT_NAME']}/sitemaps/sitemap.xml.gz"), as: :sitemap
14
14
 
15
15
  get 'analytics/optout', to: 'minimum_viable_product/analytics#optout'
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module MinimumViableProduct
2
- VERSION = "0.0.32"
2
+ VERSION = "0.0.33"
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.0.32
4
+ version: 0.0.33
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-08-17 00:00:00.000000000 Z
11
+ date: 2016-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: analytics-ruby
@@ -425,7 +425,6 @@ extensions: []
425
425
  extra_rdoc_files: []
426
426
  files:
427
427
  - MIT-LICENSE
428
- - README.rdoc
429
428
  - Rakefile
430
429
  - app/assets/javascripts/minimum_viable_product/application.js.erb
431
430
  - app/assets/javascripts/minimum_viable_product/init/controllers.js
@@ -479,6 +478,7 @@ files:
479
478
  - config/initializers/cloudinary.rb
480
479
  - config/initializers/geocoder.rb
481
480
  - config/initializers/iteration.rb
481
+ - config/initializers/project.rb
482
482
  - config/initializers/rollbar.rb
483
483
  - config/initializers/segment.rb
484
484
  - config/initializers/simple_form.rb
data/README.rdoc DELETED
@@ -1,118 +0,0 @@
1
- # Installation
2
-
3
- Install the mvp gem:
4
-
5
- ```
6
- gem install minimum_viable_product
7
- ```
8
-
9
- Then setup your project:
10
-
11
- ```
12
- mvp new PROJECT
13
- ```
14
-
15
- # Setup
16
-
17
- ## `.env`
18
-
19
- Set your `.env` file up with your own variables
20
-
21
- ```
22
- ROLLBAR_CLIENT_ACCESS_TOKEN=
23
- ROLLBAR_SERVER_ACCESS_TOKEN=
24
- SEGMENT_WRITE_KEY=
25
- SLACK_WEBHOOK_URL=
26
- SLACK_POST_USERNAME=
27
- FACEBOOK_TRACKING_ID=
28
- CANONICAL_HOST=
29
- GOOGLE_ANALYTICS_ID=
30
- HOTJAR_ID=
31
- AWS_ACCESS_KEY_ID=
32
- AWS_SECRET_ACCESS_KEY=
33
- AWS_S3_BUCKET=
34
- SPOOF_IP=true
35
- ```
36
-
37
- ## Heroku
38
-
39
- To setup deployment for heroku, first create the project:
40
-
41
- ```
42
- heroku create PROJECT
43
- ```
44
-
45
- You're probably going to want Database backups. This will let you use `rake db:import`
46
-
47
- ```
48
- heroku pg:backups capture
49
- ```
50
-
51
- You're also going to need to setup the buildpacks
52
-
53
- ```
54
- heroku buildpacks:set heroku/ruby
55
- heroku buildpacks:add --index 1 heroku/nodejs
56
- ```
57
-
58
- Add a scheduled task to update your sitemaps: `rake sitemap:create_upload_and_ping`
59
-
60
- # SEO
61
-
62
- ## Meta Properties
63
-
64
- All meta fields are controlled via the `page` object. Set attributes on this in order to get meta properties populated. This is best done at the controller level.
65
-
66
- ### Available Properties
67
-
68
- |Property|Description|Inheritance|
69
- |---|---|---|
70
- |`page.title`| | |
71
- |`page.description`| | |
72
- |`page.author`| | |
73
- |`page.og_url`| | |
74
- |`page.og_type`| | |
75
- |`page.og_title`| |`page.title`|
76
- |`page.og_description`| |`page.description`|
77
- |`page.og_image`| | |
78
- |`page.twitter_card`| | | |
79
-
80
- ## Sitemaps
81
-
82
- ### Setup
83
-
84
- Edit `config/sitemap.rb` with your own custom routes.
85
-
86
- ### Updating
87
-
88
- Run `sitemap:refresh` in production to update Bing/Google with changes to the sitemap.
89
-
90
- Put this in a `cron` task or in Heroku Scheduler.
91
-
92
- # Helpers
93
-
94
- ## Geolocation
95
-
96
- By default, Geolocation of the session will automatically happen.
97
-
98
- You can access the session's geolocation in `request.location`.
99
-
100
- To test geolocation locally, set `SPOOF_IP=true` in your `.env`.
101
-
102
- For more info see [Geocoder](https://github.com/alexreisner/geocoder).
103
-
104
- ## Bootstrap
105
-
106
- ### `row_groups_of`
107
-
108
- Makes a series of row/col `div` elements based in group count.
109
-
110
- ```
111
- <% row_groups_of(3, [1,2,3,4,5,6,7,8,9]) do |i| %>
112
- <div class="panel panel-default">
113
- <div class="panel-heading">
114
- <h2 class="text-center"><%= i %></h2>
115
- </div>
116
- </div>
117
- <% end %>
118
- ```