icofont 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/config/routes.rb +4 -0
  3. data/lib/icofont/font_processor.rb +18 -9
  4. data/lib/icofont/paths.rb +1 -1
  5. data/lib/icofont/templates/icofont.css.erb +10 -10
  6. data/lib/icofont/version.rb +1 -1
  7. data/test/dummy/app/assets/icofont/icofont.eot +0 -0
  8. data/test/dummy/app/assets/icofont/icofont.svg +7 -7
  9. data/test/dummy/app/assets/icofont/icofont.ttf +0 -0
  10. data/test/dummy/app/assets/icofont/icofont.woff +0 -0
  11. data/test/dummy/app/assets/stylesheets/icofont.css.erb +1 -1
  12. data/test/dummy/db/development.sqlite3 +0 -0
  13. data/test/dummy/db/schema.rb +16 -0
  14. data/test/dummy/db/test.sqlite3 +0 -0
  15. data/test/dummy/log/development.log +1345 -0
  16. data/test/dummy/log/test.log +194 -0
  17. data/test/dummy/tmp/cache/assets/development/sprockets/0d0aff83a39e4b56699824292d221f34 +0 -0
  18. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  19. data/test/dummy/tmp/cache/assets/development/sprockets/24d083ea390a819365fbe17c7ec05d59 +0 -0
  20. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  21. data/test/dummy/tmp/cache/assets/development/sprockets/424b7c8f201f15b2d005a3aa03b1c6aa +0 -0
  22. data/test/dummy/tmp/cache/assets/development/sprockets/4c0a62e87ce0f4d493ecda1ec95edc86 +0 -0
  23. data/test/dummy/tmp/cache/assets/development/sprockets/532a1301560c90201d5c45a9280cd6aa +0 -0
  24. data/test/dummy/tmp/cache/assets/development/sprockets/634f947263a9dad3630bcb82f993f501 +0 -0
  25. data/test/dummy/tmp/cache/assets/development/sprockets/6fe8009ed3794d8121d8e7aecb4886b2 +0 -0
  26. data/test/dummy/tmp/cache/assets/development/sprockets/8ac51387eeb227d3eae66457f70bb432 +0 -0
  27. data/test/dummy/tmp/cache/assets/development/sprockets/a4eee2c16d7225baa3590994501801a1 +0 -0
  28. data/test/dummy/tmp/cache/assets/development/sprockets/af74ee9b36abd748f265a90b6157a050 +0 -0
  29. data/test/dummy/tmp/cache/assets/development/sprockets/c2680b7fe0e23bf6cdb5a11f109aa3ef +0 -0
  30. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  31. data/test/fixtures/fonts/fontcustom-manifest.yml +43 -9
  32. data/test/fixtures/fonts/icofont.eot +0 -0
  33. data/test/fixtures/fonts/icofont.svg +4 -4
  34. data/test/fixtures/fonts/icofont.ttf +0 -0
  35. data/test/fixtures/fonts/icofont.woff +0 -0
  36. data/test/fixtures/stylesheets/icofont.css.erb +30 -0
  37. metadata +12 -6
