fancybox-rails 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +5 -5
- data/README.md +28 -2
- data/vendor/assets/javascripts/fancybox.js +1 -0
- data/vendor/assets/javascripts/jquery.browser.js +37 -0
- metadata +16 -37
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b842494b32d68217ee239598c61c110a4e0a72cf
|
4
|
+
data.tar.gz: 7706afaae0dc2783fbff61cffedf8b52e92eb288
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7b7994d5a8f7d9ecdc35b90207f79a837e3c680ec19d61023c21f1c03ee874bdd1c542c4f7ba82f2285528c49e8371b337de64eb316043bad311949a02aea187
|
7
|
+
data.tar.gz: ce574e77167b3ef5af9ccc0ab3cb7890d2fbfd54e849b8e69d7711b12a27cca6e9d404c9a085f96c2615b2ae8076ad6d64308ebcc16768bce599c935ed52e694
|
data/Gemfile
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
|
-
gem 'rails', '
|
3
|
+
gem 'rails', '>= 3.1.0'
|
4
4
|
|
5
5
|
gem 'sqlite3'
|
6
6
|
|
7
7
|
# Gems used only for assets and not required
|
8
8
|
# in production environments by default.
|
9
9
|
group :assets do
|
10
|
-
gem 'sass-rails', "
|
11
|
-
gem 'coffee-rails', "
|
10
|
+
gem 'sass-rails', ">= 3.1.0"
|
11
|
+
gem 'coffee-rails', ">= 3.1.0"
|
12
12
|
gem 'uglifier'
|
13
13
|
end
|
14
14
|
|
@@ -17,7 +17,7 @@ gem 'jquery-rails'
|
|
17
17
|
group :test do
|
18
18
|
# Pretty printed test output
|
19
19
|
gem 'turn', :require => false
|
20
|
+
gem 'minitest'
|
20
21
|
gem 'capybara'
|
21
|
-
gem '
|
22
|
-
gem 'nokogiri'
|
22
|
+
gem 'poltergeist'
|
23
23
|
end
|
data/README.md
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
fancybox-rails
|
2
2
|
==============
|
3
3
|
|
4
|
-
[![Build Status](http://travis-ci.org/hecticjeff/fancybox-rails.png)](http://travis-ci.org/hecticjeff/fancybox-rails)
|
5
4
|
|
6
|
-
Use [fancybox](http://fancybox.net/) with rails 3.1 asset pipeline.
|
5
|
+
Use [fancybox 1.3.4](http://fancybox.net/) with rails 3.1 asset pipeline.
|
7
6
|
|
8
7
|
## Installation
|
9
8
|
|
@@ -51,8 +50,35 @@ $(document).ready(function() {
|
|
51
50
|
});
|
52
51
|
```
|
53
52
|
|
53
|
+
## fancyBox 2.0
|
54
|
+
|
55
|
+
If you want to use [fancyBox 2.0](http://fancyapps.com/fancybox/) then
|
56
|
+
check out [fancybox2-rails](https://github.com/kyparn/fancybox2-rails).
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
gem 'fancybox-rails', :git => 'https://github.com/sverigemeny/fancybox-rails'
|
60
|
+
```
|
61
|
+
|
62
|
+
Please be aware that the [license](http://fancyapps.com/fancybox/#license) has changed in the new version and
|
63
|
+
you'll need to purchase one if you intend to use *that fork* for
|
64
|
+
commercial purposes.
|
65
|
+
|
66
|
+
## Contributing
|
67
|
+
|
68
|
+
1. Fork it
|
69
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
70
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
71
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
72
|
+
5. Create new Pull Request
|
73
|
+
|
54
74
|
## More information
|
55
75
|
|
76
|
+
### Build status
|
77
|
+
|
78
|
+
[![Build Status](https://travis-ci.org/hecticjeff/fancybox-rails.png?branch=master)](https://travis-ci.org/hecticjeff/fancybox-rails)
|
79
|
+
|
80
|
+
### Useful links
|
81
|
+
|
56
82
|
* [Contributors](https://github.com/hecticjeff/fancybox-rails/contributors)
|
57
83
|
* [DHH's RailsConf 2011 talk on the rails 3.1 asset pipeline](http://www.youtube.com/watch?v=cGdCI2HhfAU)
|
58
84
|
|
@@ -0,0 +1,37 @@
|
|
1
|
+
// jQuery 1.9 has removed the `$.browser` property, fancybox relies on
|
2
|
+
// it, so we patch it here if it's missing.
|
3
|
+
// This has been copied from jQuery migrate 1.1.1.
|
4
|
+
if ( !jQuery.browser ) {
|
5
|
+
var uaMatch = function( ua ) {
|
6
|
+
ua = ua.toLowerCase();
|
7
|
+
|
8
|
+
var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
|
9
|
+
/(webkit)[ \/]([\w.]+)/.exec( ua ) ||
|
10
|
+
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
|
11
|
+
/(msie) ([\w.]+)/.exec( ua ) ||
|
12
|
+
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
|
13
|
+
[];
|
14
|
+
|
15
|
+
return {
|
16
|
+
browser: match[ 1 ] || "",
|
17
|
+
version: match[ 2 ] || "0"
|
18
|
+
};
|
19
|
+
};
|
20
|
+
|
21
|
+
matched = uaMatch( navigator.userAgent );
|
22
|
+
browser = {};
|
23
|
+
|
24
|
+
if ( matched.browser ) {
|
25
|
+
browser[ matched.browser ] = true;
|
26
|
+
browser.version = matched.version;
|
27
|
+
}
|
28
|
+
|
29
|
+
// Chrome is Webkit, but Webkit is also Safari.
|
30
|
+
if ( browser.chrome ) {
|
31
|
+
browser.webkit = true;
|
32
|
+
} else if ( browser.webkit ) {
|
33
|
+
browser.safari = true;
|
34
|
+
}
|
35
|
+
|
36
|
+
jQuery.browser = browser;
|
37
|
+
}
|
metadata
CHANGED
@@ -1,49 +1,31 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fancybox-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Chris Mytton
|
8
|
+
- Les Hill
|
9
|
+
- Dennis Reimann
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2013-03-09 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: railties
|
16
|
-
requirement:
|
17
|
-
none: false
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: bundler
|
27
|
-
requirement: &70294746114060 !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
25
|
requirements:
|
30
|
-
- -
|
26
|
+
- - '>='
|
31
27
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.0
|
33
|
-
type: :development
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: *70294746114060
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: rails
|
38
|
-
requirement: &70294746113480 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: '3.1'
|
44
|
-
type: :development
|
45
|
-
prerelease: false
|
46
|
-
version_requirements: *70294746113480
|
28
|
+
version: 3.1.0
|
47
29
|
description: This gem provides jQuery FancyBox for your Rails 3.1 application.
|
48
30
|
email:
|
49
31
|
- self@hecticjeff.net
|
@@ -74,6 +56,7 @@ files:
|
|
74
56
|
- vendor/assets/images/fancybox-y.png
|
75
57
|
- vendor/assets/images/fancybox.png
|
76
58
|
- vendor/assets/javascripts/fancybox.js
|
59
|
+
- vendor/assets/javascripts/jquery.browser.js
|
77
60
|
- vendor/assets/javascripts/jquery.fancybox.js
|
78
61
|
- vendor/assets/stylesheets/fancybox.css
|
79
62
|
- vendor/assets/stylesheets/jquery.fancybox.css.erb
|
@@ -83,29 +66,25 @@ files:
|
|
83
66
|
- README.md
|
84
67
|
homepage: https://github.com/hecticjeff/fancybox-rails
|
85
68
|
licenses: []
|
69
|
+
metadata: {}
|
86
70
|
post_install_message:
|
87
71
|
rdoc_options: []
|
88
72
|
require_paths:
|
89
73
|
- lib
|
90
74
|
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
75
|
requirements:
|
93
|
-
- -
|
76
|
+
- - '>='
|
94
77
|
- !ruby/object:Gem::Version
|
95
78
|
version: '0'
|
96
|
-
segments:
|
97
|
-
- 0
|
98
|
-
hash: 1270359434123270016
|
99
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
|
-
none: false
|
101
80
|
requirements:
|
102
|
-
- -
|
81
|
+
- - '>='
|
103
82
|
- !ruby/object:Gem::Version
|
104
83
|
version: '0'
|
105
84
|
requirements: []
|
106
85
|
rubyforge_project:
|
107
|
-
rubygems_version:
|
86
|
+
rubygems_version: 2.0.0
|
108
87
|
signing_key:
|
109
|
-
specification_version:
|
110
|
-
summary: Use FancyBox with Rails 3.1
|
88
|
+
specification_version: 4
|
89
|
+
summary: Use FancyBox with Rails 3.1+
|
111
90
|
test_files: []
|