icofont 0.0.4 → 0.0.5

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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/icofont/application.js +1 -1
  3. data/app/controllers/icofont/home_controller.rb +1 -1
  4. data/config/routes.rb +0 -4
  5. data/lib/generators/icofont_generator.rb +8 -0
  6. data/lib/icofont.rb +1 -0
  7. data/lib/icofont/paths.rb +1 -1
  8. data/lib/icofont/routes.rb +9 -0
  9. data/lib/icofont/version.rb +1 -1
  10. data/test/controllers/icofont/home_controller_test.rb +10 -0
  11. data/test/dummy/app/assets/icofont/icofont.eot +0 -0
  12. data/test/dummy/app/assets/icofont/icofont.svg +2 -2
  13. data/test/dummy/app/assets/icofont/icofont.ttf +0 -0
  14. data/test/dummy/app/assets/icofont/icofont.woff +0 -0
  15. data/test/dummy/config/routes.rb +1 -4
  16. data/test/dummy/log/development.log +550 -0
  17. data/test/dummy/log/test.log +373 -0
  18. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  19. data/test/dummy/tmp/cache/assets/development/sprockets/24d84d0cc64aa34aa33579f9d48bfdea +0 -0
  20. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  21. data/test/dummy/tmp/cache/assets/development/sprockets/c6b9a2d89c207acb5a40f26035ef9d67 +0 -0
  22. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  23. data/test/dummy/tmp/cache/assets/test/sprockets/492eb72ca49fb7259a01123b6b557dcd +0 -0
  24. data/test/dummy/tmp/cache/assets/test/sprockets/a8c8b4cf14d078fdb0b05ba331fa0f29 +0 -0
  25. data/test/dummy/tmp/cache/assets/test/sprockets/d57b48f735a12d07d3f8c4a3598a4af7 +0 -0
  26. data/test/dummy/tmp/cache/assets/test/sprockets/dee449466bbd42a74357d212450d6123 +0 -0
  27. data/test/dummy/tmp/cache/assets/test/sprockets/e739fe521c001f47f3e1fba2533df7c0 +0 -0
  28. data/test/fixtures/config/routes.rb +3 -0
  29. data/test/fixtures/fonts/fontcustom-manifest.yml +4 -4
  30. data/test/fixtures/fonts/icofont.eot +0 -0
  31. data/test/fixtures/fonts/icofont.svg +2 -2
  32. data/test/fixtures/fonts/icofont.ttf +0 -0
  33. data/test/fixtures/fonts/icofont.woff +0 -0
  34. data/test/fixtures/glyphs.txt +0 -0
  35. data/test/generators/fixtures/glyphs.txt +0 -0
  36. data/test/generators/icofont/icofont_generator_test.rb +31 -0
  37. data/test/generators/tmp/glyphs.txt +0 -0
  38. data/test/test_helper.rb +1 -0
  39. metadata +25 -6
  40. data/test/fixtures/stylesheets/icofont.css.erb +0 -30
  41. data/test/lib/icofont/paths_test.rb +0 -7
File without changes
File without changes
@@ -0,0 +1,31 @@
1
+ require "test_helper"
2
+ require_relative '../../../lib/generators/icofont_generator'
3
+
4
+ class IcofontGeneratorTest < Rails::Generators::TestCase
5
+ tests IcofontGenerator
6
+ destination File.expand_path("../../../fixtures", __FILE__)
7
+
8
+ setup do
9
+ @routes_path ||= File.expand_path('config/routes.rb', destination_root)
10
+ File.open(@routes_path, 'w') do |f|
11
+ f << %Q(Rails.application.routes.draw do
12
+ end)
13
+ end
14
+ end
15
+
16
+ test "the glyphs list file is created" do
17
+ glyphs_path = File.expand_path('glyphs.txt', destination_root)
18
+ Icofont::Paths.stubs(:glyphs_path).returns(glyphs_path)
19
+ run_icofont_generator
20
+ assert_file glyphs_path
21
+ end
22
+
23
+ test "injects mount engine to routes" do
24
+ run_icofont_generator
25
+ assert_file @routes_path, /mount_icofont/
26
+ end
27
+
28
+ def run_icofont_generator
29
+ run_generator %w(icofont)
30
+ end
31
+ end
File without changes
@@ -14,3 +14,4 @@ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
14
  ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
15
  end
16
16
 
17
+ require "rails/generators/test_case"
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.4
4
+ version: 0.0.5
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-04 00:00:00.000000000 Z
11
+ date: 2014-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -99,10 +99,12 @@ files:
99
99
  - lib/icofont/font_processor.rb
100
100
  - lib/icofont/glyph.rb
101
101
  - lib/icofont/paths.rb
102
+ - lib/icofont/routes.rb
102
103
  - lib/icofont/templates/icofont.css.erb
103
104
  - lib/icofont/version.rb
104
105
  - lib/tasks/icofont.rake