@@ -0,0 +1,194 @@
1
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+  (0.1ms) SELECT version FROM "schema_migrations"
4
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
5
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
6
+  (0.2ms) begin transaction
7
+ -----------------------------------------------------------------
8
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
9
+ -----------------------------------------------------------------
10
+  (0.1ms) rollback transaction
11
+  (0.0ms) begin transaction
12
+ -----------------------------------------------------
13
+ Icofont::GlyphTest: test_it_stores_and_fetches_glyphs
14
+ -----------------------------------------------------
15
+  (0.1ms) rollback transaction
16
+  (0.0ms) begin transaction
17
+ ----------------------------------------------------
18
+ Icofont::GlyphsControllerTest: test_should_get_index
19
+ ----------------------------------------------------
20
+ Processing by Icofont::GlyphsController#index as HTML
21
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
22
+  (0.1ms) rollback transaction
23
+  (0.0ms) begin transaction
24
+ ------------------------------------------------------
25
+ Icofont::GlyphsControllerTest: test_should_post_update
26
+ ------------------------------------------------------
27
+ Processing by Icofont::GlyphsController#update as HTML
28
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
29
+  (0.1ms) rollback transaction
30
+  (0.1ms) begin transaction
31
+ -----------------------
32
+ IcofontTest: test_truth
33
+ -----------------------
34
+  (0.1ms) rollback transaction
35
+  (0.2ms) begin transaction
36
+ -----------------------------------------------------------------
37
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
38
+ -----------------------------------------------------------------
39
+  (0.1ms) rollback transaction
40
+  (0.3ms) begin transaction
41
+ -----------------------------------------------------------------
42
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
43
+ -----------------------------------------------------------------
44
+  (0.1ms) rollback transaction
45
+  (0.2ms) begin transaction
46
+ -----------------------------------------------------------------
47
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
48
+ -----------------------------------------------------------------
49
+  (0.1ms) rollback transaction
50
+  (0.2ms) begin transaction
51
+ -----------------------------------------------------------------
52
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
53
+ -----------------------------------------------------------------
54
+  (0.1ms) rollback transaction
55
+  (0.2ms) begin transaction
56
+ -----------------------------------------------------------------
57
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
58
+ -----------------------------------------------------------------
59
+  (0.1ms) rollback transaction
60
+  (0.2ms) begin transaction
61
+ -----------------------------------------------------------------
62
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
63
+ -----------------------------------------------------------------
64
+  (0.0ms) rollback transaction
65
+  (0.2ms) begin transaction
66
+ -----------------------------------------------------------------
67
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
68
+ -----------------------------------------------------------------
69
+  (0.1ms) rollback transaction
70
+  (0.2ms) begin transaction
71
+ -----------------------------------------------------------------
72
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
73
+ -----------------------------------------------------------------
74
+  (0.1ms) rollback transaction
75
+  (0.2ms) begin transaction
76
+ -----------------------------------------------------------------
77
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
78
+ -----------------------------------------------------------------
79
+  (0.1ms) rollback transaction
80
+  (0.2ms) begin transaction
81
+ -----------------------------------------------------------------
82
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
83
+ -----------------------------------------------------------------
84
+  (0.1ms) rollback transaction
85
+  (0.2ms) begin transaction
86
+ -----------------------------------------------------------------
87
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
88
+ -----------------------------------------------------------------
89
+  (0.1ms) rollback transaction
90
+  (0.2ms) begin transaction
91
+ -----------------------------------------------------------------
92
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
93
+ -----------------------------------------------------------------
94
+  (0.1ms) rollback transaction
95
+  (0.2ms) begin transaction
96
+ -----------------------------------------------------------------
97
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
98
+ -----------------------------------------------------------------
99
+  (0.1ms) rollback transaction
100
+  (0.2ms) begin transaction
101
+ -----------------------------------------------------------------
102
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
103
+ -----------------------------------------------------------------
104
+  (0.1ms) rollback transaction
105
+  (0.2ms) begin transaction
106
+ -----------------------------------------------------------------
107
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
108
+ -----------------------------------------------------------------
109
+  (0.1ms) rollback transaction
110
+  (0.3ms) begin transaction
111
+ -----------------------------------------------------------------
112
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
113
+ -----------------------------------------------------------------
114
+  (0.1ms) rollback transaction
115
+  (0.2ms) begin transaction
116
+ -----------------------------------------------------------------
117
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
118
+ -----------------------------------------------------------------
119
+  (0.1ms) rollback transaction
120
+  (0.2ms) begin transaction
121
+ -----------------------------------------------------------------
122
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
123
+ -----------------------------------------------------------------
124
+  (0.1ms) rollback transaction
125
+  (0.2ms) begin transaction
126
+ -----------------------------------------------------------------
127
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
128
+ -----------------------------------------------------------------
129
+  (0.1ms) rollback transaction
130
+  (0.2ms) begin transaction
131
+ -----------------------------------------------------------------
132
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
133
+ -----------------------------------------------------------------
134
+  (0.2ms) rollback transaction
135
+  (0.3ms) begin transaction
136
+ -----------------------------------------------------------------
137
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
138
+ -----------------------------------------------------------------
139
+  (0.2ms) rollback transaction
140
+  (0.2ms) begin transaction
141
+ -----------------------------------------------------------------
142
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
143
+ -----------------------------------------------------------------
144
+  (0.1ms) rollback transaction
145
+  (0.2ms) begin transaction
146
+ -----------------------------------------------------------------
147
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
148
+ -----------------------------------------------------------------
149
+  (0.1ms) rollback transaction
150
+  (0.2ms) begin transaction
151
+ -----------------------------------------------------------------
152
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
153
+ -----------------------------------------------------------------
154
+  (0.1ms) rollback transaction
155
+  (0.2ms) begin transaction
156
+ -----------------------------------------------------------------
157
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
158
+ -----------------------------------------------------------------
159
+  (0.1ms) rollback transaction
160
+  (0.2ms) begin transaction
161
+ -----------------------------------------------------------------
162
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
163
+ -----------------------------------------------------------------
164
+  (0.1ms) rollback transaction
165
+  (0.2ms) begin transaction
166
+ -----------------------------------------------------------------
167
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
168
+ -----------------------------------------------------------------
169
+  (0.1ms) rollback transaction
170
+  (0.3ms) begin transaction
171
+ -----------------------------------------------------------------
172
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
173
+ -----------------------------------------------------------------
174
+  (0.1ms) rollback transaction
175
+  (0.2ms) begin transaction
176
+ -----------------------------------------------------------------
177
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
178
+ -----------------------------------------------------------------
179
+  (0.1ms) rollback transaction
180
+  (0.2ms) begin transaction
181
+ -----------------------------------------------------------------
182
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
183
+ -----------------------------------------------------------------
184
+  (0.1ms) rollback transaction
185
+  (0.2ms) begin transaction
186
+ -----------------------------------------------------------------
187
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
188
+ -----------------------------------------------------------------
189
+  (0.2ms) rollback transaction
190
+  (0.2ms) begin transaction
191
+ -----------------------------------------------------------------
192
+ Icofont::FontProcessorTest: test_generates_files_in_correct_paths
193
+ -----------------------------------------------------------------
194
+  (0.1ms) rollback transaction
@@ -1,15 +1,49 @@
1
1
  {
2
+ "checksum": {
3
+ "current": "",
4
+ "previous": ""
5
+ },
2
6
  "fonts": [
3
- "/Users/artansinani/ror/icofont/icofont/test/fixtures/fonts/icofont.ttf",
4
- "/Users/artansinani/ror/icofont/icofont/test/fixtures/fonts/icofont.woff",
5
- "/Users/artansinani/ror/icofont/icofont/test/fixtures/fonts/icofont.eot",
6
- "/Users/artansinani/ror/icofont/icofont/test/fixtures/fonts/icofont.svg"
7
+ "/Users/arti/ror/icofont/icofont/test/fixtures/fonts/icofont.ttf",
8
+ "/Users/arti/ror/icofont/icofont/test/fixtures/fonts/icofont.svg",
9
+ "/Users/arti/ror/icofont/icofont/test/fixtures/fonts/icofont.woff",
10
+ "/Users/arti/ror/icofont/icofont/test/fixtures/fonts/icofont.eot"
7
11
  ],
12
+ "glyphs": {
13
+ "home": {
14
+ "codepoint": 61696,
15
+ "source": "/var/folders/6m/t5fw0l811tl8ll9rbs7wvssm0000gn/T/d20140103-4928-1biv1n2/home.svg"
16
+ },
17
+ "home2": {
18
+ "codepoint": 61697,
19
+ "source": "/var/folders/6m/t5fw0l811tl8ll9rbs7wvssm0000gn/T/d20140103-4928-1biv1n2/home2.svg"
20
+ }
21
+ },
22
+ "options": {
23
+ "autowidth": false,
24
+ "config": false,
25
+ "css_selector": "icofont-{{glyph}}",
26
+ "debug": false,
27
+ "font_name": "icofont",
28
+ "force": false,
29
+ "input": {
30
+ "templates": "/Users/arti/ror/icofont/icofont/lib/icofont/templates",
31
+ "vectors": "/var/folders/6m/t5fw0l811tl8ll9rbs7wvssm0000gn/T/d20140103-4928-1biv1n2"
32
+ },
33
+ "no_hash": true,
34
+ "output": {
35
+ "css": "/Users/arti/ror/icofont/icofont/test/fixtures/fonts",
36
+ "fonts": "/Users/arti/ror/icofont/icofont/test/fixtures/fonts",
37
+ "preview": "/Users/arti/ror/icofont/icofont/test/fixtures/fonts"
38
+ },
39
+ "preprocessor_path": null,
40
+ "quiet": false,
41
+ "templates": [
42
+ "icofont.css.erb"
43
+ ],
44
+ "verbose": true
45
+ },
8
46
  "templates": [
9
- "/Users/artansinani/ror/icofont/icofont/test/fixtures/fonts/icofont.css.erb"
10
- ],
11
- "glyphs": [
12
- "home",
13
- "home2"
47
+ "/Users/arti/ror/icofont/icofont/test/fixtures/fonts/icofont.css.erb"
14
48
  ]
15
49
  }
