picturefill 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/.rspec +2 -0
- data/CHANGELOG.md +16 -0
- data/README.md +12 -0
- data/ROADMAP.md +10 -0
- data/lib/picturefill.rb +1 -0
- data/lib/picturefill/context.rb +60 -0
- data/lib/picturefill/rails/engine.rb +10 -0
- data/lib/picturefill/rails/view_helper.rb +33 -0
- data/lib/picturefill/version.rb +1 -1
- data/picturefill.gemspec +4 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +5 -0
- data/spec/dummy/app/assets/javascripts/jquery.js +9404 -0
- data/spec/dummy/app/assets/stylesheets/application.css +7 -0
- data/spec/dummy/app/assets/stylesheets/companies.css +4 -0
- data/spec/dummy/app/assets/stylesheets/projects.css +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/companies_controller.rb +5 -0
- data/spec/dummy/app/controllers/projects_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/helpers/projects_helper.rb +2 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/models/company.rb +6 -0
- data/spec/dummy/app/models/milestone.rb +3 -0
- data/spec/dummy/app/models/project.rb +8 -0
- data/spec/dummy/app/models/project_task.rb +3 -0
- data/spec/dummy/app/models/task.rb +5 -0
- data/spec/dummy/app/views/companies/new.html.erb +16 -0
- data/spec/dummy/app/views/layouts/application.html.erb +19 -0
- data/spec/dummy/app/views/projects/new.html.erb +13 -0
- data/spec/dummy/app/views/projects/without_intermediate_inputs.html.erb +11 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +41 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +27 -0
- data/spec/dummy/config/environments/production.rb +54 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +12 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +62 -0
- data/spec/dummy/db/migrate/20110710143903_initial_tables.rb +23 -0
- data/spec/dummy/db/migrate/20120819164528_add_association_with_class_name.rb +12 -0
- data/spec/dummy/db/migrate/20130203095901_create_company.rb +14 -0
- data/spec/dummy/db/schema.rb +40 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/test/functional/projects_controller_test.rb +7 -0
- data/spec/dummy/test/unit/helpers/projects_helper_test.rb +4 -0
- data/spec/picturefill/view_helper_spec.rb +126 -0
- data/spec/spec_helper.rb +17 -0
- metadata +159 -10
@@ -0,0 +1,62 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
resources :companies, :only => %w(new create)
|
3
|
+
resources :projects, :only => %w(new create)
|
4
|
+
get '/:controller/:action'
|
5
|
+
|
6
|
+
# The priority is based upon order of creation:
|
7
|
+
# first created -> highest priority.
|
8
|
+
|
9
|
+
# Sample of regular route:
|
10
|
+
# match 'products/:id' => 'catalog#view'
|
11
|
+
# Keep in mind you can assign values other than :controller and :action
|
12
|
+
|
13
|
+
# Sample of named route:
|
14
|
+
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
15
|
+
# This route can be invoked with purchase_url(:id => product.id)
|
16
|
+
|
17
|
+
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
18
|
+
# resources :products
|
19
|
+
|
20
|
+
# Sample resource route with options:
|
21
|
+
# resources :products do
|
22
|
+
# member do
|
23
|
+
# get 'short'
|
24
|
+
# post 'toggle'
|
25
|
+
# end
|
26
|
+
#
|
27
|
+
# collection do
|
28
|
+
# get 'sold'
|
29
|
+
# end
|
30
|
+
# end
|
31
|
+
|
32
|
+
# Sample resource route with sub-resources:
|
33
|
+
# resources :products do
|
34
|
+
# resources :comments, :sales
|
35
|
+
# resource :seller
|
36
|
+
# end
|
37
|
+
|
38
|
+
# Sample resource route with more complex sub-resources
|
39
|
+
# resources :products do
|
40
|
+
# resources :comments
|
41
|
+
# resources :sales do
|
42
|
+
# get 'recent', :on => :collection
|
43
|
+
# end
|
44
|
+
# end
|
45
|
+
|
46
|
+
# Sample resource route within a namespace:
|
47
|
+
# namespace :admin do
|
48
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
49
|
+
# # (app/controllers/admin/products_controller.rb)
|
50
|
+
# resources :products
|
51
|
+
# end
|
52
|
+
|
53
|
+
# You can have the root of your site routed with "root"
|
54
|
+
# just remember to delete public/index.html.
|
55
|
+
# root :to => 'welcome#index'
|
56
|
+
|
57
|
+
# See how all your routes lay out with "rake routes"
|
58
|
+
|
59
|
+
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
60
|
+
# Note: This route will make all actions in every controller accessible via GET requests.
|
61
|
+
# match ':controller(/:action(/:id(.:format)))'
|
62
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
class InitialTables < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :projects do |t|
|
4
|
+
t.string :name
|
5
|
+
end
|
6
|
+
|
7
|
+
create_table :tasks do |t|
|
8
|
+
t.integer :project_id
|
9
|
+
t.string :name
|
10
|
+
end
|
11
|
+
|
12
|
+
create_table :milestones do |t|
|
13
|
+
t.integer :task_id
|
14
|
+
t.string :name
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.down
|
19
|
+
drop_table :projects
|
20
|
+
drop_table :tasks
|
21
|
+
drop_table :milestones
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class CreateCompany < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :companies do |t|
|
4
|
+
t.string :name
|
5
|
+
end
|
6
|
+
|
7
|
+
add_column :projects, :company_id, :integer
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.down
|
11
|
+
remove_column :projects, :company_id
|
12
|
+
drop_table :companies
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20130203095901) do
|
15
|
+
|
16
|
+
create_table "companies", :force => true do |t|
|
17
|
+
t.string "name"
|
18
|
+
end
|
19
|
+
|
20
|
+
create_table "milestones", :force => true do |t|
|
21
|
+
t.integer "task_id"
|
22
|
+
t.string "name"
|
23
|
+
end
|
24
|
+
|
25
|
+
create_table "project_tasks", :force => true do |t|
|
26
|
+
t.integer "project_id"
|
27
|
+
t.string "name"
|
28
|
+
end
|
29
|
+
|
30
|
+
create_table "projects", :force => true do |t|
|
31
|
+
t.string "name"
|
32
|
+
t.integer "company_id"
|
33
|
+
end
|
34
|
+
|
35
|
+
create_table "tasks", :force => true do |t|
|
36
|
+
t.integer "project_id"
|
37
|
+
t.string "name"
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,126 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Picturefill::Rails::ViewHelper do
|
4
|
+
include RSpec::Rails::HelperExampleGroup
|
5
|
+
|
6
|
+
subject do
|
7
|
+
_view.picturefill("default.jpg", "description") {}
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
describe "container-span" do
|
12
|
+
it "contains data-picture attribute" do
|
13
|
+
subject.should match(/<span[^>]*data-picture/)
|
14
|
+
end
|
15
|
+
|
16
|
+
it "contains alt attribute with description" do
|
17
|
+
subject.should match(/<span[^>]*data-alt=\"description/)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
|
22
|
+
describe "noscript" do
|
23
|
+
it "contains img-tag with description" do
|
24
|
+
subject.should match(/<noscript><img[^>]*alt="description"/)
|
25
|
+
end
|
26
|
+
|
27
|
+
it "contains img-tag with src" do
|
28
|
+
subject.should match(/<noscript><img[^>]*src="\/assets\/default.jpg"/)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
|
33
|
+
context "without a block" do
|
34
|
+
it "raise an ArgumentError" do
|
35
|
+
expect { _view.picturefill("src", "description") }.to raise_error(ArgumentError)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
|
40
|
+
context "with one image" do
|
41
|
+
subject { setup_image("small.jpg") }
|
42
|
+
|
43
|
+
it "renders one containing span" do
|
44
|
+
subject.should include('<span data-src="/assets/small.jpg">')
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
|
49
|
+
context "with two images" do
|
50
|
+
subject do
|
51
|
+
_view.picturefill("src", "description") do
|
52
|
+
image("small.jpg")
|
53
|
+
image("medium.jpg")
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
it "renders two containing span" do
|
58
|
+
subject.should include('<span data-src="/assets/small.jpg">')
|
59
|
+
subject.should include('<span data-src="/assets/medium.jpg">')
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
|
64
|
+
context "when given :min" do
|
65
|
+
subject { setup_image("small.jpg", :min => 400) }
|
66
|
+
|
67
|
+
it "renders data-media with min-width" do
|
68
|
+
subject.should include('data-media="(min-width: 400px)')
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
|
73
|
+
context "when given :ratio" do
|
74
|
+
subject { setup_image("small.jpg", :ratio => 2) }
|
75
|
+
|
76
|
+
it "renders data-media with device-ratio" do
|
77
|
+
subject.should include('data-media="(min-device-pixel-ratio: 2.0)')
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
|
82
|
+
context "when given :ratio as float" do
|
83
|
+
subject { setup_image("small.jpg", :ratio => 2.42) }
|
84
|
+
|
85
|
+
it "renders data-media with device-ratio in given precision" do
|
86
|
+
subject.should include('data-media="(min-device-pixel-ratio: 2.42)')
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
|
91
|
+
context "when given :media" do
|
92
|
+
subject { setup_image("small.jpg", :media => 'custom') }
|
93
|
+
|
94
|
+
it "renders data-media with given :media" do
|
95
|
+
subject.should include('data-media="(custom)')
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
|
100
|
+
context "when given :min, :ratio && :media" do
|
101
|
+
subject { setup_image("small.jpg", :ratio => 2, :min => 400, :media => 'custom') }
|
102
|
+
|
103
|
+
it "renders data-media with given options + custom media" do
|
104
|
+
subject.should include('data-media="(min-width: 400px) and (min-device-pixel-ratio: 2.0) and (custom)')
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
|
109
|
+
context "when given '(min-width: 400px)'" do
|
110
|
+
subject { setup_image("small.jpg", '(min-width: 400px)') }
|
111
|
+
|
112
|
+
it "renders data-media with given string" do
|
113
|
+
subject.should include('data-media="(min-width: 400px)')
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
|
118
|
+
private
|
119
|
+
|
120
|
+
def setup_image(*args)
|
121
|
+
_view.picturefill("src", "description") do
|
122
|
+
image(*args)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require 'rspec/rails'
|
6
|
+
require 'picturefill'
|
7
|
+
# require 'capybara/rspec'
|
8
|
+
|
9
|
+
#Capybara.javascript_driver = :selenium
|
10
|
+
#RSpec.configure do |config|
|
11
|
+
# config.mock_with :mocha
|
12
|
+
#end
|
13
|
+
|
14
|
+
Rails.backtrace_cleaner.remove_silencers!
|
15
|
+
|
16
|
+
# Load support files
|
17
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: picturefill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Patrick Helm
|
@@ -10,7 +9,49 @@ autorequire:
|
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
11
|
date: 2013-06-18 00:00:00.000000000 Z
|
13
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec-rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sqlite3
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
14
55
|
description: Rails-Wrapper for picturefill.js
|
15
56
|
email:
|
16
57
|
- deradon87@gmail.com
|
@@ -19,16 +60,73 @@ extensions: []
|
|
19
60
|
extra_rdoc_files: []
|
20
61
|
files:
|
21
62
|
- .gitignore
|
63
|
+
- .rspec
|
64
|
+
- CHANGELOG.md
|
22
65
|
- Gemfile
|
23
66
|
- LICENSE.txt
|
24
67
|
- README.md
|
68
|
+
- ROADMAP.md
|
25
69
|
- Rakefile
|
26
70
|
- lib/picturefill.rb
|
71
|
+
- lib/picturefill/context.rb
|
27
72
|
- lib/picturefill/rails.rb
|
28
73
|
- lib/picturefill/rails/engine.rb
|
29
74
|
- lib/picturefill/rails/railtie.rb
|
75
|
+
- lib/picturefill/rails/view_helper.rb
|
30
76
|
- lib/picturefill/version.rb
|
31
77
|
- picturefill.gemspec
|
78
|
+
- spec/dummy/Rakefile
|
79
|
+
- spec/dummy/app/assets/javascripts/application.js
|
80
|
+
- spec/dummy/app/assets/javascripts/jquery.js
|
81
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
82
|
+
- spec/dummy/app/assets/stylesheets/companies.css
|
83
|
+
- spec/dummy/app/assets/stylesheets/projects.css
|
84
|
+
- spec/dummy/app/controllers/application_controller.rb
|
85
|
+
- spec/dummy/app/controllers/companies_controller.rb
|
86
|
+
- spec/dummy/app/controllers/projects_controller.rb
|
87
|
+
- spec/dummy/app/helpers/application_helper.rb
|
88
|
+
- spec/dummy/app/helpers/projects_helper.rb
|
89
|
+
- spec/dummy/app/mailers/.gitkeep
|
90
|
+
- spec/dummy/app/models/.gitkeep
|
91
|
+
- spec/dummy/app/models/company.rb
|
92
|
+
- spec/dummy/app/models/milestone.rb
|
93
|
+
- spec/dummy/app/models/project.rb
|
94
|
+
- spec/dummy/app/models/project_task.rb
|
95
|
+
- spec/dummy/app/models/task.rb
|
96
|
+
- spec/dummy/app/views/companies/new.html.erb
|
97
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
98
|
+
- spec/dummy/app/views/projects/new.html.erb
|
99
|
+
- spec/dummy/app/views/projects/without_intermediate_inputs.html.erb
|
100
|
+
- spec/dummy/config.ru
|
101
|
+
- spec/dummy/config/application.rb
|
102
|
+
- spec/dummy/config/boot.rb
|
103
|
+
- spec/dummy/config/database.yml
|
104
|
+
- spec/dummy/config/environment.rb
|
105
|
+
- spec/dummy/config/environments/development.rb
|
106
|
+
- spec/dummy/config/environments/production.rb
|
107
|
+
- spec/dummy/config/environments/test.rb
|
108
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
109
|
+
- spec/dummy/config/initializers/inflections.rb
|
110
|
+
- spec/dummy/config/initializers/mime_types.rb
|
111
|
+
- spec/dummy/config/initializers/secret_token.rb
|
112
|
+
- spec/dummy/config/initializers/session_store.rb
|
113
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
114
|
+
- spec/dummy/config/locales/en.yml
|
115
|
+
- spec/dummy/config/routes.rb
|
116
|
+
- spec/dummy/db/migrate/20110710143903_initial_tables.rb
|
117
|
+
- spec/dummy/db/migrate/20120819164528_add_association_with_class_name.rb
|
118
|
+
- spec/dummy/db/migrate/20130203095901_create_company.rb
|
119
|
+
- spec/dummy/db/schema.rb
|
120
|
+
- spec/dummy/db/test.sqlite3
|
121
|
+
- spec/dummy/public/404.html
|
122
|
+
- spec/dummy/public/422.html
|
123
|
+
- spec/dummy/public/500.html
|
124
|
+
- spec/dummy/public/favicon.ico
|
125
|
+
- spec/dummy/script/rails
|
126
|
+
- spec/dummy/test/functional/projects_controller_test.rb
|
127
|
+
- spec/dummy/test/unit/helpers/projects_helper_test.rb
|
128
|
+
- spec/picturefill/view_helper_spec.rb
|
129
|
+
- spec/spec_helper.rb
|
32
130
|
- vendor/assets/javascripts/matchmedia.js
|
33
131
|
- vendor/assets/javascripts/matchmedia.min.js
|
34
132
|
- vendor/assets/javascripts/picturefill.all.js
|
@@ -37,26 +135,77 @@ files:
|
|
37
135
|
- vendor/assets/javascripts/picturefill.min.js
|
38
136
|
homepage: ''
|
39
137
|
licenses: []
|
138
|
+
metadata: {}
|
40
139
|
post_install_message:
|
41
140
|
rdoc_options: []
|
42
141
|
require_paths:
|
43
142
|
- lib
|
44
143
|
required_ruby_version: !ruby/object:Gem::Requirement
|
45
|
-
none: false
|
46
144
|
requirements:
|
47
|
-
- -
|
145
|
+
- - '>='
|
48
146
|
- !ruby/object:Gem::Version
|
49
147
|
version: '0'
|
50
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
149
|
requirements:
|
53
|
-
- -
|
150
|
+
- - '>='
|
54
151
|
- !ruby/object:Gem::Version
|
55
152
|
version: '0'
|
56
153
|
requirements: []
|
57
154
|
rubyforge_project:
|
58
|
-
rubygems_version:
|
155
|
+
rubygems_version: 2.0.0.rc.2
|
59
156
|
signing_key:
|
60
|
-
specification_version:
|
157
|
+
specification_version: 4
|
61
158
|
summary: Wraps the javascript lib picturefill, to work with the rails asset-pipeline
|
62
|
-
test_files:
|
159
|
+
test_files:
|
160
|
+
- spec/dummy/Rakefile
|
161
|
+
- spec/dummy/app/assets/javascripts/application.js
|
162
|
+
- spec/dummy/app/assets/javascripts/jquery.js
|
163
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
164
|
+
- spec/dummy/app/assets/stylesheets/companies.css
|
165
|
+
- spec/dummy/app/assets/stylesheets/projects.css
|
166
|
+
- spec/dummy/app/controllers/application_controller.rb
|
167
|
+
- spec/dummy/app/controllers/companies_controller.rb
|
168
|
+
- spec/dummy/app/controllers/projects_controller.rb
|
169
|
+
- spec/dummy/app/helpers/application_helper.rb
|
170
|
+
- spec/dummy/app/helpers/projects_helper.rb
|
171
|
+
- spec/dummy/app/mailers/.gitkeep
|
172
|
+
- spec/dummy/app/models/.gitkeep
|
173
|
+
- spec/dummy/app/models/company.rb
|
174
|
+
- spec/dummy/app/models/milestone.rb
|
175
|
+
- spec/dummy/app/models/project.rb
|
176
|
+
- spec/dummy/app/models/project_task.rb
|
177
|
+
- spec/dummy/app/models/task.rb
|
178
|
+
- spec/dummy/app/views/companies/new.html.erb
|
179
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
180
|
+
- spec/dummy/app/views/projects/new.html.erb
|
181
|
+
- spec/dummy/app/views/projects/without_intermediate_inputs.html.erb
|
182
|
+
- spec/dummy/config.ru
|
183
|
+
- spec/dummy/config/application.rb
|
184
|
+
- spec/dummy/config/boot.rb
|
185
|
+
- spec/dummy/config/database.yml
|
186
|
+
- spec/dummy/config/environment.rb
|
187
|
+
- spec/dummy/config/environments/development.rb
|
188
|
+
- spec/dummy/config/environments/production.rb
|
189
|
+
- spec/dummy/config/environments/test.rb
|
190
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
191
|
+
- spec/dummy/config/initializers/inflections.rb
|
192
|
+
- spec/dummy/config/initializers/mime_types.rb
|
193
|
+
- spec/dummy/config/initializers/secret_token.rb
|
194
|
+
- spec/dummy/config/initializers/session_store.rb
|
195
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
196
|
+
- spec/dummy/config/locales/en.yml
|
197
|
+
- spec/dummy/config/routes.rb
|
198
|
+
- spec/dummy/db/migrate/20110710143903_initial_tables.rb
|
199
|
+
- spec/dummy/db/migrate/20120819164528_add_association_with_class_name.rb
|
200
|
+
- spec/dummy/db/migrate/20130203095901_create_company.rb
|
201
|
+
- spec/dummy/db/schema.rb
|
202
|
+
- spec/dummy/db/test.sqlite3
|
203
|
+
- spec/dummy/public/404.html
|
204
|
+
- spec/dummy/public/422.html
|
205
|
+
- spec/dummy/public/500.html
|
206
|
+
- spec/dummy/public/favicon.ico
|
207
|
+
- spec/dummy/script/rails
|
208
|
+
- spec/dummy/test/functional/projects_controller_test.rb
|
209
|
+
- spec/dummy/test/unit/helpers/projects_helper_test.rb
|
210
|
+
- spec/picturefill/view_helper_spec.rb
|
211
|
+
- spec/spec_helper.rb
|