minimum_viable_product 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/mvp/application.js.erb +55 -0
- data/app/assets/javascripts/mvp.js.erb +1 -55
- data/app/assets/stylesheets/mvp/application.scss +7 -4
- data/app/assets/stylesheets/mvp/{bootstrap.scss → init/bootstrap.scss} +0 -0
- data/app/assets/stylesheets/mvp/init/{_reset.scss → reset.scss} +0 -0
- data/lib/minimum_viable_product/version.rb +1 -1
- metadata +5 -6
- data/app/assets/javascripts/mvp/application.js +0 -0
- data/app/assets/stylesheets/mvp.scss +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b4377dbac69b71dc2c6099a229abad951cfe7cc
|
4
|
+
data.tar.gz: 7f70f5b41b82a9be8a5a77cede609e5f31223ab7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32805b4f8d96d1c1c3c7f6903eb70b0bfcc65ab21e5a15e884d0740d482035e9ad1557507989c3865efc08aa1c095f146a0e5b71819f7ba0c6e93d2fbe22749f
|
7
|
+
data.tar.gz: f73cfe3d6c82cbfae3a2460ed102cecbc53c0b36482cbc98a6b33ffaa14ecb3f63bcf7a8ae1ce9bf0ca48d07c61c66ecb807c279c53c475f293bcb409bcc50cb
|
@@ -0,0 +1,55 @@
|
|
1
|
+
//= require jquery
|
2
|
+
//= require jquery_ujs
|
3
|
+
//= require jquery.cookie
|
4
|
+
//= require lodash
|
5
|
+
//= require is
|
6
|
+
//= require bootstrap
|
7
|
+
//= require rails.validations
|
8
|
+
//= require rails.validations.simple_form
|
9
|
+
//
|
10
|
+
//= require_tree ./init
|
11
|
+
//
|
12
|
+
//= require_self
|
13
|
+
|
14
|
+
var is = require('is')
|
15
|
+
var _ = require('lodash')
|
16
|
+
|
17
|
+
track = function(event, attributes, fn){
|
18
|
+
console.log("Track: " + event + " " + JSON.stringify(attributes))
|
19
|
+
|
20
|
+
if (is.fn(attributes)) fn = attributes, attributes = null;
|
21
|
+
if (is.undefined(attributes)) { attributes = {} }
|
22
|
+
if ($.cookie('invisible') == "true") {
|
23
|
+
if (!is.undefined(fn)) { fn() }
|
24
|
+
return
|
25
|
+
}
|
26
|
+
|
27
|
+
if (typeof(analytics) == 'undefined') {
|
28
|
+
return
|
29
|
+
}
|
30
|
+
|
31
|
+
attrs = _.extend({
|
32
|
+
iteration: '<%= MVP::Iteration.version %>'
|
33
|
+
}, attributes)
|
34
|
+
|
35
|
+
analytics.track(event, attrs, fn)
|
36
|
+
}
|
37
|
+
|
38
|
+
setupAutomaticTracing = function(){
|
39
|
+
_.each(arguments, function(e){
|
40
|
+
switch (e.toLowerCase()) {
|
41
|
+
case 'buttons':
|
42
|
+
$('.btn').on('click', function(){
|
43
|
+
window.track("Button Clicked", { name: $(this).text() || $(this).attr('value') })
|
44
|
+
})
|
45
|
+
break;
|
46
|
+
case 'links':
|
47
|
+
$('a:not(.btn)').on('click', function(){
|
48
|
+
window.track("Link Clicked", { name: ($(this).text() || $(this).attr('value')) })
|
49
|
+
})
|
50
|
+
break;
|
51
|
+
}
|
52
|
+
})
|
53
|
+
}
|
54
|
+
|
55
|
+
window.track = track;
|
@@ -1,55 +1 @@
|
|
1
|
-
//= require
|
2
|
-
//= require jquery_ujs
|
3
|
-
//= require jquery.cookie
|
4
|
-
//= require lodash
|
5
|
-
//= require is
|
6
|
-
//= require bootstrap
|
7
|
-
//= require rails.validations
|
8
|
-
//= require rails.validations.simple_form
|
9
|
-
//
|
10
|
-
//= require_tree ./mvp/init
|
11
|
-
//
|
12
|
-
//= require_self
|
13
|
-
|
14
|
-
var is = require('is')
|
15
|
-
var _ = require('lodash')
|
16
|
-
|
17
|
-
track = function(event, attributes, fn){
|
18
|
-
console.log("Track: " + event + " " + JSON.stringify(attributes))
|
19
|
-
|
20
|
-
if (is.fn(attributes)) fn = attributes, attributes = null;
|
21
|
-
if (is.undefined(attributes)) { attributes = {} }
|
22
|
-
if ($.cookie('invisible') == "true") {
|
23
|
-
if (!is.undefined(fn)) { fn() }
|
24
|
-
return
|
25
|
-
}
|
26
|
-
|
27
|
-
if (typeof(analytics) == 'undefined') {
|
28
|
-
return
|
29
|
-
}
|
30
|
-
|
31
|
-
attrs = _.extend({
|
32
|
-
iteration: '<%= MVP::Iteration.version %>'
|
33
|
-
}, attributes)
|
34
|
-
|
35
|
-
analytics.track(event, attrs, fn)
|
36
|
-
}
|
37
|
-
|
38
|
-
setupAutomaticTracing = function(){
|
39
|
-
_.each(arguments, function(e){
|
40
|
-
switch (e.toLowerCase()) {
|
41
|
-
case 'buttons':
|
42
|
-
$('.btn').on('click', function(){
|
43
|
-
window.track("Button Clicked", { name: $(this).text() || $(this).attr('value') })
|
44
|
-
})
|
45
|
-
break;
|
46
|
-
case 'links':
|
47
|
-
$('a:not(.btn)').on('click', function(){
|
48
|
-
window.track("Link Clicked", { name: ($(this).text() || $(this).attr('value')) })
|
49
|
-
})
|
50
|
-
break;
|
51
|
-
}
|
52
|
-
})
|
53
|
-
}
|
54
|
-
|
55
|
-
window.track = track;
|
1
|
+
//= require mvp/application
|
@@ -1,7 +1,10 @@
|
|
1
1
|
/*
|
2
|
-
*= require_tree ./mvp/init
|
3
|
-
*= require_tree ./mvp/components
|
4
|
-
*= require ./mvp/bootstrap
|
5
|
-
*
|
6
2
|
*= require_self
|
7
3
|
*/
|
4
|
+
|
5
|
+
@import './mvp/init/reset';
|
6
|
+
|
7
|
+
@import './mvp/components/spacing';
|
8
|
+
@import './mvp/components/typography';
|
9
|
+
|
10
|
+
@import './mvp/init/bootstrap';
|
File without changes
|
File without changes
|
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.2.
|
4
|
+
version: 0.2.1
|
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-
|
11
|
+
date: 2016-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: analytics-ruby
|
@@ -427,16 +427,15 @@ files:
|
|
427
427
|
- MIT-LICENSE
|
428
428
|
- Rakefile
|
429
429
|
- app/assets/javascripts/mvp.js.erb
|
430
|
-
- app/assets/javascripts/mvp/application.js
|
430
|
+
- app/assets/javascripts/mvp/application.js.erb
|
431
431
|
- app/assets/javascripts/mvp/init/controllers.js
|
432
432
|
- app/assets/javascripts/mvp/init/forms.js
|
433
433
|
- app/assets/javascripts/mvp/init/modals.js
|
434
|
-
- app/assets/stylesheets/mvp.scss
|
435
434
|
- app/assets/stylesheets/mvp/application.scss
|
436
|
-
- app/assets/stylesheets/mvp/bootstrap.scss
|
437
435
|
- app/assets/stylesheets/mvp/components/spacing.scss
|
438
436
|
- app/assets/stylesheets/mvp/components/typography.scss
|
439
|
-
- app/assets/stylesheets/mvp/init/
|
437
|
+
- app/assets/stylesheets/mvp/init/bootstrap.scss
|
438
|
+
- app/assets/stylesheets/mvp/init/reset.scss
|
440
439
|
- app/controllers/concerns/minimum_viable_product/analytics_concern.rb
|
441
440
|
- app/controllers/concerns/minimum_viable_product/seo_concern.rb
|
442
441
|
- app/controllers/concerns/minimum_viable_product/session_concern.rb
|
File without changes
|