anchor.diff:  ----
   require 'gooddata'
   
  -GoodData.with_connection do |c|
  +GoodData.with_connection do |client|
     blueprint = GoodData::Model::ProjectBlueprint.build("Acme project") do |p|
       p.add_date_dimension('committed_on')
   
  
positive.code:     end
    end
  
    project = GoodData::Project.create_from_blueprint(blueprint, :auth_token => '')
    puts "Created project #{project.pid}"
  
    GoodData::with_project(project) do |p|
  
negative.code:     GoodData::Model.upload_data(devs_data, blueprint, 'devs')
  
      # create a metric
      metric = p.facts('fact.commits.lines_changed').create_metric
      metric.save
  
      report = p.create_report(title: 'Awesome_report', top: [metric], left: ['label.devs.dev_id.email'])
      report.save
  
      ['john@example.com'].each do |email|
        p.invite(email, 'admin', "Guys checkout this report #{report.browser_uri}")
      end
    end
  end
  
  
  
  
  
  
  
  
  
  ----
  
  ==== Discussion
  