Rakefile in highcharts-rails-3.0.10 vs Rakefile in highcharts-rails-4.0.0
- old
+ new
@@ -9,21 +9,20 @@
`unzip tmp/#{version}.zip -d tmp/#{version}`
mappings = {
"highcharts.src.js" => "highcharts.js",
"highcharts-more.src.js" => "highcharts/highcharts-more.js",
- "mootools-adapter.src.js" => "highcharts/adapters/mootools-adapter.js",
- "prototype-adapter.src.js" => "highcharts/adapters/prototype-adapter.js",
+ "highcharts-3d.src.js" => "highcharts/highcharts-3d.js",
"standalone-framework.src.js" => "highcharts/adapters/standalone-framework.js",
"annotations.src.js" => "highcharts/modules/annotations.js",
"canvas-tools.src.js" => "highcharts/modules/canvas-tools.js",
"data.src.js" => "highcharts/modules/data.js",
- "no-data-to-display.src.js" => "highcharts/modules/no-data-to-display.js",
+ "drilldown.src.js" => "highcharts/modules/drilldown.js",
"exporting.src.js" => "highcharts/modules/exporting.js",
"funnel.src.js" => "highcharts/modules/funnel.js",
"heatmap.src.js" => "highcharts/modules/heatmap.js",
- "map.src.js" => "highcharts/modules/map.js",
- "drilldown.src.js" => "highcharts/modules/drilldown.js",
+ "no-data-to-display.src.js" => "highcharts/modules/no-data-to-display.js",
+ "solid-gauge.src.js" => "highcharts/modules/solid-gauge.js",
}
dest = "app/assets/javascripts/"
Dir.glob("tmp/#{version}/js/**/*.src.js").each do |file|
name = File.basename(file)
FileUtils.cp file, "#{dest}#{mappings[name]}", verbose: true