diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-09-08 15:00:14 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-09-08 16:09:00 +0200 |
commit | 90b5e2cece88aa9549998f19af872d6e1ab29fd6 (patch) | |
tree | 7157f2aacacca637194758adeeeaa2d7b373befe /it/it-plugins/ui-extensions-plugin/src | |
parent | 250b357941de75db87a2879090d554a355095bd9 (diff) | |
download | sonarqube-90b5e2cece88aa9549998f19af872d6e1ab29fd6.tar.gz sonarqube-90b5e2cece88aa9549998f19af872d6e1ab29fd6.zip |
Drop Ruby dead code
Diffstat (limited to 'it/it-plugins/ui-extensions-plugin/src')
5 files changed, 0 insertions, 120 deletions
diff --git a/it/it-plugins/ui-extensions-plugin/src/main/java/RubyApiGlobalPage.java b/it/it-plugins/ui-extensions-plugin/src/main/java/RubyApiGlobalPage.java deleted file mode 100644 index 37c3ae6e180..00000000000 --- a/it/it-plugins/ui-extensions-plugin/src/main/java/RubyApiGlobalPage.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2016 SonarSource SA - * mailto:contact AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -import org.sonar.api.web.AbstractRubyTemplate; -import org.sonar.api.web.NavigationSection; -import org.sonar.api.web.RubyRailsPage; - -@NavigationSection({NavigationSection.HOME}) -public class RubyApiGlobalPage extends AbstractRubyTemplate implements RubyRailsPage { - - public String getId() { - return getClass().getName(); - } - - public String getTitle() { - return "Ruby API Global Page"; - } - - @Override - public String getTemplatePath() { - return "/ruby-api-global-page.erb"; - } - -} diff --git a/it/it-plugins/ui-extensions-plugin/src/main/java/RubyApiProjectPage.java b/it/it-plugins/ui-extensions-plugin/src/main/java/RubyApiProjectPage.java deleted file mode 100644 index c868215ba11..00000000000 --- a/it/it-plugins/ui-extensions-plugin/src/main/java/RubyApiProjectPage.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2016 SonarSource SA - * mailto:contact AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -import org.sonar.api.web.AbstractRubyTemplate; -import org.sonar.api.web.NavigationSection; -import org.sonar.api.web.RubyRailsPage; -import org.sonar.api.web.UserRole; - -@NavigationSection({NavigationSection.RESOURCE}) -@UserRole(UserRole.USER) -public class RubyApiProjectPage extends AbstractRubyTemplate implements RubyRailsPage { - - public String getId() { - return getClass().getName(); - } - - public String getTitle() { - return "Ruby API Project Page"; - } - - @Override - public String getTemplatePath() { - return "/ruby-api-project-page.erb"; - } - -} diff --git a/it/it-plugins/ui-extensions-plugin/src/main/java/UiExtensionsPlugin.java b/it/it-plugins/ui-extensions-plugin/src/main/java/UiExtensionsPlugin.java index e75149eb32d..c236dff6b71 100644 --- a/it/it-plugins/ui-extensions-plugin/src/main/java/UiExtensionsPlugin.java +++ b/it/it-plugins/ui-extensions-plugin/src/main/java/UiExtensionsPlugin.java @@ -26,8 +26,6 @@ public class UiExtensionsPlugin extends SonarPlugin { public List getExtensions() { return Arrays.asList( FakePageDecorations.class, - RubyApiGlobalPage.class, - RubyApiProjectPage.class, ResourceConfigurationPage.class ); } diff --git a/it/it-plugins/ui-extensions-plugin/src/main/resources/ruby-api-global-page.erb b/it/it-plugins/ui-extensions-plugin/src/main/resources/ruby-api-global-page.erb deleted file mode 100644 index 40aea8687f9..00000000000 --- a/it/it-plugins/ui-extensions-plugin/src/main/resources/ruby-api-global-page.erb +++ /dev/null @@ -1,33 +0,0 @@ -<h1>Ruby API Global Page</h1> - -<% success=true %> - -<% if logged_in? %> - <h2>User Properties</h2> - <ul id="user_properties"> - <% - current_user.set_property({:prop_key => 'foo', :text_value => 'bar'}) - test=current_user.property_value('foo')=='bar' - success&=test - %> - <li>create: <%= 'OK' if test -%></li> - - <% - current_user.delete_property('foo') - test=current_user.property('foo').nil? - success&=test - %> - <li>delete: <%= 'OK' if test -%></li> - - <% - current_user.set_property({:prop_key => 'foo', :text_value => 'bar'}) - current_user.set_property({:prop_key => 'foo', :text_value => 'newbar'}) - test=current_user.property_value('foo')=='newbar' - success&=test - %> - <li>update: <%= 'OK' if test -%></li> - </ul> -<% end %> - -<br/> -<p>Result: <span id="ruby-api-result"><%= success ? 'OK' : 'FAIL' %></span></p> diff --git a/it/it-plugins/ui-extensions-plugin/src/main/resources/ruby-api-project.page.rb b/it/it-plugins/ui-extensions-plugin/src/main/resources/ruby-api-project.page.rb deleted file mode 100644 index 7cbc55a983d..00000000000 --- a/it/it-plugins/ui-extensions-plugin/src/main/resources/ruby-api-project.page.rb +++ /dev/null @@ -1,3 +0,0 @@ -<h1>Ruby API Project</h1> - -<p>Project name is: <span id="ruby-api-project"><%= @project.name -%></span></p> |