typey 1.0.0.alpha.5 → 1.0.0.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ // Retrieve a font weight.
2
+ //
3
+ // @param string $weight
4
+ // A weight from the $font-weight map.
5
+ //
6
+ // @return string
7
+ // The selected font-weight.
8
+ @function weight($weight) {
9
+ @if type-of($weight) == 'string' {
10
+ @if map-has-key($font-weight, $weight) {
11
+ @return map-get($font-weight, $weight);
12
+ }
13
+ @else {
14
+ @error "'#{$weight}' not found in $font-weight map.";
15
+ }
16
+ }
17
+ @else {
18
+ @error "Weight specified for weight() is not a string.";
19
+ }
20
+ }
21
+
22
+ // (Depreciated) Retrieve a font weight.
23
+ //
24
+ // @param string $weight
25
+ // A weight from the $font-weight map.
26
+ //
27
+ // @return string
28
+ // The selected font-weight.
29
+ @function font-weight($weight) {
30
+ @warn "font-weight() is depreciated. Please use weight() instead.";
31
+ @return weight($weight);
32
+ }
data/typey.gemspec CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.homepage = 'http://github.com/jptaranto/typey'
10
10
  spec.rubyforge_project =
11
11
 
12
- spec.version = '1.0.0.alpha.5'
13
- spec.date = '2015-04-22'
12
+ spec.version = '1.0.0.beta.1'
13
+ spec.date = '2015-06-17'
14
14
  spec.licenses = ['GPL-2']
15
15
 
16
16
  spec.authors = ['Jack Taranto']
@@ -24,4 +24,4 @@ Gem::Specification.new do |spec|
24
24
  README.md
25
25
  typey.gemspec
26
26
  )
27
- end
27
+ end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typey
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.5
4
+ version: 1.0.0.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Taranto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-22 00:00:00.000000000 Z
11
+ date: 2015-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.3'
27
27
  description: Tools to help you manage font sizing and css units.
@@ -30,19 +30,20 @@ executables: []
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
+ - LICENSE.txt
34
+ - README.md
33
35
  - lib/typey.rb
34
36
  - stylesheets/_typey.scss
35
37
  - stylesheets/config.codekit
36
38
  - stylesheets/typey/_defaults.scss
37
39
  - stylesheets/typey/_font-size.scss
38
40
  - stylesheets/typey/_font-stacks.scss
39
- - stylesheets/typey/_font-weight.scss
40
41
  - stylesheets/typey/_helpers.scss
41
42
  - stylesheets/typey/_line-height.scss
42
43
  - stylesheets/typey/_margin.scss
43
44
  - stylesheets/typey/_padding.scss
44
- - LICENSE.txt
45
- - README.md
45
+ - stylesheets/typey/_type-layout.scss
46
+ - stylesheets/typey/_weight.scss
46
47
  - typey.gemspec
47
48
  homepage: http://github.com/jptaranto/typey
48
49
  licenses:
@@ -54,17 +55,17 @@ require_paths:
54
55
  - lib
55
56
  required_ruby_version: !ruby/object:Gem::Requirement
56
57
  requirements:
57
- - - '>='
58
+ - - ">="
58
59
  - !ruby/object:Gem::Version
59
60
  version: '0'
60
61
  required_rubygems_version: !ruby/object:Gem::Requirement
61
62
  requirements:
62
- - - '>'
63
+ - - ">"
63
64
  - !ruby/object:Gem::Version
64
65
  version: 1.3.1
65
66
  requirements: []
66
- rubyforge_project: 1.0.0.alpha.5
67
- rubygems_version: 2.0.14
67
+ rubyforge_project: 1.0.0.beta.1
68
+ rubygems_version: 2.4.6
68
69
  signing_key:
69
70
  specification_version: 4
70
71
  summary: Do typography better.
@@ -1,12 +0,0 @@
1
- // Retrieve a font weight.
2
- //
3
- // @param string $weight
4
- // A weight from the $font-weight map.
5
- //
6
- // @return string
7
- // The selected font-weight.
8
- @function font-weight($weight) {
9
- @if type-of($weight) == 'string' {
10
- @return map-get($font-weight, $weight);
11
- }
12
- }