automatthew / cassandra

Generate CSS using Ruby with Markaby/Builder style syntax

This URL has Read+Write access

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