friendly_mime 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6190ca587918b9e36463a79de1850e89af37ed88
4
+ data.tar.gz: 444f7de77a9b2c6aa9d48febead92d77d7030407
5
+ SHA512:
6
+ metadata.gz: 86faa75a4316d5d48d183fd8c6b3cb256cfd1c75e0a1a6df57ed2f58a8b9b06f9c1aadb4c42c700311182ccbffc9250be3b4d94de88be90d2618a5eff011eb03
7
+ data.tar.gz: d61a811ed5b195721af717eb6a1917d4360da97f145bbea9c3933719d915229366d37ddc462bf170296569edfe6b4549a972f751c77f59f611da6a79ce32c6c0
@@ -1,11 +1,11 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- addressable (2.3.5)
4
+ addressable (2.3.8)
5
5
  builder (3.2.2)
6
- faraday (0.8.8)
6
+ faraday (0.8.11)
7
7
  multipart-post (~> 1.2.0)
8
- git (1.2.6)
8
+ git (1.2.9.1)
9
9
  github_api (0.10.1)
10
10
  addressable
11
11
  faraday (~> 0.8.1)
@@ -13,10 +13,9 @@ GEM
13
13
  multi_json (~> 1.4)
14
14
  nokogiri (~> 1.5.2)
15
15
  oauth2
16
- hashie (2.0.5)
17
- highline (1.6.19)
18
- httpauth (0.2.0)
19
- jeweler (1.8.7)
16
+ hashie (3.4.2)
17
+ highline (1.7.8)
18
+ jeweler (1.8.8)
20
19
  builder
21
20
  bundler (~> 1.0)
22
21
  git (>= 1.2.5)
@@ -25,22 +24,20 @@ GEM
25
24
  nokogiri (= 1.5.10)
26
25
  rake
27
26
  rdoc
28
- json (1.8.0)
29
- jwt (0.1.8)
30
- multi_json (>= 1.5)
31
- multi_json (1.8.0)
27
+ json (1.8.3)
28
+ jwt (1.5.1)
29
+ multi_json (1.11.2)
32
30
  multi_xml (0.5.5)
33
31
  multipart-post (1.2.0)
34
32
  nokogiri (1.5.10)
35
- oauth2 (0.9.2)
36
- faraday (~> 0.8)
37
- httpauth (~> 0.2)
38
- jwt (~> 0.1.4)
39
- multi_json (~> 1.0)
33
+ oauth2 (1.0.0)
34
+ faraday (>= 0.8, < 0.10)
35
+ jwt (~> 1.0)
36
+ multi_json (~> 1.3)
40
37
  multi_xml (~> 0.5)
41
38
  rack (~> 1.2)
42
- rack (1.5.2)
43
- rake (10.1.0)
39
+ rack (1.6.4)
40
+ rake (10.4.2)
44
41
  rdoc (3.12.2)
45
42
  json (~> 1.4)
46
43
 
@@ -51,3 +48,6 @@ DEPENDENCIES
51
48
  bundler (~> 1.0)
52
49
  jeweler (~> 1.8.7)
53
50
  rdoc (~> 3.12)
51
+
52
+ BUNDLED WITH
53
+ 1.10.5
@@ -1,16 +1,20 @@
1
1
  = Friendly MIME
2
2
 
3
- Friendly::MIME provides possibility to show friendly description of a document by the given MIME type
3
+ Friendly::MIME provides possibility to show friendly description of a document by the given MIME type.
4
4
 
5
- ```ruby
6
- > Friendly::MIME.load
5
+ Add friendly_mime to your rails initializer:
6
+
7
+ # initializers/friendly_mime.rb
8
+ require 'friendly_mime'
9
+ Friendly::MIME.load
10
+
11
+ And now you can find by content type or file extension:
7
12
 
8
13
  > Friendly::MIME.find 'application/zip'
9
14
  => "Zip Archive"
10
15
 
11
16
  > Friendly::MIME.find '.zip'
12
17
  => "Zip Archive"
13
- ```
14
18
 
15
19
  == Contributing to friendly_mime
16
20
 
@@ -2,7 +2,7 @@ require 'csv'
2
2
 
3
3
  module Friendly
4
4
  class MIME
5
- VERSION = '1.0.1'
5
+ VERSION = '1.0.2'
6
6
 
7
7
  class << self
8
8
  attr_accessor :mimes
@@ -32,4 +32,4 @@ module Friendly
32
32
  end
33
33
  end
34
34
  end
35
- end
35
+ end
data/mimes.csv CHANGED
@@ -83,7 +83,7 @@ application/vnd.cluetrust.cartomobile-config,ClueTrust CartoMobile - Config,.c11
83
83
  application/vnd.cluetrust.cartomobile-config-pkg,ClueTrust CartoMobile - Config Package,.c11amz
84
84
  image/x-cmu-raster,CMU Image,.ras
85
85
  model/vnd.collada+xml,COLLADA,.dae
86
- text/csv,Comma-Seperated Values,.csv
86
+ text/csv,Comma-Separated Values,.csv
87
87
  application/mac-compactpro,Compact Pro,.cpt
88
88
  application/vnd.wap.wmlc,Compiled Wireless Markup Language (WMLC),.wmlc
89
89
  image/cgm,Computer Graphics Metafile,.cgm
@@ -264,7 +264,8 @@ application/javascript,JavaScript,.js
264
264
  application/json,JavaScript Object Notation (JSON),.json
265
265
  application/vnd.joost.joda-archive,Joda Archive,.joda
266
266
  video/jpm,JPEG 2000 Compound Image File Format,.jpm
267
- image/jpeg,JPEG Image,".jpeg, .jpg"
267
+ image/jpeg,JPEG Image,.jpeg
268
+ image/jpeg,JPEG Image,.jpg
268
269
  video/jpeg,JPGVideo,.jpgv
269
270
  application/vnd.kahootz,Kahootz,.ktz
270
271
  application/vnd.chipnuts.karaoke-mmd,Karaoke on Chipnuts Chipsets,.mmd
@@ -602,7 +603,7 @@ application/vnd.syncml.dm+xml,SyncML - Device Management,.xdm
602
603
  application/x-sv4cpio,System V Release 4 CPIO Archive,.sv4cpio
603
604
  application/x-sv4crc,System V Release 4 CPIO Checksum Data,.sv4crc
604
605
  application/sbml+xml,Systems Biology Markup Language,.sbml
605
- text/tab-separated-values,Tab Seperated Values,.tsv
606
+ text/tab-separated-values,Tab Separated Values,.tsv
606
607
  image/tiff,Tagged Image File Format,.tiff
607
608
  application/vnd.tao.intent-module-archive,Tao Intent,.tao
608
609
  application/x-tar,Tar File (Tape Archive),.tar
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: friendly_mime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
5
- prerelease:
4
+ version: 1.0.2
6
5
  platform: ruby
7
6
  authors:
8
- - Łukasz Śliwa
7
+ - "Łukasz Śliwa"
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-23 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rdoc
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '3.12'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '3.12'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: bundler
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '1.0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: '1.0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: jeweler
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: 1.8.7
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: 1.8.7
62
55
  description: Friendly::MIME gem provides possibility to show friendly description
@@ -68,7 +61,7 @@ extra_rdoc_files:
68
61
  - LICENSE.txt
69
62
  - README.rdoc
70
63
  files:
71
- - .document
64
+ - ".document"
72
65
  - Gemfile
73
66
  - Gemfile.lock
74
67
  - LICENSE.txt
@@ -82,29 +75,25 @@ files:
82
75
  homepage: http://github.com/lukaszsliwa/friendly_mime
83
76
  licenses:
84
77
  - MIT
78
+ metadata: {}
85
79
  post_install_message:
86
80
  rdoc_options: []
87
81
  require_paths:
88
82
  - lib
89
83
  required_ruby_version: !ruby/object:Gem::Requirement
90
- none: false
91
84
  requirements:
92
- - - ! '>='
85
+ - - ">="
93
86
  - !ruby/object:Gem::Version
94
87
  version: '0'
95
- segments:
96
- - 0
97
- hash: 306438243492939676
98
88
  required_rubygems_version: !ruby/object:Gem::Requirement
99
- none: false
100
89
  requirements:
101
- - - ! '>='
90
+ - - ">="
102
91
  - !ruby/object:Gem::Version
103
92
  version: '0'
104
93
  requirements: []
105
94
  rubyforge_project:
106
- rubygems_version: 1.8.25
95
+ rubygems_version: 2.4.6
107
96
  signing_key:
108
- specification_version: 3
97
+ specification_version: 4
109
98
  summary: Friendly::MIME gem provides possibility to show friendly description
110
99
  test_files: []