raygun 0.0.34 → 0.9.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/CHANGES.md +7 -1
- data/README.md +7 -11
- data/bin/raygun +4 -181
- data/cleanup.sh +1 -6
- data/lib/raygun/raygun.rb +238 -0
- data/lib/raygun/version.rb +1 -1
- metadata +6 -223
- data/TODO.md +0 -16
- data/rails_32/.env +0 -8
- data/rails_32/.gitignore +0 -19
- data/rails_32/.rspec +0 -1
- data/rails_32/.ruby-gemset +0 -1
- data/rails_32/.ruby-version +0 -1
- data/rails_32/Gemfile +0 -54
- data/rails_32/Guardfile +0 -32
- data/rails_32/Procfile +0 -2
- data/rails_32/README.md +0 -69
- data/rails_32/Rakefile +0 -15
- data/rails_32/app/assets/javascripts/application.js +0 -16
- data/rails_32/app/assets/javascripts/users.js.coffee +0 -3
- data/rails_32/app/assets/stylesheets/_footer.less +0 -30
- data/rails_32/app/assets/stylesheets/_navbar.less +0 -5
- data/rails_32/app/assets/stylesheets/application.css.less +0 -3
- data/rails_32/app/controllers/application_controller.rb +0 -15
- data/rails_32/app/controllers/pages_controller.rb +0 -8
- data/rails_32/app/controllers/password_resets_controller.rb +0 -36
- data/rails_32/app/controllers/registrations_controller.rb +0 -29
- data/rails_32/app/controllers/user_sessions_controller.rb +0 -26
- data/rails_32/app/controllers/users_controller.rb +0 -41
- data/rails_32/app/helpers/application_helper.rb +0 -11
- data/rails_32/app/helpers/users_helper.rb +0 -2
- data/rails_32/app/mailers/.gitkeep +0 -0
- data/rails_32/app/mailers/user_mailer.rb +0 -19
- data/rails_32/app/models/.gitkeep +0 -0
- data/rails_32/app/models/ability.rb +0 -40
- data/rails_32/app/models/user.rb +0 -21
- data/rails_32/app/models/user_session.rb +0 -6
- data/rails_32/app/views/layouts/application.html.slim +0 -36
- data/rails_32/app/views/pages/root.html.slim +0 -9
- data/rails_32/app/views/password_resets/edit.html.slim +0 -15
- data/rails_32/app/views/password_resets/new.html.slim +0 -11
- data/rails_32/app/views/registrations/new.html.slim +0 -13
- data/rails_32/app/views/user_mailer/activation_needed_email.html.erb +0 -17
- data/rails_32/app/views/user_mailer/activation_needed_email.text.erb +0 -9
- data/rails_32/app/views/user_mailer/activation_success_email.html.erb +0 -17
- data/rails_32/app/views/user_mailer/activation_success_email.text.erb +0 -9
- data/rails_32/app/views/user_mailer/reset_password_email.html.erb +0 -16
- data/rails_32/app/views/user_mailer/reset_password_email.text.erb +0 -8
- data/rails_32/app/views/user_sessions/new.html.slim +0 -13
- data/rails_32/app/views/users/_form.html.slim +0 -12
- data/rails_32/app/views/users/edit.html.slim +0 -5
- data/rails_32/app/views/users/index.html.slim +0 -26
- data/rails_32/app/views/users/new.html.slim +0 -4
- data/rails_32/app/views/users/show.html.slim +0 -17
- data/rails_32/config/application.rb +0 -77
- data/rails_32/config/boot.rb +0 -6
- data/rails_32/config/database.yml +0 -13
- data/rails_32/config/environment.rb +0 -5
- data/rails_32/config/environments/acceptance.rb +0 -69
- data/rails_32/config/environments/development.rb +0 -39
- data/rails_32/config/environments/production.rb +0 -69
- data/rails_32/config/environments/test.rb +0 -42
- data/rails_32/config/initializers/backtrace_silencers.rb +0 -7
- data/rails_32/config/initializers/inflections.rb +0 -15
- data/rails_32/config/initializers/mailcatcher.rb +0 -15
- data/rails_32/config/initializers/mime_types.rb +0 -5
- data/rails_32/config/initializers/secret_token.rb +0 -7
- data/rails_32/config/initializers/session_store.rb +0 -8
- data/rails_32/config/initializers/simple_form.rb +0 -142
- data/rails_32/config/initializers/simple_form_bootstrap.rb +0 -45
- data/rails_32/config/initializers/sorcery.rb +0 -398
- data/rails_32/config/initializers/wrap_parameters.rb +0 -14
- data/rails_32/config/locales/en.yml +0 -5
- data/rails_32/config/locales/simple_form.en.yml +0 -26
- data/rails_32/config/routes.rb +0 -21
- data/rails_32/config/unicorn.rb +0 -27
- data/rails_32/config.ru +0 -21
- data/rails_32/db/migrate/20121128215324_sorcery_core.rb +0 -19
- data/rails_32/db/migrate/20121128215325_sorcery_brute_force_protection.rb +0 -13
- data/rails_32/db/migrate/20121128215326_sorcery_activity_logging.rb +0 -17
- data/rails_32/db/migrate/20121128215327_sorcery_user_activation.rb +0 -17
- data/rails_32/db/migrate/20121128215328_sorcery_remember_me.rb +0 -15
- data/rails_32/db/migrate/20121128215329_sorcery_reset_password.rb +0 -17
- data/rails_32/db/migrate/20121128215330_sorcery_external.rb +0 -14
- data/rails_32/db/migrate/20121128215337_add_admin_to_users.rb +0 -5
- data/rails_32/db/sample_data.rb +0 -24
- data/rails_32/db/schema.rb +0 -54
- data/rails_32/db/seeds.rb +0 -7
- data/rails_32/lib/assets/.gitkeep +0 -0
- data/rails_32/lib/tasks/.gitkeep +0 -0
- data/rails_32/lib/tasks/cane.rake +0 -30
- data/rails_32/lib/tasks/coverage.rake +0 -10
- data/rails_32/lib/tasks/db.rake +0 -7
- data/rails_32/lib/tasks/spec.rake +0 -35
- data/rails_32/lib/templates/rails/scaffold_controller/controller.rb +0 -45
- data/rails_32/lib/templates/rspec/scaffold/controller_spec.rb +0 -155
- data/rails_32/lib/templates/rspec/scaffold/edit_spec.rb +0 -18
- data/rails_32/lib/templates/rspec/scaffold/index_spec.rb +0 -26
- data/rails_32/lib/templates/rspec/scaffold/new_spec.rb +0 -18
- data/rails_32/lib/templates/rspec/scaffold/show_spec.rb +0 -16
- data/rails_32/lib/templates/slim/scaffold/_form.html.slim +0 -13
- data/rails_32/lib/templates/slim/scaffold/edit.html.slim +0 -5
- data/rails_32/lib/templates/slim/scaffold/index.html.slim +0 -28
- data/rails_32/lib/templates/slim/scaffold/new.html.slim +0 -4
- data/rails_32/lib/templates/slim/scaffold/show.html.slim +0 -17
- data/rails_32/log/.gitkeep +0 -0
- data/rails_32/public/404.html +0 -26
- data/rails_32/public/422.html +0 -26
- data/rails_32/public/500.html +0 -25
- data/rails_32/public/favicon.ico +0 -0
- data/rails_32/public/robots.txt +0 -5
- data/rails_32/script/rails +0 -6
- data/rails_32/spec/controllers/user_sessions_controller_spec.rb +0 -42
- data/rails_32/spec/controllers/users_controller_spec.rb +0 -150
- data/rails_32/spec/factories/users.rb +0 -14
- data/rails_32/spec/features/activation_spec.rb +0 -18
- data/rails_32/spec/features/password_reset_spec.rb +0 -41
- data/rails_32/spec/features/registration_spec.rb +0 -39
- data/rails_32/spec/features/sign_in_spec.rb +0 -30
- data/rails_32/spec/javascripts/example_spec.js.coffee +0 -20
- data/rails_32/spec/javascripts/spec.css +0 -3
- data/rails_32/spec/javascripts/spec.js.coffee +0 -2
- data/rails_32/spec/mailers/user_mailer_spec.rb +0 -48
- data/rails_32/spec/models/ability_spec.rb +0 -38
- data/rails_32/spec/models/user_spec.rb +0 -36
- data/rails_32/spec/spec_helper.rb +0 -64
- data/rails_32/spec/support/accept_values.rb +0 -55
- data/rails_32/spec/support/database_cleaner.rb +0 -24
- data/rails_32/spec/support/factory_girl.rb +0 -3
- data/rails_32/spec/support/sorcery.rb +0 -3
- data/rails_32/spec/support/user_sessions_feature_helper.rb +0 -21
- data/rails_32/spec/views/users/edit.html.slim_spec.rb +0 -16
- data/rails_32/spec/views/users/index.html.slim_spec.rb +0 -16
- data/rails_32/spec/views/users/new.html.slim_spec.rb +0 -16
- data/rails_32/spec/views/users/show.html.slim_spec.rb +0 -13
- data/rails_32/vendor/assets/javascripts/.gitkeep +0 -0
- data/rails_32/vendor/assets/stylesheets/.gitkeep +0 -0
- data/rails_32/vendor/plugins/.gitkeep +0 -0
- data/rails_40/.env +0 -8
- data/rails_40/.gitignore +0 -16
- data/rails_40/.rspec +0 -1
- data/rails_40/.ruby-gemset +0 -1
- data/rails_40/.ruby-version +0 -1
- data/rails_40/Gemfile +0 -53
- data/rails_40/Guardfile +0 -34
- data/rails_40/Procfile +0 -2
- data/rails_40/README.md +0 -90
- data/rails_40/Rakefile +0 -15
- data/rails_40/app/assets/javascripts/application.js +0 -17
- data/rails_40/app/assets/stylesheets/_footer.less +0 -30
- data/rails_40/app/assets/stylesheets/_navbar.less +0 -3
- data/rails_40/app/assets/stylesheets/application.css.less +0 -3
- data/rails_40/app/controllers/application_controller.rb +0 -5
- data/rails_40/app/controllers/concerns/.keep +0 -0
- data/rails_40/app/controllers/pages_controller.rb +0 -6
- data/rails_40/app/helpers/application_helper.rb +0 -11
- data/rails_40/app/mailers/.keep +0 -0
- data/rails_40/app/models/.keep +0 -0
- data/rails_40/app/models/concerns/.keep +0 -0
- data/rails_40/app/views/layouts/application.html.slim +0 -39
- data/rails_40/app/views/pages/root.html.slim +0 -13
- data/rails_40/bin/bundle +0 -3
- data/rails_40/bin/deploy.sh +0 -47
- data/rails_40/bin/rails +0 -4
- data/rails_40/bin/rake +0 -4
- data/rails_40/circle.yml +0 -16
- data/rails_40/config/application.rb +0 -36
- data/rails_40/config/boot.rb +0 -4
- data/rails_40/config/database.yml +0 -15
- data/rails_40/config/environment.rb +0 -5
- data/rails_40/config/environments/acceptance.rb +0 -8
- data/rails_40/config/environments/development.rb +0 -31
- data/rails_40/config/environments/production.rb +0 -82
- data/rails_40/config/environments/test.rb +0 -38
- data/rails_40/config/initializers/backtrace_silencers.rb +0 -7
- data/rails_40/config/initializers/filter_parameter_logging.rb +0 -4
- data/rails_40/config/initializers/inflections.rb +0 -16
- data/rails_40/config/initializers/mailcatcher.rb +0 -15
- data/rails_40/config/initializers/mime_types.rb +0 -5
- data/rails_40/config/initializers/secret_token.rb +0 -12
- data/rails_40/config/initializers/session_store.rb +0 -3
- data/rails_40/config/initializers/simple_form.rb +0 -142
- data/rails_40/config/initializers/simple_form_bootstrap.rb +0 -45
- data/rails_40/config/initializers/wrap_parameters.rb +0 -14
- data/rails_40/config/locales/en.yml +0 -23
- data/rails_40/config/locales/simple_form.en.yml +0 -26
- data/rails_40/config/routes.rb +0 -5
- data/rails_40/config/unicorn.rb +0 -27
- data/rails_40/config.ru +0 -18
- data/rails_40/db/sample_data.rb +0 -11
- data/rails_40/db/schema.rb +0 -19
- data/rails_40/db/seeds.rb +0 -7
- data/rails_40/lib/assets/.keep +0 -0
- data/rails_40/lib/tasks/.keep +0 -0
- data/rails_40/lib/tasks/coverage.rake +0 -10
- data/rails_40/lib/tasks/db.rake +0 -7
- data/rails_40/lib/tasks/spec.rake +0 -60
- data/rails_40/lib/templates/rails/scaffold_controller/controller.rb +0 -61
- data/rails_40/lib/templates/rspec/controller/controller_spec.rb +0 -16
- data/rails_40/lib/templates/rspec/scaffold/controller_spec.rb +0 -155
- data/rails_40/lib/templates/rspec/scaffold/edit_spec.rb +0 -18
- data/rails_40/lib/templates/rspec/scaffold/index_spec.rb +0 -26
- data/rails_40/lib/templates/rspec/scaffold/new_spec.rb +0 -19
- data/rails_40/lib/templates/rspec/scaffold/show_spec.rb +0 -16
- data/rails_40/lib/templates/slim/scaffold/_form.html.slim +0 -13
- data/rails_40/lib/templates/slim/scaffold/edit.html.slim +0 -5
- data/rails_40/lib/templates/slim/scaffold/index.html.slim +0 -29
- data/rails_40/lib/templates/slim/scaffold/new.html.slim +0 -4
- data/rails_40/lib/templates/slim/scaffold/show.html.slim +0 -17
- data/rails_40/log/.keep +0 -0
- data/rails_40/public/404.html +0 -58
- data/rails_40/public/422.html +0 -58
- data/rails_40/public/500.html +0 -57
- data/rails_40/public/favicon.ico +0 -0
- data/rails_40/public/robots.txt +0 -5
- data/rails_40/spec/controllers/pages_controller_spec.rb +0 -12
- data/rails_40/spec/features/pages_spec.rb +0 -18
- data/rails_40/spec/javascripts/example_spec.js.coffee +0 -20
- data/rails_40/spec/javascripts/spec.css +0 -3
- data/rails_40/spec/javascripts/spec.js.coffee +0 -2
- data/rails_40/spec/spec_helper.rb +0 -79
- data/rails_40/spec/support/database_cleaner.rb +0 -24
- data/rails_40/spec/support/factory_girl.rb +0 -3
- data/rails_40/vendor/assets/javascripts/.keep +0 -0
- data/rails_40/vendor/assets/stylesheets/.keep +0 -0
@@ -1,79 +0,0 @@
|
|
1
|
-
# Coverage must be enabled before the application is loaded.
|
2
|
-
if ENV['COVERAGE']
|
3
|
-
require 'simplecov'
|
4
|
-
|
5
|
-
# Writes the coverage stat to a file to be used by Cane.
|
6
|
-
class SimpleCov::Formatter::QualityFormatter
|
7
|
-
def format(result)
|
8
|
-
SimpleCov::Formatter::HTMLFormatter.new.format(result)
|
9
|
-
File.open('coverage/covered_percent', 'w') do |f|
|
10
|
-
f.puts result.source_files.covered_percent.to_f
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
SimpleCov.formatter = SimpleCov::Formatter::QualityFormatter
|
15
|
-
|
16
|
-
SimpleCov.start do
|
17
|
-
add_filter '/spec/'
|
18
|
-
add_filter '/config/'
|
19
|
-
add_filter '/vendor/'
|
20
|
-
add_group 'Models', 'app/models'
|
21
|
-
add_group 'Controllers', 'app/controllers'
|
22
|
-
add_group 'Helpers', 'app/helpers'
|
23
|
-
add_group 'Views', 'app/views'
|
24
|
-
add_group 'Mailers', 'app/mailers'
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
|
29
|
-
ENV['RAILS_ENV'] ||= 'test'
|
30
|
-
|
31
|
-
require File.expand_path('../../config/environment', __FILE__)
|
32
|
-
require 'rspec/rails'
|
33
|
-
require 'rspec/autorun'
|
34
|
-
|
35
|
-
# Requires supporting ruby files with custom matchers and macros, etc,
|
36
|
-
# in spec/support/ and its subdirectories.
|
37
|
-
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
|
38
|
-
|
39
|
-
require 'capybara/poltergeist'
|
40
|
-
|
41
|
-
Capybara.register_driver :poltergeist do |app|
|
42
|
-
Capybara::Poltergeist::Driver.new(app, js_errors: true, inspector: true)
|
43
|
-
end
|
44
|
-
|
45
|
-
Capybara.default_driver = :rack_test
|
46
|
-
Capybara.javascript_driver = :poltergeist
|
47
|
-
|
48
|
-
# Checks for pending migrations before tests are run.
|
49
|
-
# If you are not using ActiveRecord, you can remove this line.
|
50
|
-
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
|
51
|
-
|
52
|
-
RSpec.configure do |config|
|
53
|
-
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
54
|
-
#config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
55
|
-
|
56
|
-
# See database_cleaner.rb for details.
|
57
|
-
config.use_transactional_fixtures = false
|
58
|
-
|
59
|
-
# If true, the base class of anonymous controllers will be inferred
|
60
|
-
# automatically. This will be the default behavior in future versions of
|
61
|
-
# rspec-rails.
|
62
|
-
config.infer_base_class_for_anonymous_controllers = false
|
63
|
-
|
64
|
-
# Use the new expect() syntax.
|
65
|
-
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
66
|
-
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
67
|
-
config.expect_with :rspec do |c|
|
68
|
-
c.syntax = :expect
|
69
|
-
end
|
70
|
-
|
71
|
-
# Run specs in random order to surface order dependencies. If you find an
|
72
|
-
# order dependency and want to debug it, you can fix the order by providing
|
73
|
-
# the seed, which is printed after each run.
|
74
|
-
# --seed 1234
|
75
|
-
config.order = 'random'
|
76
|
-
end
|
77
|
-
|
78
|
-
# Turn down the logging while testing.
|
79
|
-
Rails.logger.level = 4
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# Good read on using database_cleaner (in lieu of a shared connection):
|
2
|
-
# - http://devblog.avdi.org/2012/08/31/configuring-database_cleaner-with-rails-rspec-capybara-and-selenium/
|
3
|
-
|
4
|
-
RSpec.configure do |config|
|
5
|
-
config.before(:suite) do
|
6
|
-
DatabaseCleaner.clean_with(:truncation)
|
7
|
-
end
|
8
|
-
|
9
|
-
config.before(:each) do
|
10
|
-
DatabaseCleaner.strategy = :transaction
|
11
|
-
end
|
12
|
-
|
13
|
-
config.before(:each, js: true) do
|
14
|
-
DatabaseCleaner.strategy = :truncation
|
15
|
-
end
|
16
|
-
|
17
|
-
config.before(:each) do
|
18
|
-
DatabaseCleaner.start
|
19
|
-
end
|
20
|
-
|
21
|
-
config.after(:each) do
|
22
|
-
DatabaseCleaner.clean
|
23
|
-
end
|
24
|
-
end
|
File without changes
|
File without changes
|