cssensible 0.2.0 → 0.2.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.
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1 (July 17th, 2010)
4
+
5
+ * fixed bug that made everything explode once --line-height was used
6
+
7
+
8
+ ## 0.2.0 (July 13th, 2010)
9
+
10
+ * refactored into gem
11
+
12
+
3
13
  ## 0.2 (July 8th, 2010)
4
14
 
5
15
  * command line interface actually usable
data/README.md CHANGED
@@ -3,30 +3,37 @@
3
3
  CSSensible finds sensible default values for `font-size` and `line-height` by identifying available vertical grids.
4
4
 
5
5
 
6
+ ## Installation
7
+
8
+ You can install through a gem.
9
+
10
+ $ gem install cssensible
11
+
12
+
6
13
  ## Usage
7
14
 
8
15
  You can find sensible vertical grids for one or several font-sizes.
9
16
 
10
- $ ruby bin/cssensible [options] font-size [font-size font-size ...]
17
+ $ cssensible [options] font-size [font-size font-size ...]
11
18
 
12
19
  Options:
13
20
 
14
- --line-height-ratio [EM] Minimum em-value all line-heights should have
15
- -h, --help Shop help
16
- --version Show version
21
+ -l, --line-height [EM] Minimum em-value all line-heights should have
22
+ -h, --help Shop help
23
+ --version Show version
17
24
 
18
25
 
19
26
  ## Examples
20
27
 
21
28
  # finds sensible grids including a font-size of 12px
22
- $ ruby bin/cssensible 12
29
+ $ cssensible 12
23
30
 
24
31
  # finds sensible grids including both 12px and 16px
25
- $ ruby bin/cssensible 12 16
32
+ $ cssensible 12 16
26
33
 
27
34
  # finds sensible grids including both 12px and 16px where the resulting
28
35
  # line-height for every font-size is at least 1.3em
29
- $ ruby bin/cssensible --line-height-ratio 1.3 12 16
36
+ $ cssensible --line-height 1.3 12 16
30
37
 
31
38
 
32
39
  ## Documentation
data/Rakefile CHANGED
@@ -1,3 +1 @@
1
1
  require 'rake'
2
-
3
-
@@ -8,7 +8,7 @@ module CSSensible
8
8
  end
9
9
 
10
10
  def run
11
- finder = Finder.new(@options.font_sizes_to_include, @options.line_height)
11
+ finder = Finder.new(@options.font_sizes_to_include, EmValue.new(@options.line_height))
12
12
  vertical_grids = finder.find
13
13
 
14
14
  if vertical_grids
@@ -1,4 +1,4 @@
1
1
  module CSSensible
2
2
  # The current version of CSSensible.
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cssensible
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dominik Habersack
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-13 00:00:00 +12:00
18
+ date: 2010-07-17 00:00:00 +12:00
19
19
  default_executable:
20
20
  dependencies: []
21
21