ratchetio 0.4.4 → 0.4.5
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.
- data/.gitignore +1 -0
- data/.travis.yml +12 -0
- data/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/Rakefile +9 -3
- data/THANKS +5 -0
- data/lib/ratchetio/configuration.rb +5 -1
- data/lib/ratchetio/version.rb +1 -1
- data/lib/ratchetio.rb +4 -0
- data/ratchetio.gemspec +3 -15
- data/spec/controllers/home_controller_spec.rb +2 -2
- data/spec/dummyapp/Rakefile +1 -1
- data/spec/dummyapp/app/assets/javascripts/application.js +0 -12
- data/spec/dummyapp/config/application.rb +7 -23
- data/spec/dummyapp/config/boot.rb +7 -3
- data/spec/dummyapp/config/database.yml +1 -4
- data/spec/dummyapp/config/environment.rb +1 -1
- data/spec/dummyapp/config/environments/development.rb +3 -20
- data/spec/dummyapp/config/environments/production.rb +1 -21
- data/spec/dummyapp/config/environments/test.rb +1 -5
- data/spec/dummyapp/config/initializers/secret_token.rb +1 -1
- data/spec/dummyapp/config/initializers/session_store.rb +2 -2
- data/spec/dummyapp/config/initializers/wrap_parameters.rb +1 -1
- data/spec/dummyapp/config/routes.rb +1 -1
- data/spec/ratchetio_spec.rb +63 -11
- data/spec/spec_helper.rb +2 -8
- metadata +14 -171
- data/spec/dummyapp/Gemfile +0 -19
- data/spec/dummyapp/README +0 -19
- data/spec/dummyapp/README.textile +0 -80
- data/spec/dummyapp/app/assets/javascripts/home.js.coffee +0 -3
- data/spec/dummyapp/app/assets/stylesheets/home.css.scss +0 -3
- data/spec/dummyapp/app/helpers/application_helper.rb +0 -2
- data/spec/dummyapp/app/helpers/home_helper.rb +0 -2
- data/spec/dummyapp/config/cucumber.yml +0 -8
- data/spec/dummyapp/config/initializers/generators.rb +0 -2
- data/spec/dummyapp/lib/tasks/cucumber.rake +0 -65
- data/spec/dummyapp/public/humans.txt +0 -20
- data/spec/dummyapp/public/robots.txt +0 -5
- data/spec/dummyapp/script/cucumber +0 -10
- data/spec/dummyapp/vendor/assets/javascripts/.gitkeep +0 -0
- data/spec/dummyapp/vendor/assets/stylesheets/.gitkeep +0 -0
- data/spec/dummyapp/vendor/plugins/.gitkeep +0 -0
- /data/spec/dummyapp/{lib/tasks → app/helpers}/.gitkeep +0 -0
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
**0.4.5**
|
4
|
+
- Add `default_logger` config option. It should be a lambda that will return the logger to use if no other logger is configured (i.e. no logger is set by the Railtie hook). Default: `lambda { Logger.new(STDERR) }`
|
5
|
+
|
3
6
|
**0.4.4**
|
4
7
|
- Add `enabled` runtime config flag. When `false`, no data (messages or exceptions) will be reported.
|
5
8
|
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Ratchetio
|
1
|
+
# Ratchetio [](https://travis-ci.org/ratchetio/ratchetio-gem)
|
2
2
|
|
3
3
|
Ruby gem for Ratchet.io, for reporting exceptions in Rails 3 to Ratchet.io. Requires a Ratchet.io account (you can sign up for free).
|
4
4
|
|
data/Rakefile
CHANGED
@@ -2,7 +2,13 @@
|
|
2
2
|
require 'bundler/gem_tasks'
|
3
3
|
require 'rspec/core/rake_task'
|
4
4
|
|
5
|
-
RSpec::Core::RakeTask.new(
|
5
|
+
RSpec::Core::RakeTask.new(:spec)
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
namespace :dummy do
|
8
|
+
load 'spec/dummyapp/Rakefile'
|
9
|
+
end
|
10
|
+
|
11
|
+
desc 'Run specs'
|
12
|
+
task :default => ['dummy:db:setup'] do
|
13
|
+
Rake::Task[:spec].invoke
|
14
|
+
end
|
data/THANKS
ADDED
@@ -1,12 +1,15 @@
|
|
1
|
+
require 'logger'
|
2
|
+
|
1
3
|
module Ratchetio
|
2
4
|
class Configuration
|
3
5
|
|
4
6
|
attr_accessor :access_token
|
5
7
|
attr_accessor :branch
|
8
|
+
attr_accessor :default_logger
|
6
9
|
attr_accessor :enabled
|
7
10
|
attr_accessor :endpoint
|
8
|
-
attr_accessor :exception_level_filters
|
9
11
|
attr_accessor :environment
|
12
|
+
attr_accessor :exception_level_filters
|
10
13
|
attr_accessor :framework
|
11
14
|
attr_accessor :logger
|
12
15
|
attr_accessor :person_method
|
@@ -18,6 +21,7 @@ module Ratchetio
|
|
18
21
|
DEFAULT_ENDPOINT = 'https://submit.ratchet.io/api/1/item/'
|
19
22
|
|
20
23
|
def initialize
|
24
|
+
@default_logger = lambda { Logger.new(STDERR) }
|
21
25
|
@enabled = true
|
22
26
|
@endpoint = DEFAULT_ENDPOINT
|
23
27
|
@framework = 'Plain'
|
data/lib/ratchetio/version.rb
CHANGED
data/lib/ratchetio.rb
CHANGED
data/ratchetio.gemspec
CHANGED
@@ -9,26 +9,14 @@ Gem::Specification.new do |gem|
|
|
9
9
|
gem.homepage = "https://github.com/ratchetio/ratchetio-gem"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
12
|
-
gem.
|
13
|
-
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
12
|
+
gem.test_files = gem.files.grep(%r{^(spec)/})
|
14
13
|
gem.name = "ratchetio"
|
15
14
|
gem.require_paths = ["lib"]
|
16
15
|
gem.version = Ratchetio::VERSION
|
17
16
|
|
18
|
-
gem.add_development_dependency 'rspec-rails', '~> 2.12'
|
19
17
|
gem.add_development_dependency 'rails', '~> 3.2.9'
|
20
18
|
gem.add_development_dependency 'sqlite3'
|
21
|
-
gem.add_development_dependency 'jquery-rails'
|
22
|
-
gem.add_development_dependency 'jquery-rails'
|
23
|
-
|
24
|
-
gem.add_development_dependency 'rspec-rails', '>= 2.11.4'
|
25
|
-
gem.add_development_dependency 'database_cleaner', '>= 0.9.1'
|
26
|
-
gem.add_development_dependency 'email_spec', '>= 1.4.0'
|
27
|
-
gem.add_development_dependency 'cucumber-rails', '>= 1.3.0'
|
28
|
-
gem.add_development_dependency 'launchy', '>= 2.1.2'
|
29
|
-
#gem.add_development_dependency 'capybara', '>= 1.1.3'
|
30
|
-
gem.add_development_dependency 'factory_girl_rails', '>= 4.1.0'
|
31
19
|
gem.add_development_dependency 'devise', '>= 2.1.2'
|
32
|
-
gem.add_development_dependency '
|
33
|
-
|
20
|
+
gem.add_development_dependency 'rspec-rails', '~> 2.12.0'
|
21
|
+
gem.add_development_dependency 'database_cleaner', '>= 0.9.1'
|
34
22
|
end
|
@@ -116,7 +116,7 @@ describe HomeController do
|
|
116
116
|
|
117
117
|
describe "GET 'index'" do
|
118
118
|
it "should be successful and report a message" do
|
119
|
-
logger_mock.should_receive(:info).with('[Ratchet.io]
|
119
|
+
logger_mock.should_receive(:info).with('[Ratchet.io] Success')
|
120
120
|
get 'index'
|
121
121
|
response.should be_success
|
122
122
|
end
|
@@ -124,7 +124,7 @@ describe HomeController do
|
|
124
124
|
|
125
125
|
describe "GET 'report_exception'" do
|
126
126
|
it "should raise a NameError and report an exception" do
|
127
|
-
logger_mock.should_receive(:info).with('[Ratchet.io]
|
127
|
+
logger_mock.should_receive(:info).with('[Ratchet.io] Success')
|
128
128
|
|
129
129
|
get 'report_exception'
|
130
130
|
response.should be_success
|
data/spec/dummyapp/Rakefile
CHANGED
@@ -1,15 +1,3 @@
|
|
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 vendor/assets/javascripts of plugins, if any, 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
|
-
// the compiled file.
|
9
|
-
//
|
10
|
-
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
-
// GO AFTER THE REQUIRES BELOW.
|
12
|
-
//
|
13
1
|
//= require jquery
|
14
2
|
//= require jquery_ujs
|
15
3
|
//= require_tree .
|
@@ -1,36 +1,19 @@
|
|
1
1
|
require File.expand_path('../boot', __FILE__)
|
2
2
|
|
3
|
-
require
|
3
|
+
require "rails/all"
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
# If you want your assets lazily compiled in production, use this line
|
9
|
-
# Bundler.require(:default, :assets, Rails.env)
|
10
|
-
end
|
5
|
+
Bundler.require
|
6
|
+
require "ratchetio"
|
7
|
+
require "devise"
|
11
8
|
|
12
|
-
module
|
9
|
+
module Dummy
|
13
10
|
class Application < Rails::Application
|
14
|
-
|
15
|
-
# don't generate RSpec tests for views and helpers
|
16
|
-
config.generators do |g|
|
17
|
-
|
18
|
-
g.test_framework :rspec, fixture: true
|
19
|
-
g.fixture_replacement :factory_girl
|
20
|
-
|
21
|
-
|
22
|
-
g.view_specs false
|
23
|
-
g.helper_specs false
|
24
|
-
end
|
25
|
-
|
26
11
|
# Settings in config/environments/* take precedence over those specified here.
|
27
12
|
# Application configuration should go into files in config/initializers
|
28
13
|
# -- all .rb files in that directory are automatically loaded.
|
29
14
|
|
30
15
|
# Custom directories with classes and modules you want to be autoloadable.
|
31
16
|
# config.autoload_paths += %W(#{config.root}/extras)
|
32
|
-
config.autoload_paths += %W(#{config.root}/lib)
|
33
|
-
|
34
17
|
|
35
18
|
# Only load the plugins named here, in the order given (default is alphabetical).
|
36
19
|
# :all can be used as a placeholder for all plugins not explicitly named.
|
@@ -51,7 +34,7 @@ module Dummyapp
|
|
51
34
|
config.encoding = "utf-8"
|
52
35
|
|
53
36
|
# Configure sensitive parameters which will be filtered from the log file.
|
54
|
-
config.filter_parameters += [:password
|
37
|
+
config.filter_parameters += [:password]
|
55
38
|
|
56
39
|
# Enable escaping HTML in JSON.
|
57
40
|
config.active_support.escape_html_entities_in_json = true
|
@@ -74,3 +57,4 @@ module Dummyapp
|
|
74
57
|
config.assets.version = '1.0'
|
75
58
|
end
|
76
59
|
end
|
60
|
+
|
@@ -1,6 +1,10 @@
|
|
1
1
|
require 'rubygems'
|
2
|
+
gemfile = File.expand_path('../../../../Gemfile', __FILE__)
|
2
3
|
|
3
|
-
|
4
|
-
ENV['BUNDLE_GEMFILE']
|
4
|
+
if File.exist?(gemfile)
|
5
|
+
ENV['BUNDLE_GEMFILE'] = gemfile
|
6
|
+
require 'bundler'
|
7
|
+
Bundler.setup
|
8
|
+
end
|
5
9
|
|
6
|
-
|
10
|
+
$:.unshift File.expand_path('../../../../lib', __FILE__)
|
@@ -12,7 +12,7 @@ development:
|
|
12
12
|
# Warning: The database defined as "test" will be erased and
|
13
13
|
# re-generated from your development database when you run "rake".
|
14
14
|
# Do not set this db to the same as development or production.
|
15
|
-
test:
|
15
|
+
test:
|
16
16
|
adapter: sqlite3
|
17
17
|
database: db/test.sqlite3
|
18
18
|
pool: 5
|
@@ -23,6 +23,3 @@ production:
|
|
23
23
|
database: db/production.sqlite3
|
24
24
|
pool: 5
|
25
25
|
timeout: 5000
|
26
|
-
|
27
|
-
cucumber:
|
28
|
-
<<: *test
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
Dummy::Application.configure do
|
2
2
|
# Settings specified here will take precedence over those in config/application.rb
|
3
3
|
|
4
4
|
# In the development environment your application's code is reloaded on
|
@@ -13,25 +13,8 @@ Dummyapp::Application.configure do
|
|
13
13
|
config.consider_all_requests_local = true
|
14
14
|
config.action_controller.perform_caching = false
|
15
15
|
|
16
|
-
#
|
17
|
-
config.action_mailer.
|
18
|
-
config.action_mailer.delivery_method = :smtp
|
19
|
-
# change to true to allow email to be sent during development
|
20
|
-
config.action_mailer.perform_deliveries = false
|
21
|
-
config.action_mailer.raise_delivery_errors = true
|
22
|
-
config.action_mailer.default :charset => "utf-8"
|
23
|
-
|
24
|
-
config.action_mailer.smtp_settings = {
|
25
|
-
address: "smtp.gmail.com",
|
26
|
-
port: 587,
|
27
|
-
domain: "example.com",
|
28
|
-
authentication: "plain",
|
29
|
-
enable_starttls_auto: true,
|
30
|
-
user_name: ENV["GMAIL_USERNAME"],
|
31
|
-
password: ENV["GMAIL_PASSWORD"]
|
32
|
-
}
|
33
|
-
|
34
|
-
|
16
|
+
# Don't care if the mailer can't send
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
35
18
|
|
36
19
|
# Print deprecation notices to the Rails logger
|
37
20
|
config.active_support.deprecation = :log
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
Dummy::Application.configure do
|
2
2
|
# Settings specified here will take precedence over those in config/application.rb
|
3
3
|
|
4
4
|
# Code is not reloaded between requests
|
@@ -61,26 +61,6 @@ Dummyapp::Application.configure do
|
|
61
61
|
# Send deprecation notices to registered listeners
|
62
62
|
config.active_support.deprecation = :notify
|
63
63
|
|
64
|
-
config.action_mailer.default_url_options = { :host => 'example.com' }
|
65
|
-
# ActionMailer Config
|
66
|
-
# Setup for production - deliveries, no errors raised
|
67
|
-
config.action_mailer.delivery_method = :smtp
|
68
|
-
config.action_mailer.perform_deliveries = true
|
69
|
-
config.action_mailer.raise_delivery_errors = false
|
70
|
-
config.action_mailer.default :charset => "utf-8"
|
71
|
-
|
72
|
-
config.action_mailer.smtp_settings = {
|
73
|
-
address: "smtp.gmail.com",
|
74
|
-
port: 587,
|
75
|
-
domain: "example.com",
|
76
|
-
authentication: "plain",
|
77
|
-
enable_starttls_auto: true,
|
78
|
-
user_name: ENV["GMAIL_USERNAME"],
|
79
|
-
password: ENV["GMAIL_PASSWORD"]
|
80
|
-
}
|
81
|
-
|
82
|
-
|
83
|
-
|
84
64
|
# Log the query plan for queries taking more than this (works
|
85
65
|
# with SQLite, MySQL, and PostgreSQL)
|
86
66
|
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
Dummy::Application.configure do
|
2
2
|
# Settings specified here will take precedence over those in config/application.rb
|
3
3
|
|
4
4
|
# The test environment is used exclusively to run your application's
|
@@ -34,8 +34,4 @@ Dummyapp::Application.configure do
|
|
34
34
|
|
35
35
|
# Print deprecation notices to the stderr
|
36
36
|
config.active_support.deprecation = :stderr
|
37
|
-
|
38
|
-
# ActionMailer Config
|
39
|
-
config.action_mailer.default_url_options = { :host => 'example.com' }
|
40
|
-
|
41
37
|
end
|
@@ -4,4 +4,4 @@
|
|
4
4
|
# If you change this key, all old signed cookies will become invalid!
|
5
5
|
# Make sure the secret is at least 30 characters and all random,
|
6
6
|
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
-
|
7
|
+
Dummy::Application.config.secret_token = '61f244779bab3ceba188492a31fb02b0a975fb64b93e217c03966ef065f5f1aba3b145c165defe0f8256e45cc6c526a60c9780a506a16e730815a3f812b5f9e9'
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
|
-
|
3
|
+
Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
|
4
4
|
|
5
5
|
# Use the database for sessions instead of the cookie-based default,
|
6
6
|
# which shouldn't be used to store highly confidential information
|
7
7
|
# (create the session table with "rails generate session_migration")
|
8
|
-
#
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
7
|
ActiveSupport.on_load(:action_controller) do
|
8
|
-
wrap_parameters format
|
8
|
+
wrap_parameters :format => [:json]
|
9
9
|
end
|
10
10
|
|
11
11
|
# Disable root element in JSON by default.
|
data/spec/ratchetio_spec.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'logger'
|
1
2
|
require 'socket'
|
2
3
|
require 'spec_helper'
|
3
4
|
|
@@ -20,12 +21,12 @@ describe Ratchetio do
|
|
20
21
|
let(:logger_mock) { double("Rails.logger").as_null_object }
|
21
22
|
|
22
23
|
it 'should report exceptions without person or request data' do
|
23
|
-
logger_mock.should_receive(:info).with('[Ratchet.io]
|
24
|
+
logger_mock.should_receive(:info).with('[Ratchet.io] Success')
|
24
25
|
Ratchetio.report_exception(@exception)
|
25
26
|
end
|
26
27
|
|
27
28
|
it 'should not report anything when disabled' do
|
28
|
-
logger_mock.should_not_receive(:info).with('[Ratchet.io]
|
29
|
+
logger_mock.should_not_receive(:info).with('[Ratchet.io] Success')
|
29
30
|
Ratchetio.configure do |config|
|
30
31
|
config.enabled = false
|
31
32
|
end
|
@@ -38,7 +39,7 @@ describe Ratchetio do
|
|
38
39
|
end
|
39
40
|
|
40
41
|
it 'should report exceptions with request and person data' do
|
41
|
-
logger_mock.should_receive(:info).with('[Ratchet.io]
|
42
|
+
logger_mock.should_receive(:info).with('[Ratchet.io] Success')
|
42
43
|
request_data = {
|
43
44
|
:params => { :foo => "bar" },
|
44
45
|
:url => 'http://localhost/',
|
@@ -85,12 +86,12 @@ describe Ratchetio do
|
|
85
86
|
let(:logger_mock) { double("Rails.logger").as_null_object }
|
86
87
|
|
87
88
|
it 'should report simple messages' do
|
88
|
-
logger_mock.should_receive(:info).with('[Ratchet.io]
|
89
|
+
logger_mock.should_receive(:info).with('[Ratchet.io] Success')
|
89
90
|
Ratchetio.report_message("Test message")
|
90
91
|
end
|
91
92
|
|
92
93
|
it 'should not report anything when disabled' do
|
93
|
-
logger_mock.should_not_receive(:info).with('[Ratchet.io]
|
94
|
+
logger_mock.should_not_receive(:info).with('[Ratchet.io] Success')
|
94
95
|
Ratchetio.configure do |config|
|
95
96
|
config.enabled = false
|
96
97
|
end
|
@@ -103,7 +104,7 @@ describe Ratchetio do
|
|
103
104
|
end
|
104
105
|
|
105
106
|
it 'should report messages with extra data' do
|
106
|
-
logger_mock.should_receive(:info).with('[Ratchet.io]
|
107
|
+
logger_mock.should_receive(:info).with('[Ratchet.io] Success')
|
107
108
|
Ratchetio.report_message("Test message with extra data", 'debug', :foo => "bar",
|
108
109
|
:hash => { :a => 123, :b => "xyz" })
|
109
110
|
end
|
@@ -179,20 +180,44 @@ describe Ratchetio do
|
|
179
180
|
frames.should be_a_kind_of(Array)
|
180
181
|
frames.each do |frame|
|
181
182
|
frame[:filename].should be_a_kind_of(String)
|
182
|
-
frame[:method].should be_a_kind_of(String)
|
183
183
|
frame[:lineno].should be_a_kind_of(Fixnum)
|
184
|
+
if frame[:method]
|
185
|
+
frame[:method].should be_a_kind_of(String)
|
186
|
+
end
|
184
187
|
end
|
185
188
|
|
186
|
-
|
187
|
-
|
189
|
+
# should be NameError, but can be NoMethodError sometimes on rubinius 1.8
|
190
|
+
# http://yehudakatz.com/2010/01/02/the-craziest-fing-bug-ive-ever-seen/
|
191
|
+
trace[:exception][:class].should match(/NameError|NoMethodError/)
|
192
|
+
trace[:exception][:message].should match(/^undefined local variable or method `bar'/)
|
188
193
|
end
|
189
194
|
end
|
190
195
|
|
191
196
|
context 'logger' do
|
192
|
-
|
197
|
+
before(:each) do
|
198
|
+
reset_configuration
|
199
|
+
end
|
200
|
+
|
201
|
+
it 'should have use the Rails logger when configured to do so' do
|
193
202
|
configure
|
194
203
|
Ratchetio.send(:logger).should == ::Rails.logger
|
195
204
|
end
|
205
|
+
|
206
|
+
it 'should use the default_logger when no logger is set' do
|
207
|
+
logger = Logger.new(STDERR)
|
208
|
+
Ratchetio.configure do |config|
|
209
|
+
config.default_logger = lambda { logger }
|
210
|
+
end
|
211
|
+
Ratchetio.send(:logger).should == logger
|
212
|
+
end
|
213
|
+
|
214
|
+
it 'should have a default default_logger' do
|
215
|
+
Ratchetio.send(:logger).should_not be_nil
|
216
|
+
end
|
217
|
+
|
218
|
+
after(:each) do
|
219
|
+
reset_configuration
|
220
|
+
end
|
196
221
|
end
|
197
222
|
|
198
223
|
context 'build_payload' do
|
@@ -248,7 +273,7 @@ describe Ratchetio do
|
|
248
273
|
def configure
|
249
274
|
Ratchetio.configure do |config|
|
250
275
|
# special test access token
|
251
|
-
config.access_token =
|
276
|
+
config.access_token = test_access_token
|
252
277
|
config.logger = ::Rails.logger
|
253
278
|
config.environment = ::Rails.env
|
254
279
|
config.root = ::Rails.root
|
@@ -256,4 +281,31 @@ describe Ratchetio do
|
|
256
281
|
end
|
257
282
|
end
|
258
283
|
|
284
|
+
def test_access_token
|
285
|
+
'aaaabbbbccccddddeeeeffff00001111'
|
286
|
+
end
|
287
|
+
|
288
|
+
def reset_configuration
|
289
|
+
Ratchetio.configure do |config|
|
290
|
+
config.access_token = nil
|
291
|
+
config.branch = nil
|
292
|
+
config.default_logger = lambda { Logger.new(STDERR) }
|
293
|
+
config.enabled = true
|
294
|
+
config.endpoint = Ratchetio::Configuration::DEFAULT_ENDPOINT
|
295
|
+
config.environment = nil
|
296
|
+
config.exception_level_filters = {
|
297
|
+
'ActiveRecord::RecordNotFound' => 'warning',
|
298
|
+
'AbstractController::ActionNotFound' => 'warning',
|
299
|
+
'ActionController::RoutingError' => 'warning'
|
300
|
+
}
|
301
|
+
config.framework = 'Plain'
|
302
|
+
config.logger = nil
|
303
|
+
config.person_method = 'current_user'
|
304
|
+
config.person_id_method = 'id'
|
305
|
+
config.person_username_method = 'username'
|
306
|
+
config.person_email_method = 'email'
|
307
|
+
config.root = nil
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
259
311
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,16 +1,11 @@
|
|
1
|
-
#require 'rspec'
|
2
|
-
#require 'ratchetio'
|
3
|
-
|
4
1
|
require 'rubygems'
|
5
2
|
|
6
3
|
ENV['RAILS_ENV'] ||= 'test'
|
7
4
|
require File.expand_path('../dummyapp/config/environment', __FILE__)
|
8
5
|
require 'rspec/rails'
|
9
|
-
require 'factory_girl_rails'
|
10
6
|
require 'database_cleaner'
|
11
7
|
|
12
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f|
|
13
|
-
FactoryGirl.definition_file_paths = [ File.join(Rails.root, '../factories') ]
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
14
9
|
|
15
10
|
RSpec.configure do |config|
|
16
11
|
config.color_enabled = true
|
@@ -18,9 +13,8 @@ RSpec.configure do |config|
|
|
18
13
|
|
19
14
|
config.use_transactional_fixtures = true
|
20
15
|
config.order = "random"
|
21
|
-
|
16
|
+
|
22
17
|
config.before(:suite) do
|
23
|
-
FactoryGirl.reload
|
24
18
|
DatabaseCleaner.strategy = :truncation
|
25
19
|
end
|
26
20
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ratchetio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: rspec-rails
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '2.12'
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '2.12'
|
30
14
|
- !ruby/object:Gem::Dependency
|
31
15
|
name: rails
|
32
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -60,29 +44,13 @@ dependencies:
|
|
60
44
|
- !ruby/object:Gem::Version
|
61
45
|
version: '0'
|
62
46
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
type: :development
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: jquery-rails
|
47
|
+
name: devise
|
80
48
|
requirement: !ruby/object:Gem::Requirement
|
81
49
|
none: false
|
82
50
|
requirements:
|
83
51
|
- - ! '>='
|
84
52
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
53
|
+
version: 2.1.2
|
86
54
|
type: :development
|
87
55
|
prerelease: false
|
88
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -90,23 +58,23 @@ dependencies:
|
|
90
58
|
requirements:
|
91
59
|
- - ! '>='
|
92
60
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
61
|
+
version: 2.1.2
|
94
62
|
- !ruby/object:Gem::Dependency
|
95
63
|
name: rspec-rails
|
96
64
|
requirement: !ruby/object:Gem::Requirement
|
97
65
|
none: false
|
98
66
|
requirements:
|
99
|
-
- -
|
67
|
+
- - ~>
|
100
68
|
- !ruby/object:Gem::Version
|
101
|
-
version: 2.
|
69
|
+
version: 2.12.0
|
102
70
|
type: :development
|
103
71
|
prerelease: false
|
104
72
|
version_requirements: !ruby/object:Gem::Requirement
|
105
73
|
none: false
|
106
74
|
requirements:
|
107
|
-
- -
|
75
|
+
- - ~>
|
108
76
|
- !ruby/object:Gem::Version
|
109
|
-
version: 2.
|
77
|
+
version: 2.12.0
|
110
78
|
- !ruby/object:Gem::Dependency
|
111
79
|
name: database_cleaner
|
112
80
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,102 +91,6 @@ dependencies:
|
|
123
91
|
- - ! '>='
|
124
92
|
- !ruby/object:Gem::Version
|
125
93
|
version: 0.9.1
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: email_spec
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
|
-
requirements:
|
131
|
-
- - ! '>='
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: 1.4.0
|
134
|
-
type: :development
|
135
|
-
prerelease: false
|
136
|
-
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
|
-
requirements:
|
139
|
-
- - ! '>='
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: 1.4.0
|
142
|
-
- !ruby/object:Gem::Dependency
|
143
|
-
name: cucumber-rails
|
144
|
-
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
|
-
requirements:
|
147
|
-
- - ! '>='
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: 1.3.0
|
150
|
-
type: :development
|
151
|
-
prerelease: false
|
152
|
-
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
|
-
requirements:
|
155
|
-
- - ! '>='
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: 1.3.0
|
158
|
-
- !ruby/object:Gem::Dependency
|
159
|
-
name: launchy
|
160
|
-
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
|
-
requirements:
|
163
|
-
- - ! '>='
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: 2.1.2
|
166
|
-
type: :development
|
167
|
-
prerelease: false
|
168
|
-
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
|
-
requirements:
|
171
|
-
- - ! '>='
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: 2.1.2
|
174
|
-
- !ruby/object:Gem::Dependency
|
175
|
-
name: factory_girl_rails
|
176
|
-
requirement: !ruby/object:Gem::Requirement
|
177
|
-
none: false
|
178
|
-
requirements:
|
179
|
-
- - ! '>='
|
180
|
-
- !ruby/object:Gem::Version
|
181
|
-
version: 4.1.0
|
182
|
-
type: :development
|
183
|
-
prerelease: false
|
184
|
-
version_requirements: !ruby/object:Gem::Requirement
|
185
|
-
none: false
|
186
|
-
requirements:
|
187
|
-
- - ! '>='
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version: 4.1.0
|
190
|
-
- !ruby/object:Gem::Dependency
|
191
|
-
name: devise
|
192
|
-
requirement: !ruby/object:Gem::Requirement
|
193
|
-
none: false
|
194
|
-
requirements:
|
195
|
-
- - ! '>='
|
196
|
-
- !ruby/object:Gem::Version
|
197
|
-
version: 2.1.2
|
198
|
-
type: :development
|
199
|
-
prerelease: false
|
200
|
-
version_requirements: !ruby/object:Gem::Requirement
|
201
|
-
none: false
|
202
|
-
requirements:
|
203
|
-
- - ! '>='
|
204
|
-
- !ruby/object:Gem::Version
|
205
|
-
version: 2.1.2
|
206
|
-
- !ruby/object:Gem::Dependency
|
207
|
-
name: quiet_assets
|
208
|
-
requirement: !ruby/object:Gem::Requirement
|
209
|
-
none: false
|
210
|
-
requirements:
|
211
|
-
- - ! '>='
|
212
|
-
- !ruby/object:Gem::Version
|
213
|
-
version: 1.0.1
|
214
|
-
type: :development
|
215
|
-
prerelease: false
|
216
|
-
version_requirements: !ruby/object:Gem::Requirement
|
217
|
-
none: false
|
218
|
-
requirements:
|
219
|
-
- - ! '>='
|
220
|
-
- !ruby/object:Gem::Version
|
221
|
-
version: 1.0.1
|
222
94
|
description: Rails plugin to catch and send exceptions to Ratchet.io
|
223
95
|
email:
|
224
96
|
- brian@ratchet.io
|
@@ -227,11 +99,13 @@ extensions: []
|
|
227
99
|
extra_rdoc_files: []
|
228
100
|
files:
|
229
101
|
- .gitignore
|
102
|
+
- .travis.yml
|
230
103
|
- CHANGELOG.md
|
231
104
|
- Gemfile
|
232
105
|
- LICENSE
|
233
106
|
- README.md
|
234
107
|
- Rakefile
|
108
|
+
- THANKS
|
235
109
|
- lib/generators/ratchetio/ratchetio_generator.rb
|
236
110
|
- lib/generators/ratchetio/templates/initializer.rb
|
237
111
|
- lib/ratchetio.rb
|
@@ -245,19 +119,13 @@ files:
|
|
245
119
|
- ratchetio.gemspec
|
246
120
|
- spec/controllers/home_controller_spec.rb
|
247
121
|
- spec/dummyapp/.gitignore
|
248
|
-
- spec/dummyapp/Gemfile
|
249
|
-
- spec/dummyapp/README
|
250
|
-
- spec/dummyapp/README.textile
|
251
122
|
- spec/dummyapp/Rakefile
|
252
123
|
- spec/dummyapp/app/assets/javascripts/application.js
|
253
|
-
- spec/dummyapp/app/assets/javascripts/home.js.coffee
|
254
124
|
- spec/dummyapp/app/assets/stylesheets/application.css.scss
|
255
|
-
- spec/dummyapp/app/assets/stylesheets/home.css.scss
|
256
125
|
- spec/dummyapp/app/controllers/application_controller.rb
|
257
126
|
- spec/dummyapp/app/controllers/home_controller.rb
|
258
127
|
- spec/dummyapp/app/controllers/users_controller.rb
|
259
|
-
- spec/dummyapp/app/helpers
|
260
|
-
- spec/dummyapp/app/helpers/home_helper.rb
|
128
|
+
- spec/dummyapp/app/helpers/.gitkeep
|
261
129
|
- spec/dummyapp/app/mailers/.gitkeep
|
262
130
|
- spec/dummyapp/app/models/.gitkeep
|
263
131
|
- spec/dummyapp/app/models/user.rb
|
@@ -275,7 +143,6 @@ files:
|
|
275
143
|
- spec/dummyapp/config.ru
|
276
144
|
- spec/dummyapp/config/application.rb
|
277
145
|
- spec/dummyapp/config/boot.rb
|
278
|
-
- spec/dummyapp/config/cucumber.yml
|
279
146
|
- spec/dummyapp/config/database.yml
|
280
147
|
- spec/dummyapp/config/environment.rb
|
281
148
|
- spec/dummyapp/config/environments/development.rb
|
@@ -283,7 +150,6 @@ files:
|
|
283
150
|
- spec/dummyapp/config/environments/test.rb
|
284
151
|
- spec/dummyapp/config/initializers/backtrace_silencers.rb
|
285
152
|
- spec/dummyapp/config/initializers/devise.rb
|
286
|
-
- spec/dummyapp/config/initializers/generators.rb
|
287
153
|
- spec/dummyapp/config/initializers/inflections.rb
|
288
154
|
- spec/dummyapp/config/initializers/mime_types.rb
|
289
155
|
- spec/dummyapp/config/initializers/ratchetio.rb
|
@@ -298,19 +164,11 @@ files:
|
|
298
164
|
- spec/dummyapp/db/schema.rb
|
299
165
|
- spec/dummyapp/db/seeds.rb
|
300
166
|
- spec/dummyapp/lib/assets/.gitkeep
|
301
|
-
- spec/dummyapp/lib/tasks/.gitkeep
|
302
|
-
- spec/dummyapp/lib/tasks/cucumber.rake
|
303
167
|
- spec/dummyapp/public/404.html
|
304
168
|
- spec/dummyapp/public/422.html
|
305
169
|
- spec/dummyapp/public/500.html
|
306
170
|
- spec/dummyapp/public/favicon.ico
|
307
|
-
- spec/dummyapp/public/humans.txt
|
308
|
-
- spec/dummyapp/public/robots.txt
|
309
|
-
- spec/dummyapp/script/cucumber
|
310
171
|
- spec/dummyapp/script/rails
|
311
|
-
- spec/dummyapp/vendor/assets/javascripts/.gitkeep
|
312
|
-
- spec/dummyapp/vendor/assets/stylesheets/.gitkeep
|
313
|
-
- spec/dummyapp/vendor/plugins/.gitkeep
|
314
172
|
- spec/ratchetio_spec.rb
|
315
173
|
- spec/spec_helper.rb
|
316
174
|
- spec/support/devise.rb
|
@@ -341,19 +199,13 @@ summary: Reports exceptions to Ratchet.io
|
|
341
199
|
test_files:
|
342
200
|
- spec/controllers/home_controller_spec.rb
|
343
201
|
- spec/dummyapp/.gitignore
|
344
|
-
- spec/dummyapp/Gemfile
|
345
|
-
- spec/dummyapp/README
|
346
|
-
- spec/dummyapp/README.textile
|
347
202
|
- spec/dummyapp/Rakefile
|
348
203
|
- spec/dummyapp/app/assets/javascripts/application.js
|
349
|
-
- spec/dummyapp/app/assets/javascripts/home.js.coffee
|
350
204
|
- spec/dummyapp/app/assets/stylesheets/application.css.scss
|
351
|
-
- spec/dummyapp/app/assets/stylesheets/home.css.scss
|
352
205
|
- spec/dummyapp/app/controllers/application_controller.rb
|
353
206
|
- spec/dummyapp/app/controllers/home_controller.rb
|
354
207
|
- spec/dummyapp/app/controllers/users_controller.rb
|
355
|
-
- spec/dummyapp/app/helpers
|
356
|
-
- spec/dummyapp/app/helpers/home_helper.rb
|
208
|
+
- spec/dummyapp/app/helpers/.gitkeep
|
357
209
|
- spec/dummyapp/app/mailers/.gitkeep
|
358
210
|
- spec/dummyapp/app/models/.gitkeep
|
359
211
|
- spec/dummyapp/app/models/user.rb
|
@@ -371,7 +223,6 @@ test_files:
|
|
371
223
|
- spec/dummyapp/config.ru
|
372
224
|
- spec/dummyapp/config/application.rb
|
373
225
|
- spec/dummyapp/config/boot.rb
|
374
|
-
- spec/dummyapp/config/cucumber.yml
|
375
226
|
- spec/dummyapp/config/database.yml
|
376
227
|
- spec/dummyapp/config/environment.rb
|
377
228
|
- spec/dummyapp/config/environments/development.rb
|
@@ -379,7 +230,6 @@ test_files:
|
|
379
230
|
- spec/dummyapp/config/environments/test.rb
|
380
231
|
- spec/dummyapp/config/initializers/backtrace_silencers.rb
|
381
232
|
- spec/dummyapp/config/initializers/devise.rb
|
382
|
-
- spec/dummyapp/config/initializers/generators.rb
|
383
233
|
- spec/dummyapp/config/initializers/inflections.rb
|
384
234
|
- spec/dummyapp/config/initializers/mime_types.rb
|
385
235
|
- spec/dummyapp/config/initializers/ratchetio.rb
|
@@ -394,19 +244,12 @@ test_files:
|
|
394
244
|
- spec/dummyapp/db/schema.rb
|
395
245
|
- spec/dummyapp/db/seeds.rb
|
396
246
|
- spec/dummyapp/lib/assets/.gitkeep
|
397
|
-
- spec/dummyapp/lib/tasks/.gitkeep
|
398
|
-
- spec/dummyapp/lib/tasks/cucumber.rake
|
399
247
|
- spec/dummyapp/public/404.html
|
400
248
|
- spec/dummyapp/public/422.html
|
401
249
|
- spec/dummyapp/public/500.html
|
402
250
|
- spec/dummyapp/public/favicon.ico
|
403
|
-
- spec/dummyapp/public/humans.txt
|
404
|
-
- spec/dummyapp/public/robots.txt
|
405
|
-
- spec/dummyapp/script/cucumber
|
406
251
|
- spec/dummyapp/script/rails
|
407
|
-
- spec/dummyapp/vendor/assets/javascripts/.gitkeep
|
408
|
-
- spec/dummyapp/vendor/assets/stylesheets/.gitkeep
|
409
|
-
- spec/dummyapp/vendor/plugins/.gitkeep
|
410
252
|
- spec/ratchetio_spec.rb
|
411
253
|
- spec/spec_helper.rb
|
412
254
|
- spec/support/devise.rb
|
255
|
+
has_rdoc:
|
data/spec/dummyapp/Gemfile
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
gem 'rails', '3.2.9'
|
3
|
-
gem 'sqlite3'
|
4
|
-
group :assets do
|
5
|
-
gem 'sass-rails', '~> 3.2.3'
|
6
|
-
gem 'coffee-rails', '~> 3.2.1'
|
7
|
-
gem 'uglifier', '>= 1.0.3'
|
8
|
-
end
|
9
|
-
gem 'jquery-rails'
|
10
|
-
gem "rspec-rails", ">= 2.11.4", :group => [:development, :test]
|
11
|
-
gem "database_cleaner", ">= 0.9.1", :group => :test
|
12
|
-
gem "email_spec", ">= 1.4.0", :group => :test
|
13
|
-
gem "cucumber-rails", ">= 1.3.0", :group => :test, :require => false
|
14
|
-
gem "launchy", ">= 2.1.2", :group => :test
|
15
|
-
gem "capybara", ">= 1.1.3", :group => :test
|
16
|
-
gem "factory_girl_rails", ">= 4.1.0", :group => [:development, :test]
|
17
|
-
gem "devise", ">= 2.1.2"
|
18
|
-
gem "quiet_assets", ">= 1.0.1", :group => :development
|
19
|
-
gem "ratchetio", :path => "../.."
|
data/spec/dummyapp/README
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
Dummyapp
|
2
|
-
========================
|
3
|
-
|
4
|
-
This application was generated with the rails_apps_composer gem:
|
5
|
-
https://github.com/RailsApps/rails_apps_composer
|
6
|
-
provided by the RailsApps Project:
|
7
|
-
http://railsapps.github.com/
|
8
|
-
|
9
|
-
________________________
|
10
|
-
|
11
|
-
Recipes:
|
12
|
-
["controllers", "core", "email", "extras", "frontend", "gems", "git", "init", "models", "prelaunch", "railsapps", "readme", "routes", "saas", "setup", "testing", "views"]
|
13
|
-
|
14
|
-
Preferences:
|
15
|
-
{:git=>true, :railsapps=>"rails3-devise-rspec-cucumber", :database=>"sqlite", :unit_test=>"rspec", :integration=>"cucumber", :fixtures=>"factory_girl", :frontend=>"none", :email=>"gmail", :authentication=>"devise", :devise_modules=>"default", :authorization=>"none", :starter_app=>"users_app", :form_builder=>"none", :quiet_assets=>true, :dev_webserver=>"webrick", :templates=>"erb"}
|
16
|
-
|
17
|
-
________________________
|
18
|
-
|
19
|
-
License
|
@@ -1,80 +0,0 @@
|
|
1
|
-
h1. Dummyapp
|
2
|
-
|
3
|
-
This application was generated with the "rails_apps_composer":https://github.com/RailsApps/rails_apps_composer gem provided by the "RailsApps Project":http://railsapps.github.com/.
|
4
|
-
|
5
|
-
h2. Diagnostics
|
6
|
-
|
7
|
-
This application was built with recipes that are known to work together.
|
8
|
-
|
9
|
-
This application was built with preferences that are known to work together.
|
10
|
-
|
11
|
-
If the application doesn't work as expected, please "report an issue":https://github.com/RailsApps/rails_apps_composer/issues and include these diagnostics:
|
12
|
-
|
13
|
-
We'd also like to know if you've found combinations of recipes or preferences that do work together.
|
14
|
-
|
15
|
-
Recipes:
|
16
|
-
["controllers", "core", "email", "extras", "frontend", "gems", "git", "init", "models", "prelaunch", "railsapps", "readme", "routes", "saas", "setup", "testing", "views"]
|
17
|
-
|
18
|
-
Preferences:
|
19
|
-
{:git=>true, :railsapps=>"rails3-devise-rspec-cucumber", :database=>"sqlite", :unit_test=>"rspec", :integration=>"cucumber", :fixtures=>"factory_girl", :frontend=>"none", :email=>"gmail", :authentication=>"devise", :devise_modules=>"default", :authorization=>"none", :starter_app=>"users_app", :form_builder=>"none", :quiet_assets=>true, :dev_webserver=>"webrick", :templates=>"erb"}
|
20
|
-
|
21
|
-
h2. Ruby on Rails
|
22
|
-
|
23
|
-
This application requires:
|
24
|
-
|
25
|
-
* Ruby version 1.9.3
|
26
|
-
* Rails version 3.2.9
|
27
|
-
|
28
|
-
Learn more about "Installing Rails":http://railsapps.github.com/installing-rails.html.
|
29
|
-
|
30
|
-
h2. Database
|
31
|
-
|
32
|
-
This application uses SQLite with ActiveRecord.
|
33
|
-
|
34
|
-
h2. Development
|
35
|
-
|
36
|
-
* Template Engine: ERB
|
37
|
-
* Testing Framework: RSpec and Factory Girl and Cucumber
|
38
|
-
* Front-end Framework: None
|
39
|
-
* Form Builder: None
|
40
|
-
* Authentication: Devise
|
41
|
-
* Authorization: None
|
42
|
-
|
43
|
-
h2. Email
|
44
|
-
|
45
|
-
The application is configured to send email using a Gmail account.
|
46
|
-
|
47
|
-
h2. Getting Started
|
48
|
-
|
49
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
50
|
-
|
51
|
-
h2. Documentation and Support
|
52
|
-
|
53
|
-
This is the only documentation.
|
54
|
-
|
55
|
-
h4. Issues
|
56
|
-
|
57
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
58
|
-
|
59
|
-
h2. Similar Projects
|
60
|
-
|
61
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
62
|
-
|
63
|
-
h2. Contributing
|
64
|
-
|
65
|
-
If you make improvements to this application, please share with others.
|
66
|
-
|
67
|
-
* Fork the project on GitHub.
|
68
|
-
* Make your feature addition or bug fix.
|
69
|
-
* Commit with Git.
|
70
|
-
* Send the author a pull request.
|
71
|
-
|
72
|
-
If you add functionality to this application, create an alternative implementation, or build an application that is similar, please contact me and I'll add a note to the README so that others can find your work.
|
73
|
-
|
74
|
-
h2. Credits
|
75
|
-
|
76
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
77
|
-
|
78
|
-
h2. License
|
79
|
-
|
80
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
|
3
|
-
rerun_opts = rerun.to_s.strip.empty? ? "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'} features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
|
4
|
-
std_opts = "-r features/support/ -r features/step_definitions --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} --strict --tags ~@wip"
|
5
|
-
%>
|
6
|
-
default: <%= std_opts %> features
|
7
|
-
wip: --tags @wip:3 --wip features
|
8
|
-
rerun: <%= rerun_opts %> --format rerun --out rerun.txt --strict --tags ~@wip
|
@@ -1,65 +0,0 @@
|
|
1
|
-
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
|
2
|
-
# It is recommended to regenerate this file in the future when you upgrade to a
|
3
|
-
# newer version of cucumber-rails. Consider adding your own code to a new file
|
4
|
-
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
|
5
|
-
# files.
|
6
|
-
|
7
|
-
|
8
|
-
unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks
|
9
|
-
|
10
|
-
vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
|
11
|
-
$LOAD_PATH.unshift(File.dirname(vendored_cucumber_bin) + '/../lib') unless vendored_cucumber_bin.nil?
|
12
|
-
|
13
|
-
begin
|
14
|
-
require 'cucumber/rake/task'
|
15
|
-
|
16
|
-
namespace :cucumber do
|
17
|
-
Cucumber::Rake::Task.new({:ok => 'db:test:prepare'}, 'Run features that should pass') do |t|
|
18
|
-
t.binary = vendored_cucumber_bin # If nil, the gem's binary is used.
|
19
|
-
t.fork = true # You may get faster startup if you set this to false
|
20
|
-
t.profile = 'default'
|
21
|
-
end
|
22
|
-
|
23
|
-
Cucumber::Rake::Task.new({:wip => 'db:test:prepare'}, 'Run features that are being worked on') do |t|
|
24
|
-
t.binary = vendored_cucumber_bin
|
25
|
-
t.fork = true # You may get faster startup if you set this to false
|
26
|
-
t.profile = 'wip'
|
27
|
-
end
|
28
|
-
|
29
|
-
Cucumber::Rake::Task.new({:rerun => 'db:test:prepare'}, 'Record failing features and run only them if any exist') do |t|
|
30
|
-
t.binary = vendored_cucumber_bin
|
31
|
-
t.fork = true # You may get faster startup if you set this to false
|
32
|
-
t.profile = 'rerun'
|
33
|
-
end
|
34
|
-
|
35
|
-
desc 'Run all features'
|
36
|
-
task :all => [:ok, :wip]
|
37
|
-
|
38
|
-
task :statsetup do
|
39
|
-
require 'rails/code_statistics'
|
40
|
-
::STATS_DIRECTORIES << %w(Cucumber\ features features) if File.exist?('features')
|
41
|
-
::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features')
|
42
|
-
end
|
43
|
-
end
|
44
|
-
desc 'Alias for cucumber:ok'
|
45
|
-
task :cucumber => 'cucumber:ok'
|
46
|
-
|
47
|
-
task :default => :cucumber
|
48
|
-
|
49
|
-
task :features => :cucumber do
|
50
|
-
STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***"
|
51
|
-
end
|
52
|
-
|
53
|
-
# In case we don't have ActiveRecord, append a no-op task that we can depend upon.
|
54
|
-
task 'db:test:prepare' do
|
55
|
-
end
|
56
|
-
|
57
|
-
task :stats => 'cucumber:statsetup'
|
58
|
-
rescue LoadError
|
59
|
-
desc 'cucumber rake task not available (cucumber not installed)'
|
60
|
-
task :cucumber do
|
61
|
-
abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
/* the humans responsible & colophon */
|
2
|
-
/* humanstxt.org */
|
3
|
-
|
4
|
-
|
5
|
-
/* TEAM */
|
6
|
-
<your title>: <your name>
|
7
|
-
Site:
|
8
|
-
Twitter:
|
9
|
-
Location:
|
10
|
-
|
11
|
-
/* THANKS */
|
12
|
-
Daniel Kehoe (@rails_apps) for the RailsApps project
|
13
|
-
|
14
|
-
/* SITE */
|
15
|
-
Standards: HTML5, CSS3
|
16
|
-
Components: jQuery
|
17
|
-
Software: Ruby on Rails
|
18
|
-
|
19
|
-
/* GENERATED BY */
|
20
|
-
RailsApps application template: http://railsapps.github.com/
|
@@ -1,10 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
vendored_cucumber_bin = Dir["#{File.dirname(__FILE__)}/../vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
|
4
|
-
if vendored_cucumber_bin
|
5
|
-
load File.expand_path(vendored_cucumber_bin)
|
6
|
-
else
|
7
|
-
require 'rubygems' unless ENV['NO_RUBYGEMS']
|
8
|
-
require 'cucumber'
|
9
|
-
load Cucumber::BINARY
|
10
|
-
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|