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
3072acbf
Commit
3072acbf
authored
Dec 26, 2012
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitattr
parent
2cc864c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
84 deletions
+78
-84
.gitattributes
.gitattributes
+0
-6
.gitignore
.gitignore
+14
-14
Rakefile
Rakefile
+64
-64
No files found.
.gitattributes
View file @
3072acbf
...
@@ -4,11 +4,5 @@
...
@@ -4,11 +4,5 @@
*.rb text
*.rb text
*.yml text
*.yml text
*.html text
*.js text
*.coffee text
*.css text
*.less text
*.png binary
*.png binary
*.jpg binary
*.jpg binary
\ No newline at end of file
.gitignore
View file @
3072acbf
/nbproject/
/nbproject/
/.idea/
/.idea/
/ruby/
/ruby/
/pkg/
/pkg/
/config.yml
/config.yml
/log.log
/log.log
/profile.log
/profile.log
/replay/
/replay/
/mycard/
/mycard/
/mycard.exe
/mycard.exe
/7z.exe
/7z.exe
/ygocore/
/ygocore/
/images/
/images/
/error-程序出错请到论坛反馈.txt
/error-程序出错请到论坛反馈.txt
Thumbs.db
Thumbs.db
\ No newline at end of file
Rakefile
View file @
3072acbf
#encoding: UTF-8
#encoding: UTF-8
require
'rubygems'
require
'rubygems'
require
'rake'
require
'rake'
require
'rake/clean'
require
'rake/clean'
require
'rubygems/package_task'
require
'rubygems/package_task'
require
'rdoc/task'
require
'rdoc/task'
#require 'rake/testtask'
#require 'rake/testtask'
Windows
=
RUBY_PLATFORM
[
"mingw"
]
||
RUBY_PLATFORM
[
"mswin"
]
Windows
=
RUBY_PLATFORM
[
"mingw"
]
||
RUBY_PLATFORM
[
"mswin"
]
#在windows上UTF-8脚本编码环境中 Dir.glob无法列出中文目录下的文件 所以自己写个递归
#在windows上UTF-8脚本编码环境中 Dir.glob无法列出中文目录下的文件 所以自己写个递归
def
list
(
path
)
def
list
(
path
)
result
=
[]
result
=
[]
Dir
.
foreach
(
path
)
do
|
file
|
Dir
.
foreach
(
path
)
do
|
file
|
next
if
file
==
"."
or
file
==
".."
next
if
file
==
"."
or
file
==
".."
result
<<
"
#{
path
}
/
#{
file
}
"
result
<<
"
#{
path
}
/
#{
file
}
"
result
.
concat
list
(
result
.
last
)
if
File
.
directory?
result
.
last
result
.
concat
list
(
result
.
last
)
if
File
.
directory?
result
.
last
end
rescue
p
$!
end
rescue
p
$!
result
result
end
end
spec
=
Gem
::
Specification
.
new
do
|
s
|
spec
=
Gem
::
Specification
.
new
do
|
s
|
s
.
name
=
'mycard'
s
.
name
=
'mycard'
s
.
version
=
'0.8.5'
s
.
version
=
'0.8.5'
s
.
extra_rdoc_files
=
[
'README.txt'
,
'LICENSE.txt'
]
s
.
extra_rdoc_files
=
[
'README.txt'
,
'LICENSE.txt'
]
s
.
summary
=
'a card game'
s
.
summary
=
'a card game'
s
.
description
=
s
.
summary
s
.
description
=
s
.
summary
s
.
author
=
'zh99998'
s
.
author
=
'zh99998'
s
.
email
=
'zh99998@gmail.com'
s
.
email
=
'zh99998@gmail.com'
s
.
homepage
=
'http://my-card.in'
s
.
homepage
=
'http://my-card.in'
# s.executables = ['your_executable_here']
# s.executables = ['your_executable_here']
s
.
files
=
%w(LICENSE.txt README.txt config.yml replay)
s
.
files
=
%w(LICENSE.txt README.txt config.yml replay)
%w{lib audio data fonts locales graphics ygocore}
.
each
{
|
dir
|
s
.
files
.
concat
list
(
dir
)}
%w{lib audio data fonts locales graphics ygocore}
.
each
{
|
dir
|
s
.
files
.
concat
list
(
dir
)}
if
Windows
if
Windows
s
.
files
+=
%w(mycard.exe)
+
list
(
"ruby"
)
s
.
files
+=
%w(mycard.exe)
+
list
(
"ruby"
)
else
else
s
.
files
+=
%w(install.sh)
s
.
files
+=
%w(install.sh)
end
end
s
.
require_path
=
"lib"
s
.
require_path
=
"lib"
#s.bindir = "bin"
#s.bindir = "bin"
end
end
Gem
::
PackageTask
.
new
(
spec
)
do
|
p
|
Gem
::
PackageTask
.
new
(
spec
)
do
|
p
|
p
.
gem_spec
=
spec
p
.
gem_spec
=
spec
if
Windows
if
Windows
p
.
need_zip
=
true
p
.
need_zip
=
true
p
.
zip_command
=
'7z a'
p
.
zip_command
=
'7z a'
def
p
.
zip_file
def
p
.
zip_file
"
#{
package_name
}
-win32.7z"
"
#{
package_name
}
-win32.7z"
end
end
else
else
p
.
need_tar
=
true
p
.
need_tar
=
true
end
end
end
end
Rake
::
RDocTask
.
new
do
|
rdoc
|
Rake
::
RDocTask
.
new
do
|
rdoc
|
files
=
[
'README.txt'
,
'LICENSE.txt'
,
'lib/**/*.rb'
]
files
=
[
'README.txt'
,
'LICENSE.txt'
,
'lib/**/*.rb'
]
rdoc
.
rdoc_files
.
add
(
files
)
rdoc
.
rdoc_files
.
add
(
files
)
rdoc
.
main
=
"README.txt"
# page to start on
rdoc
.
main
=
"README.txt"
# page to start on
rdoc
.
title
=
"Mycard Docs"
rdoc
.
title
=
"Mycard Docs"
rdoc
.
rdoc_dir
=
'doc/rdoc'
# rdoc output folder
rdoc
.
rdoc_dir
=
'doc/rdoc'
# rdoc output folder
rdoc
.
options
<<
'--line-numbers'
rdoc
.
options
<<
'--line-numbers'
end
end
CLOBBER
.
include
%w(error-程序出错请到论坛反馈.txt log.log profile.log config.yml doc ygocore/pics)
+
list
(
'replay'
)
+
list
(
'ygocore/replay'
)
+
list
(
'.'
).
keep_if
{
|
file
|
File
.
basename
(
file
)
==
"Thumbs.db"
}
+
list
(
"graphics/avatars"
).
reject
{
|
file
|
File
.
basename
(
file
)
=~
/(?:error|loading)_(?:small|middle|large)\.png/
}
+
list
(
"ygocore/deck"
).
keep_if
{
|
file
|
File
.
basename
(
file
)
!=
'sample.ydk'
}
CLOBBER
.
include
%w(error-程序出错请到论坛反馈.txt log.log profile.log config.yml doc ygocore/pics)
+
list
(
'replay'
)
+
list
(
'ygocore/replay'
)
+
list
(
'.'
).
keep_if
{
|
file
|
File
.
basename
(
file
)
==
"Thumbs.db"
}
+
list
(
"graphics/avatars"
).
reject
{
|
file
|
File
.
basename
(
file
)
=~
/(?:error|loading)_(?:small|middle|large)\.png/
}
+
list
(
"ygocore/deck"
).
keep_if
{
|
file
|
File
.
basename
(
file
)
!=
'sample.ydk'
}
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