file_wrapper 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +9 -7
- data/file_wrapper.gemspec +3 -4
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -1,16 +1,18 @@
|
|
1
|
-
FileWrapper
|
2
|
-
===========
|
1
|
+
= FileWrapper
|
3
2
|
|
4
|
-
FileWrapper is a Rails plugin which wraps the command line utility 'file' to detect the mime-type of a file.
|
3
|
+
FileWrapper is a Rails plugin and RubyGem which wraps the command line utility 'file' to detect the mime-type of a file.
|
5
4
|
|
6
|
-
Installation
|
7
|
-
=======
|
5
|
+
== Installation as Rails plugin
|
8
6
|
|
9
7
|
From the Rails project root, execute:
|
10
8
|
script/plugin install git://github.com/Narnach/file_wrapper.git
|
11
9
|
|
12
|
-
|
13
|
-
|
10
|
+
== Installation as gem
|
11
|
+
|
12
|
+
Install the gem by executing:
|
13
|
+
sudo gem install Narnach-file_wrapper --remote --source http://gems.github.com
|
14
|
+
|
15
|
+
== Example
|
14
16
|
|
15
17
|
Detect the mime-type of a file.
|
16
18
|
FileWrapper.get_mime('Rakefile') #=> 'text/plain'
|
data/file_wrapper.gemspec
CHANGED
@@ -2,9 +2,9 @@ Gem::Specification.new do |s|
|
|
2
2
|
# Project
|
3
3
|
s.name = 'file_wrapper'
|
4
4
|
s.summary = "FileWrapper wraps the command line utility 'file' to detect the mime-type of a file."
|
5
|
-
s.description = "FileWrapper is a RubyGem which wraps the command line utility 'file' to detect the mime-type of a file."
|
6
|
-
s.version = '0.
|
7
|
-
s.date = '
|
5
|
+
s.description = "FileWrapper is a RubyGem and Rails plugin which wraps the command line utility 'file' to detect the mime-type of a file."
|
6
|
+
s.version = '0.4.0'
|
7
|
+
s.date = '2009-01-14'
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Wes Oldenbeuving"]
|
10
10
|
s.email = "narnach@gmail.com"
|
@@ -14,7 +14,6 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.require_path = "lib"
|
15
15
|
s.files = ['file_wrapper.gemspec', 'MIT-LICENSE', 'README.rdoc', 'Rakefile', 'init.rb', 'lib/file_wrapper.rb', 'test/file_wrapper_test.rb']
|
16
16
|
s.test_files = ['test/file_wrapper_test.rb']
|
17
|
-
s.autorequire = "init.rb"
|
18
17
|
|
19
18
|
# rdoc
|
20
19
|
s.has_rdoc = true
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: file_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wes Oldenbeuving
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-01-14 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description: FileWrapper is a RubyGem which wraps the command line utility 'file' to detect the mime-type of a file.
|
16
|
+
description: FileWrapper is a RubyGem and Rails plugin which wraps the command line utility 'file' to detect the mime-type of a file.
|
17
17
|
email: narnach@gmail.com
|
18
18
|
executables: []
|
19
19
|
|