<commit_before># lightbox2-rails

[Lightbox2](http://lokeshdhakar.com/projects/lightbox2) for Rails asset pipeline

Lightbox2 version: 2.7.1

## Installation

Add to your `Gemfile` and install with bundler:

```ruby
gem 'lightbox2-rails'
```

Add to your `config/initializers/assets.rb` in order to have the images for lightbox precompiled:
```ruby
Rails.application.config.assets.precompile += %w( lightbox/* )
```

Require the Lightbox2 javascript file in `app/assets/javascripts/application.js`:

```js
//= require lightbox
```

Require the modified Lightbox2 css file in `app/assets/stylesheets/application.css`:

```css
*= require lightbox
```

## Acknowledgements

[Lightbox2](http://lokeshdhakar.com/projects/lightbox2) created by <NAME>, licensed under the [Creative Commons Attribution 2.5 License](http://creativecommons.org/licenses/by/2.5/)

Copyright [<NAME>](http://gavin.hk), released under the MIT License.
<commit_msg>Updated README for better appearance and instructions<commit_after># :stars: lightbox2-rails

[![Gem Version](https://badge.fury.io/rb/lightbox2-rails.svg)](http://badge.fury.io/rb/lightbox2-rails)

[Lightbox2](http://lokeshdhakar.com/projects/lightbox2) for Rails asset pipeline

- Modified for [Turbolinks](https://github.com/rails/turbolinks) and [Sprockets](https://github.com/sstephenson/sprockets)' asset digests compatibility

- Lightbox2 version: [2.7.1](https://github.com/lokesh/lightbox2/releases/tag/2.7.1)

## Installation

1. Add to your `Gemfile` and install with bundler:

  ```ruby
  gem 'lightbox2-rails'
  ```
  
  ```bash
  bundle install
  ```

2. Add to your `config/initializers/assets.rb` in order to have the images for lightbox precompiled:

  ```ruby
  Rails.application.config.assets.precompile += %w( lightbox/* )
  ```

3. Require the modified Lightbox2 javascript file in `app/assets/javascripts/application.js`:

  ```js
  //= require lightbox
  ```
  
  Or in `app/assets/javascripts/application.js.coffee`:
  
  ```coffeescript
  #= require lightbox
  ```

4. Require the modified Lightbox2 css file in `app/assets/stylesheets/application.css`:
  
  ```css
  *= require lightbox
  ```
  Or in `app/assets/javascripts/application.css.scss` / `app/assets/javascripts/application.css.sass`:
  
  ```scss
  @import lightbox;
  ```
  
  ```sass
  @import lightbox
  ```

## Acknowledgements

[Lightbox2](http://lokeshdhakar.com/projects/lightbox2) created by <NAME>, licensed under the [Creative Commons Attribution 2.5 License](http://creativecommons.org/licenses/by/2.5/)

Copyright [<NAME>](https://www.gavin.hk), released under the MIT License.

{'fraction_non_alphanumeric': 0.1446613088404133, 'fraction_numerical': 0.016073478760045924, 'mean_word_length': 4.491596638655462, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 5, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2288456', 'n_tokens_mistral': 932, 'n_tokens_neox': 869, 'n_words': 201}