Skip to content

Commit

Permalink
Merge pull request #65 from v0dro/release
Browse files Browse the repository at this point in the history
Changes for Release
  • Loading branch information
Shekharrajak committed Sep 20, 2017
2 parents 0c28812 + d72cb55 commit b4f875e
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 27 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
/pkg/
/spec/reports/
/tmp/
*.gem
*.lock
*.ruby-version
11 changes: 10 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,13 @@ Security/MarshalLoad:
Enabled: false

Performance/RedundantMatch:
Enabled: false
Enabled: false

# Must be removed in future

Lint/DuplicateMethods:
Enabled: false

Naming/HeredocDelimiterNaming:
Enabled: false

1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
7 changes: 1 addition & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
12 changes: 11 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
22 changes: 7 additions & 15 deletions daru-view.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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

2 changes: 0 additions & 2 deletions lib/daru/view/adapters/highcharts/layout_helper_iruby.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module LazyHighCharts
module LayoutHelper
def high_chart_iruby(placeholder, object, &block)
Expand Down

0 comments on commit b4f875e

Please sign in to comment.