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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fee2931d513ea6a53859f95ed87f8da4a9f7fb2
4
- data.tar.gz: 24db5cec8f495ebf57157bf01bc50e291dff432e
3
+ metadata.gz: 8b4377dbac69b71dc2c6099a229abad951cfe7cc
4
+ data.tar.gz: 7f70f5b41b82a9be8a5a77cede609e5f31223ab7
5
5
  SHA512:
6
- metadata.gz: ec2916290cb459db9139f5178d8f95f1c94ae4d53719b566a044666d79a9a96a4d234fff4311d487ad3cdd919e04e4ad74d900f2d4789f0ad61598a74da648dd
7
- data.tar.gz: 2b3870678adb1e4d959794167f99f0d5672286403221386be551c64fe3897de6705f569876cfd43ab03d194ea243ed66d6eb0ebf8a65b14db66f417fae2ed957
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 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 ./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';
@@ -1,3 +1,3 @@
1
1
  module MinimumViableProduct
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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.2.0
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-24 00:00:00.000000000 Z
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/_reset.scss
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
@@ -1,10 +0,0 @@
1
- /*
2
- *= require_self
3
- */
4
-
5
- @import './mvp/init/_reset';
6
-
7
- @import './mvp/components/spacing';
8
- @import './mvp/components/typography';
9
-
10
- @import './mvp/bootstrap';