mbj-assets 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7bb892f77acea2eaba5bed4c187c87ae91f15f5
4
- data.tar.gz: 82a3ceb222a646a5381c5be3fab50ddd0ef65fdc
3
+ metadata.gz: 6d996f9fe46d686ff3e3a7a53ab924f757517ecc
4
+ data.tar.gz: 177760b2c163deaa7ec55fef2660cd83379de976
5
5
  SHA512:
6
- metadata.gz: 00d76caf751333480032402aa82633c2bd6bd5665deee8eb18af604f6f5b64f1fc930c0f31983f42f47b2e5d210e415701fe01f0aae88cc84c74bc51ab216441
7
- data.tar.gz: 9a7457795473be3e031e481355a2dfc104887e5f6ef53aba151549212b190eecec6bbfd9899582300b4009275f1eeb446d195667353f1e3d0f887832b7b44d17
6
+ metadata.gz: 192d7d3b26f56f0f4197ca298ca7398aa0ad296692ec179a089ef9cc0e5c825c48399e4d81a69804b7c432c20798edabe625ca20ad874aac34128c878918c6ef
7
+ data.tar.gz: bd727981a3461da0af95bacf7ffc78e2a4d68aa54a99848ab51a516129213dc53cab7cdee68f409f771756328002d9db379a5f377416f04592fda59b68eebfb2
data/.travis.yml CHANGED
@@ -4,7 +4,9 @@ rvm:
4
4
  - 1.9.2
5
5
  - 1.9.3
6
6
  - 2.0.0
7
- - ruby-head
8
7
  - jruby-19mode
9
8
  - jruby-head
10
9
  - rbx-19mode
10
+ matrix:
11
+ allowed_failures:
12
+ - rvm: ruby-head
data/assets.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'mbj-assets'
5
- gem.version = '0.0.4'
5
+ gem.version = '0.0.5'
6
6
  gem.authors = [ 'Markus Schirp' ]
7
7
  gem.email = [ 'mbj@schirp-dso.com' ]
8
8
  gem.description = 'Playground for a small assets system'
data/config/flay.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  ---
2
- threshold: 12
3
- total_score: 107
2
+ threshold: 14
3
+ total_score: 118
data/lib/assets/mime.rb CHANGED
@@ -72,6 +72,7 @@ module Assets
72
72
  SASS = new('.sass', 'text/plain; charset=UTF-8' )
73
73
  SCSS = new('.scss', 'text/plain; charset=UTF-8' )
74
74
  HTML = new('.html', 'text/html; charset=UTF-8' )
75
+ WOFF = new('.woff', 'application/font-woff' )
75
76
 
76
77
  IMAGES = [
77
78
  JPG, ICO, PNG, SVG, GIF
Binary file
@@ -28,9 +28,16 @@ describe Assets, 'and spiking around' do
28
28
  end
29
29
  end
30
30
 
31
+ let(:web_fonts) do
32
+ repository.glob('*.woff').map do |name|
33
+ repository.file(name)
34
+ end
35
+ end
36
+
31
37
  let(:rules) do
32
38
  rules = []
33
39
  rules.concat(images)
40
+ rules.concat(web_fonts)
34
41
  rules << repository.compile('application.coffee')
35
42
  rules << stylesheet
36
43
  end
@@ -83,6 +90,15 @@ describe Assets, 'and spiking around' do
83
90
  its(:body) { should eql(expected_body) }
84
91
  end
85
92
 
93
+ context 'accessing woff web font' do
94
+ let(:name) { 'droid-sans.woff' }
95
+ let(:extra_hash) { {} }
96
+ let(:expected_body) { File.read('spec/assets/droid-sans.woff') }
97
+
98
+ its(:content_type) { should eql('application/font-woff') }
99
+ its(:body) { should eql(expected_body) }
100
+ end
101
+
86
102
  context 'compiling coffescript' do
87
103
  let(:name) { 'application.js' }
88
104
  let(:extra_hash) { {} }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mbj-assets
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
  - Markus Schirp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-09 00:00:00.000000000 Z
11
+ date: 2013-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: adamantium
@@ -210,6 +210,7 @@ files:
210
210
  - lib/assets/rule/rename.rb
211
211
  - spec/assets/application.coffee
212
212
  - spec/assets/application.sass
213
+ - spec/assets/droid-sans.woff
213
214
  - spec/assets/fonts.css
214
215
  - spec/assets/test.jpg
215
216
  - spec/integration/assets/spike_spec.rb
@@ -240,6 +241,7 @@ summary: Playground for a small assets system
240
241
  test_files:
241
242
  - spec/assets/application.coffee
242
243
  - spec/assets/application.sass
244
+ - spec/assets/droid-sans.woff
243
245
  - spec/assets/fonts.css
244
246
  - spec/assets/test.jpg
245
247
  - spec/integration/assets/spike_spec.rb