Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
syntax_j
mycard
Commits
2fa2e5ec
Commit
2fa2e5ec
authored
Dec 21, 2011
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rakefile进阶,for ruby193, clobber有问题,生成钱手动删除pkg文件夹比较好
parent
27db3c0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Rakefile
Rakefile
+2
-4
No files found.
Rakefile
View file @
2fa2e5ec
...
...
@@ -6,10 +6,9 @@ require 'rake/gempackagetask'
#require 'rake/testtask'
Windows
=
RUBY_PLATFORM
[
"mingw"
]
||
RUBY_PLATFORM
[
"mswin"
]
spec
=
Gem
::
Specification
.
new
do
|
s
|
s
.
name
=
'mycard'
s
.
version
=
'0.1'
s
.
version
=
'0.1
.0
'
s
.
extra_rdoc_files
=
[
'README.txt'
,
'LICENSE.txt'
]
s
.
summary
=
'a card game'
s
.
description
=
s
.
summary
...
...
@@ -21,7 +20,7 @@ spec = Gem::Specification.new do |s|
if
Windows
s
.
files
+=
%w(mycard.cmd)
+
Dir
.
glob
(
"{ruby}/**/*"
)
else
s
.
files
+=
%w(mycard.sh)
+
Dir
.
glob
(
"{ruby}/**/*"
)
s
.
files
+=
%w(mycard.sh)
end
s
.
require_path
=
"lib"
#s.bindir = "bin"
...
...
@@ -30,7 +29,6 @@ end
Rake
::
GemPackageTask
.
new
(
spec
)
do
|
p
|
p
.
gem_spec
=
spec
if
Windows
p
.
need_zip
=
true
p
.
zip_command
=
'7z a -tzip'
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