shadowbox-rails 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +21 -5
- data/lib/shadowbox/rails/version.rb +1 -1
- data/shadowbox-rails.gemspec +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -1,24 +1,40 @@
|
|
1
|
-
# Shadowbox
|
1
|
+
# Shadowbox for Rails 3.x
|
2
2
|
|
3
|
-
|
3
|
+
Include the lightbox effect from shadowbox to your photos, videos, flash, etc. This gem will include the latest shadowbox.js, shadowbox.css and shadowbox required images to your assets pipeline so it's ready for deploy.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
+
### Add the gem
|
8
|
+
|
7
9
|
Add this line to your application's Gemfile:
|
8
10
|
|
9
11
|
gem 'shadowbox-rails'
|
10
12
|
|
11
13
|
And then execute:
|
12
14
|
|
13
|
-
|
15
|
+
bundle
|
14
16
|
|
15
17
|
Or install it yourself as:
|
16
18
|
|
17
|
-
|
19
|
+
gem install shadowbox-rails
|
20
|
+
|
21
|
+
### Add Shadowbox to the asset pipeline like usual
|
22
|
+
|
23
|
+
#### application.js
|
24
|
+
|
25
|
+
require shadowbox
|
26
|
+
|
27
|
+
#### application.css.scss
|
28
|
+
|
29
|
+
@import 'shadowbox';
|
18
30
|
|
19
31
|
## Usage
|
20
32
|
|
21
|
-
|
33
|
+
Add rel='shadowbox' to links where the href is your full size image like this:
|
34
|
+
link_to 'Test me!', asset_path('path_to_my_img.jpg'), rel: 'shadowbox'
|
35
|
+
|
36
|
+
Go to http://www.shadowbox-js.com/ for more details.
|
37
|
+
|
22
38
|
|
23
39
|
## Contributing
|
24
40
|
|
data/shadowbox-rails.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.email = ["mathieu@motioneleven.com"]
|
7
7
|
gem.description = %q{Adds shadowbox.js to your assets pipeline}
|
8
8
|
gem.summary = %q{Include the lightbox effect from shadowbox to your photos, videos, flash, etc. This gem will include the latest shadowbox.js, shadowbox.css and shadowbox required images to your assets pipeline so it's ready for deploy.}
|
9
|
-
gem.homepage = ""
|
9
|
+
gem.homepage = "https://github.com/motioneleven/shadowbox-rails"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
12
12
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shadowbox-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -51,7 +51,7 @@ files:
|
|
51
51
|
- vendor/assets/images/shadowbox/previous.png
|
52
52
|
- vendor/assets/javascripts/shadowbox.js
|
53
53
|
- vendor/assets/stylesheets/shadowbox.css.scss
|
54
|
-
homepage:
|
54
|
+
homepage: https://github.com/motioneleven/shadowbox-rails
|
55
55
|
licenses: []
|
56
56
|
post_install_message:
|
57
57
|
rdoc_options: []
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
73
|
rubyforge_project:
|
74
|
-
rubygems_version: 1.8.
|
74
|
+
rubygems_version: 1.8.23
|
75
75
|
signing_key:
|
76
76
|
specification_version: 3
|
77
77
|
summary: Include the lightbox effect from shadowbox to your photos, videos, flash,
|