public
Description: Generate CSS using Ruby with Markaby/Builder style syntax
Homepage: http://cassandra.rubyforge.org
Clone URL: git://github.com/automatthew/cassandra.git
cassandra / cassandra.gemspec
100644 134 lines (126 sloc) 4.094 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Gem::Specification for Cassandra-0.2.4
# Originally generated by Echoe
 
Gem::Specification.new do |s|
  s.name = %q{cassandra}
  s.version = "0.2.4"
 
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
  s.authors = ["Matthew King"]
  s.date = %q{2008-09-30}
  s.description = %q{Generates CSS using Ruby, like Markaby}
  s.email = %q{automatthew@gmail.com}
  s.extra_rdoc_files = ["lib/cassandra.rb", "lib/properties.rb", "lib/tags.rb", "README.rdoc"]
  s.files = ["cassandra.gemspec", "lib/cassandra.rb", "lib/properties.rb", "lib/tags.rb", "Manifest", "misc/dan.cssy", "misc/dan.rb", "misc/meyer_reset.css", "README.rdoc", "site/basic.cssy", "site/basic.rb", "site/cssy_title.jpg", "site/flower.png", "site/index.mab", "site/ruby.cssy", "test/assigns.rb", "test/basics.css", "test/basics.cssy", "test/basics.rb", "test/comments.rb", "test/helper.rb"]
  s.has_rdoc = true
  s.homepage = %q{}
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Cassandra", "--main", "README.rdoc"]
  s.require_paths = ["lib"]
  s.rubyforge_project = %q{cassandra}
  s.rubygems_version = %q{1.2.0}
  s.summary = %q{Generates CSS using Ruby, like Markaby}
  s.test_files = ["test/assigns.rb", "test/basics.rb", "test/comments.rb", "test/helper.rb"]
 
  if s.respond_to? :specification_version then
    current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
    s.specification_version = 2
 
    if current_version >= 3 then
    else
    end
  else
  end
end
 
 
# # Original Rakefile source (requires the Echoe gem):
#
# require 'rubygems'
#
# Version = '0.2.4'
#
# task :default => [ :test ]
#
# begin
# gem 'echoe', '>=2.7'
# require 'echoe'
# Echoe.new('cassandra', Version) do |p|
# p.project = 'cassandra'
# p.summary = "Generates CSS using Ruby, like Markaby"
# p.author = "Matthew King"
# p.email = "automatthew@gmail.com"
# p.ignore_pattern = /^(\.git).+/
# p.test_pattern = "test/*.rb"
# end
# rescue
# "(ignored echoe gemification, as you don't have the Right Stuff)"
# end
#
# module Rake::TaskManager
# def delete_task(task_class, *args, &block)
# task_name, deps = resolve_args(args)
# @tasks.delete(task_class.scope_name(@scope, task_name).to_s)
# end
# end
# class Rake::Task
# def self.delete_task(args, &block) Rake.application.delete_task(self, args, &block) end
# end
# def delete_task(args, &block) Rake::Task.delete_task(args, &block) end
#
# delete_task :publish_docs
#
# desc "Publish rdocs to rubyforge"
# task :publish_docs => [ :clean, :docs ] do
# config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
# pub = Rake::SshDirPublisher.new "#{config["username"]}@rubyforge.org",
# "/var/www/gforge-projects/cassandra/rdoc",
# 'doc'
# pub.upload
# end
#
# task :publish_site => [ :compile ] do
# cmd = "scp -qr site/*.{html,css,jpg,png} automatthew@rubyforge.org:/var/www/gforge-projects/cassandra"
# puts "Uploading: #{cmd}"
# system(cmd)
# end
#
# def rubyforge_config
# @rubyforge_config ||= YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
# end
#
#
#
# # List all the desired pages as dependencies on :compile
# desc "compile templates to html and css"
# task :compile => %w{ site/index.html site/basic.css site/ruby.css }
#
# task :clean do
# f = FileList['site/**/*.html', 'site/*.css']
# puts f; rm f
# end
#
# rule '.html' => [ '.mab' ] do |t|
# mab(t.source, t.name)
# end
#
# file 'site/index.html' => [ 'site/basic.css', 'site/index.mab' ]
#
# rule '.css' => [ '.cssy' ] do |t|
# cssify(t.source, t.name)
# end
#
# require 'markaby'
# $:.unshift "lib"
# require 'cassandra'
#
# def mab(source, target)
# mab = Markaby::Builder.new
# result = mab.instance_eval(File.read(source))
# File.open(target, 'w') do |f|
# f.puts result
# end
# end
#
# def cssify(source, target)
# cssy = File.read(source)
# c = Cssy.new.process(cssy, { :default => "#212F54" })
# File.open(target, 'w') do |f|
# f.puts c.to_s
# end
# end
#
#