@@ -1,11 +1,11 @@
1
1
  <?xml version="1.0" standalone="no"?>
2
2
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
3
  <!--
4
- 2014-1-1: Created.
4
+ 2014-1-3: Created.
5
5
  -->
6
6
  <svg xmlns="http://www.w3.org/2000/svg">
7
7
  <metadata>
8
- Created by FontForge 20120731 at Wed Jan 1 19:18:47 2014
8
+ Created by FontForge 20120731 at Fri Jan 3 22:01:27 2014
9
9
  By Artan Sinani
10
10
  Created by Artan Sinani with FontForge 2.0 (http://fontforge.sf.net)
11
11
  </metadata>
@@ -25,9 +25,9 @@ Created by Artan Sinani with FontForge 2.0 (http://fontforge.sf.net)
25
25
  unicode-range="U+F100-F101"
26
26
  />
27
27
  <missing-glyph />
28
- <glyph glyph-name="uniF100" unicode="&#xf100;"
29
- d="M512 152.778l-256 198.713l-256 -198.714v81.0186l256 198.713l256 -198.714v-81.0166zM448 160v-192h-128v128h-128v-128h-128v192l192 144z" />
30
28
  <glyph glyph-name="uniF101" unicode="&#xf101;"
31
29
  d="M512 144v-16h-64v-160h-160v96h-64v-96h-160v160h-64v16l256 256l96 -96v80h64v-144z" />
30
+ <glyph glyph-name="uniF100" unicode="&#xf100;"
31
+ d="M512 152.778l-256 198.713l-256 -198.714v81.0186l256 198.713l256 -198.714v-81.0166zM448 160v-192h-128v128h-128v-128h-128v192l192 144z" />
32
32
  </font>
33
33
  </defs></svg>
@@ -0,0 +1,30 @@
1
+ @font-face {
2
+ font-family: "icofont";
3
+ src: url(<%= asset_path "icofont.eot" %>);
4
+ src: url(<%= asset_path "icofont.eot?#iefix" %>) format("embedded-opentype"),
5
+ url(<%= asset_path "icofont.woff" %>) format("woff"),
6
+ url(<%= asset_path "icofont.ttf" %>) format("truetype"),
7
+ url(<%= asset_path "icofont.svg#icofont" %>) format("svg");
8
+ font-weight: normal;
9
+ font-style: normal;
10
+ }
11
+
12
+ [data-icon]:before { content: attr(data-icon); }
13
+
14
+ [data-icon]:before,
15
+ icofont-home:before,
16
+ icofont-home2:before {
17
+ display: inline-block;
18
+ font-family: "icofont";
19
+ font-style: normal;
20
+ font-weight: normal;
21
+ font-variant: normal;
22
+ line-height: 1;
23
+ text-decoration: inherit;
24
+ text-transform: none;
25
+ -moz-osx-font-smoothing: grayscale;
26
+ -webkit-font-smoothing: antialiased;
27
+ }
28
+
29
+ icofont-home:before { content: "\f100"; }
30
+ icofont-home2:before { content: "\f101"; }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icofont
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artan Sinani
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-03 00:00:00.000000000 Z
11
+ date: 2014-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -34,16 +34,16 @@ dependencies:
34
34
  name: fontcustom
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - '>='
37
+ - - ~>
38
38
  - !ruby/object:Gem::Version
39
- version: '0'
39
+ version: 1.3.1
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - '>='
44
+ - - ~>
45
45
  - !ruby/object:Gem::Version
46
- version: '0'
46
+ version: 1.3.1
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sqlite3
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -138,8 +138,10 @@ files:
138
138
  - test/dummy/config/locales/en.yml
139
139
  - test/dummy/config/routes.rb
140
140
  - test/dummy/db/development.sqlite3
141
+ - test/dummy/db/schema.rb
141
142
  - test/dummy/db/test.sqlite3
142
143
  - test/dummy/log/development.log
144
+ - test/dummy/log/test.log
143
145
  - test/dummy/public/404.html
144
146
  - test/dummy/public/422.html
145
147
  - test/dummy/public/500.html
@@ -181,6 +183,7 @@ files:
181
183
  - test/fixtures/fonts/icofont.ttf
182
184
  - test/fixtures/fonts/icofont.woff
183
185
  - test/fixtures/icofont.txt
186
+ - test/fixtures/stylesheets/icofont.css.erb
184
187
  - test/icofont_test.rb
185
188
  - test/lib/icofont/font_processor_test.rb
186
189
  - test/lib/icofont/glyph_test.rb
@@ -245,8 +248,10 @@ test_files:
245
248
  - test/dummy/config/routes.rb
246
249
  - test/dummy/config.ru
247
250
  - test/dummy/db/development.sqlite3
251
+ - test/dummy/db/schema.rb
248
252
  - test/dummy/db/test.sqlite3
249
253
  - test/dummy/log/development.log
254
+ - test/dummy/log/test.log
250
255
  - test/dummy/public/404.html
251
256
  - test/dummy/public/422.html
252
257
  - test/dummy/public/500.html
@@ -290,6 +295,7 @@ test_files:
290
295
  - test/fixtures/fonts/icofont.ttf
291
296
  - test/fixtures/fonts/icofont.woff
292
297
  - test/fixtures/icofont.txt
298
+ - test/fixtures/stylesheets/icofont.css.erb
293
299
  - test/icofont_test.rb
294
300
  - test/lib/icofont/font_processor_test.rb
295
301
  - test/lib/icofont/glyph_test.rb