fancybox-rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,19 +1,23 @@
1
- source "http://rubygems.org"
1
+ source 'http://rubygems.org'
2
2
 
3
- gem "rails", "3.1.0.rc4"
4
- gem "capybara", "~> 1.0.0"
5
- gem "sqlite3"
3
+ gem 'rails', '>= 3.1.0.rc'
6
4
 
7
- # Asset template engines
8
- gem 'sprockets', '2.0.0.beta.10'
9
- gem 'sass'
10
- gem 'coffee-script'
11
- gem 'uglifier'
12
- gem 'nokogiri'
5
+ gem 'sqlite3'
13
6
 
14
- gem 'jquery-rails'
7
+ # Gems used only for assets and not required
8
+ # in production environments by default.
9
+ group :assets do
10
+ gem 'sass-rails', "~> 3.1.0.rc"
11
+ gem 'coffee-rails', "~> 3.1.0.rc"
12
+ gem 'uglifier'
13
+ end
15
14
 
15
+ gem 'jquery-rails'
16
16
 
17
- # To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
18
- # gem 'ruby-debug'
19
- # gem 'ruby-debug19'
17
+ group :test do
18
+ # Pretty printed test output
19
+ gem 'turn', :require => false
20
+ gem 'capybara'
21
+ gem 'akephalos'
22
+ gem 'nokogiri'
23
+ end
data/README.md CHANGED
@@ -46,13 +46,14 @@ With the gem installed and included in your asset manifests, you can now
46
46
  use fancybox as you normally would.
47
47
 
48
48
  ``` javascript
49
- jQuery(function() {
49
+ $(document).ready(function() {
50
50
  $("a.fancybox").fancybox();
51
51
  });
52
52
  ```
53
53
 
54
54
  ## More information
55
55
 
56
+ * [Contributors](https://github.com/hecticjeff/fancybox-rails/contributors)
56
57
  * [DHH's RailsConf 2011 talk on the rails 3.1 asset pipeline](http://www.youtube.com/watch?v=cGdCI2HhfAU)
57
58
 
58
59
  Copyright (c) Chris Mytton
@@ -35,7 +35,7 @@
35
35
  left: 0;
36
36
  width: 40px;
37
37
  height: 480px;
38
- background-image: url('fancybox.png');
38
+ background-image: url(<%= asset_path 'fancybox.png' %>);
39
39
  }
40
40
 
41
41
  #fancybox-overlay {
@@ -99,7 +99,7 @@
99
99
  right: -15px;
100
100
  width: 30px;
101
101
  height: 30px;
102
- background: transparent url('fancybox.png') -40px 0px;
102
+ background: transparent url(<%= asset_path 'fancybox.png' %>) -40px 0px;
103
103
  cursor: pointer;
104
104
  z-index: 1103;
105
105
  display: none;
@@ -137,7 +137,7 @@
137
137
  width: 35%;
138
138
  cursor: pointer;
139
139
  outline: none;
140
- background: transparent url('blank.gif');
140
+ background: transparent url(<%= asset_path 'blank.gif' %>);
141
141
  z-index: 1102;
142
142
  display: none;
143
143
  }
@@ -163,12 +163,12 @@
163
163
  }
164
164
 
165
165
  #fancybox-left-ico {
166
- background-image: url('fancybox.png');
166
+ background-image: url(<%= asset_path 'fancybox.png' %>);
167
167
  background-position: -40px -30px;
168
168
  }
169
169
 
170
170
  #fancybox-right-ico {
171
- background-image: url('fancybox.png');
171
+ background-image: url(<%= asset_path 'fancybox.png' %>);
172
172
  background-position: -40px -60px;
173
173
  }
174
174
 
@@ -199,13 +199,13 @@
199
199
  top: -20px;
200
200
  left: 0;
201
201
  width: 100%;
202
- background-image: url('fancybox-x.png');
202
+ background-image: url(<%= asset_path 'fancybox-x.png' %>);
203
203
  }
204
204
 
205
205
  #fancybox-bg-ne {
206
206
  top: -20px;
207
207
  right: -20px;
208
- background-image: url('fancybox.png');
208
+ background-image: url(<%= asset_path 'fancybox.png' %>);
209
209
  background-position: -40px -162px;
210
210
  }
211
211
 
@@ -213,14 +213,14 @@
213
213
  top: 0;
214
214
  right: -20px;
215
215
  height: 100%;
216
- background-image: url('fancybox-y.png');
216
+ background-image: url(<%= asset_path 'fancybox-y.png' %>);
217
217
  background-position: -20px 0px;
218
218
  }
219
219
 
220
220
  #fancybox-bg-se {
221
221
  bottom: -20px;
222
222
  right: -20px;
223
- background-image: url('fancybox.png');
223
+ background-image: url(<%= asset_path 'fancybox.png' %>);
224
224
  background-position: -40px -182px;
225
225
  }
226
226
 
@@ -228,14 +228,14 @@
228
228
  bottom: -20px;
229
229
  left: 0;
230
230
  width: 100%;
231
- background-image: url('fancybox-x.png');
231
+ background-image: url(<%= asset_path 'fancybox-x.png' %>);
232
232
  background-position: 0px -20px;
233
233
  }
234
234
 
235
235
  #fancybox-bg-sw {
236
236
  bottom: -20px;
237
237
  left: -20px;
238
- background-image: url('fancybox.png');
238
+ background-image: url(<%= asset_path 'fancybox.png' %>);
239
239
  background-position: -40px -142px;
240
240
  }
241
241
 
@@ -243,13 +243,13 @@
243
243
  top: 0;
244
244
  left: -20px;
245
245
  height: 100%;
246
- background-image: url('fancybox-y.png');
246
+ background-image: url(<%= asset_path 'fancybox-y.png' %>);
247
247
  }
248
248
 
249
249
  #fancybox-bg-nw {
250
250
  top: -20px;
251
251
  left: -20px;
252
- background-image: url('fancybox.png');
252
+ background-image: url(<%= asset_path 'fancybox.png' %>);
253
253
  background-position: -40px -122px;
254
254
  }
255
255
 
@@ -282,7 +282,7 @@
282
282
 
283
283
  #fancybox-title-over {
284
284
  padding: 10px;
285
- background-image: url('fancy_title_over.png');
285
+ background-image: url(<%= asset_path 'fancy_title_over.png' %>);
286
286
  display: block;
287
287
  }
288
288
 
@@ -306,7 +306,7 @@
306
306
 
307
307
  #fancybox-title-float-left {
308
308
  padding: 0 0 0 15px;
309
- background: url('fancybox.png') -40px -90px no-repeat;
309
+ background: url(<%= asset_path 'fancybox.png' %>) -40px -90px no-repeat;
310
310
  }
311
311
 
312
312
  #fancybox-title-float-main {
@@ -314,25 +314,25 @@
314
314
  line-height: 29px;
315
315
  font-weight: bold;
316
316
  padding: 0 0 3px 0;
317
- background: url('fancybox-x.png') 0px -40px;
317
+ background: url(<%= asset_path 'fancybox-x.png' %>) 0px -40px;
318
318
  }
319
319
 
320
320
  #fancybox-title-float-right {
321
321
  padding: 0 0 0 15px;
322
- background: url('fancybox.png') -55px -90px no-repeat;
322
+ background: url(<%= asset_path 'fancybox.png' %>) -55px -90px no-repeat;
323
323
  }
324
324
 
325
325
  /* IE6 */
326
326
 
327
- .fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_close.png', sizingMethod='scale'); }
327
+ .fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_close.png' %>", sizingMethod='scale'); }
328
328
 
329
- .fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_nav_left.png', sizingMethod='scale'); }
330
- .fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_nav_right.png', sizingMethod='scale'); }
329
+ .fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_nav_left.png' %>", sizingMethod='scale'); }
330
+ .fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_nav_right.png' %>", sizingMethod='scale'); }
331
331
 
332
- .fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_title_over.png', sizingMethod='scale'); zoom: 1; }
333
- .fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_title_left.png', sizingMethod='scale'); }
334
- .fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_title_main.png', sizingMethod='scale'); }
335
- .fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_title_right.png', sizingMethod='scale'); }
332
+ .fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_title_over.png' %>", sizingMethod='scale'); zoom: 1; }
333
+ .fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_title_left.png' %>", sizingMethod='scale'); }
334
+ .fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_title_main.png' %>", sizingMethod='scale'); }
335
+ .fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_title_right.png' %>", sizingMethod='scale'); }
336
336
 
