jitai 0.3.0 → 0.3.1

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/README.textile CHANGED
@@ -13,10 +13,10 @@ Then, do a little bit of:
13
13
  pre. sudo gem install jitai
14
14
  rake jitai:refresh
15
15
 
16
- Now you have the following stylesheets to your disposal:
16
+ Jitai automatically converts your ttf fonts into eot format, so now you have the following stylesheets to your disposal:
17
17
 
18
- * fonts_moz.css
19
- * fonts_ie.css
18
+ * fonts_moz.css, Chrome, Firefox, Safari, and Opera compatible
19
+ * fonts_ie.css, IE compatible
20
20
 
21
21
  All of your custom fonts are now avaiable in your CSS files. For example, if you were to use the Yardsale font:
22
22
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/jitai.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jitai}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["kellydunn"]
12
- s.date = %q{2010-11-08}
12
+ s.date = %q{2010-11-16}
13
13
  s.description = %q{CSS custom font consolidator}
14
14
  s.email = %q{defaultstring@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -43,8 +43,8 @@ Gem::Specification.new do |s|
43
43
  "public/stylesheets/fonts_ie.css",
44
44
  "public/stylesheets/fonts_moz.css",
45
45
  "rails/init.rb",
46
- "spec/kana_spec.rb",
47
- "spec/rake/kanatask_spec.rb",
46
+ "spec/jitai_spec.rb",
47
+ "spec/rake/jitaitask_spec.rb",
48
48
  "spec/spec_helper.rb"
49
49
  ]
50
50
  s.homepage = %q{http://github.com/kellydunn/jitai}
@@ -53,8 +53,8 @@ Gem::Specification.new do |s|
53
53
  s.rubygems_version = %q{1.3.7}
54
54
  s.summary = %q{CSS custom font consolidator}
55
55
  s.test_files = [
56
- "spec/kana_spec.rb",
57
- "spec/rake/kanatask_spec.rb",
56
+ "spec/jitai_spec.rb",
57
+ "spec/rake/jitaitask_spec.rb",
58
58
  "spec/spec_helper.rb"
59
59
  ]
60
60
 
@@ -1,6 +1,6 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
- describe "Kana" do
3
+ describe "Jitai" do
4
4
  it "should be awesome" do
5
5
  true
6
6
  end
@@ -0,0 +1,28 @@
1
+ require "spec_helper"
2
+
3
+ describe "Jitai rake utility" do
4
+ context "refreshing a font directory" do
5
+ before :each do
6
+ %x{rake jitai:refresh}
7
+ end
8
+
9
+ # Currently just using naiive file exists test
10
+ # the rake task doesn't do much else :\
11
+ it "should create a public/fonts directory if it doesn't already exist" do
12
+ File.exists?("public/fonts").should == true
13
+ end
14
+
15
+ it "should create a public/stylesheets directory if it doesn't already exist" do
16
+ File.exists?("public/stylesheets").should == true
17
+ end
18
+
19
+ it "should create both mozilla and ie compatible css stylesheet" do
20
+ File.exists?("public/stylesheets/fonts_moz.css").should == true
21
+ File.exists?("public/stylesheets/fonts_ie.css").should == true
22
+ end
23
+
24
+ it "should provide conversion for true-type fonts to .eot font types" do
25
+ File.exists?("public/fonts/yardsale.eot").should == true
26
+ end
27
+ end
28
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  $LOAD_PATH.unshift(File.dirname(__FILE__))
2
2
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
- require 'kana'
3
+ require 'jitai'
4
4
  require 'spec'
5
- require 'rspec'
5
+ # require 'rspec'
6
6
  require 'rubygems'
7
7
  require 'spec/autorun'
8
8
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jitai
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - kellydunn
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-08 00:00:00 -08:00
18
+ date: 2010-11-16 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -70,8 +70,8 @@ files:
70
70
  - public/stylesheets/fonts_ie.css
71
71
  - public/stylesheets/fonts_moz.css
72
72
  - rails/init.rb
73
- - spec/kana_spec.rb
74
- - spec/rake/kanatask_spec.rb
73
+ - spec/jitai_spec.rb
74
+ - spec/rake/jitaitask_spec.rb
75
75
  - spec/spec_helper.rb
76
76
  has_rdoc: true
77
77
  homepage: http://github.com/kellydunn/jitai
@@ -108,6 +108,6 @@ signing_key:
108
108
  specification_version: 3
109
109
  summary: CSS custom font consolidator
110
110
  test_files:
111
- - spec/kana_spec.rb
112
- - spec/rake/kanatask_spec.rb
111
+ - spec/jitai_spec.rb
112
+ - spec/rake/jitaitask_spec.rb
113
113
  - spec/spec_helper.rb
@@ -1,9 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "Kana rake utility" do
4
- it "should be able to set the font directory" do
5
- end
6
-
7
- it "should refresh the css files of a font directory" do
8
- end
9
- end