Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
10c1a4d8
Commit
10c1a4d8
authored
Feb 06, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename `Gitlab::Serialize` module to reuse it later
parent
50aec8dd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/models/ci/build.rb
app/models/ci/build.rb
+1
-1
lib/gitlab/serializer/ci/variables.rb
lib/gitlab/serializer/ci/variables.rb
+1
-1
spec/lib/gitlab/serializer/ci/variables_spec.rb
spec/lib/gitlab/serializer/ci/variables_spec.rb
+1
-1
No files found.
app/models/ci/build.rb
View file @
10c1a4d8
...
...
@@ -19,7 +19,7 @@ module Ci
end
serialize
:options
serialize
:yaml_variables
,
Gitlab
::
Serialize
::
Ci
::
Variables
serialize
:yaml_variables
,
Gitlab
::
Serialize
r
::
Ci
::
Variables
validates
:coverage
,
numericality:
true
,
allow_blank:
true
validates_presence_of
:ref
...
...
lib/gitlab/serialize/ci/variables.rb
→
lib/gitlab/serialize
r
/ci/variables.rb
View file @
10c1a4d8
module
Gitlab
module
Serialize
module
Serialize
r
module
Ci
# This serializer could make sure our YAML variables' keys and values
# are always strings. This is more for legacy build data because
...
...
spec/lib/gitlab/serialize/ci/variables_spec.rb
→
spec/lib/gitlab/serialize
r
/ci/variables_spec.rb
View file @
10c1a4d8
require
'spec_helper'
describe
Gitlab
::
Serialize
::
Ci
::
Variables
do
describe
Gitlab
::
Serialize
r
::
Ci
::
Variables
do
subject
do
described_class
.
load
(
described_class
.
dump
(
object
))
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