tagz 7.2.0 → 7.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +8 -3
  2. data/lib/tagz.rb +17 -1
  3. data/tagz.gemspec +2 -1
  4. metadata +2 -2
data/Rakefile CHANGED
@@ -35,11 +35,14 @@ task :gemspec do
35
35
  end
36
36
 
37
37
  lib = This.lib
38
+ object = This.object
38
39
  version = This.version
39
40
  files = shiteless[Dir::glob("**/**")]
40
41
  executables = shiteless[Dir::glob("bin/*")].map{|exe| File.basename(exe)}
41
42
  has_rdoc = true #File.exist?('doc')
42
43
  test_files = "test/#{ lib }.rb" if File.file?("test/#{ lib }.rb")
44
+ summary = object.respond_to?(:summary) ? object.summary : "summary: #{ lib } kicks the ass"
45
+ description = object.respond_to?(:description) ? object.description : "description: #{ lib } kicks the ass"
43
46
 
44
47
  extensions = This.extensions
45
48
  if extensions.nil?
@@ -63,6 +66,7 @@ task :gemspec do
63
66
  spec.version = #{ version.inspect }
64
67
  spec.platform = Gem::Platform::RUBY
65
68
  spec.summary = #{ lib.inspect }
69
+ spec.description = #{ description.inspect }
66
70
 
67
71
  spec.files = #{ files.inspect }
68
72
  spec.executables = #{ executables.inspect }
@@ -185,9 +189,10 @@ BEGIN {
185
189
 
186
190
  version = ENV['VERSION']
187
191
  unless version
188
- name = lib.capitalize
189
- require "./lib/#{ lib }"
190
- version = eval(name).send(:version)
192
+ require "./lib/#{ This.lib }"
193
+ This.name = lib.capitalize
194
+ This.object = eval(This.name)
195
+ version = This.object.send(:version)
191
196
  end
192
197
  This.version = version
193
198
 
data/lib/tagz.rb CHANGED
@@ -3,7 +3,23 @@ unless defined? Tagz
3
3
  # core tagz functions
4
4
  #
5
5
  module Tagz
6
- def Tagz.version() '7.2.0' end
6
+ def Tagz.version()
7
+ '7.2.1'
8
+ end
9
+
10
+ def Tagz.description()
11
+ <<-__
12
+ tagz.rb is generates html, xml, or any sgml variant like a small ninja
13
+ running across the backs of a herd of giraffes swatting of heads like
14
+ a mark-up weedwacker. weighing in at less than 300 lines of code
15
+ tagz.rb adds an html/xml/sgml syntax to ruby that is both unobtrusive,
16
+ safe, and available globally to objects without the need for any
17
+ builder or superfluous objects. tagz.rb is designed for applications
18
+ that generate html to be able to do so easily in any context without
19
+ heavyweight syntax or scoping issues, like a ninja sword through
20
+ butter.
21
+ __
22
+ end
7
23
 
8
24
  private
9
25
  # access tagz doc and enclose tagz operations
data/tagz.gemspec CHANGED
@@ -3,9 +3,10 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "tagz"
6
- spec.version = "7.2.0"
6
+ spec.version = "7.2.1"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "tagz"
9
+ spec.description = " tagz.rb is generates html, xml, or any sgml variant like a small ninja\n running across the backs of a herd of giraffes swatting of heads like\n a mark-up weedwacker. weighing in at less than 300 lines of code\n tagz.rb adds an html/xml/sgml syntax to ruby that is both unobtrusive,\n safe, and available globally to objects without the need for any\n builder or superfluous objects. tagz.rb is designed for applications\n that generate html to be able to do so easily in any context without\n heavyweight syntax or scoping issues, like a ninja sword through\n butter.\n"
9
10
 
10
11
  spec.files = ["lib", "lib/tagz.rb", "Rakefile", "README", "readme.erb", "samples", "samples/a.rb", "samples/b.rb", "samples/c.rb", "samples/d.rb", "samples/e.rb", "samples/f.rb", "samples/g.rb", "tagz.gemspec", "test", "test/tagz.rb"]
11
12
  spec.executables = []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tagz
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.0
4
+ version: 7.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard
@@ -13,7 +13,7 @@ date: 2009-09-29 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
- description:
16
+ description: " tagz.rb is generates html, xml, or any sgml variant like a small ninja\n running across the backs of a herd of giraffes swatting of heads like\n a mark-up weedwacker. weighing in at less than 300 lines of code\n tagz.rb adds an html/xml/sgml syntax to ruby that is both unobtrusive,\n safe, and available globally to objects without the need for any\n builder or superfluous objects. tagz.rb is designed for applications\n that generate html to be able to do so easily in any context without\n heavyweight syntax or scoping issues, like a ninja sword through\n butter.\n"
17
17
  email: ara.t.howard@gmail.com
18
18
  executables: []
19
19