Skip to content

Commit 2ecaa88

Browse files
committed
Correct GitLab capitalization
1 parent 765930d commit 2ecaa88

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

app/components/badge-gitlab.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ export default Ember.Component.extend({
88
return this.get('badge.attributes.branch') || 'master';
99
}),
1010
text: Ember.computed('badge', function() {
11-
return `Gitlab build status for the ${ this.get('branch') } branch`;
11+
return `GitLab build status for the ${ this.get('branch') } branch`;
1212
})
1313
});

src/badge.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub enum Badge {
1515
Appveyor {
1616
repository: String, branch: Option<String>, service: Option<String>,
1717
},
18-
Gitlab {
18+
GitLab {
1919
repository: String, branch: Option<String>,
2020
},
2121
}
@@ -62,14 +62,14 @@ impl Model for Badge {
6262
}
6363
},
6464
"gitlab" => {
65-
Badge::Gitlab {
65+
Badge::GitLab {
6666
branch: attributes.get("branch")
6767
.and_then(Json::as_string)
6868
.map(str::to_string),
6969
repository: attributes.get("repository")
7070
.and_then(Json::as_string)
7171
.map(str::to_string)
72-
.expect("Invalid Gitlab badge \
72+
.expect("Invalid GitLab badge \
7373
without repository in the \
7474
database"),
7575
}
@@ -100,7 +100,7 @@ impl Badge {
100100
match *self {
101101
Badge::TravisCi {..} => "travis-ci",
102102
Badge::Appveyor {..} => "appveyor",
103-
Badge::Gitlab{..} => "gitlab",
103+
Badge::GitLab{..} => "gitlab",
104104
}
105105
}
106106

@@ -138,7 +138,7 @@ impl Badge {
138138
);
139139
}
140140
},
141-
Badge::Gitlab { branch, repository } => {
141+
Badge::GitLab { branch, repository } => {
142142
attributes.insert(String::from("repository"), repository);
143143
if let Some(branch) = branch {
144144
attributes.insert(
@@ -186,7 +186,7 @@ impl Badge {
186186
"gitlab" => {
187187
match attributes.get("repository") {
188188
Some(repository) => {
189-
Ok(Badge::Gitlab {
189+
Ok(Badge::GitLab {
190190
repository: repository.to_string(),
191191
branch: attributes.get("branch")
192192
.map(String::to_string),

src/tests/badge.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn set_up() -> (MockRequest, Crate, BadgeRef) {
5555
String::from("rust-lang/rust")
5656
);
5757

58-
let gitlab = Badge::Gitlab {
58+
let gitlab = Badge::GitLab {
5959
branch: Some(String::from("beta")),
6060
repository: String::from("rust-lang/rust"),
6161
};

0 commit comments

Comments
 (0)