flotilla_js_rails 0.1.3 → 1.0.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: 849dfb915902e26e9b6d483b4e605cd3d7c36ea8
4
- data.tar.gz: 903dd3a8fc7473085a94aba99ea9fbecf23476ec
3
+ metadata.gz: 5b1f7a6cd4cd533e85cef01d8b93e59004d4bcdb
4
+ data.tar.gz: b4881a88caee0add661369870a6f2c92f85056b0
5
5
  SHA512:
6
- metadata.gz: 00e88825c76fc08cd059e266332b1d099293efab0acf3c6198ea5e8ecb9e0429f851b6c829e4b3bd44d390e92d27720e260cb9f3230bb19a0c4cfa83a5f08f0e
7
- data.tar.gz: f8f145eeb1f1671434389948da01f203e182dec2c1d6f71e1be568e0f77e60bbab758a4d4a1b2c0fdadc884309dba9e98578a88dc9c544a832a8fc6e86c0f300
6
+ metadata.gz: 1f25998d7804510c3ac9dea5e08cc70e6c6b293ef83d696323d5232293ca7b956c6bbf728bcb2ae4356f3e04016f3602119f0d03196e2dcdc8204b2443c33825
7
+ data.tar.gz: 04efd13a478e7960550a5b469695660f50c6e9da8e87c7bbd21f0a558ee626b44a2409f0402493894dfc01a0f4f88e4da339174cf973aaa7c4ef83fc8408b0ad
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Richard Tan
3
+ Copyright (c) 2016 PwC Ventures, PwC
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # Flotilla-JS-Rails
1
+ # Flotilla_JS_Rails
2
2
 
3
3
  Flotilla JS - Lightweight tab system.
4
4
 
5
- ![image](https://cloud.githubusercontent.com/assets/4082442/13240571/af6b460a-da37-11e5-8f96-39779746dc86.png)
5
+ ![image](http://g.recordit.co/dLesUeyi5i.gif)
6
6
 
7
7
  ## Etymology
8
8
 
@@ -13,7 +13,7 @@ In the same way content is made up of several tabs, a flotilla is a fleet made u
13
13
  Add this line to your application's Gemfile:
14
14
 
15
15
  ```ruby
16
- gem 'flotilla-js-rails'
16
+ gem 'flotilla_js_rails'
17
17
  ```
18
18
 
19
19
  And then execute:
@@ -53,12 +53,25 @@ application.js
53
53
  </div>
54
54
  ```
55
55
 
56
- ## Licence and Legals
56
+ #### Overriding colors
57
57
 
58
- PwC Shipyard is an alias of a sub-division of PwC Australia.
58
+ Create some sass variables to overwrite the gem defaults. See below:
59
+ ```scss
60
+ $flotilla-active-background-color: white;
61
+ $flotilla-active-border-color: #ff7c14;
62
+ $flotilla-border-color: #e4e4e4;
63
+ ```
64
+
65
+ ## Contributing
66
+
67
+ If you'd like to contribute a feature or bug fix, please post a pull request and describe what you've done and why you've done it.
68
+
69
+ ## Licence & Legals
70
+
71
+ The contents of this repository are copyright © 2016 PwC. All rights are reserved. PwC refers to the Australian member firm and may sometimes refer to the PwC network. Each member firm is a separate legal entity. Please see www.pwc.com/structure for further details.
59
72
 
60
- The contents of this repository are Copyright © 2016 PwC. All rights reserved. PwC refers to the PwC network and/or one or more of its member firms, each of which is a separate legal entity.
73
+ It is open source software and may be redistributed under the MIT-License terms (the licence file can be found in the root directory of this repository).
61
74
 
62
- It is free software, and may be redistributed under the terms specified in the LICENSE file.
75
+ ## About PwC Ventures
63
76
 
64
- The gem is still under active development and although it is publicly available, we won't be held responsible if you install it and something goes wrong. Use at your own risk.
77
+ We're hiring! Contact our Group Product Manager at [ben@pwcventures.com](ben@pwcventures.com) to find out more.
@@ -1,3 +1,3 @@
1
1
  module FlotillaJsRails
2
- VERSION = "0.1.3"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -4,22 +4,19 @@
4
4
  // the .Flotilla-tabs
5
5
  // ============================================================================
6
6
 
7
- var N = N || {};
8
-
9
- N.tabs = {};
7
+ var Flotilla = {};
10
8
 
11
9
  (function(N, $){ //start IIFE
12
10
 
13
- N.tabs.assignDataIDs = function(){
11
+ Flotilla.assignDataIDs = function(){
14
12
  this.$tabsTab.each(function(i){
15
13
  $(this).attr('data-id', i);
16
14
  $('.Flotilla-content:eq('+i+')').attr('data-id', i);
17
15
  });
18
16
  };
19
17
 
20
- N.tabs.eventHandlers = function(){
18
+ Flotilla.eventHandlers = function(){
21
19
  this.$tabsTab.on('click', function(){
22
- console.log('yeap');
23
20
  var id = $(this).attr('data-id');
24
21
  $(this).siblings('.Flotilla-tab').removeClass('active');
25
22
  $(this).addClass('active');
@@ -28,7 +25,7 @@ N.tabs.eventHandlers = function(){
28
25
  });
29
26
  };
30
27
 
31
- N.tabs.init = function(){
28
+ Flotilla.init = function(){
32
29
  this.$tabs = $('.Flotilla-tab-wrap');
33
30
  if( this.$tabs.length ){ //check if tabs exist on page
34
31
  this.$tabsTab = $('.Flotilla-tab');
@@ -42,5 +39,5 @@ N.tabs.init = function(){
42
39
  }(N, $)); //end IIFE
43
40
 
44
41
  $(document).ready(function(){
45
- N.tabs.init();
42
+ Flotilla.init();
46
43
  });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flotilla_js_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Tan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-26 00:00:00.000000000 Z
11
+ date: 2016-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  requirements: []
80
80
  rubyforge_project:
81
- rubygems_version: 2.4.5.1
81
+ rubygems_version: 2.6.4
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: This gem exposes the SCSS and JS for Flotilla JS