simple_interaction-rails 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +9 -0
- data/bin/erubis +16 -0
- data/bin/nokogiri +16 -0
- data/bin/rackup +16 -0
- data/bin/rake +16 -0
- data/bin/sprockets +16 -0
- data/bin/thor +16 -0
- data/lib/generators/interaction_generator.rb +1 -0
- data/lib/generators/rspec/interaction_generator.rb +9 -6
- data/lib/generators/templates/interaction.rb +3 -0
- data/lib/generators/test_unit/interaction_generator.rb +1 -1
- data/lib/simple_interaction/rails/version.rb +1 -1
- data/test/generators/interaction_generator_test.rb +20 -0
- data/test/generators/spec/interaction_spec_generator_test.rb +16 -0
- data/test/generators/test_unit/interaction_generator_test_unit_test.rb +19 -0
- data/test/rails_app/.gitignore +13 -0
- data/test/rails_app/Gemfile +43 -0
- data/test/rails_app/Gemfile.lock +154 -0
- data/test/rails_app/README.rdoc +28 -0
- data/test/rails_app/Rakefile +6 -0
- data/test/rails_app/app/assets/images/.keep +0 -0
- data/test/rails_app/app/assets/javascripts/application.js +16 -0
- data/test/rails_app/app/assets/stylesheets/application.css +15 -0
- data/test/rails_app/app/controllers/application_controller.rb +5 -0
- data/test/rails_app/app/controllers/concerns/.keep +0 -0
- data/test/rails_app/app/helpers/application_helper.rb +2 -0
- data/test/rails_app/app/mailers/.keep +0 -0
- data/test/rails_app/app/models/.keep +0 -0
- data/test/rails_app/app/models/concerns/.keep +0 -0
- data/test/rails_app/app/views/layouts/application.html.erb +14 -0
- data/test/rails_app/bin/bundle +3 -0
- data/test/rails_app/bin/rails +8 -0
- data/test/rails_app/bin/rake +8 -0
- data/test/rails_app/bin/setup +29 -0
- data/test/rails_app/bin/spring +15 -0
- data/test/rails_app/config/application.rb +34 -0
- data/test/rails_app/config/boot.rb +3 -0
- data/test/rails_app/config/environment.rb +5 -0
- data/test/rails_app/config/environments/development.rb +38 -0
- data/test/rails_app/config/environments/production.rb +76 -0
- data/test/rails_app/config/environments/test.rb +42 -0
- data/test/rails_app/config/initializers/assets.rb +11 -0
- data/test/rails_app/config/initializers/backtrace_silencers.rb +7 -0
- data/test/rails_app/config/initializers/cookies_serializer.rb +3 -0
- data/test/rails_app/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/rails_app/config/initializers/inflections.rb +16 -0
- data/test/rails_app/config/initializers/mime_types.rb +4 -0
- data/test/rails_app/config/initializers/session_store.rb +3 -0
- data/test/rails_app/config/initializers/wrap_parameters.rb +9 -0
- data/test/rails_app/config/locales/en.yml +23 -0
- data/test/rails_app/config/routes.rb +56 -0
- data/test/rails_app/config/secrets.yml +22 -0
- data/test/rails_app/config.ru +4 -0
- data/test/rails_app/db/seeds.rb +7 -0
- data/test/rails_app/lib/assets/.keep +0 -0
- data/test/rails_app/lib/tasks/.keep +0 -0
- data/test/rails_app/log/.keep +0 -0
- data/test/rails_app/public/404.html +67 -0
- data/test/rails_app/public/422.html +67 -0
- data/test/rails_app/public/500.html +66 -0
- data/test/rails_app/public/favicon.ico +0 -0
- data/test/rails_app/public/robots.txt +5 -0
- data/test/rails_app/test/controllers/.keep +0 -0
- data/test/rails_app/test/fixtures/.keep +0 -0
- data/test/rails_app/test/helpers/.keep +0 -0
- data/test/rails_app/test/integration/.keep +0 -0
- data/test/rails_app/test/mailers/.keep +0 -0
- data/test/rails_app/test/models/.keep +0 -0
- data/test/rails_app/test/test_helper.rb +7 -0
- data/test/rails_app/vendor/assets/javascripts/.keep +0 -0
- data/test/rails_app/vendor/assets/stylesheets/.keep +0 -0
- data/test/test_helper.rb +9 -0
- data/test/tmp/app/interactions/users/create.rb +9 -0
- data/test/tmp/spec/spec/interactions/users/create_spec.rb +5 -0
- data/test/tmp/test/test/interactions/users/create_test.rb +11 -0
- metadata +140 -4
- /data/lib/generators/test_unit/templates/{interaction_test.rb → interaction_test_unit.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 640ddf9e15c0d069b973e4a61966072d5172b709
|
4
|
+
data.tar.gz: 2b957bd30b41742f3b764e8ca17a2d5c8976b09c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02cc81cd2d1c35f1b6a241ad7eaace5379ba7e99de8ecca09b3c53dd08efdc7c6dcc8bd20384ade30880043338e3298147ed137fea298eb687360dd3e17d5300
|
7
|
+
data.tar.gz: 52c929a2a4aec5ea337c653567301988b5fbdd9e1b3bc7934a32ff35df0d94bff7c1d72f7295cabd4c65bb2e59620a1db199c0cbac1de16e7c32dcadc1b46c25
|
data/Rakefile
CHANGED
@@ -1,2 +1,11 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
|
+
require 'rake/testtask'
|
3
|
+
require 'rdoc/task'
|
2
4
|
|
5
|
+
desc 'Default: run tests for generator'
|
6
|
+
task default: :test
|
7
|
+
|
8
|
+
Rake::TestTask.new(:test) do |test|
|
9
|
+
test.libs << "test" # here is the test_helper
|
10
|
+
test.pattern = "test/generators/**/*_test.rb"
|
11
|
+
end
|
data/bin/erubis
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'erubis' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('erubis', 'erubis')
|
data/bin/nokogiri
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'nokogiri' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('nokogiri', 'nokogiri')
|
data/bin/rackup
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'rackup' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('rack', 'rackup')
|
data/bin/rake
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'rake' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('rake', 'rake')
|
data/bin/sprockets
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'sprockets' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('sprockets', 'sprockets')
|
data/bin/thor
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'thor' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('thor', 'thor')
|
@@ -3,6 +3,7 @@ require 'rails/generators/named_base'
|
|
3
3
|
class InteractionGenerator < ::Rails::Generators::NamedBase
|
4
4
|
source_root File.expand_path("../templates", __FILE__)
|
5
5
|
class_option :requirements, type: 'array', default: []
|
6
|
+
class_option :fail_with, type: 'string', default: nil
|
6
7
|
|
7
8
|
def create_interaction_file
|
8
9
|
template "interaction.rb", File.join('app/interactions/', class_path, "#{file_name}.rb")
|
@@ -1,11 +1,14 @@
|
|
1
1
|
require 'rails/generators/named_base'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
module Rspec
|
4
|
+
class InteractionGenerator < ::Rails::Generators::NamedBase
|
5
|
+
source_root File.expand_path("../templates", __FILE__)
|
6
|
+
class_option :requirements, type: 'array', default: []
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
8
|
+
def create_interaction_file
|
9
|
+
template "interaction_spec.rb", File.join('spec/interactions/', class_path, "#{file_name}_spec.rb")
|
10
|
+
end
|
10
11
|
|
12
|
+
end
|
13
|
+
|
11
14
|
end
|
@@ -1,6 +1,9 @@
|
|
1
1
|
<% interaction_namespaced do -%>
|
2
2
|
class <%= class_name %>
|
3
3
|
include SimpleInteraction
|
4
|
+
<% if options['fail_with'] -%>
|
5
|
+
fail_with '<%= options['fail_with'] -%>'
|
6
|
+
<% end -%>
|
4
7
|
<% if options['requirements'].any? %>
|
5
8
|
requires <%= options['requirements'].map {|s| ':' + s.strip }.join(', ') %>
|
6
9
|
<% end -%>
|
@@ -5,7 +5,7 @@ module TestUnit
|
|
5
5
|
source_root File.expand_path("../templates", __FILE__)
|
6
6
|
|
7
7
|
def create_interaction_file
|
8
|
-
template "
|
8
|
+
template "interaction_test_unit.rb", File.join('test/interactions/', class_path, "#{file_name}_test.rb")
|
9
9
|
end
|
10
10
|
|
11
11
|
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class InteractionGeneratorTest < Rails::Generators::TestCase
|
4
|
+
tests InteractionGenerator
|
5
|
+
destination File.expand_path("../tmp", File.dirname(__FILE__))
|
6
|
+
setup :prepare_destination
|
7
|
+
|
8
|
+
def test_requirements
|
9
|
+
run_generator %w(Users::Create --requirements params --fail_with ErrorClass)
|
10
|
+
|
11
|
+
assert_file "app/interactions/users/create.rb" do |interaction|
|
12
|
+
assert_match(/requires \:params/, interaction)
|
13
|
+
assert_match(/module Users/, interaction)
|
14
|
+
assert_match(/class Create/, interaction)
|
15
|
+
assert_match(/include SimpleInteraction/, interaction)
|
16
|
+
assert_match(/fail_with 'ErrorClass'/, interaction)
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'generators/rspec/interaction_generator'
|
3
|
+
|
4
|
+
class InteractionSpecGeneratorTest < Rails::Generators::TestCase
|
5
|
+
tests Rspec::InteractionGenerator
|
6
|
+
destination File.expand_path("../../tmp/spec", File.dirname(__FILE__))
|
7
|
+
setup :prepare_destination
|
8
|
+
|
9
|
+
def test_spec_file_generation
|
10
|
+
run_generator %w(Users::Create --requirements params --fail_with ErrorClass)
|
11
|
+
|
12
|
+
assert_file "spec/interactions/users/create_spec.rb" do |interaction_test|
|
13
|
+
assert_match /describe Users::Create/, interaction_test
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'generators/test_unit/interaction_generator'
|
3
|
+
|
4
|
+
class InteractionGeneratorTestUnitTest < Rails::Generators::TestCase
|
5
|
+
tests TestUnit::InteractionGenerator
|
6
|
+
destination File.expand_path("../../tmp/test", File.dirname(__FILE__))
|
7
|
+
setup :prepare_destination
|
8
|
+
|
9
|
+
def test_test_unit_file_generation
|
10
|
+
run_generator %w(Users::Create --requirements params --fail_with ErrorClass)
|
11
|
+
|
12
|
+
assert_file "test/interactions/users/create_test.rb" do |interaction_test|
|
13
|
+
assert_instance_method :test_run_implemented, interaction_test do |test_run_implemented|
|
14
|
+
assert_match /assert_nothing_raised/, test_run_implemented
|
15
|
+
end
|
16
|
+
assert_match /class Users::CreateTest/, interaction_test
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -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
|
@@ -0,0 +1,43 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
|
4
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
5
|
+
gem 'rails', '4.2.2'
|
6
|
+
# Use SCSS for stylesheets
|
7
|
+
gem 'sass-rails', '~> 5.0'
|
8
|
+
# Use Uglifier as compressor for JavaScript assets
|
9
|
+
gem 'uglifier', '>= 1.3.0'
|
10
|
+
# Use CoffeeScript for .coffee assets and views
|
11
|
+
gem 'coffee-rails', '~> 4.1.0'
|
12
|
+
# See https://github.com/rails/execjs#readme for more supported runtimes
|
13
|
+
# gem 'therubyracer', platforms: :ruby
|
14
|
+
|
15
|
+
# Use jquery as the JavaScript library
|
16
|
+
gem 'jquery-rails'
|
17
|
+
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
18
|
+
gem 'turbolinks'
|
19
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
20
|
+
gem 'jbuilder', '~> 2.0'
|
21
|
+
# bundle exec rake doc:rails generates the API under doc/api.
|
22
|
+
gem 'sdoc', '~> 0.4.0', group: :doc
|
23
|
+
|
24
|
+
# Use ActiveModel has_secure_password
|
25
|
+
# gem 'bcrypt', '~> 3.1.7'
|
26
|
+
|
27
|
+
# Use Unicorn as the app server
|
28
|
+
# gem 'unicorn'
|
29
|
+
|
30
|
+
# Use Capistrano for deployment
|
31
|
+
# gem 'capistrano-rails', group: :development
|
32
|
+
|
33
|
+
group :development, :test do
|
34
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
35
|
+
gem 'byebug'
|
36
|
+
|
37
|
+
# Access an IRB console on exception pages or by using <%= console %> in views
|
38
|
+
gem 'web-console', '~> 2.0'
|
39
|
+
|
40
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
41
|
+
gem 'spring'
|
42
|
+
end
|
43
|
+
|
@@ -0,0 +1,154 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
actionmailer (4.2.2)
|
5
|
+
actionpack (= 4.2.2)
|
6
|
+
actionview (= 4.2.2)
|
7
|
+
activejob (= 4.2.2)
|
8
|
+
mail (~> 2.5, >= 2.5.4)
|
9
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
10
|
+
actionpack (4.2.2)
|
11
|
+
actionview (= 4.2.2)
|
12
|
+
activesupport (= 4.2.2)
|
13
|
+
rack (~> 1.6)
|
14
|
+
rack-test (~> 0.6.2)
|
15
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
16
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
17
|
+
actionview (4.2.2)
|
18
|
+
activesupport (= 4.2.2)
|
19
|
+
builder (~> 3.1)
|
20
|
+
erubis (~> 2.7.0)
|
21
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
22
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
23
|
+
activejob (4.2.2)
|
24
|
+
activesupport (= 4.2.2)
|
25
|
+
globalid (>= 0.3.0)
|
26
|
+
activemodel (4.2.2)
|
27
|
+
activesupport (= 4.2.2)
|
28
|
+
builder (~> 3.1)
|
29
|
+
activerecord (4.2.2)
|
30
|
+
activemodel (= 4.2.2)
|
31
|
+
activesupport (= 4.2.2)
|
32
|
+
arel (~> 6.0)
|
33
|
+
activesupport (4.2.2)
|
34
|
+
i18n (~> 0.7)
|
35
|
+
json (~> 1.7, >= 1.7.7)
|
36
|
+
minitest (~> 5.1)
|
37
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
38
|
+
tzinfo (~> 1.1)
|
39
|
+
arel (6.0.0)
|
40
|
+
binding_of_caller (0.7.2)
|
41
|
+
debug_inspector (>= 0.0.1)
|
42
|
+
builder (3.2.2)
|
43
|
+
byebug (5.0.0)
|
44
|
+
columnize (= 0.9.0)
|
45
|
+
coffee-rails (4.1.0)
|
46
|
+
coffee-script (>= 2.2.0)
|
47
|
+
railties (>= 4.0.0, < 5.0)
|
48
|
+
coffee-script (2.4.1)
|
49
|
+
coffee-script-source
|
50
|
+
execjs
|
51
|
+
coffee-script-source (1.9.1.1)
|
52
|
+
columnize (0.9.0)
|
53
|
+
debug_inspector (0.0.2)
|
54
|
+
erubis (2.7.0)
|
55
|
+
execjs (2.5.2)
|
56
|
+
globalid (0.3.5)
|
57
|
+
activesupport (>= 4.1.0)
|
58
|
+
i18n (0.7.0)
|
59
|
+
jbuilder (2.3.0)
|
60
|
+
activesupport (>= 3.0.0, < 5)
|
61
|
+
multi_json (~> 1.2)
|
62
|
+
jquery-rails (4.0.4)
|
63
|
+
rails-dom-testing (~> 1.0)
|
64
|
+
railties (>= 4.2.0)
|
65
|
+
thor (>= 0.14, < 2.0)
|
66
|
+
json (1.8.3)
|
67
|
+
loofah (2.0.2)
|
68
|
+
nokogiri (>= 1.5.9)
|
69
|
+
mail (2.6.3)
|
70
|
+
mime-types (>= 1.16, < 3)
|
71
|
+
mime-types (2.6.1)
|
72
|
+
mini_portile (0.6.2)
|
73
|
+
minitest (5.7.0)
|
74
|
+
multi_json (1.11.1)
|
75
|
+
nokogiri (1.6.6.2)
|
76
|
+
mini_portile (~> 0.6.0)
|
77
|
+
rack (1.6.4)
|
78
|
+
rack-test (0.6.3)
|
79
|
+
rack (>= 1.0)
|
80
|
+
rails (4.2.2)
|
81
|
+
actionmailer (= 4.2.2)
|
82
|
+
actionpack (= 4.2.2)
|
83
|
+
actionview (= 4.2.2)
|
84
|
+
activejob (= 4.2.2)
|
85
|
+
activemodel (= 4.2.2)
|
86
|
+
activerecord (= 4.2.2)
|
87
|
+
activesupport (= 4.2.2)
|
88
|
+
bundler (>= 1.3.0, < 2.0)
|
89
|
+
railties (= 4.2.2)
|
90
|
+
sprockets-rails
|
91
|
+
rails-deprecated_sanitizer (1.0.3)
|
92
|
+
activesupport (>= 4.2.0.alpha)
|
93
|
+
rails-dom-testing (1.0.6)
|
94
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
95
|
+
nokogiri (~> 1.6.0)
|
96
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
97
|
+
rails-html-sanitizer (1.0.2)
|
98
|
+
loofah (~> 2.0)
|
99
|
+
railties (4.2.2)
|
100
|
+
actionpack (= 4.2.2)
|
101
|
+
activesupport (= 4.2.2)
|
102
|
+
rake (>= 0.8.7)
|
103
|
+
thor (>= 0.18.1, < 2.0)
|
104
|
+
rake (10.4.2)
|
105
|
+
rdoc (4.2.0)
|
106
|
+
json (~> 1.4)
|
107
|
+
sass (3.4.14)
|
108
|
+
sass-rails (5.0.3)
|
109
|
+
railties (>= 4.0.0, < 5.0)
|
110
|
+
sass (~> 3.1)
|
111
|
+
sprockets (>= 2.8, < 4.0)
|
112
|
+
sprockets-rails (>= 2.0, < 4.0)
|
113
|
+
tilt (~> 1.1)
|
114
|
+
sdoc (0.4.1)
|
115
|
+
json (~> 1.7, >= 1.7.7)
|
116
|
+
rdoc (~> 4.0)
|
117
|
+
spring (1.3.6)
|
118
|
+
sprockets (3.2.0)
|
119
|
+
rack (~> 1.0)
|
120
|
+
sprockets-rails (2.3.1)
|
121
|
+
actionpack (>= 3.0)
|
122
|
+
activesupport (>= 3.0)
|
123
|
+
sprockets (>= 2.8, < 4.0)
|
124
|
+
thor (0.19.1)
|
125
|
+
thread_safe (0.3.5)
|
126
|
+
tilt (1.4.1)
|
127
|
+
turbolinks (2.5.3)
|
128
|
+
coffee-rails
|
129
|
+
tzinfo (1.2.2)
|
130
|
+
thread_safe (~> 0.1)
|
131
|
+
uglifier (2.7.1)
|
132
|
+
execjs (>= 0.3.0)
|
133
|
+
json (>= 1.8.0)
|
134
|
+
web-console (2.1.3)
|
135
|
+
activemodel (>= 4.0)
|
136
|
+
binding_of_caller (>= 0.7.2)
|
137
|
+
railties (>= 4.0)
|
138
|
+
sprockets-rails (>= 2.0, < 4.0)
|
139
|
+
|
140
|
+
PLATFORMS
|
141
|
+
ruby
|
142
|
+
|
143
|
+
DEPENDENCIES
|
144
|
+
byebug
|
145
|
+
coffee-rails (~> 4.1.0)
|
146
|
+
jbuilder (~> 2.0)
|
147
|
+
jquery-rails
|
148
|
+
rails (= 4.2.2)
|
149
|
+
sass-rails (~> 5.0)
|
150
|
+
sdoc (~> 0.4.0)
|
151
|
+
spring
|
152
|
+
turbolinks
|
153
|
+
uglifier (>= 1.3.0)
|
154
|
+
web-console (~> 2.0)
|
@@ -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>.
|
File without changes
|
@@ -0,0 +1,16 @@
|
|
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 any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery_ujs
|
15
|
+
//= require turbolinks
|
16
|
+
//= require_tree .
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
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 any plugin's vendor/assets/stylesheets directory 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 bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
+
* file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>RailsApp</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>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'pathname'
|
3
|
+
|
4
|
+
# path to your application root.
|
5
|
+
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
6
|
+
|
7
|
+
Dir.chdir APP_ROOT do
|
8
|
+
# This script is a starting point to setup your application.
|
9
|
+
# Add necessary setup steps to this file:
|
10
|
+
|
11
|
+
puts "== Installing dependencies =="
|
12
|
+
system "gem install bundler --conservative"
|
13
|
+
system "bundle check || bundle install"
|
14
|
+
|
15
|
+
# puts "\n== Copying sample files =="
|
16
|
+
# unless File.exist?("config/database.yml")
|
17
|
+
# system "cp config/database.yml.sample config/database.yml"
|
18
|
+
# end
|
19
|
+
|
20
|
+
puts "\n== Preparing database =="
|
21
|
+
system "bin/rake db:setup"
|
22
|
+
|
23
|
+
puts "\n== Removing old logs and tempfiles =="
|
24
|
+
system "rm -f log/*"
|
25
|
+
system "rm -rf tmp/cache"
|
26
|
+
|
27
|
+
puts "\n== Restarting application server =="
|
28
|
+
system "touch tmp/restart.txt"
|
29
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# This file loads spring without using Bundler, in order to be fast.
|
4
|
+
# It gets overwritten when you run the `spring binstub` command.
|
5
|
+
|
6
|
+
unless defined?(Spring)
|
7
|
+
require "rubygems"
|
8
|
+
require "bundler"
|
9
|
+
|
10
|
+
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m)
|
11
|
+
Gem.paths = { "GEM_PATH" => [Bundler.bundle_path.to_s, *Gem.path].uniq }
|
12
|
+
gem "spring", match[1]
|
13
|
+
require "spring/binstub"
|
14
|
+
end
|
15
|
+
end
|