Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

Commit

Permalink
Remove install generator
Browse files Browse the repository at this point in the history
  • Loading branch information
volmer committed Jun 5, 2016
1 parent 8db05a9 commit fb1c2f5
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 230 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Bootsy Changelog

## master
* Fix bug when image uploader are rendered with main app layout (#211)

* Bootsy no longer depends on Remotipart.
* Fix bug where modal is rendered with the app layout (#211 - thanks @StGalant).
* Removed install generator. Users now need to create the initializer and locale
files manually when needed.

## 2.2.2

Expand Down
40 changes: 22 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
## Requirements

* ImageMagick or GraphicsMagick (for MiniMagick);
* Rails `4`;
* [Bootstrap `3`](http://getbootstrap.com/) fully installed in your app.
* Rails >= 4;
* [Bootstrap 3](http://getbootstrap.com/) fully installed in your app.


## Installation
Expand All @@ -34,16 +34,21 @@
bundle install
```

3. Run the install generator:
```console
bundle exec rails generate bootsy:install
3. Require Bootsy in the asset pipeline:

In your `app/assets/javascripts/application.js`, put this **after**
requiring jQuery and Bootstrap:

```javascript
//= require bootsy
```
It will include the javascripts and stylesheets in the assets pipeline,
create the `bootsy.rb` initializer and add a copy of the english translations.

**Note:** If your project uses SASS or LESS and `application.css` does not exist,
you will be required to require bootsy manually using `*= require bootsy` or if you prefer
to import assets yourself `@import "bootsy";`
In your `app/assets/stylesheets/application.css`, put this line **after**
requiring Bootstrap:

```css
*= require bootsy
```

4. Add and run migrations:
```console
Expand Down Expand Up @@ -135,17 +140,16 @@ images in the text area using an external image URL.
## Configuration

You can set the default editor options, image sizes available (small, medium,
large and/or its original), dimensions and more. Take a look at Bootsy's initalizer
file `/config/initializers/bootsy.rb` in your app and feel free to uncomment and change
the options as you like.
large and/or its original), dimensions and more. Create a copy of [Bootsy's initalizer
file](https://github.com/volmer/bootsy/tree/master/config/initializers/bootsy.rb)
in your `config/initializers` and feel free to uncomment and change the options
as you like.
## I18n
Bootsy defines some I18n keys. English translations are added by default to your
`config/locales` directory as `bootsy.en.yml`. You can use it as a template
to translate Bootsy to your language.
[Here are some examples](https://github.com/volmer/bootsy/tree/master/config/locales).
You can translate Bootsy to your own language. Simply create a locale file for
it in your `config/locales` directory similar to [Bootsy's master English file](https://github.com/volmer/bootsy/tree/master/config/locales/bootsy.en.yml).

You also need to translate Bootsy on the JavaScript side. Just follow
[this example](https://github.com/volmer/bootsy/blob/master/app/assets/javascripts/bootsy/locales/en.js).
Expand All @@ -155,4 +159,4 @@ You can set the locale directly by setting a `data-bootsy-locale` attribute on y
## License
MIT License. Copyright 2012-2015 Volmer Soares
MIT License. Copyright 2012-2016 Volmer Soares
File renamed without changes.
12 changes: 0 additions & 12 deletions lib/generators/bootsy/USAGE

This file was deleted.

53 changes: 0 additions & 53 deletions lib/generators/bootsy/install_generator.rb

This file was deleted.

64 changes: 0 additions & 64 deletions spec/dummy/config/initializers/bootsy.rb

This file was deleted.

30 changes: 0 additions & 30 deletions spec/dummy/config/locales/bootsy.en.yml

This file was deleted.

30 changes: 0 additions & 30 deletions spec/dummy/config/locales/bootsy.pt-BR.yml

This file was deleted.

17 changes: 0 additions & 17 deletions spec/dummy/config/locales/en.bootstrap.yml

This file was deleted.

5 changes: 0 additions & 5 deletions spec/dummy/config/locales/en.yml

This file was deleted.

0 comments on commit fb1c2f5

Please sign in to comment.