Skip to content

Commit 7756298

Browse files
committed
chore: fix line endings
1 parent 747ef44 commit 7756298

File tree

27 files changed

+1348
-1307
lines changed

27 files changed

+1348
-1307
lines changed

.gitattributes

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Handle line endings automatically for files detected as text
2+
# and leave all files detected as binary untouched.
3+
* text=auto
4+
5+
#
6+
# The above will handle all files NOT found below
7+
#
8+
# These files are text and should be normalized (Convert crlf => lf)
9+
*.css text
10+
*.df text
11+
*.htm text
12+
*.html text
13+
*.java text
14+
*.js text
15+
*.json text
16+
*.jsp text
17+
*.jspf text
18+
*.jspx text
19+
*.properties text
20+
*.sh text
21+
*.tld text
22+
*.txt text
23+
*.tag text
24+
*.tagx text
25+
*.xml text
26+
*.yml text
27+
28+
# These files are binary and should be left untouched
29+
# (binary is a macro for -text -diff)
30+
*.class binary
31+
*.dll binary
32+
*.ear binary
33+
*.gif binary
34+
*.ico binary
35+
*.jar binary
36+
*.jpg binary
37+
*.jpeg binary
38+
*.png binary
39+
*.so binary
40+
*.war binary
41+

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
language: java
2-
sudo: false
3-
jdk:
4-
- oraclejdk8
5-
script: ./mvnw clean verify -Prun-its
6-
cache:
7-
directories:
8-
- '$HOME/.m2/repository'
1+
language: java
2+
sudo: false
3+
jdk:
4+
- oraclejdk8
5+
script: ./mvnw clean verify -Prun-its
6+
cache:
7+
directories:
8+
- '$HOME/.m2/repository'

restdocs-spec-generator/pom.xml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4-
<modelVersion>4.0.0</modelVersion>
5-
6-
<parent>
7-
<groupId>com.github.berkleytechnologyservices.restdocs-spec</groupId>
8-
<artifactId>restdocs-spec</artifactId>
9-
<version>0.8-SNAPSHOT</version>
10-
</parent>
11-
12-
<artifactId>restdocs-spec-generator</artifactId>
13-
14-
<name>Restdocs Spec Generator</name>
15-
<description>Generate API specifications using snippets generated by Spring Rest Docs.</description>
16-
17-
<dependencies>
18-
<dependency>
19-
<groupId>com.github.epages-de.restdocs-openapi</groupId>
20-
<artifactId>restdocs-openapi-generator</artifactId>
21-
</dependency>
22-
<dependency>
23-
<groupId>com.github.epages-de.restdocs-openapi</groupId>
24-
<artifactId>restdocs-openapi-model</artifactId>
25-
</dependency>
26-
<dependency>
27-
<groupId>javax.inject</groupId>
28-
<artifactId>javax.inject</artifactId>
29-
<scope>provided</scope>
30-
</dependency>
31-
</dependencies>
32-
33-
<build>
34-
<plugins>
35-
<plugin>
36-
<groupId>org.eclipse.sisu</groupId>
37-
<artifactId>sisu-maven-plugin</artifactId>
38-
<executions>
39-
<execution>
40-
<id>generate-index</id>
41-
<goals>
42-
<goal>main-index</goal>
43-
</goals>
44-
</execution>
45-
</executions>
46-
</plugin>
47-
</plugins>
48-
</build>
49-
50-
</project>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<parent>
7+
<groupId>com.github.berkleytechnologyservices.restdocs-spec</groupId>
8+
<artifactId>restdocs-spec</artifactId>
9+
<version>0.8-SNAPSHOT</version>
10+
</parent>
11+
12+
<artifactId>restdocs-spec-generator</artifactId>
13+
14+
<name>Restdocs Spec Generator</name>
15+
<description>Generate API specifications using snippets generated by Spring Rest Docs.</description>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>com.github.epages-de.restdocs-openapi</groupId>
20+
<artifactId>restdocs-openapi-generator</artifactId>
21+
</dependency>
22+
<dependency>
23+
<groupId>com.github.epages-de.restdocs-openapi</groupId>
24+
<artifactId>restdocs-openapi-model</artifactId>
25+
</dependency>
26+
<dependency>
27+
<groupId>javax.inject</groupId>
28+
<artifactId>javax.inject</artifactId>
29+
<scope>provided</scope>
30+
</dependency>
31+
</dependencies>
32+
33+
<build>
34+
<plugins>
35+
<plugin>
36+
<groupId>org.eclipse.sisu</groupId>
37+
<artifactId>sisu-maven-plugin</artifactId>
38+
<executions>
39+
<execution>
40+
<id>generate-index</id>
41+
<goals>
42+
<goal>main-index</goal>
43+
</goals>
44+
</execution>
45+
</executions>
46+
</plugin>
47+
</plugins>
48+
</build>
49+
50+
</project>
Lines changed: 94 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,94 @@
1-
package com.berkleytechnologyservices.restdocs.spec;
2-
3-
import java.util.Collections;
4-
import java.util.List;
5-
6-
public class ApiDetails {
7-
8-
private static final String DEFAULT_NAME = "API Documentation";
9-
private static final String DEFAULT_VERSION = "1.0.0";
10-
private static final String DEFAULT_HOST = "localhost";
11-
private static final List<String> DEFAULT_SCHEMES = Collections.singletonList("http");
12-
private static final SpecificationFormat DEFAULT_FORMAT = SpecificationFormat.YAML;
13-
14-
private String name;
15-
private String version;
16-
private String host;
17-
private String basePath;
18-
private List<String> schemes;
19-
private SpecificationFormat format;
20-
private AuthConfig authConfig;
21-
22-
public ApiDetails() {
23-
this.name = DEFAULT_NAME;
24-
this.version = DEFAULT_VERSION;
25-
this.host = DEFAULT_HOST;
26-
this.basePath = null;
27-
this.schemes = DEFAULT_SCHEMES;
28-
this.format = DEFAULT_FORMAT;
29-
this.authConfig = new AuthConfig();
30-
}
31-
32-
public String getName() {
33-
return name;
34-
}
35-
36-
public ApiDetails name(String name) {
37-
this.name = name != null ? name : DEFAULT_NAME;
38-
return this;
39-
}
40-
41-
public String getVersion() {
42-
return version;
43-
}
44-
45-
public ApiDetails version(String version) {
46-
this.version = version != null ? version : DEFAULT_VERSION;
47-
return this;
48-
}
49-
50-
public String getHost() {
51-
return host;
52-
}
53-
54-
public ApiDetails host(String host) {
55-
this.host = host != null ? host : DEFAULT_HOST;
56-
return this;
57-
}
58-
59-
public String getBasePath() {
60-
return basePath;
61-
}
62-
63-
public ApiDetails basePath(String basePath) {
64-
this.basePath = basePath;
65-
return this;
66-
}
67-
68-
public List<String> getSchemes() {
69-
return schemes;
70-
}
71-
72-
public ApiDetails schemes(List<String> schemes) {
73-
this.schemes = schemes != null && !schemes.isEmpty() ? Collections.unmodifiableList(schemes) : DEFAULT_SCHEMES;
74-
return this;
75-
}
76-
77-
public SpecificationFormat getFormat() {
78-
return format;
79-
}
80-
81-
public ApiDetails format(SpecificationFormat format) {
82-
this.format = format != null ? format : DEFAULT_FORMAT;
83-
return this;
84-
}
85-
86-
public AuthConfig getAuthConfig() {
87-
return this.authConfig;
88-
}
89-
90-
public ApiDetails authConfig(AuthConfig authConfig) {
91-
this.authConfig = authConfig != null ? authConfig : new AuthConfig();
92-
return this;
93-
}
94-
}
1+
package com.berkleytechnologyservices.restdocs.spec;
2+
3+
import java.util.Collections;
4+
import java.util.List;
5+
6+
public class ApiDetails {
7+
8+
private static final String DEFAULT_NAME = "API Documentation";
9+
private static final String DEFAULT_VERSION = "1.0.0";
10+
private static final String DEFAULT_HOST = "localhost";
11+
private static final List<String> DEFAULT_SCHEMES = Collections.singletonList("http");
12+
private static final SpecificationFormat DEFAULT_FORMAT = SpecificationFormat.YAML;
13+
14+
private String name;
15+
private String version;
16+
private String host;
17+
private String basePath;
18+
private List<String> schemes;
19+
private SpecificationFormat format;
20+
private AuthConfig authConfig;
21+
22+
public ApiDetails() {
23+
this.name = DEFAULT_NAME;
24+
this.version = DEFAULT_VERSION;
25+
this.host = DEFAULT_HOST;
26+
this.basePath = null;
27+
this.schemes = DEFAULT_SCHEMES;
28+
this.format = DEFAULT_FORMAT;
29+
this.authConfig = new AuthConfig();
30+
}
31+
32+
public String getName() {
33+
return name;
34+
}
35+
36+
public ApiDetails name(String name) {
37+
this.name = name != null ? name : DEFAULT_NAME;
38+
return this;
39+
}
40+
41+
public String getVersion() {
42+
return version;
43+
}
44+
45+
public ApiDetails version(String version) {
46+
this.version = version != null ? version : DEFAULT_VERSION;
47+
return this;
48+
}
49+
50+
public String getHost() {
51+
return host;
52+
}
53+
54+
public ApiDetails host(String host) {
55+
this.host = host != null ? host : DEFAULT_HOST;
56+
return this;
57+
}
58+
59+
public String getBasePath() {
60+
return basePath;
61+
}
62+
63+
public ApiDetails basePath(String basePath) {
64+
this.basePath = basePath;
65+
return this;
66+
}
67+
68+
public List<String> getSchemes() {
69+
return schemes;
70+
}
71+
72+
public ApiDetails schemes(List<String> schemes) {
73+
this.schemes = schemes != null && !schemes.isEmpty() ? Collections.unmodifiableList(schemes) : DEFAULT_SCHEMES;
74+
return this;
75+
}
76+
77+
public SpecificationFormat getFormat() {
78+
return format;
79+
}
80+
81+
public ApiDetails format(SpecificationFormat format) {
82+
this.format = format != null ? format : DEFAULT_FORMAT;
83+
return this;
84+
}
85+
86+
public AuthConfig getAuthConfig() {
87+
return this.authConfig;
88+
}
89+
90+
public ApiDetails authConfig(AuthConfig authConfig) {
91+
this.authConfig = authConfig != null ? authConfig : new AuthConfig();
92+
return this;
93+
}
94+
}

0 commit comments

Comments
 (0)