Skip to content

Commit 450c685

Browse files
author
Francesco Rodriguez
committed
update engine project fixture
1 parent 67a9068 commit 450c685

File tree

44 files changed

+287
-149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+287
-149
lines changed

test/fixtures/engine_project/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
log/*.log
33
pkg/
44
test/dummy/db/*.sqlite3
5+
test/dummy/db/*.sqlite3-journal
56
test/dummy/log/*.log
6-
test/dummy/tmp/
7+
test/dummy/tmp/
8+
test/dummy/.sass-cache

test/fixtures/engine_project/Gemfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
source 'http://rubygems.org'
1+
source "https://rubygems.org"
22

3+
# Declare your gem's dependencies in engine_project.gemspec.
4+
# Bundler will treat runtime dependencies like base dependencies, and
5+
# development dependencies will be added by default to the :development group.
36
gemspec
47

5-
gem 'sass-rails', :path => File.expand_path('../../../..', __FILE__)
8+
# Declare any dependencies that are still in development here instead of in
9+
# your gemspec. These might include edge Rails or gems from your path or
10+
# Git. Remember to move these dependencies to your gemspec before releasing
11+
# your gem to rubygems.org.
12+
13+
# To use debugger
14+
# gem 'debugger'
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright 2013 YOURNAME
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

test/fixtures/engine_project/Rakefile

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
#!/usr/bin/env rake
21
begin
32
require 'bundler/setup'
43
rescue LoadError
54
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
65
end
7-
begin
8-
require 'rdoc/task'
9-
rescue LoadError
10-
require 'rdoc/rdoc'
11-
require 'rake/rdoctask'
12-
RDoc::Task = Rake::RDocTask
13-
end
6+
7+
require 'rdoc/task'
148

159
RDoc::Task.new(:rdoc) do |rdoc|
1610
rdoc.rdoc_dir = 'rdoc'
@@ -24,7 +18,8 @@ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
2418
load 'rails/tasks/engine.rake'
2519

2620

27-
Bundler::GemHelper.install_tasks :name => 'engine_project'
21+
22+
Bundler::GemHelper.install_tasks
2823

2924
require 'rake/testtask'
3025

@@ -36,4 +31,4 @@ Rake::TestTask.new(:test) do |t|
3631
end
3732

3833

39-
task :default => :test
34+
task default: :test
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
// This is a manifest file that'll be compiled into including all the files listed below.
2-
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3-
// be included in the compiled file accessible from http://example.com/assets/application.js
1+
// This is a manifest file that'll be compiled into application.js, which will include all the files
2+
// listed below.
3+
//
4+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6+
//
47
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5-
// the compiled file.
8+
// compiled file.
9+
//
10+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11+
// GO AFTER THE REQUIRES BELOW.
612
//
713
//= require jquery
814
//= require jquery_ujs
15+
//= require turbolinks
916
//= require_tree .
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
/*
2-
* This is a manifest file that'll automatically include all the stylesheets available in this directory
3-
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4-
* the top of the compiled file, but it's generally better to create a new file per style scope.
2+
* This is a manifest file that'll be compiled into application.css, which will include all the files
3+
* listed below.
4+
*
5+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7+
*
8+
* You're free to add application-wide styles to this file and they'll appear at the top of the
9+
* compiled file, but it's generally better to create a new file per style scope.
10+
*
511
*= require_self
6-
*= require_tree .
7-
*/
12+
*= require_tree .
13+
*/

test/fixtures/engine_project/app/views/layouts/engine_project/application.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<title>EngineProject</title>
5-
<%= stylesheet_link_tag "engine_project/application" %>
5+
<%= stylesheet_link_tag "engine_project/application", media: "all" %>
66
<%= javascript_include_tag "engine_project/application" %>
77
<%= csrf_meta_tags %>
88
</head>

test/fixtures/engine_project/db/seeds.rb

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1+
$:.push File.expand_path("../lib", __FILE__)
2+
3+
# Maintain your gem's version:
4+
require "engine_project/version"
5+
6+
# Describe your gem and declare its dependencies:
17
Gem::Specification.new do |s|
2-
s.name = 'engine_project'
3-
s.version = '0.0.0'
8+
s.name = "engine_project"
9+
s.version = EngineProject::VERSION
10+
s.authors = ["TODO: Your name"]
11+
s.email = ["TODO: Your email"]
12+
s.homepage = "TODO"
13+
s.summary = "TODO: Summary of EngineProject."
14+
s.description = "TODO: Description of EngineProject."
15+
16+
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
17+
s.test_files = Dir["test/**/*"]
18+
19+
s.add_dependency "rails", "~> 4.0.0.beta1"
20+
# s.add_dependency "jquery-rails"
421

5-
s.add_dependency "rails", "~> 4.0.0.beta"
6-
s.add_dependency "sqlite3"
7-
s.add_dependency "sass-rails", "~> 4.0.0.beta"
22+
s.add_development_dependency "sqlite3"
823
end

0 commit comments

Comments
 (0)