flowtype-rails 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flowtype/rails/version.rb +1 -1
- data/vendor/assets/javascripts/flowtype.js +7 -18
- metadata +25 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 668e3082170303fd4bd6463b0d32db6df269d34a
|
4
|
+
data.tar.gz: c20e47461983a6a4a442950d6c0028c1c647dd6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a50929a206f26ac23c8edf0a31c1553068ff3bae786fdd97d82c48405fe6c5cede16312d56f7140505ca3a5e78a5e905596268f8de259646d8319042cc53233
|
7
|
+
data.tar.gz: a8b00152e68b0211e874f244de0a92b8e76f535e6a496d6be4773f2b5abdbf99371c6f4e6b4bff8102ff594fa78777b4c553bd112515e30489909b90f599fc8c
|
@@ -1,8 +1,6 @@
|
|
1
1
|
/*
|
2
|
-
*
|
3
|
-
*
|
4
|
-
* FlowType.JS 1.0
|
5
|
-
* Copyright (c) 2013, Simple Focus http://simplefocus.com/
|
2
|
+
* FlowType.JS v1.1
|
3
|
+
* Copyright 2013-2014, Simple Focus http://simplefocus.com/
|
6
4
|
*
|
7
5
|
* FlowType.JS by Simple Focus (http://simplefocus.com/)
|
8
6
|
* is licensed under the MIT License. Read a copy of the
|
@@ -22,8 +20,7 @@
|
|
22
20
|
minimum : 1,
|
23
21
|
maxFont : 9999,
|
24
22
|
minFont : 1,
|
25
|
-
fontRatio : 35
|
26
|
-
lineRatio : 1.45
|
23
|
+
fontRatio : 35
|
27
24
|
}, options),
|
28
25
|
|
29
26
|
// Do the magic math
|
@@ -34,26 +31,18 @@
|
|
34
31
|
width = elw > settings.maximum ? settings.maximum : elw < settings.minimum ? settings.minimum : elw,
|
35
32
|
fontBase = width / settings.fontRatio,
|
36
33
|
fontSize = fontBase > settings.maxFont ? settings.maxFont : fontBase < settings.minFont ? settings.minFont : fontBase;
|
37
|
-
|
38
|
-
$el.css({
|
39
|
-
'font-size' : fontSize + 'px',
|
40
|
-
'line-height' : fontSize * settings.lineRatio + 'px'
|
41
|
-
});
|
34
|
+
$el.css('font-size', fontSize + 'px');
|
42
35
|
};
|
43
36
|
|
44
37
|
// Make the magic visible
|
45
38
|
// ======================
|
46
39
|
return this.each(function() {
|
47
|
-
|
48
40
|
// Context for resize callback
|
49
41
|
var that = this;
|
50
|
-
|
51
|
-
// Set changes on load
|
52
|
-
changes(this);
|
53
|
-
|
54
42
|
// Make changes upon resize
|
55
43
|
$(window).resize(function(){changes(that);});
|
44
|
+
// Set changes on load
|
45
|
+
changes(this);
|
56
46
|
});
|
57
47
|
};
|
58
|
-
}(jQuery));
|
59
|
-
|
48
|
+
}(jQuery));
|
metadata
CHANGED
@@ -1,55 +1,67 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flowtype-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sijo k george
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: '3.1'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.1'
|
30
|
+
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: '3.1'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: bundler
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - ~>
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.3'
|
40
|
+
- - ">="
|
32
41
|
- !ruby/object:Gem::Version
|
33
42
|
version: '1.3'
|
34
43
|
type: :development
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
|
-
- - ~>
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '1.3'
|
50
|
+
- - ">="
|
39
51
|
- !ruby/object:Gem::Version
|
40
52
|
version: '1.3'
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
54
|
name: rake
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
45
|
-
- -
|
57
|
+
- - "~>"
|
46
58
|
- !ruby/object:Gem::Version
|
47
59
|
version: '0'
|
48
60
|
type: :development
|
49
61
|
prerelease: false
|
50
62
|
version_requirements: !ruby/object:Gem::Requirement
|
51
63
|
requirements:
|
52
|
-
- -
|
64
|
+
- - "~>"
|
53
65
|
- !ruby/object:Gem::Version
|
54
66
|
version: '0'
|
55
67
|
description: |2
|
@@ -61,11 +73,11 @@ executables: []
|
|
61
73
|
extensions: []
|
62
74
|
extra_rdoc_files: []
|
63
75
|
files:
|
76
|
+
- MIT-LICENSE
|
77
|
+
- README.md
|
64
78
|
- lib/flowtype/rails.rb
|
65
79
|
- lib/flowtype/rails/version.rb
|
66
80
|
- vendor/assets/javascripts/flowtype.js
|
67
|
-
- MIT-LICENSE
|
68
|
-
- README.md
|
69
81
|
homepage: https://github.com/sijokg/flowtype-rails
|
70
82
|
licenses:
|
71
83
|
- MIT
|
@@ -76,17 +88,17 @@ require_paths:
|
|
76
88
|
- lib
|
77
89
|
required_ruby_version: !ruby/object:Gem::Requirement
|
78
90
|
requirements:
|
79
|
-
- -
|
91
|
+
- - ">="
|
80
92
|
- !ruby/object:Gem::Version
|
81
93
|
version: '0'
|
82
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
95
|
requirements:
|
84
|
-
- -
|
96
|
+
- - ">="
|
85
97
|
- !ruby/object:Gem::Version
|
86
98
|
version: '0'
|
87
99
|
requirements: []
|
88
100
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.2.2
|
90
102
|
signing_key:
|
91
103
|
specification_version: 4
|
92
104
|
summary: flowtype.js javascript library in rails
|