rollbar 2.18.2 → 2.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +15 -0
  3. data/.travis.yml +155 -93
  4. data/Gemfile +19 -13
  5. data/README.md +12 -0
  6. data/gemfiles/rails30.gemfile +17 -10
  7. data/gemfiles/rails31.gemfile +20 -12
  8. data/gemfiles/rails32.gemfile +16 -7
  9. data/gemfiles/rails40.gemfile +16 -5
  10. data/gemfiles/rails41.gemfile +15 -5
  11. data/gemfiles/rails42.gemfile +25 -14
  12. data/gemfiles/rails50.gemfile +15 -8
  13. data/gemfiles/rails51.gemfile +15 -8
  14. data/gemfiles/rails52.gemfile +62 -0
  15. data/gemfiles/ruby_1_8_and_1_9_2.gemfile +2 -2
  16. data/lib/rails/rollbar_runner.rb +16 -1
  17. data/lib/rollbar/capistrano.rb +71 -39
  18. data/lib/rollbar/capistrano3.rb +53 -1
  19. data/lib/rollbar/capistrano_tasks.rb +131 -0
  20. data/lib/rollbar/configuration.rb +13 -4
  21. data/lib/rollbar/delay/active_job.rb +17 -0
  22. data/lib/rollbar/delay/sidekiq.rb +3 -1
  23. data/lib/rollbar/delay/thread.rb +1 -1
  24. data/lib/rollbar/deploy.rb +69 -0
  25. data/lib/rollbar/item.rb +17 -6
  26. data/lib/rollbar/middleware/js.rb +25 -3
  27. data/lib/rollbar/middleware/js/json_value.rb +26 -0
  28. data/lib/rollbar/notifier.rb +32 -13
  29. data/lib/rollbar/plugins/active_job.rb +3 -0
  30. data/lib/rollbar/plugins/rails/controller_methods.rb +2 -1
  31. data/lib/rollbar/plugins/rails/railtie_mixin.rb +7 -1
  32. data/lib/rollbar/rake_tasks.rb +126 -67
  33. data/lib/rollbar/scrubbers/params.rb +6 -0
  34. data/lib/rollbar/util.rb +75 -45
  35. data/lib/rollbar/util/hash.rb +15 -6
  36. data/lib/rollbar/version.rb +1 -1
  37. data/rollbar.gemspec +2 -3
  38. metadata +9 -261
  39. data/lib/rollbar/tasks/rollbar.cap +0 -47
  40. data/spec/cacert.pem +0 -3988
  41. data/spec/controllers/home_controller_spec.rb +0 -480
  42. data/spec/delay/sidekiq_spec.rb +0 -61
  43. data/spec/delay/sucker_punch_spec.rb +0 -25
  44. data/spec/delayed/backend/test.rb +0 -140
  45. data/spec/delayed/serialization/test.rb +0 -0
  46. data/spec/dummyapp/.gitignore +0 -73
  47. data/spec/dummyapp/Rakefile +0 -7
  48. data/spec/dummyapp/app/assets/javascripts/application.js +0 -3
  49. data/spec/dummyapp/app/assets/stylesheets/application.css.scss +0 -37
  50. data/spec/dummyapp/app/controllers/application_controller.rb +0 -3
  51. data/spec/dummyapp/app/controllers/home_controller.rb +0 -60
  52. data/spec/dummyapp/app/controllers/users_controller.rb +0 -17
  53. data/spec/dummyapp/app/helpers/.gitkeep +0 -0
  54. data/spec/dummyapp/app/mailers/.gitkeep +0 -0
  55. data/spec/dummyapp/app/models/.gitkeep +0 -0
  56. data/spec/dummyapp/app/models/book.rb +0 -5
  57. data/spec/dummyapp/app/models/post.rb +0 -9
  58. data/spec/dummyapp/app/models/user.rb +0 -9
  59. data/spec/dummyapp/app/views/devise/registrations/edit.html.erb +0 -27
  60. data/spec/dummyapp/app/views/devise/registrations/new.html.erb +0 -20
  61. data/spec/dummyapp/app/views/devise/shared/_links.html.erb +0 -25
  62. data/spec/dummyapp/app/views/home/cause_exception.html.erb +0 -1
  63. data/spec/dummyapp/app/views/home/index.html.erb +0 -4
  64. data/spec/dummyapp/app/views/home/report_exception.html.erb +0 -1
  65. data/spec/dummyapp/app/views/js/test.html.erb +0 -1
  66. data/spec/dummyapp/app/views/layouts/_messages.html.erb +0 -5
  67. data/spec/dummyapp/app/views/layouts/_navigation.html.erb +0 -21
  68. data/spec/dummyapp/app/views/layouts/application.html.erb +0 -25
  69. data/spec/dummyapp/app/views/layouts/simple.html.erb +0 -18
  70. data/spec/dummyapp/app/views/users/index.html.erb +0 -8
  71. data/spec/dummyapp/app/views/users/show.html.erb +0 -3
  72. data/spec/dummyapp/config.ru +0 -4
  73. data/spec/dummyapp/config/application.rb +0 -59
  74. data/spec/dummyapp/config/boot.rb +0 -10
  75. data/spec/dummyapp/config/database.yml +0 -25
  76. data/spec/dummyapp/config/environment.rb +0 -5
  77. data/spec/dummyapp/config/environments/development.rb +0 -37
  78. data/spec/dummyapp/config/environments/production.rb +0 -67
  79. data/spec/dummyapp/config/environments/test.rb +0 -37
  80. data/spec/dummyapp/config/initializers/backtrace_silencers.rb +0 -7
  81. data/spec/dummyapp/config/initializers/inflections.rb +0 -15
  82. data/spec/dummyapp/config/initializers/mime_types.rb +0 -5
  83. data/spec/dummyapp/config/initializers/rollbar.rb +0 -26
  84. data/spec/dummyapp/config/initializers/secret_token.rb +0 -7
  85. data/spec/dummyapp/config/initializers/session_store.rb +0 -8
  86. data/spec/dummyapp/config/initializers/wrap_parameters.rb +0 -16
  87. data/spec/dummyapp/config/locales/devise.en.yml +0 -58
  88. data/spec/dummyapp/config/locales/en.yml +0 -5
  89. data/spec/dummyapp/config/routes.rb +0 -17
  90. data/spec/dummyapp/config/secrets.yml +0 -2
  91. data/spec/dummyapp/db/migrate/20121121184652_devise_create_users.rb +0 -46
  92. data/spec/dummyapp/db/migrate/20121121184654_add_name_to_users.rb +0 -5
  93. data/spec/dummyapp/db/migrate/20161219184410_create_books.rb +0 -10
  94. data/spec/dummyapp/db/migrate/20161219185529_add_username_to_users.rb +0 -5
  95. data/spec/dummyapp/db/schema.rb +0 -41
  96. data/spec/dummyapp/db/seeds.rb +0 -12
  97. data/spec/dummyapp/lib/assets/.gitkeep +0 -0
  98. data/spec/dummyapp/public/404.html +0 -26
  99. data/spec/dummyapp/public/422.html +0 -26
  100. data/spec/dummyapp/public/500.html +0 -25
  101. data/spec/dummyapp/public/favicon.ico +0 -0
  102. data/spec/dummyapp/script/rails +0 -6
  103. data/spec/fixtures/file1 +0 -1
  104. data/spec/fixtures/file2 +0 -1
  105. data/spec/fixtures/payloads/message.json +0 -25
  106. data/spec/fixtures/payloads/sample.trace.json +0 -275
  107. data/spec/fixtures/payloads/sample.trace_chain.json +0 -530
  108. data/spec/fixtures/plugins/dummy1.rb +0 -5
  109. data/spec/fixtures/plugins/dummy2.rb +0 -5
  110. data/spec/generators/rollbar/rollbar_generator_rails30_spec.rb +0 -31
  111. data/spec/generators/rollbar/rollbar_generator_spec.rb +0 -51
  112. data/spec/requests/home_spec.rb +0 -49
  113. data/spec/rollbar/configuration_spec.rb +0 -74
  114. data/spec/rollbar/delay/delayed_job_spec.rb +0 -22
  115. data/spec/rollbar/delay/girl_friday_spec.rb +0 -41
  116. data/spec/rollbar/delay/resque_spec.rb +0 -37
  117. data/spec/rollbar/delay/shoryuken_spec.rb +0 -44
  118. data/spec/rollbar/delay/thread_spec.rb +0 -27
  119. data/spec/rollbar/encoding/encoder_spec.rb +0 -63
  120. data/spec/rollbar/item/backtrace_spec.rb +0 -26
  121. data/spec/rollbar/item/frame_spec.rb +0 -267
  122. data/spec/rollbar/item_spec.rb +0 -736
  123. data/spec/rollbar/json/oj_spec.rb +0 -18
  124. data/spec/rollbar/json_spec.rb +0 -110
  125. data/spec/rollbar/lazy_store_spec.rb +0 -99
  126. data/spec/rollbar/logger_proxy_spec.rb +0 -69
  127. data/spec/rollbar/logger_spec.rb +0 -124
  128. data/spec/rollbar/middleware/js_spec.rb +0 -428
  129. data/spec/rollbar/middleware/sinatra_spec.rb +0 -197
  130. data/spec/rollbar/notifier_spec.rb +0 -67
  131. data/spec/rollbar/plugin_spec.rb +0 -209
  132. data/spec/rollbar/plugins/active_job_spec.rb +0 -45
  133. data/spec/rollbar/plugins/delayed_job/job_data_spec.rb +0 -48
  134. data/spec/rollbar/plugins/delayed_job_spec.rb +0 -129
  135. data/spec/rollbar/plugins/rack_spec.rb +0 -152
  136. data/spec/rollbar/plugins/rails_js_spec.rb +0 -19
  137. data/spec/rollbar/plugins/rake_spec.rb +0 -34
  138. data/spec/rollbar/plugins/resque/failure_spec.rb +0 -36
  139. data/spec/rollbar/plugins/sidekiq_spec.rb +0 -169
  140. data/spec/rollbar/plugins/validations_spec.rb +0 -56
  141. data/spec/rollbar/plugins_spec.rb +0 -68
  142. data/spec/rollbar/request_data_extractor_spec.rb +0 -321
  143. data/spec/rollbar/scrubbers/params_spec.rb +0 -598
  144. data/spec/rollbar/scrubbers/url_spec.rb +0 -240
  145. data/spec/rollbar/scrubbers_spec.rb +0 -31
  146. data/spec/rollbar/sidekig/clear_scope_spec.rb +0 -19
  147. data/spec/rollbar/truncation/frames_strategy_spec.rb +0 -70
  148. data/spec/rollbar/truncation/min_body_strategy_spec.rb +0 -57
  149. data/spec/rollbar/truncation/strings_strategy_spec.rb +0 -89
  150. data/spec/rollbar/truncation_spec.rb +0 -27
  151. data/spec/rollbar/util/hash_spec.rb +0 -22
  152. data/spec/rollbar/util/ip_anonymizer_spec.rb +0 -30
  153. data/spec/rollbar/util_spec.rb +0 -80
  154. data/spec/rollbar_bc_spec.rb +0 -380
  155. data/spec/rollbar_spec.rb +0 -1737
  156. data/spec/spec_helper.rb +0 -84
  157. data/spec/support/cause_exception.rb +0 -1
  158. data/spec/support/encoding_helpers.rb +0 -8
  159. data/spec/support/encodings/iso_8859_9 +0 -1
  160. data/spec/support/fixture_helpers.rb +0 -10
  161. data/spec/support/get_ip_raising.rb +0 -7
  162. data/spec/support/helpers.rb +0 -5
  163. data/spec/support/matchers.rb +0 -23
  164. data/spec/support/notifier_helpers.rb +0 -57
  165. data/spec/support/rollbar_api.rb +0 -57
  166. data/spec/support/secure_headers_mocks.rb +0 -83
  167. data/spec/support/shared_contexts.rb +0 -12
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,15 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
11
- #
12
- # These inflection rules are supported but not enabled by default:
13
- # ActiveSupport::Inflector.inflections do |inflect|
14
- # inflect.acronym 'RESTful'
15
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,26 +0,0 @@
1
- Rollbar.configure do |config|
2
- config.access_token = 'aaaabbbbccccddddeeeeffff00001111'
3
- config.open_timeout = 60
4
- config.request_timeout = 60
5
- config.js_enabled = true
6
- config.js_options = {
7
- :foo => :bar
8
- }
9
- # By default, Rollbar will try to call the `current_user` controller method
10
- # to fetch the logged-in user object, and then call that object's `id`
11
- # method to fetch this property. To customize:
12
- # config.person_method = "my_current_user"
13
- # config.person_id_method = "my_id"
14
-
15
- # Additionally, you may specify the following:
16
- # config.person_username_method = "username"
17
- # config.person_email_method = "email"
18
-
19
- # Add exception class names to the exception_level_filters hash to
20
- # change the level that exception is reported at. Note that if an exception
21
- # has already been reported and logged the level will need to be changed
22
- # via the rollbar interface.
23
- # Valid levels: 'critical', 'error', 'warning', 'info', 'debug', 'ignore'
24
- # 'ignore' will cause the exception to not be reported at all.
25
- # config.exception_level_filters.merge!('MyCriticalException' => 'critical')
26
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = '61f244779bab3ceba188492a31fb02b0a975fb64b93e217c03966ef065f5f1aba3b145c165defe0f8256e45cc6c526a60c9780a506a16e730815a3f812b5f9e9'
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rails generate session_migration")
8
- # Dummy::Application.config.session_store :active_record_store
@@ -1,16 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
- #
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- if defined?(wrap_parameters)
9
- wrap_parameters :format => [:json]
10
- end
11
- end
12
-
13
- # Disable root element in JSON by default.
14
- ActiveSupport.on_load(:active_record) do
15
- self.include_root_in_json = false
16
- end
@@ -1,58 +0,0 @@
1
- # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
-
3
- en:
4
- errors:
5
- messages:
6
- expired: "has expired, please request a new one"
7
- not_found: "not found"
8
- already_confirmed: "was already confirmed, please try signing in"
9
- not_locked: "was not locked"
10
- not_saved:
11
- one: "1 error prohibited this %{resource} from being saved:"
12
- other: "%{count} errors prohibited this %{resource} from being saved:"
13
-
14
- devise:
15
- failure:
16
- already_authenticated: 'You are already signed in.'
17
- unauthenticated: 'You need to sign in or sign up before continuing.'
18
- unconfirmed: 'You have to confirm your account before continuing.'
19
- locked: 'Your account is locked.'
20
- invalid: 'Invalid email or password.'
21
- invalid_token: 'Invalid authentication token.'
22
- timeout: 'Your session expired, please sign in again to continue.'
23
- inactive: 'Your account was not activated yet.'
24
- sessions:
25
- signed_in: 'Signed in successfully.'
26
- signed_out: 'Signed out successfully.'
27
- passwords:
28
- send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.'
29
- updated: 'Your password was changed successfully. You are now signed in.'
30
- updated_not_active: 'Your password was changed successfully.'
31
- send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
32
- no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
33
- confirmations:
34
- send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.'
35
- send_paranoid_instructions: 'If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes.'
36
- confirmed: 'Your account was successfully confirmed. You are now signed in.'
37
- registrations:
38
- signed_up: 'Welcome! You have signed up successfully.'
39
- signed_up_but_unconfirmed: 'A message with a confirmation link has been sent to your email address. Please open the link to activate your account.'
40
- signed_up_but_inactive: 'You have signed up successfully. However, we could not sign you in because your account is not yet activated.'
41
- signed_up_but_locked: 'You have signed up successfully. However, we could not sign you in because your account is locked.'
42
- updated: 'You updated your account successfully.'
43
- update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
44
- destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
45
- unlocks:
46
- send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.'
47
- unlocked: 'Your account has been unlocked successfully. Please sign in to continue.'
48
- send_paranoid_instructions: 'If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.'
49
- omniauth_callbacks:
50
- success: 'Successfully authenticated from %{kind} account.'
51
- failure: 'Could not authenticate you from %{kind} because "%{reason}".'
52
- mailer:
53
- confirmation_instructions:
54
- subject: 'Confirmation instructions'
55
- reset_password_instructions:
56
- subject: 'Reset password instructions'
57
- unlock_instructions:
58
- subject: 'Unlock Instructions'
@@ -1,5 +0,0 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
-
4
- en:
5
- hello: "Hello world"
@@ -1,17 +0,0 @@
1
- Dummy::Application.routes.draw do
2
- root :to => 'home#index'
3
- resources :users do
4
- member { post :start_session }
5
- end
6
-
7
- match '/cause_exception' => 'home#cause_exception', :via => [:get, :post]
8
- put '/deprecated_report_exception' => 'home#deprecated_report_exception'
9
- match '/report_exception' => 'home#report_exception',
10
- :via => [:get, :post, :put]
11
- get '/current_user' => 'home#current_user'
12
- post '/file_upload' => 'home#file_upload'
13
-
14
- get '/set_session_data' => 'home#set_session_data'
15
- get '/use_session_data' => 'home#use_session_data'
16
- get '/test_rollbar_js' => 'home#test_rollbar_js'
17
- end
@@ -1,2 +0,0 @@
1
- test:
2
- secret_key_base: 9ed31a007124058789d898117509a68022a0c5045ef3fd19e228139985d7f4365d1a908aeedbc9e0ad33c2cd62d765bccfb2b19b6cb06f4f7f2ac8a059adee91
@@ -1,46 +0,0 @@
1
- class DeviseCreateUsers < ActiveRecord::Migration
2
- def change
3
- create_table(:users) do |t|
4
- ## Database authenticatable
5
- t.string :email, :null => false, :default => ""
6
- t.string :encrypted_password, :null => false, :default => ""
7
-
8
- ## Recoverable
9
- t.string :reset_password_token
10
- t.datetime :reset_password_sent_at
11
-
12
- ## Rememberable
13
- t.datetime :remember_created_at
14
-
15
- ## Trackable
16
- t.integer :sign_in_count, :default => 0
17
- t.datetime :current_sign_in_at
18
- t.datetime :last_sign_in_at
19
- t.string :current_sign_in_ip
20
- t.string :last_sign_in_ip
21
-
22
- ## Confirmable
23
- # t.string :confirmation_token
24
- # t.datetime :confirmed_at
25
- # t.datetime :confirmation_sent_at
26
- # t.string :unconfirmed_email # Only if using reconfirmable
27
-
28
- ## Lockable
29
- # t.integer :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts
30
- # t.string :unlock_token # Only if unlock strategy is :email or :both
31
- # t.datetime :locked_at
32
-
33
- ## Token authenticatable
34
- # t.string :authentication_token
35
-
36
-
37
- t.timestamps
38
- end
39
-
40
- add_index :users, :email, :unique => true
41
- add_index :users, :reset_password_token, :unique => true
42
- # add_index :users, :confirmation_token, :unique => true
43
- # add_index :users, :unlock_token, :unique => true
44
- # add_index :users, :authentication_token, :unique => true
45
- end
46
- end
@@ -1,5 +0,0 @@
1
- class AddNameToUsers < ActiveRecord::Migration
2
- def change
3
- add_column :users, :name, :string
4
- end
5
- end
@@ -1,10 +0,0 @@
1
- class CreateBooks < ActiveRecord::Migration
2
- def change
3
- create_table :books do |t|
4
- t.string :title
5
- t.integer :user_id
6
-
7
- t.timestamps
8
- end
9
- end
10
- end
@@ -1,5 +0,0 @@
1
- class AddUsernameToUsers < ActiveRecord::Migration
2
- def change
3
- add_column :users, :username, :string
4
- end
5
- end
@@ -1,41 +0,0 @@
1
- # This file is auto-generated from the current state of the database. Instead
2
- # of editing this file, please use the migrations feature of Active Record to
3
- # incrementally modify your database, and then regenerate this schema definition.
4
- #
5
- # Note that this schema.rb definition is the authoritative source for your
6
- # database schema. If you need to create the application database on another
7
- # system, you should be using db:schema:load, not running all the migrations
8
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
- # you'll amass, the slower it'll run and the greater likelihood for issues).
10
- #
11
- # It's strongly recommended that you check this file into your version control system.
12
-
13
- ActiveRecord::Schema.define(:version => 20161219185529) do
14
-
15
- create_table "books", :force => :cascade do |t|
16
- t.string "title"
17
- t.integer "user_id"
18
- t.datetime "created_at", :null => false
19
- t.datetime "updated_at",:null => false
20
- end
21
-
22
- create_table "users", :force => :cascade do |t|
23
- t.string "email", :default => "", :null => false
24
- t.string "encrypted_password", :default => "", :null => false
25
- t.string "reset_password_token"
26
- t.datetime "reset_password_sent_at"
27
- t.datetime "remember_created_at"
28
- t.integer "sign_in_count", :default => 0
29
- t.datetime "current_sign_in_at"
30
- t.datetime "last_sign_in_at"
31
- t.string "current_sign_in_ip"
32
- t.string "last_sign_in_ip"
33
- t.datetime "created_at"
34
- t.datetime "updated_at"
35
- t.string "name"
36
- t.string "username"
37
- end
38
-
39
- add_index "users", ["email"], :name => "index_users_on_email", :unique => true
40
- add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
41
- end
@@ -1,12 +0,0 @@
1
- # This file should contain all the record creation needed to seed the database with its default values.
2
- # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
- #
4
- # Examples:
5
- #
6
- # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
- # Mayor.create(name: 'Emanuel', city: cities.first)
8
- puts 'SETTING UP DEFAULT USER LOGIN'
9
- user = User.create! :username => 'user1', :email => 'user@example.com'
10
- puts "New user created: #{user.username}"
11
- user2 = User.create! :username => 'user2', :email => 'user2@example.com'
12
- puts "New user created: #{user2.username}"
File without changes
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/404.html -->
21
- <div class="dialog">
22
- <h1>The page you were looking for doesn't exist.</h1>
23
- <p>You may have mistyped the address or the page may have moved.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/422.html -->
21
- <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,25 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/500.html -->
21
- <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
23
- </div>
24
- </body>
25
- </html>
File without changes
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
@@ -1 +0,0 @@
1
- This is a file
@@ -1 +0,0 @@
1
- This is a file
@@ -1,25 +0,0 @@
1
- {
2
- "body": {
3
- "message": {
4
- "body": "Test message"
5
- }
6
- },
7
- "uuid": "7160cbee-de83-4e5d-bdc9-3fe195b711e4",
8
- "language": "ruby",
9
- "level": "info",
10
- "timestamp": 1429703495,
11
- "server": {
12
- "pid": 2515,
13
- "host": "testing-worker-linux-docker-0201352d-3376-linux-15",
14
- "root": "/home/travis/build/rollbar/rollbar-gem/spec/dummyapp"
15
- },
16
- "environment": "unspecified",
17
- "framework": "Rails: 3.2.21",
18
- "notifier": {
19
- "version": "1.5.1",
20
- "name": "rollbar-gem"
21
- },
22
- "metadata": {
23
- "customer_timestamp": 1429703494
24
- }
25
- }
@@ -1,275 +0,0 @@
1
- {
2
- "body": {
3
- "trace": {
4
- "frames": [
5
- {
6
- "method": "main",
7
- "lineno": 832,
8
- "filename": "kernel/loader.rb"
9
- },
10
- {
11
- "method": "epilogue",
12
- "lineno": 720,
13
- "filename": "kernel/loader.rb"
14
- },
15
- {
16
- "method": "run_at_exits",
17
- "lineno": 695,
18
- "filename": "kernel/loader.rb"
19
- },
20
- {
21
- "method": "call",
22
- "lineno": 20,
23
- "filename": "kernel/bootstrap/proc.rb"
24
- },
25
- {
26
- "method": "autorun",
27
- "lineno": 17,
28
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb"
29
- },
30
- {
31
- "method": "run",
32
- "lineno": 103,
33
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb"
34
- },
35
- {
36
- "method": "run",
37
- "lineno": 21,
38
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb"
39
- },
40
- {
41
- "method": "report",
42
- "lineno": 58,
43
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-core-2.99.2/lib/rspec/core/reporter.rb"
44
- },
45
- {
46
- "method": "run",
47
- "lineno": 24,
48
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb"
49
- },
50
- {
51
- "method": "map",
52
- "lineno": 97,
53
- "filename": "kernel/bootstrap/array.rb"
54
- },
55
- {
56
- "method": "run",
57
- "lineno": 24,
58
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb"
59
- },
60
- {
61
- "method": "run",
62
- "lineno": 497,
63
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb"
64
- },
65
- {
66
- "method": "map",
67
- "lineno": 97,
68
- "filename": "kernel/bootstrap/array.rb"
69
- },
70
- {
71
- "method": "run",
72
- "lineno": 497,
73
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb"
74
- },
75
- {
76
- "method": "run",
77
- "lineno": 496,
78
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb"
79
- },
80
- {
81
- "method": "run_examples",
82
- "lineno": 511,
83
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb"
84
- },
85
- {
86
- "method": "map",
87
- "lineno": 97,
88
- "filename": "kernel/bootstrap/array.rb"
89
- },
90
- {
91
- "method": "run_examples",
92
- "lineno": 515,
93
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-core-2.99.2/lib/rspec/core/example_group.rb"
94
- },
95
- {
96
- "method": "run",
97
- "lineno": 113,
98
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-core-2.99.2/lib/rspec/core/example.rb"
99
- },
100
- {
101
- "method": "with_around_each_hooks",
102
- "lineno": 248,
103
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-core-2.99.2/lib/rspec/core/example.rb"
104
- },
105
- {
106
- "method": "run",
107
- "lineno": 116,
108
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-core-2.99.2/lib/rspec/core/example.rb"
109
- },
110
- {
111
- "method": "instance_eval_with_args",
112
- "lineno": 16,
113
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-core-2.99.2/lib/rspec/core/extensions/instance_eval_with_args.rb"
114
- },
115
- {
116
- "method": "instance_exec",
117
- "lineno": 101,
118
- "filename": "kernel/common/eval.rb"
119
- },
120
- {
121
- "method": "__script__",
122
- "lineno": 15,
123
- "filename": "/home/travis/build/rollbar/rollbar-gem/spec/requests/home_spec.rb"
124
- },
125
- {
126
- "method": "to",
127
- "lineno": 117,
128
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-expectations-2.99.2/lib/rspec/expectations/expectation_target.rb"
129
- },
130
- {
131
- "method": "to",
132
- "lineno": 59,
133
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-expectations-2.99.2/lib/rspec/expectations/expectation_target.rb"
134
- },
135
- {
136
- "method": "handle_matcher",
137
- "lineno": 24,
138
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-expectations-2.99.2/lib/rspec/expectations/handler.rb"
139
- },
140
- {
141
- "method": "matches?",
142
- "lineno": 42,
143
- "filename": "/home/travis/.rvm/gems/rbx/gems/rspec-expectations-2.99.2/lib/rspec/matchers/built_in/raise_error.rb"
144
- },
145
- {
146
- "method": "call",
147
- "lineno": 20,
148
- "filename": "kernel/bootstrap/proc.rb"
149
- },
150
- {
151
- "method": "__script__",
152
- "lineno": 15,
153
- "filename": "/home/travis/build/rollbar/rollbar-gem/spec/requests/home_spec.rb"
154
- },
155
- {
156
- "method": "__script__",
157
- "lineno": 333,
158
- "filename": "/home/travis/.rvm/gems/rbx/gems/actionpack-3.2.17/lib/action_dispatch/testing/integration.rb"
159
- },
160
- {
161
- "method": "get",
162
- "lineno": 33,
163
- "filename": "/home/travis/.rvm/gems/rbx/gems/actionpack-3.2.17/lib/action_dispatch/testing/integration.rb"
164
- },
165
- {
166
- "method": "process",
167
- "lineno": 299,
168
- "filename": "/home/travis/.rvm/gems/rbx/gems/actionpack-3.2.17/lib/action_dispatch/testing/integration.rb"
169
- },
170
- {
171
- "method": "request",
172
- "lineno": 122,
173
- "filename": "/home/travis/.rvm/gems/rbx/gems/rack-test-0.6.2/lib/rack/test.rb"
174
- },
175
- {
176
- "method": "env_for (env_for_with_rollbar)",
177
- "lineno": 8,
178
- "filename": "/home/travis/build/rollbar/rollbar-gem/lib/rollbar/middleware/rack/test_session.rb"
179
- },
180
- {
181
- "method": "env_for_without_rollbar (env_for)",
182
- "lineno": 220,
183
- "filename": "/home/travis/.rvm/gems/rbx/gems/rack-test-0.6.2/lib/rack/test.rb"
184
- },
185
- {
186
- "method": "set_cookie",
187
- "lineno": 24,
188
- "filename": "/home/travis/.rvm/gems/rbx/gems/rack-test-0.6.2/lib/rack/mock_session.rb"
189
- },
190
- {
191
- "method": "merge",
192
- "lineno": 132,
193
- "filename": "/home/travis/.rvm/gems/rbx/gems/rack-test-0.6.2/lib/rack/test/cookie_jar.rb"
194
- },
195
- {
196
- "method": "each",
197
- "lineno": 76,
198
- "filename": "kernel/bootstrap/array.rb"
199
- },
200
- {
201
- "method": "merge",
202
- "lineno": 133,
203
- "filename": "/home/travis/.rvm/gems/rbx/gems/rack-test-0.6.2/lib/rack/test/cookie_jar.rb"
204
- },
205
- {
206
- "method": "initialize",
207
- "lineno": 21,
208
- "filename": "/home/travis/.rvm/gems/rbx/gems/rack-test-0.6.2/lib/rack/test/cookie_jar.rb"
209
- },
210
- {
211
- "method": "parse_query",
212
- "lineno": 70,
213
- "filename": "/home/travis/.rvm/gems/rbx/gems/rack-1.4.5/lib/rack/utils.rb"
214
- },
215
- {
216
- "method": "each",
217
- "lineno": 76,
218
- "filename": "kernel/bootstrap/array.rb"
219
- },
220
- {
221
- "method": "parse_query",
222
- "lineno": 72,
223
- "filename": "/home/travis/.rvm/gems/rbx/gems/rack-1.4.5/lib/rack/utils.rb"
224
- },
225
- {
226
- "method": "map",
227
- "lineno": 97,
228
- "filename": "kernel/bootstrap/array.rb"
229
- },
230
- {
231
- "method": "call (__yield__)",
232
- "lineno": 172,
233
- "filename": "kernel/common/proc.rb"
234
- },
235
- {
236
- "method": "call",
237
- "lineno": 71,
238
- "filename": "kernel/common/method.rb"
239
- },
240
- {
241
- "method": "unescape",
242
- "lineno": 41,
243
- "filename": "/home/travis/.rvm/gems/rbx/gems/rack-1.4.5/lib/rack/utils.rb"
244
- },
245
- {
246
- "method": "decode_www_form_component",
247
- "lineno": 898,
248
- "filename": "/home/travis/.rvm/rubies/rbx/gems/gems/rubysl-uri-2.0.0/lib/uri/common.rb"
249
- }
250
- ],
251
- "exception": {
252
- "message": "invalid %-encoding (8%B)",
253
- "class": "ArgumentError"
254
- }
255
- }
256
- },
257
- "uuid": "d9a419d7-7b11-4435-bf5a-ffaa0fa9ff8c",
258
- "language": "ruby",
259
- "level": "error",
260
- "timestamp": 1416877955,
261
- "server": {
262
- "pid": 3586,
263
- "host": "testing-worker-linux-docker-eeafdf0f-2420-linux-9",
264
- "root": "/home/travis/build/rollbar/rollbar-gem/spec/dummyapp"
265
- },
266
- "environment": "unspecified",
267
- "framework": "Rails: 3.2.17",
268
- "notifier": {
269
- "version": "1.2.9",
270
- "name": "rollbar-gem"
271
- },
272
- "metadata": {
273
- "customer_timestamp": 1416877955
274
- }
275
- }