mime-types 3.3.1 → 3.4.1

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
  SHA256:
3
- metadata.gz: 727050c60daa98ccb85692629f83999009ca6d6cd259e15ceebdaf524da14c0a
4
- data.tar.gz: 28a5af3883b49bd685f35cd84247dbe3c6894d5cca8417c212d3bb0d261b23d4
3
+ metadata.gz: 443bfcc0047c25a8ac7cc9e7a2fea95f8d4707e8fa3a98d0b99bee421e168708
4
+ data.tar.gz: 39756d60550165df9787a4967c376faac32179fd442d176766893b7454ed977d
5
5
  SHA512:
6
- metadata.gz: bb64be5b69ac765df59ea4ae0fd17f549263107c59878954e3613b44519a73eacfe00f2e28e0369452afe1a4c4846a98a5f59402d559a7b3acf9de78388bff4a
7
- data.tar.gz: 1141d794103db9810da89504387f56caa84e704f523197072393855a8f9a89e474b52794d9de6a09d750634711446ce4731971a13fbe642a32f58e5f7f27b0fb
6
+ metadata.gz: d711882ac22adb5a8ab3e4953a508c06e870990ad0d41d0256679bcb66c7953686ba4b23ac1470ea6ee07d6026d793f57fb7d377d321fb972252365c8fd22622
7
+ data.tar.gz: 3d20e16be727ee9b62ab599a939524148577b54281a63705b0b75a9eea7c6f51df169bc6979ce8b616c3b707921c1021ac06b226bb8df28f5337d1f76107a293
data/Code-of-Conduct.md CHANGED
@@ -14,21 +14,21 @@ appearance, race, religion, or sexual identity and orientation.
14
14
  Examples of behavior that contributes to creating a positive environment
15
15
  include:
16
16
 
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
17
+ - Using welcoming and inclusive language
18
+ - Being respectful of differing viewpoints and experiences
19
+ - Gracefully accepting constructive criticism
20
+ - Focusing on what is best for the community
21
+ - Showing empathy towards other community members
22
22
 
23
23
  Examples of unacceptable behavior by participants include:
24
24
 
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
25
+ - The use of sexualized language or imagery and unwelcome sexual attention or
26
26
  advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
27
+ - Trolling, insulting/derogatory comments, and personal or political attacks
28
+ - Public or private harassment
29
+ - Publishing others' private information, such as a physical or electronic
30
30
  address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
31
+ - Other conduct which could reasonably be considered inappropriate in a
32
32
  professional setting
33
33
 
34
34
  ## Our Responsibilities
data/Contributing.md CHANGED
@@ -1,143 +1,132 @@
1
- ## Contributing
1
+ # Contributing
2
2
 
3
3
  I value any contribution to mime-types you can provide: a bug report, a feature
4
4
  request, or code contributions.
5
5
 
6
6
  There are a few guidelines for contributing to mime-types:
7
7
 
8
- * Code changes *will* *not* be accepted without tests. The test suite is
9
- written with [minitest][].
10
- * Match my coding style.
11
- * Use a thoughtfully-named topic branch that contains your change. Rebase your
8
+ - Code changes _will_ _not_ be accepted without tests. The test suite is
9
+ written with [minitest].
10
+ - Match my coding style.
11
+ - Use a thoughtfully-named topic branch that contains your change. Rebase your
12
12
  commits into logical chunks as necessary.
13
- * Use [quality commit messages][].
14
- * Do not change the version number; when your patch is accepted and a release
13
+ - Use [quality commit messages].
14
+ - Do not change the version number; when your patch is accepted and a release
15
15
  is made, the version will be updated at that point.
16
- * Submit a GitHub pull request with your changes.
17
- * New or changed behaviours require new or updated documentation.
16
+ - Submit a GitHub pull request with your changes.
17
+ - New or changed behaviours require new or updated documentation.
18
18
 
19
- ### Adding or Modifying MIME Types
19
+ ## Adding or Modifying MIME Types
20
20
 
