Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-images-generator
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
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
MyCard
ygopro-images-generator
Commits
4131a978
Commit
4131a978
authored
Apr 04, 2016
by
IamIpanda
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1 from mycard/master
gemfile & fix typoes
parents
668f6cd2
4f32cd3f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
6 deletions
+40
-6
Dockerfile
Dockerfile
+2
-0
Gemfile
Gemfile
+6
-0
Gemfile.lock
Gemfile.lock
+26
-0
HashJudger.rb
HashJudger.rb
+2
-2
Server.rb
Server.rb
+2
-2
YgoCoreJudgers.rb
YgoCoreJudgers.rb
+2
-2
No files found.
Dockerfile
0 → 100644
View file @
4131a978
FROM
ruby:onbuild
CMD
["./Server.rb"]
Gemfile
0 → 100644
View file @
4131a978
source
'
https://rubygems.org
'
gem
'
sinatra
'
gem
'
json
'
gem
'
sqlite3
'
gem
'
zip
'
Gemfile.lock
0 → 100644
View file @
4131a978
GEM
remote: https://rubygems.org/
specs:
json (1.8.3)
rack (1.6.4)
rack-protection (1.5.3)
rack
sinatra (1.4.7)
rack (~> 1.5)
rack-protection (~> 1.4)
tilt (>= 1.3, < 3)
sqlite3 (1.3.11)
tilt (2.0.2)
zip (2.0.2)
PLATFORMS
ruby
DEPENDENCIES
json
sinatra
sqlite3
zip
BUNDLED WITH
1.11.2
HashJudger.rb
View file @
4131a978
# Judge the hash.
# Use the JSON Version.
require
'
JSON
'
require
'
json
'
require
File
.
dirname
(
__FILE__
)
+
'/Authorize.rb'
require
File
.
dirname
(
__FILE__
)
+
'/Global.rb'
require
File
.
dirname
(
__FILE__
)
+
'/Log.rb'
...
...
@@ -98,4 +98,4 @@ module HashJudger
# 返还
return
[
adds
,
removes
,
changes
]
end
end
\ No newline at end of file
end
Server.rb
View file @
4131a978
...
...
@@ -2,7 +2,7 @@
require
"sinatra"
require
File
.
dirname
(
__FILE__
)
+
"/Git.rb"
require
File
.
dirname
(
__FILE__
)
+
"/Command.rb"
require
File
.
dirname
(
__FILE__
)
+
"/Command
s
.rb"
post
'/command'
do
...
...
@@ -13,4 +13,4 @@ post '/hook' do
Commands
.
generate_delta
Git
.
commit
Git
.
push
end
\ No newline at end of file
end
YgoCoreJudgers.rb
View file @
4131a978
...
...
@@ -35,7 +35,7 @@ CREATE TABLE texts(
select * from datas join
=end
require
File
.
dirname
(
__FILE__
)
+
'/Ygo
c
oreConstants.rb'
require
File
.
dirname
(
__FILE__
)
+
'/Ygo
C
oreConstants.rb'
require
File
.
dirname
(
__FILE__
)
+
'/MSEConstants.rb'
require
File
.
dirname
(
__FILE__
)
+
'/LanguageConstants.rb'
...
...
@@ -335,4 +335,4 @@ module YGOCoreJudgers
def
get_log_str
(
card
)
"[
#{
self
.
get_id_str
(
card
)
}
]
#{
self
.
get_name
(
card
)
}
"
end
end
\ No newline at end of file
end
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