jitai 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/jitai.gemspec +72 -0
- data/lib/rake/jitaitask.rb +4 -6
- metadata +5 -4
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ begin
|
|
10
10
|
gem.description = %Q{CSS custom font consolidator}
|
11
11
|
gem.email = "defaultstring@gmail.com"
|
12
12
|
gem.homepage = "http://github.com/kellydunn/jitai"
|
13
|
-
gem.authors = ["
|
13
|
+
gem.authors = ["kellydunn"]
|
14
14
|
gem.add_development_dependency "rspec", ">= 1.2.9"
|
15
15
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
16
16
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/jitai.gemspec
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{jitai}
|
8
|
+
s.version = "0.2.4"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["kellydunn"]
|
12
|
+
s.date = %q{2010-11-07}
|
13
|
+
s.description = %q{CSS custom font consolidator}
|
14
|
+
s.email = %q{defaultstring@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.textile"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"LICENSE",
|
23
|
+
"README.textile",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"jitai.gemspec",
|
27
|
+
"kana-0.2.0.gem",
|
28
|
+
"kana.gemspec",
|
29
|
+
"lib/jitai.rb",
|
30
|
+
"lib/rake/jitaitask.rb",
|
31
|
+
"lib/ttf2eot/ChangeLog",
|
32
|
+
"lib/ttf2eot/Makefile",
|
33
|
+
"lib/ttf2eot/OpenTypeUtilities.cpp",
|
34
|
+
"lib/ttf2eot/OpenTypeUtilities.h",
|
35
|
+
"lib/ttf2eot/OpenTypeUtilities.o",
|
36
|
+
"lib/ttf2eot/README",
|
37
|
+
"lib/ttf2eot/ttf2eot",
|
38
|
+
"lib/ttf2eot/ttf2eot.cpp",
|
39
|
+
"lib/ttf2eot/ttf2eot.o",
|
40
|
+
"public/fonts/yardsale.eot",
|
41
|
+
"public/fonts/yardsale.ttf",
|
42
|
+
"public/stylesheets/fonts_ie.css",
|
43
|
+
"public/stylesheets/fonts_moz.css",
|
44
|
+
"spec/kana_spec.rb",
|
45
|
+
"spec/rake/kanatask_spec.rb",
|
46
|
+
"spec/spec_helper.rb"
|
47
|
+
]
|
48
|
+
s.homepage = %q{http://github.com/kellydunn/jitai}
|
49
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
50
|
+
s.require_paths = ["lib"]
|
51
|
+
s.rubygems_version = %q{1.3.7}
|
52
|
+
s.summary = %q{CSS custom font consolidator}
|
53
|
+
s.test_files = [
|
54
|
+
"spec/kana_spec.rb",
|
55
|
+
"spec/rake/kanatask_spec.rb",
|
56
|
+
"spec/spec_helper.rb"
|
57
|
+
]
|
58
|
+
|
59
|
+
if s.respond_to? :specification_version then
|
60
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
61
|
+
s.specification_version = 3
|
62
|
+
|
63
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
64
|
+
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
65
|
+
else
|
66
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
67
|
+
end
|
68
|
+
else
|
69
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
data/lib/rake/jitaitask.rb
CHANGED
@@ -40,17 +40,15 @@ module Jitai
|
|
40
40
|
other_file = "./#{@cwd}#{other_basename}"
|
41
41
|
file = "./#{@cwd}#{font_file}"
|
42
42
|
|
43
|
-
puts "other file: #{other_file}"
|
44
|
-
puts "file: #{file}"
|
45
|
-
|
46
43
|
# TODO edit ttf2eot so that it's actually installed in the system
|
47
44
|
if !File.exists?(other_file)
|
45
|
+
puts "===== #{conversion_type.upcase} format not found. Attempting to convert... ====="
|
48
46
|
%x{cd lib/ttf2eot && ./ttf2eot < #{'../../' + @cwd + font_file} > #{'../../' + @cwd + font_file.split(".")[0] + conversion_type}}
|
49
47
|
end
|
50
48
|
|
51
|
-
#
|
52
|
-
%x{mv #{other_file} #{other_file.downcase}}
|
53
|
-
%x{mv #{file} #{file.downcase}}
|
49
|
+
# Rename files, account for conventions.
|
50
|
+
%x{mv #{other_file} #{other_file.downcase}} if !(File.exists?(other_file.downcase))
|
51
|
+
%x{mv #{file} #{file.downcase}} if !(File.exists?(file.downcase))
|
54
52
|
|
55
53
|
font = Jitai::Font.new(font_file)
|
56
54
|
font.to_css
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jitai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 4
|
10
|
+
version: 0.2.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
|
-
-
|
13
|
+
- kellydunn
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
@@ -50,6 +50,7 @@ files:
|
|
50
50
|
- README.textile
|
51
51
|
- Rakefile
|
52
52
|
- VERSION
|
53
|
+
- jitai.gemspec
|
53
54
|
- kana-0.2.0.gem
|
54
55
|
- kana.gemspec
|
55
56
|
- lib/jitai.rb
|