21
21
  The mime-types registry is no longer contained in mime-types, but in
22
- [mime-types-data][]. Please see that project for contributions there.
22
+ [mime-types-data]. Please see that project for contributions there.
23
23
 
24
24
  ### Test Dependencies
25
25
 
26
- mime-types uses Ryan Davis’s [Hoe][] to manage the release process, and it adds
27
- a number of rake tasks. You will mostly be interested in:
26
+ mime-types uses Ryan Davis’s [Hoe] to manage the release process, and it adds
27
+ a number of rake tasks. You will mostly be interested in `rake`, which runs
28
+ the tests the same way that `rake test` or `rake travis` will do.
28
29
 
29
- $ rake
30
-
31
- which runs the tests the same way that:
32
-
33
- $ rake test
34
- $ rake travis
35
-
36
- will do.
37
-
38
- To assist with the installation of the development dependencies for mime-types,
39
- I have provided the simplest possible Gemfile pointing to the (generated)
40
- `mime-types.gemspec` file. This will permit you to do:
41
-
42
- $ bundle install
43
-
44
- to get the development dependencies. If you aleady have +hoe+ installed, you
45
- can accomplish the same thing with:
46
-
47
- $ rake newb
30
+ To assist with the installation of the development dependencies for
31
+ mime-types, I have provided the simplest possible Gemfile pointing to the
32
+ (generated) `mime-types.gemspec` file. This will permit you to do `bundle
33
+ install` to get the development dependencies. If you aleady have `hoe`
34
+ installed, you can accomplish the same thing with `rake newb`.
48
35
 
49
36
  This task will install any missing dependencies, run the tests/specs, and
50
37
  generate the RDoc.
51
38
 
52
- You can run tests with code coverage analysis by running:
53
-
54
- $ rake test:coverage
39
+ You can run tests with code coverage analysis by running `rake
40
+ test:coverage`.
55
41
 
56
- ### Benchmarks
42
+ ## Benchmarks
57
43
 
58
44
  mime-types offers several benchmark tasks to measure different measures of
59
45
  performance.
60
46
 
61
47
  There is a repeated load test, measuring how long it takes to start and load
62
48
  mime-types with its full registry. By default, it runs fifty loops and uses the
63
- built-in benchmark library.
49
+ built-in benchmark library:
64
50
 
65
- $ rake benchmark:load
51
+ - `rake benchmark:load`
66
52
 
67
53
  There are two allocation tracing benchmarks (for normal and columnar loads).
68
54
  These can only be run on Ruby 2.1 or better and requires the
69
- [allocation\_tracer][] gem (not installed by default).
55
+ [allocation\_tracer] gem (not installed by default).
70
56
 
71
- $ rake benchmark:allocations
72
- $ rake benchmark:allocations:columnar
57
+ - `rake benchmark:allocations`
58
+ - `rake benchmark:allocations:columnar`
73
59
 
74
60
  There are two loaded object count benchmarks (for normal and columnar loads).
75
61
  These use `ObjectSpace.count_objects`.
76
62
 
77
- $ rake benchmark:objects
78
- $ rake benchmark:objects:columnar
63
+ - `rake benchmark:objects`
64
+ - `rake benchmark:objects:columnar`
79
65
 
80
- ### Workflow
66
+ ## Workflow
81
67
 
82
68
  Here's the most direct way to get your work merged into the project:
83
69
 
