csspress 0.0.2 → 0.0.3

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.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.3 2008-05-18
2
+
3
+ * Fixed -h flag bug
4
+
1
5
  == 0.0.2 2008-05-16
2
6
 
3
7
  * Added the stats rake task
data/bin/css CHANGED
@@ -84,7 +84,7 @@ class App #:nodoc: all
84
84
 
85
85
  # Flag ---------------------> Behaviour
86
86
  opts.on('-v', '--version') { output_version ; exit 0 }
87
- opts.on('-h', '--help') { output_help }
87
+ opts.on('-h', '--help') { output_help; exit 0 }
88
88
  opts.on('-s', '--stats') { @options.stats = true }
89
89
 
90
90
  # Parse the ARGS for options and return false if this fails
@@ -104,7 +104,12 @@ class App #:nodoc: all
104
104
 
105
105
  def output_help
106
106
  output_version
107
- # FIXME: Having to do this manually at the moment
107
+ output_usage
108
+ puts "Options:\n" +
109
+ " -h, --help Displays help message\n" +
110
+ " -s, --stats Output compression information\n" +
111
+ " -v, --version Display the version\n\n"
112
+ #FIXME: Having to do this manually at the moment
108
113
  # because RubyGems breaks this
109
114
  #RDoc::usage() #exits app
110
115
  #output_usage
@@ -114,7 +119,7 @@ class App #:nodoc: all
114
119
  # FIXME: Having to do this manually at the moment
115
120
  # because RubyGems breaks this
116
121
  # RDoc::usage('usage') # gets usage from comments above
117
- puts "\nUsage\n" +
122
+ puts "\nUsage:\n" +
118
123
  " css [options] source_file\n" +
119
124
  "\n" +
120
125
  "For help use:\n" +
data/config/hoe.rb CHANGED
@@ -35,7 +35,7 @@ REV = nil
35
35
  # UNCOMMENT IF REQUIRED:
36
36
  # REV = YAML.load(`svn info`)['Revision']
37
37
  VERS = Csspress::VERSION::STRING + (REV ? ".#{REV}" : "")
