BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
build.rb
app/models/ci/build.rb
+1
-1
variables.rb
lib/gitlab/serializer/ci/variables.rb
+1
-1
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