twitter_bootstrap_builder 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/twitter_bootstrap_builder/builders/fieldset_builder.rb +9 -3
- data/lib/twitter_bootstrap_builder/builders/nav_container_builder.rb +4 -0
- data/lib/twitter_bootstrap_builder/builders/nav_list_builder.rb +5 -1
- data/lib/twitter_bootstrap_builder/builders/tab_builder.rb +23 -0
- data/lib/twitter_bootstrap_builder/helpers/commons_helper.rb +24 -0
- data/lib/twitter_bootstrap_builder/version.rb +1 -1
- data/lib/twitter_bootstrap_builder.rb +1 -0
- data/vendor/assets/javascripts/bootstrap.js +1156 -1254
- data/vendor/assets/javascripts/twitter_bootstrap_builder.js +23 -0
- data/vendor/assets/stylesheets/twitter_bootstrap_builder.css +4 -0
- metadata +8 -6
@@ -0,0 +1,23 @@
|
|
1
|
+
String.prototype.startsWith = function (prefix, ignoreCase) {
|
2
|
+
var _prefix = prefix.source ? prefix.source : prefix.escapeRegExp();
|
3
|
+
return this.match(new RegExp("^" + _prefix, ignoreCase ? 'i' : ''));
|
4
|
+
};
|
5
|
+
|
6
|
+
String.prototype.endsWith = function (suffix, ignoreCase) {
|
7
|
+
var _suffix = suffix.source ? suffix.source : suffix.escapeRegExp();
|
8
|
+
return this.match(new RegExp(_suffix + "$", ignoreCase ? 'i' : ''));
|
9
|
+
};
|
10
|
+
|
11
|
+
String.prototype.escapeRegExp = function() {
|
12
|
+
return this.replace(/[-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
13
|
+
};
|
14
|
+
|
15
|
+
String.prototype.toRegExp = function(options) {
|
16
|
+
return new RegExp(this.escapeRegExp(), options);
|
17
|
+
};
|
18
|
+
|
19
|
+
Array.prototype.uniq = function () {
|
20
|
+
return this.filter(function (itm, i, a) {
|
21
|
+
return i == a.indexOf(itm);
|
22
|
+
});
|
23
|
+
};
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter_bootstrap_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: twitter_bootstrap_markup
|
16
|
-
requirement: &
|
16
|
+
requirement: &28123860 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *28123860
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: kaminari
|
27
|
-
requirement: &
|
27
|
+
requirement: &28123608 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *28123608
|
36
36
|
description: Set of helpers to extend Rails for implement Twitter Bootstrap markup
|
37
37
|
email:
|
38
38
|
- gabynaiman@gmail.com
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- lib/twitter_bootstrap_builder/builders/nav_container_builder.rb
|
65
65
|
- lib/twitter_bootstrap_builder/builders/nav_list_builder.rb
|
66
66
|
- lib/twitter_bootstrap_builder/builders/submit_button_builder.rb
|
67
|
+
- lib/twitter_bootstrap_builder/builders/tab_builder.rb
|
67
68
|
- lib/twitter_bootstrap_builder/builders/table_builder.rb
|
68
69
|
- lib/twitter_bootstrap_builder/engine.rb
|
69
70
|
- lib/twitter_bootstrap_builder/helpers/buttons_helper.rb
|
@@ -74,6 +75,7 @@ files:
|
|
74
75
|
- vendor/assets/images/glyphicons-halflings-white.png
|
75
76
|
- vendor/assets/images/glyphicons-halflings.png
|
76
77
|
- vendor/assets/javascripts/bootstrap.js
|
78
|
+
- vendor/assets/javascripts/twitter_bootstrap_builder.js
|
77
79
|
- vendor/assets/stylesheets/bootstrap.css
|
78
80
|
- vendor/assets/stylesheets/twitter_bootstrap_builder.css
|
79
81
|
homepage: https://github.com/gabynaiman/twitter_bootstrap_builder
|