Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/ace_vimtura/rails
. To experiment with that code, run bin/console
for an interactive prompt.
TODO: Delete this and the text above, and describe your gem
Add this line to your application's Gemfile:
gem 'ace_vimtura-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ace_vimtura-rails
Run rails generate ace_vimtura:install
first.
Currently AceVimtura relies on requirejs due to enormous
sources. Therefore it's better not to be compiled into your
application js file and to reside in public/assets
.
Create div
element, specify it's height and width with
html attribute or css and give it an id: for instance editor
.
application.js
or any other controller-specific js file:
// requirejs
//=require 'ace_vimtura/lib/require'
//=require 'ace_vimtura/main'
// ...
require(['ace_vimtura'], function(av){
AceVimtura.init('editor', { filetype: 'markdown', theme: 'twilight'})
});
requirejs
is strong requirement for version 0.1.0
, so it
is shipped within lib/
. Some day I'll make multiple builds.
After checking out the repo, run bin/setup
to install dependencies. Then, run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
to create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
- Fork it ( https://github.com/[my-github-username]/ace_vimtura-rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request