Skip to content

Commit 56e0f88

Browse files
committed
setup engine
1 parent d8d4fd8 commit 56e0f88

Some content is hidden

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

56 files changed

+1060
-6
lines changed

Gemfile

+10
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,13 @@ source 'https://rubygems.org'
22

33
# Specify your gem's dependencies in hashtags.gemspec
44
gemspec
5+
6+
group :test do
7+
gem 'capybara-screenshot'
8+
gem 'capybara-webkit'
9+
gem 'launchy'
10+
gem 'minitest-around'
11+
gem 'minitest-rails'
12+
gem 'minitest-rails-capybara'
13+
gem 'minitest-reporters'
14+
end

Rakefile

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
require "bundler/gem_tasks"
2-
require "rake/testtask"
1+
# begin
2+
# require 'bundler/setup'
3+
# rescue LoadError
4+
# puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5+
# end
6+
7+
require 'bundler/gem_tasks'
8+
require 'rake/testtask'
9+
10+
# APP_RAKEFILE = File.expand_path('../test/dummy/Rakefile', __FILE__)
11+
# load 'rails/tasks/engine.rake'
312

413
Rake::TestTask.new(:test) do |t|
5-
t.libs << "test"
6-
t.libs << "lib"
14+
t.libs << 'test'
15+
t.libs << 'lib'
716
t.test_files = FileList['test/**/*_test.rb']
817
end
918

10-
task :default => :test
19+
task default: :test

config/routes.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Hashtags::Engine.routes.draw do
2+
end

hashtags.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
1818
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
1919
spec.require_paths = ['lib']
2020

21-
spec.add_dependency 'activesupport'
2221
spec.add_dependency 'handlebars'
22+
spec.add_dependency 'rails', '~> 4.2'
2323

2424
spec.add_development_dependency 'bundler', '~> 1.12'
2525
spec.add_development_dependency 'guard'

lib/hashtags.rb

+1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
require 'hashtags/user'
77
require 'hashtags/variable'
88

9+
require 'hashtags/engine'
910
require 'hashtags/version'

test/dummy/.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore all logfiles and tempfiles.
11+
/log/*
12+
!/log/.keep
13+
/tmp

test/dummy/Gemfile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
source 'https://rubygems.org'
2+
3+
4+
gem 'rails', '~> 4.2'
5+
gem 'sass-rails', '~> 5.0'
6+
gem 'uglifier', '>= 1.3.0'
7+
gem 'coffee-rails', '~> 4.1.0'
8+
9+
gem 'jquery-rails'
10+
gem 'turbolinks'
11+
gem 'jbuilder', '~> 2.0'
12+
gem 'sdoc', '~> 0.4.0', group: :doc
13+
14+
gem 'hashtags', git: '[email protected]:tomasc/hashtags.git', branch: 'master'
15+
gem 'mongoid', '>= 5'
16+
gem 'slim'
17+
18+
group :development, :test do
19+
gem 'byebug'
20+
gem 'web-console', '~> 2.0'
21+
gem 'spring'
22+
end

test/dummy/Gemfile.lock

+194
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
GIT
2+
remote: [email protected]:tomasc/hashtags.git
3+
revision: d8d4fd8119ead67680af562eff566408296113b1
4+
branch: master
5+
specs:
6+
hashtags (0.1.0)
7+
handlebars
8+
rails (~> 4.2)
9+
10+
GEM
11+
remote: https://rubygems.org/
12+
specs:
13+
actionmailer (4.2.7.1)
14+
actionpack (= 4.2.7.1)
15+
actionview (= 4.2.7.1)
16+
activejob (= 4.2.7.1)
17+
mail (~> 2.5, >= 2.5.4)
18+
rails-dom-testing (~> 1.0, >= 1.0.5)
19+
actionpack (4.2.7.1)
20+
actionview (= 4.2.7.1)
21+
activesupport (= 4.2.7.1)
22+
rack (~> 1.6)
23+
rack-test (~> 0.6.2)
24+
rails-dom-testing (~> 1.0, >= 1.0.5)
25+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
26+
actionview (4.2.7.1)
27+
activesupport (= 4.2.7.1)
28+
builder (~> 3.1)
29+
erubis (~> 2.7.0)
30+
rails-dom-testing (~> 1.0, >= 1.0.5)
31+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
32+
activejob (4.2.7.1)
33+
activesupport (= 4.2.7.1)
34+
globalid (>= 0.3.0)
35+
activemodel (4.2.7.1)
36+
activesupport (= 4.2.7.1)
37+
builder (~> 3.1)
38+
activerecord (4.2.7.1)
39+
activemodel (= 4.2.7.1)
40+
activesupport (= 4.2.7.1)
41+
arel (~> 6.0)
42+
activesupport (4.2.7.1)
43+
i18n (~> 0.7)
44+
json (~> 1.7, >= 1.7.7)
45+
minitest (~> 5.1)
46+
thread_safe (~> 0.3, >= 0.3.4)
47+
tzinfo (~> 1.1)
48+
arel (6.0.3)
49+
binding_of_caller (0.7.2)
50+
debug_inspector (>= 0.0.1)
51+
bson (4.1.1)
52+
builder (3.2.2)
53+
byebug (9.0.6)
54+
coffee-rails (4.1.1)
55+
coffee-script (>= 2.2.0)
56+
railties (>= 4.0.0, < 5.1.x)
57+
coffee-script (2.4.1)
58+
coffee-script-source
59+
execjs
60+
coffee-script-source (1.10.0)
61+
concurrent-ruby (1.0.2)
62+
debug_inspector (0.0.2)
63+
erubis (2.7.0)
64+
execjs (2.7.0)
65+
globalid (0.3.7)
66+
activesupport (>= 4.1.0)
67+
handlebars (0.8.0)
68+
handlebars-source (~> 4.0.5)
69+
therubyracer (~> 0.12.1)
70+
handlebars-source (4.0.5)
71+
i18n (0.7.0)
72+
jbuilder (2.6.0)
73+
activesupport (>= 3.0.0, < 5.1)
74+
multi_json (~> 1.2)
75+
jquery-rails (4.2.1)
76+
rails-dom-testing (>= 1, < 3)
77+
railties (>= 4.2.0)
78+
thor (>= 0.14, < 2.0)
79+
json (1.8.3)
80+
libv8 (3.16.14.15)
81+
loofah (2.0.3)
82+
nokogiri (>= 1.5.9)
83+
mail (2.6.4)
84+
mime-types (>= 1.16, < 4)
85+
mime-types (3.1)
86+
mime-types-data (~> 3.2015)
87+
mime-types-data (3.2016.0521)
88+
mini_portile2 (2.1.0)
89+
minitest (5.9.1)
90+
mongo (2.3.0)
91+
bson (~> 4.1)
92+
mongoid (5.1.4)
93+
activemodel (~> 4.0)
94+
mongo (~> 2.1)
95+
origin (~> 2.2)
96+
tzinfo (>= 0.3.37)
97+
multi_json (1.12.1)
98+
nokogiri (1.6.8.1)
99+
mini_portile2 (~> 2.1.0)
100+
origin (2.2.0)
101+
rack (1.6.4)
102+
rack-test (0.6.3)
103+
rack (>= 1.0)
104+
rails (4.2.7.1)
105+
actionmailer (= 4.2.7.1)
106+
actionpack (= 4.2.7.1)
107+
actionview (= 4.2.7.1)
108+
activejob (= 4.2.7.1)
109+
activemodel (= 4.2.7.1)
110+
activerecord (= 4.2.7.1)
111+
activesupport (= 4.2.7.1)
112+
bundler (>= 1.3.0, < 2.0)
113+
railties (= 4.2.7.1)
114+
sprockets-rails
115+
rails-deprecated_sanitizer (1.0.3)
116+
activesupport (>= 4.2.0.alpha)
117+
rails-dom-testing (1.0.7)
118+
activesupport (>= 4.2.0.beta, < 5.0)
119+
nokogiri (~> 1.6.0)
120+
rails-deprecated_sanitizer (>= 1.0.1)
121+
rails-html-sanitizer (1.0.3)
122+
loofah (~> 2.0)
123+
railties (4.2.7.1)
124+
actionpack (= 4.2.7.1)
125+
activesupport (= 4.2.7.1)
126+
rake (>= 0.8.7)
127+
thor (>= 0.18.1, < 2.0)
128+
rake (11.3.0)
129+
rdoc (4.2.2)
130+
json (~> 1.4)
131+
ref (2.0.0)
132+
sass (3.4.22)
133+
sass-rails (5.0.6)
134+
railties (>= 4.0.0, < 6)
135+
sass (~> 3.1)
136+
sprockets (>= 2.8, < 4.0)
137+
sprockets-rails (>= 2.0, < 4.0)
138+
tilt (>= 1.1, < 3)
139+
sdoc (0.4.2)
140+
json (~> 1.7, >= 1.7.7)
141+
rdoc (~> 4.0)
142+
slim (3.0.7)
143+
temple (~> 0.7.6)
144+
tilt (>= 1.3.3, < 2.1)
145+
spring (2.0.0)
146+
activesupport (>= 4.2)
147+
sprockets (3.7.0)
148+
concurrent-ruby (~> 1.0)
149+
rack (> 1, < 3)
150+
sprockets-rails (3.2.0)
151+
actionpack (>= 4.0)
152+
activesupport (>= 4.0)
153+
sprockets (>= 3.0.0)
154+
temple (0.7.7)
155+
therubyracer (0.12.2)
156+
libv8 (~> 3.16.14.0)
157+
ref
158+
thor (0.19.1)
159+
thread_safe (0.3.5)
160+
tilt (2.0.5)
161+
turbolinks (5.0.1)
162+
turbolinks-source (~> 5)
163+
turbolinks-source (5.0.0)
164+
tzinfo (1.2.2)
165+
thread_safe (~> 0.1)
166+
uglifier (3.0.2)
167+
execjs (>= 0.3.0, < 3)
168+
web-console (2.3.0)
169+
activemodel (>= 4.0)
170+
binding_of_caller (>= 0.7.2)
171+
railties (>= 4.0)
172+
sprockets-rails (>= 2.0, < 4.0)
173+
174+
PLATFORMS
175+
ruby
176+
177+
DEPENDENCIES
178+
byebug
179+
coffee-rails (~> 4.1.0)
180+
hashtags!
181+
jbuilder (~> 2.0)
182+
jquery-rails
183+
mongoid (>= 5)
184+
rails (~> 4.2)
185+
sass-rails (~> 5.0)
186+
sdoc (~> 0.4.0)
187+
slim
188+
spring
189+
turbolinks
190+
uglifier (>= 1.3.0)
191+
web-console (~> 2.0)
192+
193+
BUNDLED WITH
194+
1.12.5

test/dummy/README.rdoc

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
== README
2+
3+
This README would normally document whatever steps are necessary to get the
4+
application up and running.
5+
6+
Things you may want to cover:
7+
8+
* Ruby version
9+
10+
* System dependencies
11+
12+
* Configuration
13+
14+
* Database creation
15+
16+
* Database initialization
17+
18+
* How to run the test suite
19+
20+
* Services (job queues, cache servers, search engines, etc.)
21+
22+
* Deployment instructions
23+
24+
* ...
25+
26+
27+
Please feel free to use a different markup language if you do not plan to run
28+
<tt>rake doc:app</tt>.

test/dummy/Rakefile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3+
4+
require File.expand_path('../config/application', __FILE__)
5+
6+
Rails.application.load_tasks

test/dummy/app/assets/images/.keep

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//= require jquery
2+
//= require jquery_ujs
3+
//= require_tree .
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/*
2+
*= require_tree .
3+
*= require_self
4+
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class ApplicationController < ActionController::Base
2+
# Prevent CSRF attacks by raising an exception.
3+
# For APIs, you may want to use :null_session instead.
4+
protect_from_forgery with: :exception
5+
end

test/dummy/app/controllers/concerns/.keep

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module ApplicationHelper
2+
end

test/dummy/app/mailers/.keep

Whitespace-only changes.

test/dummy/app/models/.keep

Whitespace-only changes.

test/dummy/app/models/concerns/.keep

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Dummy</title>
5+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7+
<%= csrf_meta_tags %>
8+
</head>
9+
<body>
10+
11+
<%= yield %>
12+
13+
</body>
14+
</html>

test/dummy/bin/bundle

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env ruby
2+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3+
load Gem.bin_path('bundler', 'bundle')

test/dummy/bin/rails

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env ruby
2+
begin
3+
load File.expand_path("../spring", __FILE__)
4+
rescue LoadError
5+
end
6+
APP_PATH = File.expand_path('../../config/application', __FILE__)
7+
require_relative '../config/boot'
8+
require 'rails/commands'

test/dummy/bin/rake

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env ruby
2+
begin
3+
load File.expand_path("../spring", __FILE__)
4+
rescue LoadError
5+
end
6+
require_relative '../config/boot'
7+
require 'rake'
8+
Rake.application.run

0 commit comments

Comments
 (0)