105
106
  - test/controllers/icofont/glyphs_controller_test.rb
107
+ - test/controllers/icofont/home_controller_test.rb
106
108
  - test/dummy/README.rdoc
107
109
  - test/dummy/Rakefile
108
110
  - test/dummy/app/assets/icofont/icofont.eot
@@ -177,17 +179,25 @@ files:
177
179
  - test/dummy/tmp/cache/assets/development/sprockets/eea61d079eea48127f145f0961eb8ffd
178
180
  - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
179
181
  - test/dummy/tmp/cache/assets/development/sprockets/fa462010dcbf2c0746f1a0c521625f63
182
+ - test/dummy/tmp/cache/assets/test/sprockets/492eb72ca49fb7259a01123b6b557dcd
183
+ - test/dummy/tmp/cache/assets/test/sprockets/a8c8b4cf14d078fdb0b05ba331fa0f29
184
+ - test/dummy/tmp/cache/assets/test/sprockets/d57b48f735a12d07d3f8c4a3598a4af7
185
+ - test/dummy/tmp/cache/assets/test/sprockets/dee449466bbd42a74357d212450d6123
186
+ - test/dummy/tmp/cache/assets/test/sprockets/e739fe521c001f47f3e1fba2533df7c0
187
+ - test/fixtures/config/routes.rb
180
188
  - test/fixtures/fonts/fontcustom-manifest.yml
181
189
  - test/fixtures/fonts/icofont.eot
182
190
  - test/fixtures/fonts/icofont.svg
183
191
  - test/fixtures/fonts/icofont.ttf
184
192
  - test/fixtures/fonts/icofont.woff
193
+ - test/fixtures/glyphs.txt
185
194
  - test/fixtures/icofont.txt
186
- - test/fixtures/stylesheets/icofont.css.erb
195
+ - test/generators/fixtures/glyphs.txt
196
+ - test/generators/icofont/icofont_generator_test.rb
197
+ - test/generators/tmp/glyphs.txt
187
198
  - test/icofont_test.rb
188
199
  - test/lib/icofont/font_processor_test.rb
189
200
  - test/lib/icofont/glyph_test.rb
190
- - test/lib/icofont/paths_test.rb
191
201
  - test/test_helper.rb
192
202
  homepage: https://github.com/lugolabs/icofont
193
203
  licenses:
@@ -215,6 +225,7 @@ specification_version: 4
215
225
  summary: Manage your icon fonts assets inside your application
216
226
  test_files:
217
227
  - test/controllers/icofont/glyphs_controller_test.rb
228
+ - test/controllers/icofont/home_controller_test.rb
218
229
  - test/dummy/app/assets/icofont/icofont.eot
219
230
  - test/dummy/app/assets/icofont/icofont.svg
220
231
  - test/dummy/app/assets/icofont/icofont.ttf
@@ -289,15 +300,23 @@ test_files:
289
300
  - test/dummy/tmp/cache/assets/development/sprockets/eea61d079eea48127f145f0961eb8ffd
290
301
  - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
291
302
  - test/dummy/tmp/cache/assets/development/sprockets/fa462010dcbf2c0746f1a0c521625f63
303
+ - test/dummy/tmp/cache/assets/test/sprockets/492eb72ca49fb7259a01123b6b557dcd
304
+ - test/dummy/tmp/cache/assets/test/sprockets/a8c8b4cf14d078fdb0b05ba331fa0f29
305
+ - test/dummy/tmp/cache/assets/test/sprockets/d57b48f735a12d07d3f8c4a3598a4af7
306
+ - test/dummy/tmp/cache/assets/test/sprockets/dee449466bbd42a74357d212450d6123
307
+ - test/dummy/tmp/cache/assets/test/sprockets/e739fe521c001f47f3e1fba2533df7c0
308
+ - test/fixtures/config/routes.rb
292
309
  - test/fixtures/fonts/fontcustom-manifest.yml
293
310
  - test/fixtures/fonts/icofont.eot
294
311
  - test/fixtures/fonts/icofont.svg
295
312
  - test/fixtures/fonts/icofont.ttf
296
313
  - test/fixtures/fonts/icofont.woff
314
+ - test/fixtures/glyphs.txt
297
315
  - test/fixtures/icofont.txt
298
- - test/fixtures/stylesheets/icofont.css.erb
316
+ - test/generators/fixtures/glyphs.txt
317
+ - test/generators/icofont/icofont_generator_test.rb
318
+ - test/generators/tmp/glyphs.txt
299
319
  - test/icofont_test.rb
300
320
  - test/lib/icofont/font_processor_test.rb
301
321
  - test/lib/icofont/glyph_test.rb
302
- - test/lib/icofont/paths_test.rb
303
322
  - test/test_helper.rb
@@ -1,30 +0,0 @@
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"; }
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Icofont
4
- class PathsTest < ActiveSupport::TestCase
5
-
6
- end
7
- end