38
- RDOC_OPTS = ['--quiet', '--title', 'csspress documentation',
38
+ RDOC_OPTS = ['--quiet', '--title', 'CSSpress Documentation',
39
39
  "--opname", "index.html",
40
40
  "--line-numbers",
41
41
  "--main", "README",
@@ -13,7 +13,7 @@ module Csspress #:nodoc:
13
13
  module VERSION #:nodoc:
14
14
  MAJOR = 0
15
15
  MINOR = 0
16
- TINY = 2
16
+ TINY = 3
17
17
 
18
18
  STRING = [MAJOR, MINOR, TINY].join('.')
19
19
  end
@@ -1,11 +1,5 @@
1
1
  require File.dirname(__FILE__) + '/spec_helper.rb'
2
2
 
3
- # Time to add your specs!
4
- # http://rspec.info/
5
- describe "Place your specs here" do
3
+ describe "Requres" do
6
4
 
7
- it "find this spec in spec directory" do
8
- violated "Be sure to write your specs"
9
- end
10
-
11
- end
5
+ end
data/tasks/custom.rake CHANGED
@@ -1,11 +1,13 @@
1
1
  # This is stolen from highline-1.4.0.gem by James Edward Gray II
2
- #
2
+ # It is a little rake task to output SLOC and test SLOC ala Rails
3
3
  desc "Show library's code statistics"
4
4
  task :stats do
5
5
  begin
6
6
  require 'code_statistics'
7
7
  CodeStatistics.new( ["CSSpress", "lib"],
8
- ["RSpec", "spec"] ).to_s
8
+ ["Units", "spec"] ).to_s
9
+ # need to put units and not rspec because CodeStatistics
10
+ # only has a limited number of set test types it recognises
9
11
  rescue LoadError
10
12
  puts "Could not load code_statistics"
11
13
  puts "Installing Rails gem may fix this."
data/website/index.html CHANGED
@@ -4,17 +4,23 @@
4
4
  <head>
5
5
  <link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <title>CSSpress - CSS optimizer</title>
7
+ <title>CSSpress - CSS optimization from the command line</title>
8
8
  </head>
9
9
  <body>
10
10
  <div id="wrap">
11
- <p id="intro">Coming Soon!</p>
12
- <p>In the mean time take a look at:</p>
11
+ <h1><span>{</span>CSSpress<span>}</span></h1>
12
+
13
+ <p id="intro" class="box">Shiny, Spangly Site Coming Soon!</p>
14
+
15
+ <p id="links">In the mean time take a look at:</p>
13
16
  <ul>
14
- <li><a href="http://rubyforge.org/projects/csspress/">The RubyForge page for CSSpress</a></li>
15
- <li><a href="http://csspress.rubyforge.org/rdoc/">The RDoc for CSSpress</a></li>
17
+ <li><a href="http://rubyforge.org/projects/csspress/">The RubyForge page for CSSpress</a></li>
18
+ <li><a href="http://csspress.rubyforge.org/rdoc/">The RDoc for CSSpress</a></li>
16
19
  </ul>
17
- <p><a href="http://moose56.com" title="David Madden">moose<sup>56</sup></a></p>
20
+
21
+ <p id="install" class="box">And be sure to: <code class="box">sudo gem install csspress</code></p>
22
+
23
+ <p id="footer"><a href="http://moose56.com" title="David Madden">moose<sup>56</sup></a></p>
18
24
  </div>
19
25
  </body>
20
26
  </html>
data/website/index.txt CHANGED
@@ -1,8 +1,14 @@
1
1
 
2
- <p id="intro">Coming Soon!</p>
3
- <p>In the mean time take a look at:</p>
2
+ <h1><span>{</span>CSSpress<span>}</span></h1>
3
+
4
+ <p id="intro" class="box">Shiny, Spangly Site Coming Soon!</p>
5
+
6
+ <p id="links">In the mean time take a look at:</p>
4
7
  <ul>
5
- <li><a href="http://rubyforge.org/projects/csspress/">The RubyForge page for CSSpress</a></li>
6
- <li><a href="http://csspress.rubyforge.org/rdoc/">The RDoc for CSSpress</a></li>
8
+ <li><a href="http://rubyforge.org/projects/csspress/">The RubyForge page for CSSpress</a></li>
9
+ <li><a href="http://csspress.rubyforge.org/rdoc/">The RDoc for CSSpress</a></li>
7
10
  </ul>
8
- <p><a href="http://moose56.com" title="David Madden">moose<sup>56</sup></a></p>
11
+
12
+ <p id="install" class="box">And be sure to: <code class="box">sudo gem install csspress</code></p>
13
+
14
+ <p id="footer"><a href="http://moose56.com" title="David Madden">moose<sup>56</sup></a></p>
@@ -1,29 +1,62 @@
1
- body { min-width: 700px; padding: 0; margin: 0; text-align: center; }
1
+ body { min-width: 700px; padding: 0; margin: 0; text-align: center; font-family: "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif; color: #494849; }
2
2
  #wrap { text-align: left; margin: 0 auto; width: 700px; }
3
3
 
4
- p {padding: 0; margin: 0;}
4
+ h1 { font-family: "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif; border-bottom: 2px solid #383738; }
5
5
 
6
- p#intro {
6
+ h1 span { font-size: 130%; color: #ffb100;}
7
+ p { padding: 0; margin: 0; }
8
+
9
+ .box {
7
10
  margin-top: 20px;
8
- font: 1.5em Verdana, "Lucida Grande", Lucida, sans-serif;
9
- color: #494849;
10
11
  margin-bottom: 20px;
12
+ border: 1px solid #d3d3d3;
13
+ padding: 5px;
14
+ background: #f6f6f6;
11
15
  }
12
- p {
13
- color: #7d7a7a;
14
- font: 1em "Lucida Grande", Verdana, Lucida, sans-serif;
16
+
17
+ p#links {
18
+ border: 1px solid #d3d3d3;
19
+ padding: 5px;
20
+ background: #f6f6f6;
21
+ border-bottom: none;
15
22
  }
16
23
  ul {
17
- color: #7d7a7a;
24
+ list-style: none;
25
+ font-size: 90%;
26
+ border: 1px solid #d3d3d3;
27
+ padding: 5px;
28
+ background: #f6f6f6;
29
+ margin-top: 0;
30
+ margin-bottom: 0;
31
+ border-top: none;
32
+ }
33
+ li {
34
+ padding-bottom: 3px;
18
35
  }
19
36
  li a {
20
- color: #7d7a7a;
21
- font-family: "Lucida Grande", Verdana, Lucida, sans-serif;
22
- line-height: .7em;
23
- font-style: normal;
24
- font-weight: normal;
37
+ color: #79787a;
38
+
39
+ }
40
+ li a:hover {
41
+ color: #ffb100;
25
42
  }
26
- p a {
43
+
44
+ p code.box {
45
+ display: block;
46
+ color: #00f50c;
47
+ background: #000;
48
+ margin-bottom: 10px;
49
+ margin-top: 10px;
50
+ font: 110% mono, "Courier New", Courier;
51
+ }
52
+ p#footer {
53
+ text-align: right;
54
+ }
55
+ p#footer a {
56
+ text-decoration: none;
27
57
  font: 9px Verdana, "Lucida Grande", Lucida, sans-serif;
28
58
  color: #ffb100;
29
- }
59
+ }
60
+ p#footer a:hover {
61
+ text-decoration: underline;
62
+ }
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <title>CSSpress - CSS optimizer</title>
7
+ <title>CSSpress - CSS optimization from the command line</title>
8
8
  </head>
9
9
  <body>
10
10
  <div id="wrap">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csspress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Madden
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-16 00:00:00 +01:00
12
+ date: 2008-05-18 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15