84
- * Fork the project.
85
- * Clone down your fork (`git clone git://github.com/<username>/ruby-mime-types.git`).
86
- * Create a topic branch to contain your change (`git checkout -b my_awesome_feature`).
87
- * Hack away, add tests. Not necessarily in that order.
88
- * Make sure everything still passes by running `rake`.
89
- * If necessary, rebase your commits into logical chunks, without errors.
90
- * Push the branch up (`git push origin my_awesome_feature`).
91
- * Create a pull request against mime-types/ruby-mime-types and describe what
70
+ - Fork the project.
71
+ - Clone down your fork (`git clone git://github.com/<username>/ruby-mime-types.git`).
72
+ - Create a topic branch to contain your change (`git checkout -b my_awesome_feature`).
73
+ - Hack away, add tests. Not necessarily in that order.
74
+ - Make sure everything still passes by running `rake`.
75
+ - If necessary, rebase your commits into logical chunks, without errors.
76
+ - Push the branch up (`git push origin my_awesome_feature`).
77
+ - Create a pull request against mime-types/ruby-mime-types and describe what
92
78
  your change does and the why you think it should be merged.
93
79
 
94
- ### Contributors
80
+ ## Contributors
95
81
 
96
- * Austin Ziegler created mime-types.
82
+ - Austin Ziegler created mime-types.
97
83
 
98
84
  Thanks to everyone else who has contributed to mime-types over the years:
99
85
 
100
- * Aaron Patterson
101
- * Aggelos Avgerinos
102
- * Al Snow
103
- * Andre Pankratz
104
- * Andy Brody
105
- * Arnaud Meuret
106
- * Brandon Galbraith
107
- * Burke Libbey
108
- * Chris Gat
109
- * David Genord
110
- * Dillon Welch
111
- * Eric Marden
112
- * Edward Betts
113
- * Garret Alfert
114
- * Godfrey Chan
115
- * Greg Brockman
116
- * Hans de Graaff
117
- * Henrik Hodne
118
- * Janko Marohnić
119
- * Jean Boussier
120
- * Jeremy Evans
121
- * Juanito Fatas
122
- * Jun Aruga
123
- * Łukasz Śliwa
124
- * Keerthi Siva
125
- * Ken Ip
126
- * Martin d'Allens
127
- * Mauricio Linhares
128
- * Nicolas Leger
129
- * Nicholas La Roux
130
- * nycvotes-dev
131
- * Olle Jonsson
132
- * Postmodern
133
- * Richard Hirner
134
- * Richard Hurt
135
- * Richard Schneeman
136
- * Tibor Szolár
137
- * Todd Carrico
86
+ - Aaron Patterson
87
+ - Aggelos Avgerinos
88
+ - Al Snow
89
+ - Andre Pankratz
90
+ - Andy Brody
91
+ - Arnaud Meuret
92
+ - Brandon Galbraith
93
+ - Burke Libbey
94
+ - Chris Gat
95
+ - David Genord
96
+ - Dillon Welch
97
+ - Eric Marden
98
+ - Edward Betts
99
+ - Garret Alfert
100
+ - Godfrey Chan
101
+ - Greg Brockman
102
+ - Hans de Graaff
103
+ - Henrik Hodne
104
+ - Igor Victor
105
+ - Janko Marohnić
106
+ - Jean Boussier
107
+ - Jeremy Evans
108
+ - Juanito Fatas
109
+ - Jun Aruga
110
+ - Łukasz Śliwa
111
+ - Keerthi Siva
112
+ - Ken Ip
113
+ - Kevin Menard
114
+ - Koichi ITO
115
+ - Martin d'Allens
116
+ - Mauricio Linhares
117
+ - Nicolas Leger
118
+ - Nicholas La Roux
119
+ - nycvotes-dev
120
+ - Olle Jonsson
121
+ - Postmodern
122
+ - Richard Hirner
123
+ - Richard Hurt
124
+ - Richard Schneeman
125
+ - Tibor Szolár
126
+ - Todd Carrico
138
127
 
139
128
  [minitest]: https://github.com/seattlerb/minitest
140
129
  [quality commit messages]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
141
130
  [mime-types-data]: https://github.com/mime-types/mime-types-data
142
- [Hoe]: https://github.com/seattlerb/hoe
131
+ [hoe]: https://github.com/seattlerb/hoe
143
132
  [allocation\_tracer]: https://github.com/ko1/allocation_tracer