diff --git a/.gitignore b/.gitignore index 0cb6eeb..b6840d5 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,6 @@ /pkg/ /spec/reports/ /tmp/ +*.gem +*.lock +*.ruby-version diff --git a/.rubocop.yml b/.rubocop.yml index 0aa6b18..51a923a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -110,4 +110,13 @@ Security/MarshalLoad: Enabled: false Performance/RedundantMatch: - Enabled: false \ No newline at end of file + Enabled: false + +# Must be removed in future + +Lint/DuplicateMethods: + Enabled: false + +Naming/HeredocDelimiterNaming: + Enabled: false + diff --git a/.ruby-version b/.ruby-version deleted file mode 100644 index 197c4d5..0000000 --- a/.ruby-version +++ /dev/null @@ -1 +0,0 @@ -2.4.0 diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..1c25438 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,21 @@ +## 0.1.0 (2017-09-20) + +**Features:** + +- Generate Plot using [Nyaplot](https://github.com/SciRuby/nyaplot), +[google_visualr](https://github.com/winston/google_visualr/), +[lazy_high_charts](https://github.com/michelson/lazy_high_charts) gem with more features. + +- Generate Tables using [Google Charts DataTable](https://developers.google.com/chart/interactive/docs/gallery/table) and [daru-data_tables](https://github.com/Shekharrajak/daru-data_tables) with features like pagination, sorting by column, option to choose number of rows to be displayed. + +- Plotting can be done in IRuby notebook as well as any ruby web application +framework. + +- Data can be in Daru::DataFrame, Daru::Vector, array of array data or +according to the formate described in [Google Charts tool](https://developers.google.com/chart/interactive/docs/gallery), [Highcharts](https://www.highcharts.com/demo). + +- User can use all the features already present in google_visualr, +lazy_high_charts, nayplot by accessing the respective object using +`#chart` and tables using `#table`. + +- The article written about initial features briefly : https://github.com/shekharrajak/daru-view/wiki/All-about-daru-view diff --git a/Gemfile b/Gemfile index 2e24913..9319988 100644 --- a/Gemfile +++ b/Gemfile @@ -3,14 +3,9 @@ source 'https://rubygems.org' # Specify your gem's dependencies in daru-view.gemspec gemspec -# if the .gemspec in this git repo doesn't match the version required by this -# gem's .gemspec, bundler will print an error +# Need the latest development version. Fetching it from the github repos. gem "daru", git: 'https://github.com/SciRuby/daru.git' gem "nyaplot", git: 'https://github.com/SciRuby/nyaplot.git' gem 'google_visualr', git: 'https://github.com/winston/google_visualr.git' gem 'daru-data_tables', git: 'https://github.com/Shekharrajak/daru-data_tables.git' -# FixMe: if below line is not added, then we get uninitialized rails error, when we -# do bundle console. I don't know the reason. (it must be added with -# data_tables, above line) -# gem 'rails' \ No newline at end of file diff --git a/LICENSE.txt b/LICENSE.txt index 8ef7358..0e96d60 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2017 shekharrajak +Copyright (c) 2017 Shekhar Prasad Rajak(@shekharrajak) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index eef0877..b0b34b9 100644 --- a/README.md +++ b/README.md @@ -284,3 +284,4 @@ This software has been developed by [Shekhar Prasad Rajak](https://github.com/Sh The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). +Copyright (c) 2017 Shekhar Prasad Rajak(@shekharrajak) diff --git a/Rakefile b/Rakefile index d726154..d8cf319 100644 --- a/Rakefile +++ b/Rakefile @@ -1,7 +1,17 @@ require "bundler/gem_tasks" +require 'bundler/setup' +require 'rubygems/tasks' +Gem::Tasks.new + +require 'rspec/core/rake_task' +RSpec::Core::RakeTask.new + +require 'rubocop/rake_task' +RuboCop::RakeTask.new + desc 'Default: run unit specs.' -task :default => :spec +task :default => %w[spec rubocop] import 'lib/tasks/high_charts.rake' diff --git a/daru-view.gemspec b/daru-view.gemspec index 9018fed..cdfcf38 100644 --- a/daru-view.gemspec +++ b/daru-view.gemspec @@ -16,12 +16,12 @@ MSG Gem::Specification.new do |spec| spec.name = 'daru-view' spec.version = Daru::View::VERSION - spec.authors = ['shekharrajak'] - spec.email = ['shekharstudy@ymail.com'] + spec.authors = ['Shekhar Prasad Rajak'] + spec.email = ['shekharrajak@live.com'] spec.summary = 'Plugin gem to Data Analysis in RUby(Daru) for visualisation of data' spec.description = Daru::View::DESCRIPTION - spec.homepage = 'http://shekharrajak.github.io/daru-view' + spec.homepage = 'https://github.com/Shekharrajak/daru-view' spec.license = 'MIT' spec.require_paths = ['lib'] spec.files = `git ls-files -z`.split("\x0") @@ -33,28 +33,20 @@ Gem::Specification.new do |spec| spec.add_development_dependency "rake" spec.add_development_dependency 'pry' - # pry-byebug depends on byebug. It need r header files for ruby. - # For Debian, and other distributions using Debian style packaging the ruby development headers are installed by: - - # sudo apt-get install ruby-dev - # For Ubuntu the ruby development headers are installed by: - - # sudo apt-get install ruby-all-dev - # If you are using a earlier version of ruby (such as 2.2), then you will need to run: - - # sudo apt-get install ruby2.2-dev spec.add_development_dependency 'pry-byebug' spec.add_development_dependency 'rubocop' + # fetching latest gem from the Gemfile spec.add_runtime_dependency 'google_visualr' spec.add_runtime_dependency 'lazy_high_charts' - spec.add_runtime_dependency 'daru' # use from the Gemfile + spec.add_runtime_dependency 'daru' spec.add_runtime_dependency 'nyaplot' spec.add_runtime_dependency 'daru-data_tables' # lazy_high_charts dependency spec.add_runtime_dependency 'actionview' - # spec.add_development_dependency "iruby" + # build gem and release it on rubygems + spec.add_development_dependency 'rubygems-tasks' end diff --git a/lib/daru/view/adapters/highcharts/layout_helper_iruby.rb b/lib/daru/view/adapters/highcharts/layout_helper_iruby.rb index 6e169eb..c8cfbc8 100644 --- a/lib/daru/view/adapters/highcharts/layout_helper_iruby.rb +++ b/lib/daru/view/adapters/highcharts/layout_helper_iruby.rb @@ -1,5 +1,3 @@ -# coding: utf-8 - module LazyHighCharts module LayoutHelper def high_chart_iruby(placeholder, object, &block)