Skip to content

Instantly share code, notes, and snippets.

@lokeshh
Last active August 19, 2016 16:31
Show Gist options
  • Save lokeshh/80bd64c72d5401028b541e03d4bb2263 to your computer and use it in GitHub Desktop.
Save lokeshh/80bd64c72d5401028b541e03d4bb2263 to your computer and use it in GitHub Desktop.
ubuntu@ip-172-31-51-75:~$ irb
2.3.0 :001 > require 'daru'

Install the reportbuilder gem version ~>1.4 for using reportbuilder functions.

Install the spreadsheet gem version ~>1.1.1 for using spreadsheet functions.
NameError: uninitialized constant Daru::Accessors::ArrayWrapper::Forwardable
	from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/daru-0.1.4/lib/daru/accessors/array_wrapper.rb:6:in `<class:ArrayWrapper>'
	from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/daru-0.1.4/lib/daru/accessors/array_wrapper.rb:4:in `<module:Accessors>'
	from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/daru-0.1.4/lib/daru/accessors/array_wrapper.rb:2:in `<module:Daru>'
	from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/daru-0.1.4/lib/daru/accessors/array_wrapper.rb:1:in `<top (required)>'
	from /home/ubuntu/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /home/ubuntu/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/daru-0.1.4/lib/daru/vector.rb:5:in `<top (required)>'
	from /home/ubuntu/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /home/ubuntu/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/daru-0.1.4/lib/daru.rb:100:in `<top (required)>'
	from /home/ubuntu/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `require'
	from /home/ubuntu/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `rescue in require'
	from /home/ubuntu/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require'
	from (irb):1
	from /home/ubuntu/.rvm/rubies/ruby-2.3.0/bin/irb:11:in `<main>'
2.3.0 :002 > quit
ubuntu@ip-172-31-51-75:~$ gem install reportbuilder
Fetching: prawn-security-0.8.4.gem (100%)
Successfully installed prawn-security-0.8.4
Fetching: prawn-layout-0.8.4.gem (100%)
Successfully installed prawn-layout-0.8.4
Fetching: prawn-core-0.8.4.gem (100%)
Successfully installed prawn-core-0.8.4
Fetching: prawn-0.8.4.gem (100%)

  Welcome to Prawn, the best pure-Ruby PDF solution ever!
  This is version 0.8
   
  For those coming from Prawn 0.7 or earlier, note that this release has
  some API breaking changes as well as many new features.  *** You'll want 
  to know about these changes, as we will no longer be supporting
  Prawn 0.7 or any earlier version of Prawn***

  For details on what has changed, see:
    http://wiki.github.com/sandal/prawn/changelog

  If you have questions, contact us at:
    http://groups.google.com/group/prawn-ruby

  To submit a patch or report a bug, select the appropriate package below: 
    http://github.com/sandal/prawn
    http://github.com/sandal/prawn-layout
    http://github.com/madriska/prawn-security

  Prawn is meant for experienced Ruby hackers, so if you are new to Ruby, you
  might want to wait until you've had some practice with the language before
  expecting Prawn to work for you.  Things may change after 1.0, but for now
  if you're not ready to read source code and patch bugs or missing features 
  yourself (with our help), Prawn might not be the right fit.

  But if you know what you're getting yourself into, enjoy!
  
Successfully installed prawn-0.8.4
Fetching: prawn-svg-0.9.1.11.gem (100%)
Successfully installed prawn-svg-0.9.1.11
Fetching: text-table-1.2.4.gem (100%)
Successfully installed text-table-1.2.4
Fetching: clbustos-rtf-0.4.2.gem (100%)
Successfully installed clbustos-rtf-0.4.2
Fetching: reportbuilder-1.4.2.gem (100%)
Successfully installed reportbuilder-1.4.2
Parsing documentation for prawn-security-0.8.4
Installing ri documentation for prawn-security-0.8.4
Parsing documentation for prawn-layout-0.8.4
Installing ri documentation for prawn-layout-0.8.4
Parsing documentation for prawn-core-0.8.4
Installing ri documentation for prawn-core-0.8.4
Parsing documentation for prawn-0.8.4
Installing ri documentation for prawn-0.8.4
Parsing documentation for prawn-svg-0.9.1.11
Installing ri documentation for prawn-svg-0.9.1.11
Parsing documentation for text-table-1.2.4
Installing ri documentation for text-table-1.2.4
Parsing documentation for clbustos-rtf-0.4.2
Installing ri documentation for clbustos-rtf-0.4.2
Parsing documentation for reportbuilder-1.4.2
Installing ri documentation for reportbuilder-1.4.2
Done installing documentation for prawn-security, prawn-layout, prawn-core, prawn, prawn-svg, text-table, clbustos-rtf, reportbuilder after 2 seconds
8 gems installed
ubuntu@ip-172-31-51-75:~$ irb
2.3.0 :001 > require 'daru'

Install the spreadsheet gem version ~>1.1.1 for using spreadsheet functions.
 => true 
2.3.0 :002 > dv = Daru::Vector.new [1, 2, 3]
 => #<Daru::Vector(3)>
   0   1
   1   2
   2   3 
2.3.0 :003 > dv.to_s
NameError: uninitialized constant Daru::Vector::ERB
Did you mean?  IRB
	from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/daru-0.1.4/lib/daru/vector.rb:884:in `to_html'
	from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/daru-0.1.4/lib/daru/vector.rb:888:in `to_s'
	from (irb):3
	from /home/ubuntu/.rvm/rubies/ruby-2.3.0/bin/irb:11:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment