Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add some testing

  • Loading branch information...
commit 77fd39cf760fab9c4c105c812228ef112ea7b6c6 1 parent 134dfdf
@varid007 authored
Showing with 8,907 additions and 34 deletions.
  1. +2 −2 store/Gemfile
  2. +7 −1 store/Gemfile.lock
  3. +37 −0 store/Gemfile~
  4. +1 −1  store/app/controllers/articles_controller.rb
  5. +1 −1  store/app/controllers/comments_controller.rb
  6. +2 −2 store/app/controllers/products_controller.rb
  7. +3 −2 store/app/controllers/users_controller.rb
  8. +1 −0  store/app/models/article.rb
  9. +1 −1  store/app/models/comment.rb
  10. +6 −8 store/app/models/user.rb
  11. +2 −11 store/app/views/categories/show.html.erb
  12. +1 −2  store/app/views/layouts/application.html.erb
  13. +1 −1  store/app/views/layouts/application.html.erb~
  14. +1,546 −0 store/coverage/.resultset.json
  15. +88 −0 store/coverage/assets/0.5.3/app.js
  16. BIN  store/coverage/assets/0.5.3/fancybox/blank.gif
  17. BIN  store/coverage/assets/0.5.3/fancybox/fancy_close.png
  18. BIN  store/coverage/assets/0.5.3/fancybox/fancy_loading.png
  19. BIN  store/coverage/assets/0.5.3/fancybox/fancy_nav_left.png
  20. BIN  store/coverage/assets/0.5.3/fancybox/fancy_nav_right.png
  21. BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_e.png
  22. BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_n.png
  23. BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_ne.png
  24. BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_nw.png
  25. BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_s.png
  26. BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_se.png
  27. BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_sw.png
  28. BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_w.png
  29. BIN  store/coverage/assets/0.5.3/fancybox/fancy_title_left.png
  30. BIN  store/coverage/assets/0.5.3/fancybox/fancy_title_main.png
  31. BIN  store/coverage/assets/0.5.3/fancybox/fancy_title_over.png
  32. BIN  store/coverage/assets/0.5.3/fancybox/fancy_title_right.png
  33. BIN  store/coverage/assets/0.5.3/fancybox/fancybox-x.png
  34. BIN  store/coverage/assets/0.5.3/fancybox/fancybox-y.png
  35. BIN  store/coverage/assets/0.5.3/fancybox/fancybox.png
  36. +363 −0 store/coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.css
  37. +44 −0 store/coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.pack.js
  38. BIN  store/coverage/assets/0.5.3/favicon_green.png
  39. BIN  store/coverage/assets/0.5.3/favicon_red.png
  40. BIN  store/coverage/assets/0.5.3/favicon_yellow.png
  41. +129 −0 store/coverage/assets/0.5.3/highlight.css
  42. +1 −0  store/coverage/assets/0.5.3/highlight.pack.js
  43. +18 −0 store/coverage/assets/0.5.3/jquery-1.6.2.min.js
  44. +152 −0 store/coverage/assets/0.5.3/jquery.dataTables.min.js
  45. +141 −0 store/coverage/assets/0.5.3/jquery.timeago.js
  46. +174 −0 store/coverage/assets/0.5.3/jquery.url.js
  47. BIN  store/coverage/assets/0.5.3/loading.gif
  48. BIN  store/coverage/assets/0.5.3/magnify.png
  49. BIN  store/coverage/assets/0.5.3/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
  50. BIN  store/coverage/assets/0.5.3/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
  51. BIN  store/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
  52. BIN  store/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
  53. BIN  store/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_dadada_1x400.png
  54. BIN  store/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
  55. BIN  store/coverage/assets/0.5.3/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
  56. BIN  store/coverage/assets/0.5.3/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
  57. BIN  store/coverage/assets/0.5.3/smoothness/images/ui-icons_222222_256x240.png
  58. BIN  store/coverage/assets/0.5.3/smoothness/images/ui-icons_2e83ff_256x240.png
  59. BIN  store/coverage/assets/0.5.3/smoothness/images/ui-icons_454545_256x240.png
  60. BIN  store/coverage/assets/0.5.3/smoothness/images/ui-icons_888888_256x240.png
  61. BIN  store/coverage/assets/0.5.3/smoothness/images/ui-icons_cd0a0a_256x240.png
  62. +295 −0 store/coverage/assets/0.5.3/smoothness/jquery-ui-1.8.4.custom.css
  63. +383 −0 store/coverage/assets/0.5.3/stylesheet.css
  64. +5,259 −0 store/coverage/index.html
  65. +69 −2 store/test/functional/users_controller_test.rb
  66. +2 −0  store/test/test_helper.rb
  67. +42 −0 store/test/unit/article_test.rb
  68. +9 −0 store/test/unit/article_test.rb~
  69. +29 −0 store/test/unit/category_test.rb
  70. +6 −0 store/test/unit/comment_test.rb
  71. +16 −0 store/test/unit/product_test.rb
  72. +76 −0 store/test/unit/user_test.rb
View
4 store/Gemfile
@@ -10,8 +10,8 @@ gem 'execjs'
gem 'therubyracer'
gem 'bcrypt-ruby', :require => 'bcrypt'
gem 'recaptcha', :require => 'recaptcha/rails'
-
-
+gem 'simplecov'
+gem "multi_json", "~> 1.3.5"
# Gems used only for assets and not required
# in production environments by default.
group :assets do
View
8 store/Gemfile.lock
@@ -56,7 +56,7 @@ GEM
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.18)
- multi_json (1.3.4)
+ multi_json (1.3.5)
mysql2 (0.3.11)
polyglot (0.3.3)
rack (1.3.6)
@@ -93,6 +93,10 @@ GEM
railties (~> 3.1.0)
sass (>= 3.1.10)
tilt (~> 1.3.2)
+ simplecov (0.6.4)
+ multi_json (~> 1.0)
+ simplecov-html (~> 0.5.3)
+ simplecov-html (0.5.3)
sprockets (2.0.4)
hike (~> 1.2)
rack (~> 1.0)
@@ -119,10 +123,12 @@ DEPENDENCIES
coffee-rails (~> 3.1.0)
execjs
jquery-rails
+ multi_json (~> 1.3.5)
mysql2
rails (= 3.1.0)
recaptcha
sass-rails (~> 3.1.0)
+ simplecov
therubyracer
turn
uglifier
View
37 store/Gemfile~
@@ -0,0 +1,37 @@
+source 'http://rubygems.org'
+
+gem 'rails', '3.1.0'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+gem 'mysql2'
+gem 'execjs'
+gem 'therubyracer'
+gem 'bcrypt-ruby', :require => 'bcrypt'
+gem 'recaptcha', :require => 'recaptcha/rails'
+
+
+# Gems used only for assets and not required
+# in production environments by default.
+group :assets do
+ gem 'sass-rails', " ~> 3.1.0"
+ gem 'coffee-rails', "~> 3.1.0"
+ gem 'uglifier'
+end
+
+gem 'jquery-rails'
+
+# Use unicorn as the web server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger
+# gem 'ruby-debug19', :require => 'ruby-debug'
+
+group :test do
+ # Pretty printed test output
+ gem 'turn', :require => false
+end
View
2  store/app/controllers/articles_controller.rb
@@ -51,7 +51,7 @@ def find_article
end
end
def your_article
- user=User.find_by_email(current_user.email)
+ user=current_user
unless @article.user_id == user.id || current_user.is_admin
flash[:notice]="its not your article"
redirect_to articles_path
View
2  store/app/controllers/comments_controller.rb
@@ -1,7 +1,7 @@
class CommentsController < ApplicationController
def create
- @user = User.find_by_email(current_user.email)
+ @user = current_user
@comment = @user.comments.new(params[:comment])
@article = Article.find_by_id(params[:comment][:article_id])
@comments=@article.comments
View
4 store/app/controllers/products_controller.rb
@@ -13,7 +13,7 @@ def new
def create
- @user = User.find_by_email(current_user.email)
+ @user = current_user
@product = @user.products.create(params[:product])
if @product.save
flash[:notice] = "Article was successfully created"
@@ -61,7 +61,7 @@ def find_product
end
def your_product
- user=User.find_by_email(current_user.email)
+ user=current_user
unless @product.id == user.id || current_user.is_admin
flash[:notice]="its not your product"
redirect_to products_path
View
5 store/app/controllers/users_controller.rb
@@ -19,7 +19,7 @@ def create
if @user.save
flash[:notice] = 'Account was Created, Log in ?'
- redirect_to new_session_path, :notice => "Signed up!"
+ redirect_to home_index_path, :notice => "Signed up!"
else
render :new
end
@@ -32,7 +32,7 @@ def edit
end
def update
if @user.update_attributes(params[:user])
- flash[:notice] = 'Article was succesful Update'
+ flash[:notice] = 'User was succesful Update'
redirect_to user_path
else
flash[:notice] = 'User faild Update'
@@ -42,6 +42,7 @@ def update
def destroy
@user.destroy
+ flash[:notice]="user has deleted"
redirect_to users_path
end
private
View
1  store/app/models/article.rb
@@ -6,4 +6,5 @@ class Article < ActiveRecord::Base
:presence => true,
:length => {:minimum => 1, :maximum => 15},
:format => {:with => /[a-zA-Z\s]+$/}
+
end
View
2  store/app/models/comment.rb
@@ -2,5 +2,5 @@ class Comment < ActiveRecord::Base
belongs_to :user
belongs_to :article
-
+ validates :comment, :presence => true
end
View
14 store/app/models/user.rb
@@ -3,14 +3,15 @@ class User < ActiveRecord::Base
has_many :articles
has_many :comments
- has_many :shared_articles,
- :class_name => "Article",
- :foreign_key => "user_id",
- :conditions =>"title like '%share%'"
-
attr_accessor :password
before_save :encrypt_password
+
+ validates :name, :presence => true,
+ :length => {:minimum => 1, :maximum => 20}
+
+ validates :address, :presence => true
+
validates :password, :presence => {:on => :create},
:confirmation => true
validates :email, :presence => true,
@@ -35,9 +36,6 @@ def self.authenticate(email, password)
def is_admin
if self.email == "farid@gmail.com"
- true
- else
- false
end
end
end
View
13 store/app/views/categories/show.html.erb
@@ -19,17 +19,8 @@
<td>
<%= link_to "Show", product_path(product.id) %>
- <% unless current_user.nil?%>
- <% if current_user.is_admin? %>
- <%= link_to "Edit", edit_product_path(product.id) %>
- <%= link_to 'Delete', product_path(product.id) , confirm: 'Do you want to delete this product?', method: :delete %>
- <% else%>
- <% if product.user_id == current_user.id %>
- <%= link_to "Edit", edit_product_path(product.id) %>
- <%= link_to 'Delete', product_path(product.id) , confirm: 'Do you want to delete this product?', method: :delete %>
- <% end %>
- <%end%>
- <%end%>
+
+
</td>
</tr>
<% end %>
View
3  store/app/views/layouts/application.html.erb
@@ -2,8 +2,7 @@
<html>
<head>
<title>Store</title>
- <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" %>
- <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js" %>
+
<%= javascript_include_tag "jquery-rails.js" %>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
View
2  store/app/views/layouts/application.html.erb~
@@ -32,7 +32,7 @@
<%= render :partial => "home/menu_user"%><br/>
</td>
<% end %>
- <%= render :partial => "index"%><br/>
+ <%= render :partial => "categories/index"%><br/>
<td > <p class="error"><%= flash[:notice]|| flash[:error]%></p><br/><%= yield %></td>
</tr>
</table>
View
1,546 store/coverage/.resultset.json
@@ -0,0 +1,1546 @@
+{
+ "Unit Tests": {
+ "coverage": {
+ "/home/varid007/local/store/config/environment.rb": [
+ null,
+ 1,
+ null,
+ null,
+ 1
+ ],
+ "/home/varid007/local/store/config/application.rb": [
+ 1,
+ null,
+ 1,
+ null,
+ 1,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/config/boot.rb": [
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ 1
+ ],
+ "/home/varid007/local/store/config/environments/test.rb": [
+ 1,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/config/initializers/backtrace_silencers.rb": [
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/config/initializers/inflections.rb": [
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/config/initializers/mime_types.rb": [
+ null,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/config/initializers/recaptcha.rb": [
+ 1,
+ 1
+ ],
+ "/home/varid007/local/store/config/initializers/secret_token.rb": [
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1
+ ],
+ "/home/varid007/local/store/config/initializers/session_store.rb": [
+ null,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/config/initializers/wrap_parameters.rb": [
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/admin/application_controller.rb": [
+ 1,
+ 1,
+ 1,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ null,
+ null,
+ 1,
+ 1,
+ 0,
+ null,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/application_controller.rb": [
+ 1,
+ 1,
+ 1,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/application_helper.rb": [
+ 1,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/admin/categories_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/articles_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/categories_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/comments_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/home_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/products_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/sessions_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/users_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/admin/categories_controller.rb": [
+ 1,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ null,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/models/category.rb": [
+ 1,
+ 1,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/articles_controller.rb": [
+ 1,
+ 1,
+ 1,
+ 1,
+ null,
+ 1,
+ 0,
+ null,
+ 1,
+ 0,
+ null,
+ 1,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/models/article.rb": [
+ 1,
+ 1,
+ 1,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/categories_controller.rb": [
+ 1,
+ 1,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/comments_controller.rb": [
+ 1,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/models/comment.rb": [
+ 1,
+ 1,
+ 1,
+ null,
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/home_controller.rb": [
+ 1,
+ 1,
+ 0,
+ 0,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/products_controller.rb": [
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ null,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ 0,
+ null,
+ null,
+ 1,
+ null,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/models/product.rb": [
+ 1,
+ 1,
+ 1,
+ 1,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/sessions_controller.rb": [
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/users_controller.rb": [
+ 1,
+ 1,
+ 1,
+ null,
+ 1,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ 0,
+ null,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ 1,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/models/user.rb": [
+ 1,
+ 1,
+ 1,
+ 1,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ 1,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 0,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/config/routes.rb": [
+ 1,
+ 1,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ null
+ ]
+ },
+ "timestamp": 1337582925
+ },
+ "Functional Tests": {
+ "coverage": {
+ "/home/varid007/local/store/config/environment.rb": [
+ null,
+ 1,
+ null,
+ null,
+ 1
+ ],
+ "/home/varid007/local/store/config/application.rb": [
+ 1,
+ null,
+ 1,
+ null,
+ 1,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/config/boot.rb": [
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ 1
+ ],
+ "/home/varid007/local/store/config/environments/test.rb": [
+ 1,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/config/initializers/backtrace_silencers.rb": [
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/config/initializers/inflections.rb": [
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/config/initializers/mime_types.rb": [
+ null,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/config/initializers/recaptcha.rb": [
+ 1,
+ 1
+ ],
+ "/home/varid007/local/store/config/initializers/secret_token.rb": [
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1
+ ],
+ "/home/varid007/local/store/config/initializers/session_store.rb": [
+ null,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/config/initializers/wrap_parameters.rb": [
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/admin/application_controller.rb": [
+ 1,
+ 1,
+ 1,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ null,
+ null,
+ 1,
+ 1,
+ 0,
+ null,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/application_controller.rb": [
+ 1,
+ 1,
+ 1,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ 0,
+ 12,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/application_helper.rb": [
+ 1,
+ null,
+ 1,
+ 3,
+ 3,
+ 0,
+ 0,
+ null,
+ 3,
+ 3,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/admin/categories_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/articles_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/categories_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/comments_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/home_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/products_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/sessions_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/helpers/users_helper.rb": [
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/admin/categories_controller.rb": [
+ 1,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ null,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/models/category.rb": [
+ 1,
+ 1,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/articles_controller.rb": [
+ 1,
+ 1,
+ 1,
+ 1,
+ null,
+ 1,
+ 0,
+ null,
+ 1,
+ 0,
+ null,
+ 1,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/models/article.rb": [
+ 1,
+ 1,
+ 1,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/categories_controller.rb": [
+ 1,
+ 1,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/comments_controller.rb": [
+ 1,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/models/comment.rb": [
+ 1,
+ 1,
+ 1,
+ null,
+ 1,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/home_controller.rb": [
+ 1,
+ 1,
+ 0,
+ 0,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/products_controller.rb": [
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ null,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ 0,
+ null,
+ null,
+ 1,
+ null,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/models/product.rb": [
+ 1,
+ 1,
+ 1,
+ 1,
+ null,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/sessions_controller.rb": [
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/controllers/users_controller.rb": [
+ 1,
+ 1,
+ 1,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ 0,
+ null,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ 1,
+ 1,
+ 6,
+ 6,
+ 2,
+ 2,
+ null,
+ null,
+ null,
+ 1,
+ 3,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/app/models/user.rb": [
+ 1,
+ 1,
+ 1,
+ 1,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ 1,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 0,
+ null,
+ null,
+ null
+ ],
+ "/home/varid007/local/store/config/routes.rb": [
+ 1,
+ 1,
+ null,
+ 1,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ null
+ ]
+ },
+ "timestamp": 1337587337
+ }
+}
View
88 store/coverage/assets/0.5.3/app.js
@@ -0,0 +1,88 @@
+$(document).ready(function() {
+ // Configuration for fancy sortable tables for source file groups
+ $('.file_list').dataTable({
+ "aaSorting": [[ 1, "asc" ]],
+ "bPaginate": false,
+ "bJQueryUI": true,
+ "aoColumns": [
+ null,
+ { "sType": "percent" },
+ null,
+ null,
+ null,
+ null,
+ null
+ ]
+ });
+
+ // Syntax highlight all files up front - deactivated
+ // $('.source_table pre code').each(function(i, e) {hljs.highlightBlock(e, ' ')});
+
+ // Syntax highlight source files on first toggle of the file view popup
+ $("a.src_link").click(function() {
+ // Get the source file element that corresponds to the clicked element
+ var source_table = $($(this).attr('href'));
+
+ // If not highlighted yet, do it!
+ if (!source_table.hasClass('highlighted')) {
+ source_table.find('pre code').each(function(i, e) {hljs.highlightBlock(e, ' ')});
+ source_table.addClass('highlighted');
+ };
+ });
+
+ // Set-up of popup for source file views
+ $("a.src_link").fancybox({
+ 'hideOnContentClick': true,
+ 'centerOnScroll': true,
+ 'width': '90%',
+ 'padding': 0,
+ 'transitionIn': 'elastic'
+ });
+
+ // Hide src files and file list container after load
+ $('.source_files').hide();
+ $('.file_list_container').hide();
+
+ // Add tabs based upon existing file_list_containers
+ $('.file_list_container h2').each(function(){
+ var container_id = $(this).parent().attr('id');
+ var group_name = $(this).find('.group_name').first().html();
+ var covered_percent = $(this).find('.covered_percent').first().html();
+
+ $('.group_tabs').append('<li><a href="#' + container_id + '">' + group_name + ' ('+ covered_percent +')</a></li>');
+ });
+
+ $('.group_tabs a').each( function() {
+ $(this).addClass($(this).attr('href').replace('#', ''));
+ });
+
+ // Make sure tabs don't get ugly focus borders when active
+ $('.group_tabs a').live('focus', function() { $(this).blur(); });
+
+ var favicon_path = $('link[rel="shortcut icon"]').attr('href');
+ $('.group_tabs a').live('click', function(){
+ if (!$(this).parent().hasClass('active')) {
+ $('.group_tabs a').parent().removeClass('active');
+ $(this).parent().addClass('active');
+ $('.file_list_container').hide();
+ $(".file_list_container" + $(this).attr('href')).show();
+ window.location.href = window.location.href.split('#')[0] + $(this).attr('href').replace('#', '#_');
+
+ // Force favicon reload - otherwise the location change containing anchor would drop the favicon...
+ // Works only on firefox, but still... - Anyone know a better solution to force favicon on local file?
+ $('link[rel="shortcut icon"]').remove();
+ $('head').append('<link rel="shortcut icon" type="image/png" href="'+ favicon_path +'" />');
+ };
+ return false;
+ });
+
+ if (jQuery.url.attr('anchor')) {
+ $('.group_tabs a.'+jQuery.url.attr('anchor').replace('_', '')).click();
+ } else {
+ $('.group_tabs a:first').click();
+ };
+
+ $("abbr.timeago").timeago();
+ $('#loading').fadeOut();
+ $('#wrapper').show();
+});
View
BIN  store/coverage/assets/0.5.3/fancybox/blank.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_close.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_loading.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_nav_left.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_nav_right.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_e.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_n.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_ne.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_nw.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_s.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_se.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_sw.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_shadow_w.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_title_left.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_title_main.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_title_over.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancy_title_right.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancybox-x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancybox-y.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  store/coverage/assets/0.5.3/fancybox/fancybox.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
363 store/coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.css
@@ -0,0 +1,363 @@
+/*
+ * FancyBox - jQuery Plugin
+ * Simple and fancy lightbox alternative
+ *
+ * Examples and documentation at: http://fancybox.net
+ *
+ * Copyright (c) 2008 - 2010 Janis Skarnelis
+ *
+ * Version: 1.3.1 (05/03/2010)
+ * Requires: jQuery v1.3+
+ *
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ */
+
+#fancybox-loading {
+ position: fixed;
+ top: 50%;
+ left: 50%;
+ height: 40px;
+ width: 40px;
+ margin-top: -20px;
+ margin-left: -20px;
+ cursor: pointer;
+ overflow: hidden;
+ z-index: 1104;
+ display: none;
+}
+
+* html #fancybox-loading { /* IE6 */
+ position: absolute;
+ margin-top: 0;
+}
+
+#fancybox-loading div {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 40px;
+ height: 480px;
+ background-image: url('fancybox.png');
+}
+
+#fancybox-overlay {
+ position: fixed;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ background: #000;
+ z-index: 1100;
+ display: none;
+}
+
+* html #fancybox-overlay { /* IE6 */
+ position: absolute;
+ width: 100%;
+}
+
+#fancybox-tmp {
+ padding: 0;
+ margin: 0;
+ border: 0;
+ overflow: auto;
+ display: none;
+}
+
+#fancybox-wrap {
+ position: absolute;
+ top: 0;
+ left: 0;
+ margin: 0;
+ padding: 20px;
+ z-index: 1101;
+ display: none;
+}
+
+#fancybox-outer {
+ position: relative;
+ width: 100%;
+ height: 100%;
+ background: #FFF;
+}
+
+#fancybox-inner {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: 0;
+ outline: none;
+ overflow: hidden;
+}
+
+#fancybox-hide-sel-frame {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: transparent;
+}
+
+#fancybox-close {
+ position: absolute;
+ top: -15px;
+ right: -15px;
+ width: 30px;
+ height: 30px;
+ background-image: url('fancybox.png');
+ background-position: -40px 0px;
+ cursor: pointer;
+ z-index: 1103;
+ display: none;
+}
+
+#fancybox_error {
+ color: #444;
+ font: normal 12px/20px Arial;
+ padding: 7px;
+ margin: 0;
+}
+
+#fancybox-content {
+ height: auto;
+ width: auto;
+ padding: 0;
+ margin: 0;
+}
+
+#fancybox-img {
+ width: 100%;
+ height: 100%;
+ padding: 0;
+ margin: 0;
+ border: none;
+ outline: none;
+ line-height: 0;
+ vertical-align: top;
+ -ms-interpolation-mode: bicubic;
+}
+
+#fancybox-frame {
+ position: relative;
+ width: 100%;
+ height: 100%;
+ border: none;
+ display: block;
+}
+
+#fancybox-title {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ font-family: Arial;
+ font-size: 12px;
+ z-index: 1102;
+}
+
+.fancybox-title-inside {
+ padding: 10px 0;
+ text-align: center;
+ color: #333;
+}
+
+.fancybox-title-outside {
+ padding-top: 5px;
+ color: #FFF;
+ text-align: center;
+ font-weight: bold;
+}
+
+.fancybox-title-over {
+ color: #FFF;
+ text-align: left;
+}
+
+#fancybox-title-over {
+ padding: 10px;
+ background-image: url('fancy_title_over.png');
+ display: block;
+}
+
+#fancybox-title-wrap {
+ display: inline-block;
+}
+
+#fancybox-title-wrap span {
+ height: 32px;
+ float: left;
+}
+
+#fancybox-title-left {
+ padding-left: 15px;
+ background-image: url('fancybox.png');
+ background-position: -40px -90px;
+ background-repeat: no-repeat;
+}
+
+#fancybox-title-main {
+ font-weight: bold;
+ line-height: 29px;
+ background-image: url('fancybox-x.png');
+ background-position: 0px -40px;
+ color: #FFF;
+}
+
+#fancybox-title-right {
+ padding-left: 15px;
+ background-image: url('fancybox.png');
+ background-position: -55px -90px;
+ background-repeat: no-repeat;
+}
+
+#fancybox-left, #fancybox-right {
+ position: absolute;
+ bottom: 0px;
+ height: 100%;
+ width: 35%;
+ cursor: pointer;
+ outline: none;
+ background-image: url('blank.gif');
+ z-index: 1102;
+ display: none;
+}
+
+#fancybox-left {
+ left: 0px;
+}
+
+#fancybox-right {
+ right: 0px;
+}
+
+#fancybox-left-ico, #fancybox-right-ico {
+ position: absolute;
+ top: 50%;
+ left: -9999px;
+ width: 30px;
+ height: 30px;
+ margin-top: -15px;
+ cursor: pointer;
+ z-index: 1102;
+ display: block;
+}
+
+#fancybox-left-ico {
+ background-image: url('fancybox.png');
+ background-position: -40px -30px;
+}
+
+#fancybox-right-ico {
+ background-image: url('fancybox.png');
+ background-position: -40px -60px;
+}
+
+#fancybox-left:hover, #fancybox-right:hover {
+ visibility: visible; /* IE6 */
+}
+
+#fancybox-left:hover span {
+ left: 20px;
+}
+
+#fancybox-right:hover span {
+ left: auto;
+ right: 20px;
+}
+
+.fancy-bg {
+ position: absolute;
+ padding: 0;
+ margin: 0;
+ border: 0;
+ width: 20px;
+ height: 20px;
+ z-index: 1001;
+}
+
+#fancy-bg-n {
+ top: -20px;
+ left: 0;
+ width: 100%;
+ background-image: url('fancybox-x.png');
+}
+
+#fancy-bg-ne {
+ top: -20px;
+ right: -20px;
+ background-image: url('fancybox.png');
+ background-position: -40px -162px;
+}
+
+#fancy-bg-e {
+ top: 0;
+ right: -20px;
+ height: 100%;
+ background-image: url('fancybox-y.png');
+ background-position: -20px 0px;
+}
+
+#fancy-bg-se {
+ bottom: -20px;
+ right: -20px;
+ background-image: url('fancybox.png');
+ background-position: -40px -182px;
+}
+
+#fancy-bg-s {
+ bottom: -20px;
+ left: 0;
+ width: 100%;
+ background-image: url('fancybox-x.png');
+ background-position: 0px -20px;
+}
+
+#fancy-bg-sw {
+ bottom: -20px;
+ left: -20px;
+ background-image: url('fancybox.png');
+ background-position: -40px -142px;
+}
+
+#fancy-bg-w {
+ top: 0;
+ left: -20px;
+ height: 100%;
+ background-image: url('fancybox-y.png');
+}
+
+#fancy-bg-nw {
+ top: -20px;
+ left: -20px;
+ background-image: url('fancybox.png');
+ background-position: -40px -122px;
+}
+
+/* IE */
+
+#fancybox-loading.fancybox-ie div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_loading.png', sizingMethod='scale'); }
+.fancybox-ie #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_close.png', sizingMethod='scale'); }
+
+.fancybox-ie #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; }
+.fancybox-ie #fancybox-title-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_left.png', sizingMethod='scale'); }
+.fancybox-ie #fancybox-title-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale'); }
+.fancybox-ie #fancybox-title-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale'); }
+
+.fancybox-ie #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_left.png', sizingMethod='scale'); }
+.fancybox-ie #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_right.png', sizingMethod='scale'); }
+
+.fancybox-ie .fancy-bg { background: transparent !important; }
+
+.fancybox-ie #fancy-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_n.png', sizingMethod='scale'); }
+.fancybox-ie #fancy-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_ne.png', sizingMethod='scale'); }
+.fancybox-ie #fancy-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_e.png', sizingMethod='scale'); }
+.fancybox-ie #fancy-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_se.png', sizingMethod='scale'); }
+.fancybox-ie #fancy-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale'); }
+.fancybox-ie #fancy-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale'); }
+.fancybox-ie #fancy-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale'); }
+.fancybox-ie #fancy-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }
View
44 store/coverage/assets/0.5.3/fancybox/jquery.fancybox-1.3.1.pack.js
@@ -0,0 +1,44 @@
+/*
+ * FancyBox - jQuery Plugin
+ * Simple and fancy lightbox alternative
+ *
+ * Examples and documentation at: http://fancybox.net
+ *
+ * Copyright (c) 2008 - 2010 Janis Skarnelis
+ *
+ * Version: 1.3.1 (05/03/2010)
+ * Requires: jQuery v1.3+
+ *
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ */
+
+(function(b){var m,u,x,g,D,i,z,A,B,p=0,e={},q=[],n=0,c={},j=[],E=null,s=new Image,G=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,S=/[^\.]\.(swf)\s*$/i,H,I=1,k,l,h=false,y=b.extend(b("<div/>")[0],{prop:0}),v=0,O=!b.support.opacity&&!window.XMLHttpRequest,J=function(){u.hide();s.onerror=s.onload=null;E&&E.abort();m.empty()},P=function(){b.fancybox('<p id="fancybox_error">The requested content cannot be loaded.<br />Please try again later.</p>',{scrolling:"no",padding:20,transitionIn:"none",transitionOut:"none"})},
+K=function(){return[b(window).width(),b(window).height(),b(document).scrollLeft(),b(document).scrollTop()]},T=function(){var a=K(),d={},f=c.margin,o=c.autoScale,t=(20+f)*2,w=(20+f)*2,r=c.padding*2;if(c.width.toString().indexOf("%")>-1){d.width=a[0]*parseFloat(c.width)/100-40;o=false}else d.width=c.width+r;if(c.height.toString().indexOf("%")>-1){d.height=a[1]*parseFloat(c.height)/100-40;o=false}else d.height=c.height+r;if(o&&(d.width>a[0]-t||d.height>a[1]-w))if(e.type=="image"||e.type=="swf"){t+=r;
+w+=r;o=Math.min(Math.min(a[0]-t,c.width)/c.width,Math.min(a[1]-w,c.height)/c.height);d.width=Math.round(o*(d.width-r))+r;d.height=Math.round(o*(d.height-r))+r}else{d.width=Math.min(d.width,a[0]-t);d.height=Math.min(d.height,a[1]-w)}d.top=a[3]+(a[1]-(d.height+40))*0.5;d.left=a[2]+(a[0]-(d.width+40))*0.5;if(c.autoScale===false){d.top=Math.max(a[3]+f,d.top);d.left=Math.max(a[2]+f,d.left)}return d},U=function(a){if(a&&a.length)switch(c.titlePosition){case "inside":return a;case "over":return'<span id="fancybox-title-over">'+
+a+"</span>";default:return'<span id="fancybox-title-wrap"><span id="fancybox-title-left"></span><span id="fancybox-title-main">'+a+'</span><span id="fancybox-title-right"></span></span>'}return false},V=function(){var a=c.title,d=l.width-c.padding*2,f="fancybox-title-"+c.titlePosition;b("#fancybox-title").remove();v=0;if(c.titleShow!==false){a=b.isFunction(c.titleFormat)?c.titleFormat(a,j,n,c):U(a);if(!(!a||a==="")){b('<div id="fancybox-title" class="'+f+'" />').css({width:d,paddingLeft:c.padding,
+paddingRight:c.padding}).html(a).appendTo("body");switch(c.titlePosition){case "inside":v=b("#fancybox-title").outerHeight(true)-c.padding;l.height+=v;break;case "over":b("#fancybox-title").css("bottom",c.padding);break;default:b("#fancybox-title").css("bottom",b("#fancybox-title").outerHeight(true)*-1);break}b("#fancybox-title").appendTo(D).hide()}}},W=function(){b(document).unbind("keydown.fb").bind("keydown.fb",function(a){if(a.keyCode==27&&c.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if(a.keyCode==
+37){a.preventDefault();b.fancybox.prev()}else if(a.keyCode==39){a.preventDefault();b.fancybox.next()}});if(b.fn.mousewheel){g.unbind("mousewheel.fb");j.length>1&&g.bind("mousewheel.fb",function(a,d){a.preventDefault();h||d===0||(d>0?b.fancybox.prev():b.fancybox.next())})}if(c.showNavArrows){if(c.cyclic&&j.length>1||n!==0)A.show();if(c.cyclic&&j.length>1||n!=j.length-1)B.show()}},X=function(){var a,d;if(j.length-1>n){a=j[n+1].href;if(typeof a!=="undefined"&&a.match(G)){d=new Image;d.src=a}}if(n>0){a=
+j[n-1].href;if(typeof a!=="undefined"&&a.match(G)){d=new Image;d.src=a}}},L=function(){i.css("overflow",c.scrolling=="auto"?c.type=="image"||c.type=="iframe"||c.type=="swf"?"hidden":"auto":c.scrolling=="yes"?"auto":"visible");if(!b.support.opacity){i.get(0).style.removeAttribute("filter");g.get(0).style.removeAttribute("filter")}b("#fancybox-title").show();c.hideOnContentClick&&i.one("click",b.fancybox.close);c.hideOnOverlayClick&&x.one("click",b.fancybox.close);c.showCloseButton&&z.show();W();b(window).bind("resize.fb",
+b.fancybox.center);c.centerOnScroll?b(window).bind("scroll.fb",b.fancybox.center):b(window).unbind("scroll.fb");b.isFunction(c.onComplete)&&c.onComplete(j,n,c);h=false;X()},M=function(a){var d=Math.round(k.width+(l.width-k.width)*a),f=Math.round(k.height+(l.height-k.height)*a),o=Math.round(k.top+(l.top-k.top)*a),t=Math.round(k.left+(l.left-k.left)*a);g.css({width:d+"px",height:f+"px",top:o+"px",left:t+"px"});d=Math.max(d-c.padding*2,0);f=Math.max(f-(c.padding*2+v*a),0);i.css({width:d+"px",height:f+
+"px"});if(typeof l.opacity!=="undefined")g.css("opacity",a<0.5?0.5:a)},Y=function(a){var d=a.offset();d.top+=parseFloat(a.css("paddingTop"))||0;d.left+=parseFloat(a.css("paddingLeft"))||0;d.top+=parseFloat(a.css("border-top-width"))||0;d.left+=parseFloat(a.css("border-left-width"))||0;d.width=a.width();d.height=a.height();return d},Q=function(){var a=e.orig?b(e.orig):false,d={};if(a&&a.length){a=Y(a);d={width:a.width+c.padding*2,height:a.height+c.padding*2,top:a.top-c.padding-20,left:a.left-c.padding-
+20}}else{a=K();d={width:1,height:1,top:a[3]+a[1]*0.5,left:a[2]+a[0]*0.5}}return d},N=function(){u.hide();if(g.is(":visible")&&b.isFunction(c.onCleanup))if(c.onCleanup(j,n,c)===false){b.event.trigger("fancybox-cancel");h=false;return}j=q;n=p;c=e;i.get(0).scrollTop=0;i.get(0).scrollLeft=0;if(c.overlayShow){O&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});
+x.css({"background-color":c.overlayColor,opacity:c.overlayOpacity}).unbind().show()}l=T();V();if(g.is(":visible")){b(z.add(A).add(B)).hide();var a=g.position(),d;k={top:a.top,left:a.left,width:g.width(),height:g.height()};d=k.width==l.width&&k.height==l.height;i.fadeOut(c.changeFade,function(){var f=function(){i.html(m.contents()).fadeIn(c.changeFade,L)};b.event.trigger("fancybox-change");i.empty().css("overflow","hidden");if(d){i.css({top:c.padding,left:c.padding,width:Math.max(l.width-c.padding*
+2,1),height:Math.max(l.height-c.padding*2-v,1)});f()}else{i.css({top:c.padding,left:c.padding,width:Math.max(k.width-c.padding*2,1),height:Math.max(k.height-c.padding*2,1)});y.prop=0;b(y).animate({prop:1},{duration:c.changeSpeed,easing:c.easingChange,step:M,complete:f})}})}else{g.css("opacity",1);if(c.transitionIn=="elastic"){k=Q();i.css({top:c.padding,left:c.padding,width:Math.max(k.width-c.padding*2,1),height:Math.max(k.height-c.padding*2,1)}).html(m.contents());g.css(k).show();if(c.opacity)l.opacity=
+0;y.prop=0;b(y).animate({prop:1},{duration:c.speedIn,easing:c.easingIn,step:M,complete:L})}else{i.css({top:c.padding,left:c.padding,width:Math.max(l.width-c.padding*2,1),height:Math.max(l.height-c.padding*2-v,1)}).html(m.contents());g.css(l).fadeIn(c.transitionIn=="none"?0:c.speedIn,L)}}},F=function(){m.width(e.width);m.height(e.height);if(e.width=="auto")e.width=m.width();if(e.height=="auto")e.height=m.height();N()},Z=function(){h=true;e.width=s.width;e.height=s.height;b("<img />").attr({id:"fancybox-img",
+src:s.src,alt:e.title}).appendTo(m);N()},C=function(){J();var a=q[p],d,f,o,t,w;e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));o=a.title||b(a).title||e.title||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(o===""&&e.orig)o=e.orig.attr("alt");d=a.nodeName&&/^(?:javascript|#)/i.test(a.href)?e.href||null:e.href||a.href||null;if(e.type){f=e.type;if(!d)d=e.content}else if(e.content)f="html";else if(d)if(d.match(G))f=
+"image";else if(d.match(S))f="swf";else if(b(a).hasClass("iframe"))f="iframe";else if(d.match(/#/)){a=d.substr(d.indexOf("#"));f=b(a).length>0?"inline":"ajax"}else f="ajax";else f="inline";e.type=f;e.href=d;e.title=o;if(e.autoDimensions&&e.type!=="iframe"&&e.type!=="swf"){e.width="auto";e.height="auto"}if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=false;e.enableEscapeButton=false;e.showCloseButton=false}if(b.isFunction(e.onStart))if(e.onStart(q,p,e)===false){h=false;
+return}m.css("padding",20+e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(i.children())});switch(f){case "html":m.html(e.content);F();break;case "inline":b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(i.children())}).bind("fancybox-cancel",function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case "image":h=false;b.fancybox.showActivity();
+s=new Image;s.onerror=function(){P()};s.onload=function(){s.onerror=null;s.onload=null;Z()};s.src=d;break;case "swf":t='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+d+'"></param>';w="";b.each(e.swf,function(r,R){t+='<param name="'+r+'" value="'+R+'"></param>';w+=" "+r+'="'+R+'"'});t+='<embed src="'+d+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+w+"></embed></object>";m.html(t);
+F();break;case "ajax":a=d.split("#",2);f=e.ajax.data||{};if(a.length>1){d=a[0];if(typeof f=="string")f+="&selector="+a[1];else f.selector=a[1]}h=false;b.fancybox.showActivity();E=b.ajax(b.extend(e.ajax,{url:d,data:f,error:P,success:function(r){if(E.status==200){m.html(r);F()}}}));break;case "iframe":b('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" scrolling="'+e.scrolling+'" src="'+e.href+'"></iframe>').appendTo(m);N();break}},$=function(){if(u.is(":visible")){b("div",
+u).css("top",I*-40+"px");I=(I+1)%12}else clearInterval(H)},aa=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('<div id="fancybox-tmp"></div>'),u=b('<div id="fancybox-loading"><div></div></div>'),x=b('<div id="fancybox-overlay"></div>'),g=b('<div id="fancybox-wrap"></div>'));if(!b.support.opacity){g.addClass("fancybox-ie");u.addClass("fancybox-ie")}D=b('<div id="fancybox-outer"></div>').append('<div class="fancy-bg" id="fancy-bg-n"></div><div class="fancy-bg" id="fancy-bg-ne"></div><div class="fancy-bg" id="fancy-bg-e"></div><div class="fancy-bg" id="fancy-bg-se"></div><div class="fancy-bg" id="fancy-bg-s"></div><div class="fancy-bg" id="fancy-bg-sw"></div><div class="fancy-bg" id="fancy-bg-w"></div><div class="fancy-bg" id="fancy-bg-nw"></div>').appendTo(g);
+D.append(i=b('<div id="fancybox-inner"></div>'),z=b('<a id="fancybox-close"></a>'),A=b('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),B=b('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));z.click(b.fancybox.close);u.click(b.fancybox.cancel);A.click(function(a){a.preventDefault();b.fancybox.prev()});B.click(function(a){a.preventDefault();b.fancybox.next()});if(O){x.get(0).style.setExpression("height",
+"document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'");u.get(0).style.setExpression("top","(-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'");D.prepend('<iframe id="fancybox-hide-sel-frame" src="javascript:\'\';" scrolling="no" frameborder="0" ></iframe>')}}};
+b.fn.fancybox=function(a){b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(d){d.preventDefault();if(!h){h=true;b(this).blur();q=[];p=0;d=b(this).attr("rel")||"";if(!d||d==""||d==="nofollow")q.push(this);else{q=b("a[rel="+d+"], area[rel="+d+"]");p=q.index(this)}C();return false}});return this};b.fancybox=function(a,d){if(!h){h=true;d=typeof d!=="undefined"?d:{};q=[];p=d.index||0;if(b.isArray(a)){for(var f=0,o=a.length;f<o;f++)if(typeof a[f]==
+"object")b(a[f]).data("fancybox",b.extend({},d,a[f]));else a[f]=b({}).data("fancybox",b.extend({content:a[f]},d));q=jQuery.merge(q,a)}else{if(typeof a=="object")b(a).data("fancybox",b.extend({},d,a));else a=b({}).data("fancybox",b.extend({content:a},d));q.push(a)}if(p>q.length||p<0)p=0;C()}};b.fancybox.showActivity=function(){clearInterval(H);u.show();H=setInterval($,66)};b.fancybox.hideActivity=function(){u.hide()};b.fancybox.next=function(){return b.fancybox.pos(n+1)};b.fancybox.prev=function(){return b.fancybox.pos(n-
+1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a,10);if(a>-1&&j.length>a){p=a;C()}if(c.cyclic&&j.length>1&&a<0){p=j.length-1;C()}if(c.cyclic&&j.length>1&&a>=j.length){p=0;C()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");J();e&&b.isFunction(e.onCancel)&&e.onCancel(q,p,e);h=false}};b.fancybox.close=function(){function a(){x.fadeOut("fast");g.hide();b.event.trigger("fancybox-cleanup");i.empty();b.isFunction(c.onClosed)&&c.onClosed(j,n,c);j=e=[];n=p=0;c=e={};h=false}
+if(!(h||g.is(":hidden"))){h=true;if(c&&b.isFunction(c.onCleanup))if(c.onCleanup(j,n,c)===false){h=false;return}J();b(z.add(A).add(B)).hide();b("#fancybox-title").remove();g.add(i).add(x).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");i.css("overflow","hidden");if(c.transitionOut=="elastic"){k=Q();var d=g.position();l={top:d.top,left:d.left,width:g.width(),height:g.height()};if(c.opacity)l.opacity=1;y.prop=1;b(y).animate({prop:0},{duration:c.speedOut,easing:c.easingOut,
+step:M,complete:a})}else g.fadeOut(c.transitionOut=="none"?0:c.speedOut,a)}};b.fancybox.resize