happy_seed 0.0.19 → 0.0.21
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 +4 -69
- data/bin/rails +12 -0
- data/bin/rspec +16 -0
- data/happy_seed.rb +5 -1
- data/happy_seed.txt +25 -18
- data/lib/generators/happy_seed/admin/admin_generator.rb +40 -5
- data/lib/generators/happy_seed/admin/templates/app/admin/campaigns.rb +10 -14
- data/lib/generators/happy_seed/admin/templates/app/admin/newsletter.rb +2 -2
- data/lib/generators/happy_seed/admin/templates/app/admin/user.rb +4 -1
- data/lib/generators/happy_seed/admin/templates/app/controllers/admin/stats_controller.rb +1 -1
- data/lib/generators/happy_seed/admin/templates/docs/README.07.admin.rdoc +33 -4
- data/lib/generators/happy_seed/angular_view/templates/docs/README.11.angular_view.rdoc +2 -4
- data/lib/generators/happy_seed/api/api_generator.rb +38 -39
- data/lib/generators/happy_seed/api/templates/app/controllers/api/v1/base_controller.rb +4 -5
- data/lib/generators/happy_seed/api/templates/app/controllers/api/v1/model_hash.rb +3 -20
- data/lib/generators/happy_seed/api/templates/app/controllers/api/v1/user_tokens_controller.rb +13 -36
- data/lib/generators/happy_seed/api/templates/app/controllers/api/v1/users_controller.rb +14 -40
- data/lib/generators/happy_seed/api/templates/config/initializers/apitome.rb +1 -1
- data/lib/generators/happy_seed/api/templates/docs/README.01.api.rdoc +4 -1
- data/lib/generators/happy_seed/api/templates/docs/api.md +2 -2
- data/lib/generators/happy_seed/api/templates/spec/acceptance/api/v1/user_tokens_spec.rb +10 -53
- data/lib/generators/happy_seed/api/templates/spec/acceptance/api/v1/users_spec.rb +17 -61
- data/lib/generators/happy_seed/base/base_generator.rb +47 -19
- data/lib/generators/happy_seed/base/templates/app/controllers/setup_controller.rb +1 -1
- data/lib/generators/happy_seed/base/templates/app/views/setup/index.html.haml +6 -3
- data/lib/generators/happy_seed/base/templates/application_controller.rb +1 -1
- data/lib/generators/happy_seed/base/templates/docs/README.00.base.rdoc +3 -3
- data/lib/generators/happy_seed/bootstrap/bootstrap_generator.rb +5 -2
- data/lib/generators/happy_seed/bootstrap/templates/app/assets/stylesheets/application.scss +5 -1
- data/lib/generators/happy_seed/bootstrap/templates/app/assets/stylesheets/components/_profile_panels.scss +62 -0
- data/lib/generators/happy_seed/bootstrap/templates/app/assets/stylesheets/components/_slideup_header.scss +51 -0
- data/lib/generators/happy_seed/bootstrap/templates/app/assets/stylesheets/shared/_grid.scss +0 -12
- data/lib/generators/happy_seed/bootstrap/templates/app/views/application/_javascripts.html.haml +7 -4
- data/lib/generators/happy_seed/bootstrap/templates/docs/README.01.bootstrap.rdoc +3 -0
- data/lib/generators/happy_seed/ckeditor/ckeditor_generator.rb +31 -0
- data/lib/generators/happy_seed/ckeditor/templates/docs/README.01.ckeditor.rdoc +35 -0
- data/lib/generators/happy_seed/devise/devise_generator.rb +12 -19
- data/lib/generators/happy_seed/devise/templates/app/views/devise/confirmations/new.html.haml +17 -0
- data/lib/generators/happy_seed/devise/templates/app/views/devise/mailer/confirmation_instructions.html.erb +14 -0
- data/lib/generators/happy_seed/devise/templates/app/views/devise/mailer/confirmation_instructions.text.rhtml +7 -0
- data/lib/generators/happy_seed/devise/templates/app/views/devise/mailer/password_change.html.erb +3 -0
- data/lib/generators/happy_seed/devise/templates/app/views/devise/mailer/reset_password_instructions.html.erb +15 -0
- data/lib/generators/happy_seed/devise/templates/app/views/devise/mailer/reset_password_instructions.text.erb +11 -0
- data/lib/generators/happy_seed/devise/templates/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
- data/lib/generators/happy_seed/devise/templates/app/views/devise/passwords/edit.html.haml +14 -13
- data/lib/generators/happy_seed/devise/templates/app/views/devise/passwords/new.html.haml +12 -16
- data/lib/generators/happy_seed/devise/templates/app/views/devise/registrations/edit.html.haml +28 -40
- data/lib/generators/happy_seed/devise/templates/app/views/devise/registrations/new.html.haml +16 -24
- data/lib/generators/happy_seed/devise/templates/app/views/devise/sessions/new.html.haml +13 -18
- data/lib/generators/happy_seed/devise/templates/app/views/devise/shared/_links.html.erb +25 -0
- data/lib/generators/happy_seed/devise/templates/app/views/devise/unlocks/new.html.erb +16 -0
- data/lib/generators/happy_seed/devise/templates/docs/README.03.devise.rdoc +2 -2
- data/lib/generators/happy_seed/devise/templates/spec/factories/users.rb +5 -4
- data/lib/generators/happy_seed/devise/templates/spec/features/registration_spec.rb +149 -0
- data/lib/generators/happy_seed/devise/templates/spec/mailers/previews/devise_preview.rb +28 -0
- data/lib/generators/happy_seed/devise_confirmable/devise_confirmable_generator.rb +45 -0
- data/lib/generators/happy_seed/devise_confirmable/templates/add_confirmable_to_devise.rb +24 -0
- data/lib/generators/happy_seed/devise_confirmable/templates/app/controllers/confirmations_controller.rb +10 -0
- data/lib/generators/happy_seed/devise_confirmable/templates/app/views/devise/invitations/edit.html.haml +22 -0
- data/lib/generators/happy_seed/devise_confirmable/templates/app/views/devise/invitations/new.html.haml +20 -0
- data/lib/generators/happy_seed/devise_confirmable/templates/app/views/devise/mailer/invitation_instructions.html.erb +20 -0
- data/lib/generators/happy_seed/devise_confirmable/templates/docs/README.03.devise_confirmable.rdoc +23 -0
- data/lib/generators/happy_seed/devise_invitable/devise_invitable_generator.rb +3 -1
- data/lib/generators/happy_seed/devise_invitable/templates/app/views/devise/invitations/edit.html.haml +3 -2
- data/lib/generators/happy_seed/devise_invitable/templates/app/views/devise/invitations/new.html.haml +3 -2
- data/lib/generators/happy_seed/devise_invitable/templates/app/views/devise/mailer/invitation_instructions.html.erb +20 -0
- data/lib/generators/happy_seed/devise_invitable/templates/spec/features/invitations_spec.rb +61 -0
- data/lib/generators/happy_seed/facebook/facebook_generator.rb +2 -0
- data/lib/generators/happy_seed/facebook/templates/spec/features/facebook_registration_spec.rb +72 -0
- data/lib/generators/happy_seed/googleoauth/googleoauth_generator.rb +1 -1
- data/lib/generators/happy_seed/happy_seed_generator.rb +1 -3
- data/lib/generators/happy_seed/html_email/html_email_generator.rb +32 -0
- data/lib/generators/happy_seed/html_email/templates/app/views/layouts/mailer.html.erb +244 -0
- data/lib/generators/happy_seed/html_email/templates/docs/README.01.html_email.rdoc +25 -0
- data/lib/generators/happy_seed/omniauth/omniauth_generator.rb +4 -2
- data/lib/generators/happy_seed/omniauth/templates/app/controllers/omniauth_callbacks_controller.rb +3 -13
- data/lib/generators/happy_seed/omniauth/templates/app/models/identity.rb +13 -9
- data/lib/generators/happy_seed/omniauth/templates/docs/README.04.omniauth.rdoc +5 -5
- data/lib/generators/happy_seed/omniauth/templates/spec/factories/oauth.rb +6 -1
- data/lib/generators/happy_seed/omniauth/templates/spec/features/oauth_registration_spec.rb +80 -0
- data/lib/generators/happy_seed/omniauth/templates/spec/models/identity_spec.rb +39 -12
- data/lib/generators/happy_seed/omniauth/templates/{app/models/form_user.rb → user.rb} +4 -5
- data/lib/generators/happy_seed/plugin/plugin_generator.rb +13 -11
- data/lib/generators/happy_seed/react/react_generator.rb +36 -0
- data/lib/generators/happy_seed/react/templates/docs/README.10.react.rdoc +20 -0
- data/lib/generators/happy_seed/roles/roles_generator.rb +38 -0
- data/lib/generators/happy_seed/roles/templates/ability.rb +9 -0
- data/lib/generators/happy_seed/roles/templates/docs/README.03.roles.rdoc +23 -0
- data/lib/generators/happy_seed/simple_cms/simple_cms_generator.rb +41 -0
- data/lib/generators/happy_seed/simple_cms/templates/app/admin/simple_content.rb +42 -0
- data/lib/generators/happy_seed/simple_cms/templates/app/controllers/simple_content_controller.rb +7 -0
- data/lib/generators/happy_seed/simple_cms/templates/app/models/simple_content.rb +5 -0
- data/lib/generators/happy_seed/simple_cms/templates/app/views/splash/faq.html.haml +13 -0
- data/lib/generators/happy_seed/simple_cms/templates/app/views/splash/index.html.haml +79 -0
- data/lib/generators/happy_seed/simple_cms/templates/application_helper.rb +18 -0
- data/lib/generators/happy_seed/simple_cms/templates/create_simple_contents.rb +14 -0
- data/lib/generators/happy_seed/simple_cms/templates/docs/README.04.simple_cms.rdoc +32 -0
- data/lib/generators/happy_seed/simple_cms/templates/spec/factories/oauth.rb +10 -0
- data/lib/generators/happy_seed/simple_cms/templates/spec/features/oauth_registration_spec.rb +80 -0
- data/lib/generators/happy_seed/simple_cms/templates/spec/models/identity_spec.rb +49 -0
- data/lib/generators/happy_seed/splash/templates/app/assets/stylesheets/splash.css.scss +119 -84
- data/lib/generators/happy_seed/splash/templates/app/controllers/splash_controller.rb +1 -1
- data/lib/generators/happy_seed/splash/templates/app/views/layouts/splash.html.haml +15 -18
- data/lib/generators/happy_seed/splash/templates/app/views/splash/index.html.haml +54 -92
- data/lib/generators/happy_seed/splash/templates/docs/README.02.splash.rdoc +2 -2
- data/lib/generators/happy_seed/splash/templates/spec/controllers/splash_controller_spec.rb +11 -3
- data/lib/generators/happy_seed/static/templates/source/stylesheets/application.css.scss +1 -1
- data/lib/generators/happy_seed/static_blog/templates/Gemfile.lock +45 -49
- data/lib/generators/happy_seed/twitter/templates/spec/features/twitter_oauth_registration_spec.rb +57 -0
- data/lib/generators/happy_seed/twitter/twitter_generator.rb +2 -1
- data/lib/happy_seed/cli.rb +1 -1
- data/lib/happy_seed/engine.rb +12 -0
- data/lib/happy_seed/version.rb +1 -1
- data/lib/tasks/seed.rake +56 -0
- data/{test → spec}/dummy/Rakefile +0 -0
- data/spec/dummy/app/assets/config/manifest.js +5 -0
- data/{test → spec}/dummy/app/assets/javascripts/application.js +3 -3
- data/spec/dummy/app/assets/javascripts/cable.coffee +11 -0
- data/{test → spec}/dummy/app/assets/stylesheets/application.css +4 -4
- data/spec/dummy/app/channels/application_cable/channel.rb +5 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +5 -0
- data/{test → spec}/dummy/app/controllers/application_controller.rb +0 -0
- data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
- data/spec/dummy/app/jobs/application_job.rb +2 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/views/layouts/application.html.erb +15 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/{test → spec}/dummy/bin/bundle +0 -0
- data/{test → spec}/dummy/bin/rails +1 -1
- data/{test → spec}/dummy/bin/rake +0 -0
- data/spec/dummy/bin/setup +34 -0
- data/spec/dummy/bin/update +29 -0
- data/spec/dummy/config.ru +8 -0
- data/spec/dummy/config/application.rb +21 -0
- data/{test → spec}/dummy/config/boot.rb +0 -0
- data/spec/dummy/config/cable.yml +10 -0
- data/{test → spec}/dummy/config/database.yml +0 -0
- data/{test → spec}/dummy/config/environment.rb +0 -0
- data/{test → spec}/dummy/config/environments/development.rb +28 -3
- data/{test → spec}/dummy/config/environments/production.rb +29 -24
- data/{test → spec}/dummy/config/environments/test.rb +6 -3
- data/spec/dummy/config/initializers/active_record_belongs_to_required_by_default.rb +6 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/{test → spec}/dummy/config/initializers/assets.rb +3 -0
- data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/dummy/config/initializers/callback_terminator.rb +6 -0
- data/{test → spec}/dummy/config/initializers/cookies_serializer.rb +3 -1
- data/{test → spec}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
- data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
- data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -0
- data/spec/dummy/config/initializers/per_form_csrf_tokens.rb +4 -0
- data/spec/dummy/config/initializers/request_forgery_protection.rb +4 -0
- data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
- data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +2 -2
- data/{test → spec}/dummy/config/locales/en.yml +0 -0
- data/spec/dummy/config/puma.rb +47 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/{test → spec}/dummy/config/secrets.yml +3 -3
- data/spec/dummy/db/schema.rb +16 -0
- data/{test → spec}/dummy/public/404.html +0 -0
- data/{test → spec}/dummy/public/422.html +0 -0
- data/{test → spec}/dummy/public/500.html +0 -0
- data/{test/dummy/public/favicon.ico → spec/dummy/public/apple-touch-icon-precomposed.png} +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/rails_helper.rb +58 -0
- data/spec/spec_helper.rb +91 -0
- metadata +195 -89
- data/lib/generators/happy_seed/api/templates/app/controllers/api/v1/configurations_controller.rb +0 -11
- data/lib/generators/happy_seed/api/templates/spec/acceptance/api/v1/configurations_spec.rb +0 -21
- data/lib/generators/happy_seed/base/templates/config/puma.rb +0 -15
- data/lib/generators/happy_seed/base/templates/spec/support/controller_helpers.rb +0 -12
- data/lib/generators/happy_seed/bootstrap/templates/app/assets/stylesheets/sections/_profile_page.scss +0 -9
- data/lib/generators/happy_seed/bootstrap/templates/lib/templates/haml/scaffold/_form.html.haml +0 -5
- data/lib/generators/happy_seed/devise/templates/spec/features/forgot_password_spec.rb +0 -54
- data/lib/generators/happy_seed/devise/templates/test/mailers/previews/devise_preview.rb +0 -13
- data/lib/generators/happy_seed/omniauth/templates/spec/features/registration_spec.rb +0 -81
- data/lib/generators/happy_seed/static/templates/Gemfile.lock +0 -158
- data/lib/tasks/seed_tasks.rake +0 -4
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -23
- data/test/dummy/config/initializers/jazz_hands.rb +0 -5
- data/test/dummy/config/routes.rb +0 -56
- data/test/seed_test.rb +0 -7
- data/test/test_helper.rb +0 -15
@@ -1,15 +0,0 @@
|
|
1
|
-
workers Integer(ENV['WEB_CONCURRENCY'] || 2)
|
2
|
-
threads_count = Integer(ENV['MAX_THREADS'] || 5)
|
3
|
-
threads threads_count, threads_count
|
4
|
-
|
5
|
-
preload_app!
|
6
|
-
|
7
|
-
rackup DefaultRackup
|
8
|
-
port ENV['PORT'] || 3000
|
9
|
-
environment ENV['RACK_ENV'] || 'development'
|
10
|
-
|
11
|
-
on_worker_boot do
|
12
|
-
# Worker specific setup for Rails 4.1+
|
13
|
-
# See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
|
14
|
-
ActiveRecord::Base.establish_connection
|
15
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
module ControllerHelpers
|
2
|
-
def login_with(user = double('user'), scope = :user)
|
3
|
-
current_user = "current_#{scope}".to_sym
|
4
|
-
if user.nil?
|
5
|
-
allow(request.env['warden']).to receive(:authenticate!).and_throw(:warden, {:scope => scope})
|
6
|
-
allow(controller).to receive(current_user).and_return(nil)
|
7
|
-
else
|
8
|
-
allow(request.env['warden']).to receive(:authenticate!).and_return(user)
|
9
|
-
allow(controller).to receive(current_user).and_return(user)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
@@ -1,9 +0,0 @@
|
|
1
|
-
// --------------Profile page section--------------------
|
2
|
-
//
|
3
|
-
// Styles specific to a single page. These should only be used as
|
4
|
-
// a LAST resort unless you're taking the symatic approach and
|
5
|
-
// actually using this to describe the parts of your document.
|
6
|
-
//
|
7
|
-
// .profile-page {
|
8
|
-
// The less here the better!!
|
9
|
-
// }
|
@@ -1,54 +0,0 @@
|
|
1
|
-
require 'rails_helper'
|
2
|
-
|
3
|
-
feature "ForgotPasswords", :type => :feature do
|
4
|
-
it "should reset your password" do
|
5
|
-
user = create :user
|
6
|
-
|
7
|
-
visit new_user_password_path
|
8
|
-
|
9
|
-
within "#new_user" do
|
10
|
-
fill_in "user_email", with: user.email
|
11
|
-
end
|
12
|
-
|
13
|
-
click_button "Send me reset password instructions"
|
14
|
-
|
15
|
-
# puts ActionMailer::Base.deliveries
|
16
|
-
|
17
|
-
body = ActionMailer::Base.deliveries.last.body
|
18
|
-
|
19
|
-
md = /(\/users\/password\/edit\?reset.*)"/.match( body.to_s )
|
20
|
-
if !md
|
21
|
-
assert( false, "URL NOT FOUND IN MESSAGE")
|
22
|
-
end
|
23
|
-
|
24
|
-
visit md[1]
|
25
|
-
|
26
|
-
within "#new_user" do
|
27
|
-
fill_in "user_password", with: "new_password"
|
28
|
-
fill_in "user_password_confirmation", with: "new_password"
|
29
|
-
end
|
30
|
-
|
31
|
-
click_button "Change my password"
|
32
|
-
|
33
|
-
expect( page.body ).to_not include( "Email can't be blank" )
|
34
|
-
|
35
|
-
visit edit_user_registration_path
|
36
|
-
|
37
|
-
expect( page.body ).to include( "Sign Out")
|
38
|
-
|
39
|
-
click_link "Sign Out"
|
40
|
-
|
41
|
-
expect( page.body ).to include( "Signed out successfully." )
|
42
|
-
|
43
|
-
visit new_user_session_path
|
44
|
-
|
45
|
-
within "#new_user" do
|
46
|
-
fill_in "user_email", with: user.email
|
47
|
-
fill_in "user_password", with: "new_password"
|
48
|
-
end
|
49
|
-
|
50
|
-
click_button "Sign in"
|
51
|
-
|
52
|
-
expect( page.body ).to include( "Signed in successfully.")
|
53
|
-
end
|
54
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
class DevisePreview < ActionMailer::Preview
|
2
|
-
def confirmation_instructions
|
3
|
-
Devise::Mailer.confirmation_instructions(User.first, "tokentokentoken")
|
4
|
-
end
|
5
|
-
|
6
|
-
def reset_password_instructions
|
7
|
-
Devise::Mailer.reset_password_instructions(User.first, "tokentokentoken")
|
8
|
-
end
|
9
|
-
|
10
|
-
def unlock_instructions
|
11
|
-
Devise::Mailer.unlock_instructions(User.first, "tokentokentoken")
|
12
|
-
end
|
13
|
-
end
|
@@ -1,81 +0,0 @@
|
|
1
|
-
require 'rails_helper'
|
2
|
-
|
3
|
-
feature "Registrations", :type => :feature do
|
4
|
-
include Warden::Test::Helpers
|
5
|
-
|
6
|
-
after{ Warden.test_reset! }
|
7
|
-
|
8
|
-
def login_with( symbol )
|
9
|
-
@user = create symbol
|
10
|
-
login_as @user, scope: :user
|
11
|
-
end
|
12
|
-
|
13
|
-
it "should require you to be logged in" do
|
14
|
-
visit edit_user_registration_path
|
15
|
-
|
16
|
-
expect( page.body ).to include( "You need to sign in or sign up before continuing." )
|
17
|
-
end
|
18
|
-
|
19
|
-
it "should let you change add an email address without a password if you don't already have one" do
|
20
|
-
login_with :oauth_user
|
21
|
-
|
22
|
-
visit edit_user_registration_path
|
23
|
-
|
24
|
-
expect( page.body ).to_not include( "You need to sign in or sign up before continuing." )
|
25
|
-
|
26
|
-
within "#edit_user" do
|
27
|
-
fill_in "user[email]", with: "email@example.com"
|
28
|
-
end
|
29
|
-
|
30
|
-
click_button "Update"
|
31
|
-
|
32
|
-
expect( page.body ).to include( "Your account has been updated successfully")
|
33
|
-
end
|
34
|
-
|
35
|
-
it "should require your current password if you have one set" do
|
36
|
-
login_with :user
|
37
|
-
|
38
|
-
visit edit_user_registration_path
|
39
|
-
|
40
|
-
expect( page.body ).to_not include( "You need to sign in or sign up before continuing." )
|
41
|
-
|
42
|
-
within "#edit_user" do
|
43
|
-
fill_in "user[email]", with: "email@example.com"
|
44
|
-
end
|
45
|
-
|
46
|
-
click_button "Update"
|
47
|
-
|
48
|
-
expect( page.body ).to_not include( "Your account has been updated successfully")
|
49
|
-
end
|
50
|
-
|
51
|
-
it "should let you set your password initially" do
|
52
|
-
login_with :oauth_user
|
53
|
-
|
54
|
-
visit edit_user_registration_path
|
55
|
-
|
56
|
-
within "#edit_user" do
|
57
|
-
fill_in "user[email]", with: "email@example.com"
|
58
|
-
fill_in "user[password]", with: "password"
|
59
|
-
fill_in "user[password_confirmation]", with: "password"
|
60
|
-
end
|
61
|
-
|
62
|
-
click_button "Update"
|
63
|
-
|
64
|
-
expect( page.body ).to include( "Your account has been updated successfully")
|
65
|
-
|
66
|
-
logout
|
67
|
-
|
68
|
-
visit edit_user_registration_path
|
69
|
-
|
70
|
-
expect( page.body ).to include( "You need to sign in or sign up before continuing." )
|
71
|
-
|
72
|
-
within "#new_user" do
|
73
|
-
fill_in "user[email]", with: "email@example.com"
|
74
|
-
fill_in "user[password]", with: "password"
|
75
|
-
end
|
76
|
-
|
77
|
-
click_button "Sign in"
|
78
|
-
|
79
|
-
expect( page.body ).to include( "Signed in successfully." )
|
80
|
-
end
|
81
|
-
end
|
@@ -1,158 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: https://rubygems.org/
|
3
|
-
specs:
|
4
|
-
actionpack (1.4.0)
|
5
|
-
activesupport (4.1.10)
|
6
|
-
i18n (~> 0.6, >= 0.6.9)
|
7
|
-
json (~> 1.7, >= 1.7.7)
|
8
|
-
minitest (~> 5.1)
|
9
|
-
thread_safe (~> 0.1)
|
10
|
-
tzinfo (~> 1.1)
|
11
|
-
autoprefixer-rails (5.2.0)
|
12
|
-
execjs
|
13
|
-
json
|
14
|
-
bh (1.3.3)
|
15
|
-
actionpack
|
16
|
-
activesupport
|
17
|
-
bootstrap-sass (3.3.4.1)
|
18
|
-
autoprefixer-rails (>= 5.0.0.1)
|
19
|
-
sass (>= 3.2.19)
|
20
|
-
builder (3.2.2)
|
21
|
-
celluloid (0.16.0)
|
22
|
-
timers (~> 4.0.0)
|
23
|
-
chunky_png (1.3.4)
|
24
|
-
coffee-script (2.4.1)
|
25
|
-
coffee-script-source
|
26
|
-
execjs
|
27
|
-
coffee-script-source (1.9.1.1)
|
28
|
-
compass (1.0.3)
|
29
|
-
chunky_png (~> 1.2)
|
30
|
-
compass-core (~> 1.0.2)
|
31
|
-
compass-import-once (~> 1.0.5)
|
32
|
-
rb-fsevent (>= 0.9.3)
|
33
|
-
rb-inotify (>= 0.9)
|
34
|
-
sass (>= 3.3.13, < 3.5)
|
35
|
-
compass-core (1.0.3)
|
36
|
-
multi_json (~> 1.0)
|
37
|
-
sass (>= 3.3.0, < 3.5)
|
38
|
-
compass-import-once (1.0.5)
|
39
|
-
sass (>= 3.2, < 3.5)
|
40
|
-
em-websocket (0.5.1)
|
41
|
-
eventmachine (>= 0.12.9)
|
42
|
-
http_parser.rb (~> 0.6.0)
|
43
|
-
erubis (2.7.0)
|
44
|
-
eventmachine (1.0.7)
|
45
|
-
execjs (2.5.2)
|
46
|
-
ffi (1.9.8)
|
47
|
-
haml (4.0.6)
|
48
|
-
tilt
|
49
|
-
hike (1.2.3)
|
50
|
-
hitimes (1.2.2)
|
51
|
-
hooks (0.4.0)
|
52
|
-
uber (~> 0.0.4)
|
53
|
-
http_parser.rb (0.6.0)
|
54
|
-
i18n (0.7.0)
|
55
|
-
jquery-middleman (3.0.4)
|
56
|
-
thor (>= 0.14, < 2.0)
|
57
|
-
json (1.8.2)
|
58
|
-
kramdown (1.7.0)
|
59
|
-
listen (2.10.0)
|
60
|
-
celluloid (~> 0.16.0)
|
61
|
-
rb-fsevent (>= 0.9.3)
|
62
|
-
rb-inotify (>= 0.9)
|
63
|
-
middleman (3.3.12)
|
64
|
-
coffee-script (~> 2.2)
|
65
|
-
compass (>= 1.0.0, < 2.0.0)
|
66
|
-
compass-import-once (= 1.0.5)
|
67
|
-
execjs (~> 2.0)
|
68
|
-
haml (>= 4.0.5)
|
69
|
-
kramdown (~> 1.2)
|
70
|
-
middleman-core (= 3.3.12)
|
71
|
-
middleman-sprockets (>= 3.1.2)
|
72
|
-
sass (>= 3.4.0, < 4.0)
|
73
|
-
uglifier (~> 2.5)
|
74
|
-
middleman-autometatags (0.0.2)
|
75
|
-
middleman-core (>= 3.0.0)
|
76
|
-
middleman-core (3.3.12)
|
77
|
-
activesupport (~> 4.1.0)
|
78
|
-
bundler (~> 1.1)
|
79
|
-
erubis
|
80
|
-
hooks (~> 0.3)
|
81
|
-
i18n (~> 0.7.0)
|
82
|
-
listen (>= 2.7.9, < 3.0)
|
83
|
-
padrino-helpers (~> 0.12.3)
|
84
|
-
rack (>= 1.4.5, < 2.0)
|
85
|
-
rack-test (~> 0.6.2)
|
86
|
-
thor (>= 0.15.2, < 2.0)
|
87
|
-
tilt (~> 1.4.1, < 2.0)
|
88
|
-
middleman-deploy (1.0.0)
|
89
|
-
middleman-core (>= 3.2)
|
90
|
-
net-sftp
|
91
|
-
ptools
|
92
|
-
middleman-livereload (3.1.1)
|
93
|
-
em-websocket (>= 0.2.0)
|
94
|
-
middleman-core (>= 3.0.2)
|
95
|
-
multi_json (~> 1.0)
|
96
|
-
rack-livereload
|
97
|
-
middleman-sprockets (3.4.2)
|
98
|
-
middleman-core (>= 3.3)
|
99
|
-
sprockets (~> 2.12.1)
|
100
|
-
sprockets-helpers (~> 1.1.0)
|
101
|
-
sprockets-sass (~> 1.3.0)
|
102
|
-
minitest (5.6.1)
|
103
|
-
multi_json (1.11.0)
|
104
|
-
net-sftp (2.1.2)
|
105
|
-
net-ssh (>= 2.6.5)
|
106
|
-
net-ssh (2.9.2)
|
107
|
-
padrino-helpers (0.12.5)
|
108
|
-
i18n (~> 0.6, >= 0.6.7)
|
109
|
-
padrino-support (= 0.12.5)
|
110
|
-
tilt (~> 1.4.1)
|
111
|
-
padrino-support (0.12.5)
|
112
|
-
activesupport (>= 3.1)
|
113
|
-
ptools (1.3.2)
|
114
|
-
rack (1.6.1)
|
115
|
-
rack-livereload (0.3.15)
|
116
|
-
rack
|
117
|
-
rack-test (0.6.3)
|
118
|
-
rack (>= 1.0)
|
119
|
-
rb-fsevent (0.9.5)
|
120
|
-
rb-inotify (0.9.5)
|
121
|
-
ffi (>= 0.5.0)
|
122
|
-
sass (3.4.14)
|
123
|
-
sprockets (2.12.3)
|
124
|
-
hike (~> 1.2)
|
125
|
-
multi_json (~> 1.0)
|
126
|
-
rack (~> 1.0)
|
127
|
-
tilt (~> 1.1, != 1.3.0)
|
128
|
-
sprockets-helpers (1.1.0)
|
129
|
-
sprockets (~> 2.0)
|
130
|
-
sprockets-sass (1.3.1)
|
131
|
-
sprockets (~> 2.0)
|
132
|
-
tilt (~> 1.1)
|
133
|
-
thor (0.19.1)
|
134
|
-
thread_safe (0.3.5)
|
135
|
-
tilt (1.4.1)
|
136
|
-
timers (4.0.1)
|
137
|
-
hitimes
|
138
|
-
tzinfo (1.2.2)
|
139
|
-
thread_safe (~> 0.1)
|
140
|
-
uber (0.0.13)
|
141
|
-
uglifier (2.7.1)
|
142
|
-
execjs (>= 0.3.0)
|
143
|
-
json (>= 1.8.0)
|
144
|
-
|
145
|
-
PLATFORMS
|
146
|
-
ruby
|
147
|
-
|
148
|
-
DEPENDENCIES
|
149
|
-
bh
|
150
|
-
bootstrap-sass
|
151
|
-
builder (~> 3.0)
|
152
|
-
jquery-middleman
|
153
|
-
middleman (~> 3.3)
|
154
|
-
middleman-autometatags
|
155
|
-
middleman-deploy
|
156
|
-
middleman-livereload (~> 3.1.0)
|
157
|
-
tzinfo-data
|
158
|
-
wdm (~> 0.1.0)
|
data/lib/tasks/seed_tasks.rake
DELETED
data/test/dummy/README.rdoc
DELETED
@@ -1,28 +0,0 @@
|
|
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>.
|
@@ -1,14 +0,0 @@
|
|
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>
|
data/test/dummy/config.ru
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
Bundler.require(*Rails.groups)
|
6
|
-
require "happy_seed"
|
7
|
-
|
8
|
-
module Dummy
|
9
|
-
class Application < Rails::Application
|
10
|
-
# Settings in config/environments/* take precedence over those specified here.
|
11
|
-
# Application configuration should go into files in config/initializers
|
12
|
-
# -- all .rb files in that directory are automatically loaded.
|
13
|
-
|
14
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
15
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
16
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
17
|
-
|
18
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
19
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
20
|
-
# config.i18n.default_locale = :de
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
data/test/dummy/config/routes.rb
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
Rails.application.routes.draw do
|
2
|
-
# The priority is based upon order of creation: first created -> highest priority.
|
3
|
-
# See how all your routes lay out with "rake routes".
|
4
|
-
|
5
|
-
# You can have the root of your site routed with "root"
|
6
|
-
# root 'welcome#index'
|
7
|
-
|
8
|
-
# Example of regular route:
|
9
|
-
# get 'products/:id' => 'catalog#view'
|
10
|
-
|
11
|
-
# Example of named route that can be invoked with purchase_url(id: product.id)
|
12
|
-
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
13
|
-
|
14
|
-
# Example resource route (maps HTTP verbs to controller actions automatically):
|
15
|
-
# resources :products
|
16
|
-
|
17
|
-
# Example resource route with options:
|
18
|
-
# resources :products do
|
19
|
-
# member do
|
20
|
-
# get 'short'
|
21
|
-
# post 'toggle'
|
22
|
-
# end
|
23
|
-
#
|
24
|
-
# collection do
|
25
|
-
# get 'sold'
|
26
|
-
# end
|
27
|
-
# end
|
28
|
-
|
29
|
-
# Example resource route with sub-resources:
|
30
|
-
# resources :products do
|
31
|
-
# resources :comments, :sales
|
32
|
-
# resource :seller
|
33
|
-
# end
|
34
|
-
|
35
|
-
# Example resource route with more complex sub-resources:
|
36
|
-
# resources :products do
|
37
|
-
# resources :comments
|
38
|
-
# resources :sales do
|
39
|
-
# get 'recent', on: :collection
|
40
|
-
# end
|
41
|
-
# end
|
42
|
-
|
43
|
-
# Example resource route with concerns:
|
44
|
-
# concern :toggleable do
|
45
|
-
# post 'toggle'
|
46
|
-
# end
|
47
|
-
# resources :posts, concerns: :toggleable
|
48
|
-
# resources :photos, concerns: :toggleable
|
49
|
-
|
50
|
-
# Example resource route within a namespace:
|
51
|
-
# namespace :admin do
|
52
|
-
# # Directs /admin/products/* to Admin::ProductsController
|
53
|
-
# # (app/controllers/admin/products_controller.rb)
|
54
|
-
# resources :products
|
55
|
-
# end
|
56
|
-
end
|