Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mimemagic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
mimemagic
Commits
a886e96f
Unverified
Commit
a886e96f
authored
Mar 26, 2021
by
Andrew Haines
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write path.rb to Ruby arch dir so that it can be cached by Bundler
parent
ffcff44b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
ext/mimemagic/Rakefile
+5
-1
No files found.
ext/mimemagic/Rakefile
View file @
a886e96f
...
...
@@ -23,7 +23,11 @@ end
desc
"Build a file pointing at the database"
task
:default
do
mime_database_path
=
locate_mime_database
open
(
"../../lib/mimemagic/path.rb"
,
"w"
)
do
|
f
|
target_dir
=
"
#{
ENV
.
fetch
(
"RUBYARCHDIR"
)
}
/mimemagic"
mkdir_p
target_dir
open
(
"
#{
target_dir
}
/path.rb"
,
"w"
)
do
|
f
|
f
.
print
(
%Q{
class MimeMagic
DATABASE_PATH="
#{
mime_database_path
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment