Skip to content

Commit

Permalink
Start deprecating some defunct API stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Jul 26, 2023
1 parent ebbf4d4 commit f75d6ed
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class DefaultRubygemsFileFactory implements RubygemsFileFactory {

private static final String API_V2 = "/" + RootCuba.API + "/" + ApiCuba.V2;

@Deprecated
private static final String API_V1_DEPS = API_V1 + "/" + ApiV1Cuba.DEPENDENCIES;

private static final String API_V2_RUBYGEMS = API_V2 + "/rubygems";
Expand Down Expand Up @@ -171,6 +172,7 @@ public GemspecFile gemspecFile(String name) {
}

@Override
@Deprecated
public DependencyFile dependencyFile(String name) {
return new DependencyFile(this, join(API_V1_DEPS, SEPARATOR, name, ApiV1DependenciesCuba.RUBY), join(API_V1_DEPS, "?gems=" + name), name);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public interface RubygemsFileFactory {
* @param name of the gemfile
* @return DependencyFile
*/
@Deprecated
DependencyFile dependencyFile(String name);

ApiV2File rubygemsInfoV2(String name, String version);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public GemspecFile gemspecFile(String name) {
}

@Override
@Deprecated
public DependencyFile dependencyFile(String name) {
DependencyFile file = super.dependencyFile(name);
store.delete(file);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public GemspecFile gemspecFile(String name) {
}

@Override
@Deprecated
public DependencyFile dependencyFile(String name) {
DependencyFile file = super.dependencyFile(name);
file.markAsForbidden();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ protected void createGemspec(GemspecFile gemspec) {
}

@Override
@Deprecated
public DependencyFile dependencyFile(String name) {
DependencyFile file = super.dependencyFile(name);
store.retrieve(file);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ public GemspecFile gemspecFile(String name) {
}

@Override
@Deprecated
public DependencyFile dependencyFile(String name) {
DependencyFile file = super.dependencyFile(name);
file.markAsForbidden();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public GemspecFile gemspecFile(String filename) {
}

@Override
@Deprecated
public DependencyFile dependencyFile(String name) {
DependencyFile file = super.dependencyFile(name);
store.retrieve(file);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public ProxiesGETLayoutTest(Storage store) {
fileSystem = new DefaultRubygemsFileSystem(new GETLayout(rubygemsGateway(), store) {

@Override
@Deprecated
public DependencyFile dependencyFile(String name) {
DependencyFile file = super.dependencyFile(name);
store.retrieve(file);
Expand Down

0 comments on commit f75d6ed

Please sign in to comment.