Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce bunch of lines in rails #115

Merged
merged 1 commit into from
Aug 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/daru/view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

module Daru
module View
class Engine < ::Rails::Engine; end if defined?(Rails)

# default Nyaplot library is used.
@plotting_library = :nyaplot
Daru::View::Plot.adapter = @plotting_library
Expand Down
8 changes: 6 additions & 2 deletions lib/daru/view/adapters/googlecharts/iruby_notebook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
module GoogleVisualr
# generate initializing code
def self.generate_init_code(dependent_js)
js_dir = File.expand_path('../js/googlecharts_js', __dir__)
path = File.expand_path('../../templates/googlecharts/init.inline.js.erb', __dir__)
js_dir = File.expand_path(
'../../../../../vendor/assets/javascripts/googlecharts', __dir__
)
path = File.expand_path(
'../../templates/googlecharts/init.inline.js.erb', __dir__
)
template = File.read(path)
ERB.new(template).result(binding)
end
Expand Down
8 changes: 6 additions & 2 deletions lib/daru/view/adapters/highcharts/iruby_notebook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
module LazyHighCharts
# generate initializing code
def self.generate_init_code(dependent_js)
js_dir = File.expand_path('../js/highcharts_js', __dir__)
js_dir = File.expand_path(
'../../../../../vendor/assets/javascripts/highcharts', __dir__
)
path = File.expand_path(
'../../templates/highcharts/init.inline.js.erb', __dir__
)
Expand All @@ -12,7 +14,9 @@ def self.generate_init_code(dependent_js)
end

def self.generate_init_code_css(dependent_css)
css_dir = File.expand_path('../css/highcharts_css', __dir__)
css_dir = File.expand_path(
'../../../../../vendor/assets/stylesheets/highcharts', __dir__
)
path = File.expand_path(
'../../templates/highcharts/init.inline.css.erb', __dir__
)
Expand Down
226 changes: 0 additions & 226 deletions lib/daru/view/adapters/js/googlecharts_js/loader.js

This file was deleted.

80 changes: 0 additions & 80 deletions lib/daru/view/adapters/js/highcharts_js/highcharts-3d.js

This file was deleted.

64 changes: 0 additions & 64 deletions lib/daru/view/adapters/js/highcharts_js/highcharts-more.js

This file was deleted.

407 changes: 0 additions & 407 deletions lib/daru/view/adapters/js/highcharts_js/highcharts.js

This file was deleted.

542 changes: 0 additions & 542 deletions lib/daru/view/adapters/js/highcharts_js/highstock.js

This file was deleted.

515 changes: 0 additions & 515 deletions lib/daru/view/adapters/js/highcharts_js/js/highstock.js

This file was deleted.

68 changes: 0 additions & 68 deletions lib/daru/view/adapters/js/highcharts_js/js/map.js

This file was deleted.

69 changes: 0 additions & 69 deletions lib/daru/view/adapters/js/highcharts_js/map.js

This file was deleted.

2 changes: 0 additions & 2 deletions lib/daru/view/adapters/js/highcharts_js/maps/custom/europe.js

This file was deleted.

69 changes: 0 additions & 69 deletions lib/daru/view/adapters/js/highcharts_js/modules/accessibility.js

This file was deleted.

35 changes: 0 additions & 35 deletions lib/daru/view/adapters/js/highcharts_js/modules/data.js

This file was deleted.

Loading