/*
 *
 * CODENVY CONFIDENTIAL
 * ________________
 *
 * [2012] - [2013] Codenvy, S.A.
 * All Rights Reserved.
 * NOTICE: All information contained herein is, and remains
 * the property of Codenvy S.A. and its suppliers,
 * if any. The intellectual and technical concepts contained
 * herein are proprietary to Codenvy S.A.
 * and its suppliers and may be covered by U.S. and Foreign Patents,
 * patents in process, and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Codenvy S.A..
 */


package com.codenvy.analytics.metrics;

import com.codenvy.analytics.metrics.value.LongValueData;
import com.codenvy.analytics.metrics.value.ValueData;

import java.io.IOException;
import java.util.Map;

/**
 * @author <a href="mailto:abazko@codenvy.com">Anatoliy Bazko</a>
 */
public class ProjectCreatedRubyMetric extends CalculatedMetric {

    public ProjectCreatedRubyMetric() {
        super(MetricType.PROJECT_TYPE_RUBY, MetricType.PROJECT_CREATED_TYPES);
    }

    @Override
    public ValueData getValue(Map<String, String> context) throws IOException {
        MetricParameter.PARAM.put(context, "Rails");
        return super.getValue(context);
    }

    @Override
    public Class<? extends ValueData> getValueDataClass() {
        return LongValueData.class;
    }

    @Override
    public String getDescription() {
        return "The number of Ruby projects";
    }
}

@@ -835,19 +835,16 @@
 ap;%0A%0A/**
-%0A *
  @author
@@ -898,17 +898,16 @@
 azko%3C/a%3E
-%0A
  */%0Apubl
@@ -1249,23 +1249,139 @@
         
-return 
+ValueData value = super.getValue(context);%0A%0A        MetricParameter.PARAM.put(context, %22Ruby%22);%0A        return value.union(
 super.ge
@@ -1395,16 +1395,17 @@
 context)
+)
 ;%0A    %7D%0A

Fix the number of rub projects