Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
a90e8317
Commit
a90e8317
authored
Jan 02, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1631 from cremno/fix-ruby-warnings
fix some warnings emitted by 'ruby -w'
parents
e8dd8180
4804b3f7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
tasks/mrbgems_test.rake
tasks/mrbgems_test.rake
+1
-1
tasks/mruby_build_commands.rake
tasks/mruby_build_commands.rake
+2
-2
tasks/mruby_build_gem.rake
tasks/mruby_build_gem.rake
+3
-3
No files found.
tasks/mrbgems_test.rake
View file @
a90e8317
...
...
@@ -8,7 +8,7 @@ MRuby.each_target do
g
.
print_gem_init_header
(
f
)
test_preload
=
[
g
.
dir
,
MRUBY_ROOT
].
map
{
|
dir
|
File
.
expand_path
(
g
.
test_preload
,
dir
)
}.
find
{
|
file
|
File
.
exist
s
?
(
file
)
}
}.
find
{
|
file
|
File
.
exist?
(
file
)
}
g
.
build
.
mrbc
.
run
f
,
test_preload
,
"gem_test_irep_
#{
g
.
funcname
}
_preload"
g
.
test_rbfiles
.
flatten
.
each_with_index
do
|
rbfile
,
i
|
...
...
tasks/mruby_build_commands.rake
View file @
a90e8317
...
...
@@ -106,7 +106,7 @@ module MRuby
private
def
get_dependencies
(
file
)
file
=
file
.
ext
(
'd'
)
unless
File
.
extname
(
file
)
==
'.d'
if
File
.
exist
s
?
(
file
)
if
File
.
exist?
(
file
)
File
.
read
(
file
).
gsub
(
"
\\\n
"
,
""
).
scan
(
/^\S+:\s+(.+)$/
).
flatten
.
map
{
|
s
|
s
.
split
(
' '
)
}.
flatten
else
[]
...
...
@@ -265,7 +265,7 @@ module MRuby
# if mrbc execution fail, drop the file
unless
$?
.
exitstatus
File
.
delete
(
out
.
path
)
exit
-
1
exit
(
-
1
)
end
end
end
...
...
tasks/mruby_build_gem.rake
View file @
a90e8317
...
...
@@ -2,7 +2,7 @@ module MRuby
module
LoadGems
def
gembox
(
gemboxfile
)
gembox
=
File
.
expand_path
(
"
#{
gemboxfile
}
.gembox"
,
"
#{
MRUBY_ROOT
}
/mrbgems"
)
fail
"Can't find gembox '
#{
gembox
}
'"
unless
File
.
exist
s
?
(
gembox
)
fail
"Can't find gembox '
#{
gembox
}
'"
unless
File
.
exist?
(
gembox
)
GemBox
.
config
=
self
GemBox
.
path
=
gembox
...
...
@@ -25,7 +25,7 @@ module MRuby
gemrake
=
File
.
join
(
gemdir
,
"mrbgem.rake"
)
fail
"Can't find
#{
gemrake
}
"
unless
File
.
exist
s
?
(
gemrake
)
fail
"Can't find
#{
gemrake
}
"
unless
File
.
exist?
(
gemrake
)
Gem
.
current
=
nil
load
gemrake
return
nil
unless
Gem
.
current
...
...
@@ -50,7 +50,7 @@ module MRuby
url
=
params
[
:git
]
gemdir
=
"
#{
gem_clone_dir
}
/
#{
url
.
match
(
/([-\w]+)(\.[-\w]+|)$/
).
to_a
[
1
]
}
"
if
File
.
exist
s
?
(
gemdir
)
if
File
.
exist?
(
gemdir
)
if
$pull_gems
git
.
run_pull
gemdir
,
url
else
...
...
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