337
337
  .fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame {
338
338
  height: expression(this.parentNode.clientHeight + "px");
@@ -343,17 +343,17 @@
343
343
  top: expression( (-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px');
344
344
  }
345
345
 
346
- #fancybox-loading.fancybox-ie6 div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_loading.png', sizingMethod='scale'); }
346
+ #fancybox-loading.fancybox-ie6 div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_loading.png' %>", sizingMethod='scale'); }
347
347
 
348
348
  /* IE6, IE7, IE8 */
349
349
 
350
350
  .fancybox-ie .fancybox-bg { background: transparent !important; }
351
351
 
352
- .fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_shadow_n.png', sizingMethod='scale'); }
353
- .fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_shadow_ne.png', sizingMethod='scale'); }
354
- .fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_shadow_e.png', sizingMethod='scale'); }
355
- .fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_shadow_se.png', sizingMethod='scale'); }
356
- .fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_shadow_s.png', sizingMethod='scale'); }
357
- .fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_shadow_sw.png', sizingMethod='scale'); }
358
- .fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_shadow_w.png', sizingMethod='scale'); }
359
- .fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='assets/fancy_shadow_nw.png', sizingMethod='scale'); }
352
+ .fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_shadow_n.png' %>", sizingMethod='scale'); }
353
+ .fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_shadow_ne.png' %>", sizingMethod='scale'); }
354
+ .fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_shadow_e.png' %>", sizingMethod='scale'); }
355
+ .fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_shadow_se.png' %>", sizingMethod='scale'); }
356
+ .fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_shadow_s.png' %>", sizingMethod='scale'); }
357
+ .fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_shadow_sw.png' %>", sizingMethod='scale'); }
358
+ .fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_shadow_w.png' %>", sizingMethod='scale'); }
359
+ .fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="<%= asset_path 'fancy_shadow_nw.png' %>", sizingMethod='scale'); }
metadata CHANGED
@@ -1,57 +1,60 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: fancybox-rails
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.2
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 0.1.3
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Chris Mytton
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-31 00:00:00.000000000 +01:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+
13
+ date: 2011-08-11 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
16
  name: railties
17
- requirement: &2153524540 !ruby/object:Gem::Requirement
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
18
  none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
22
  version: 3.1.0.rc
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2153524540
26
- - !ruby/object:Gem::Dependency
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
27
  name: bundler
28
- requirement: &2153518080 !ruby/object:Gem::Requirement
28
+ requirement: &id002 !ruby/object:Gem::Requirement
29
29
  none: false
30
- requirements:
30
+ requirements:
31
31
  - - ~>
32
- - !ruby/object:Gem::Version
32
+ - !ruby/object:Gem::Version
33
33
  version: 1.0.0
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2153518080
37
- - !ruby/object:Gem::Dependency
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
38
  name: rails
39
- requirement: &2153517180 !ruby/object:Gem::Requirement
39
+ requirement: &id003 !ruby/object:Gem::Requirement
40
40
  none: false
41
- requirements:
41
+ requirements:
42
42
  - - ~>
43
- - !ruby/object:Gem::Version
44
- version: '3.1'
43
+ - !ruby/object:Gem::Version
44
+ version: "3.1"
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2153517180
47
+ version_requirements: *id003
48
48
  description: This gem provides jQuery FancyBox for your Rails 3.1 application.
49
- email:
49
+ email:
50
50
  - self@hecticjeff.net
51
51
  executables: []
52
+
52
53
  extensions: []
54
+
53
55
  extra_rdoc_files: []
54
- files:
56
+
57
+ files:
55
58
  - lib/fancybox-rails/engine.rb
56
59
  - lib/fancybox-rails.rb
57
60
  - vendor/assets/images/blank.gif
@@ -77,37 +80,40 @@ files:
77
80
  - vendor/assets/javascripts/fancybox.js
78
81
  - vendor/assets/javascripts/jquery.fancybox.js
79
82
  - vendor/assets/stylesheets/fancybox.css
80
- - vendor/assets/stylesheets/jquery.fancybox.css
83
+ - vendor/assets/stylesheets/jquery.fancybox.css.erb
81
84
  - MIT-LICENSE
82
85
  - Rakefile
83
86
  - Gemfile
84
87
  - README.md
85
- has_rdoc: true
86
88
  homepage: https://github.com/hecticjeff/fancybox-rails
87
89
  licenses: []
90
+
88
91
  post_install_message:
89
92
  rdoc_options: []
90
- require_paths:
93
+
94
+ require_paths:
91
95
  - lib
92
- required_ruby_version: !ruby/object:Gem::Requirement
96
+ required_ruby_version: !ruby/object:Gem::Requirement
93
97
  none: false
94
- requirements:
95
- - - ! '>='
96
- - !ruby/object:Gem::Version
97
- version: '0'
98
- segments:
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ hash: -238202455898272004
102
+ segments:
99
103
  - 0
100
- hash: 358470496486197136
101
- required_rubygems_version: !ruby/object:Gem::Requirement
104
+ version: "0"
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
106
  none: false
103
- requirements:
104
- - - ! '>='
105
- - !ruby/object:Gem::Version
106
- version: '0'
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: "0"
107
111
  requirements: []
112
+
108
113
  rubyforge_project:
109
- rubygems_version: 1.6.2
114
+ rubygems_version: 1.8.5
110
115
  signing_key:
111
116
  specification_version: 3
112
117
  summary: Use FancyBox with Rails 3.1
113
118
  test_files: []
119
+