eventbus 0.0.20 → 0.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. metadata +25 -122
  2. data/admin/Gemfile +0 -50
  3. data/admin/Gemfile.lock +0 -141
  4. data/admin/Rakefile +0 -7
  5. data/admin/app/assets/images/rails.png +0 -0
  6. data/admin/app/assets/javascripts/application.js +0 -15
  7. data/admin/app/assets/javascripts/applications.js.coffee +0 -3
  8. data/admin/app/assets/javascripts/message_routes.js.coffee +0 -3
  9. data/admin/app/assets/javascripts/message_types.js.coffee +0 -3
  10. data/admin/app/assets/javascripts/messages.js.coffee +0 -3
  11. data/admin/app/assets/stylesheets/application.css +0 -13
  12. data/admin/app/assets/stylesheets/applications.css.scss +0 -3
  13. data/admin/app/assets/stylesheets/global.css.scss +0 -72
  14. data/admin/app/assets/stylesheets/message_routes.css.scss +0 -3
  15. data/admin/app/assets/stylesheets/message_types.css.scss +0 -3
  16. data/admin/app/assets/stylesheets/messages.css.scss +0 -30
  17. data/admin/app/assets/stylesheets/scaffolds.css.scss +0 -56
  18. data/admin/app/controllers/application_controller.rb +0 -3
  19. data/admin/app/controllers/applications_controller.rb +0 -83
  20. data/admin/app/controllers/message_routes_controller.rb +0 -85
  21. data/admin/app/controllers/message_types_controller.rb +0 -83
  22. data/admin/app/controllers/messages_controller.rb +0 -75
  23. data/admin/app/helpers/application_helper.rb +0 -2
  24. data/admin/app/helpers/applications_helper.rb +0 -2
  25. data/admin/app/helpers/message_routes_helper.rb +0 -2
  26. data/admin/app/helpers/message_types_helper.rb +0 -2
  27. data/admin/app/helpers/messages_helper.rb +0 -2
  28. data/admin/app/models/application.rb +0 -7
  29. data/admin/app/models/message.rb +0 -4
  30. data/admin/app/models/message_route.rb +0 -5
  31. data/admin/app/models/message_type.rb +0 -7
  32. data/admin/app/views/applications/_form.html.haml +0 -27
  33. data/admin/app/views/applications/edit.html.haml +0 -5
  34. data/admin/app/views/applications/index.html.haml +0 -28
  35. data/admin/app/views/applications/new.html.haml +0 -3
  36. data/admin/app/views/applications/show.html.haml +0 -16
  37. data/admin/app/views/layouts/application.html.haml +0 -24
  38. data/admin/app/views/message_routes/_form.html.haml +0 -31
  39. data/admin/app/views/message_routes/edit.html.haml +0 -5
  40. data/admin/app/views/message_routes/index.html.haml +0 -28
  41. data/admin/app/views/message_routes/new.html.haml +0 -3
  42. data/admin/app/views/message_routes/show.html.haml +0 -16
  43. data/admin/app/views/message_types/_form.html.haml +0 -29
  44. data/admin/app/views/message_types/edit.html.haml +0 -5
  45. data/admin/app/views/message_types/index.html.haml +0 -28
  46. data/admin/app/views/message_types/new.html.haml +0 -5
  47. data/admin/app/views/message_types/show.html.haml +0 -17
  48. data/admin/app/views/messages/index.html.haml +0 -48
  49. data/admin/app/views/messages/show.html.haml +0 -45
  50. data/admin/config/application.rb +0 -64
  51. data/admin/config/boot.rb +0 -6
  52. data/admin/config/database.yml +0 -29
  53. data/admin/config/environment.rb +0 -5
  54. data/admin/config/environments/development.rb +0 -37
  55. data/admin/config/environments/production.rb +0 -72
  56. data/admin/config/environments/test.rb +0 -37
  57. data/admin/config/initializers/backtrace_silencers.rb +0 -7
  58. data/admin/config/initializers/inflections.rb +0 -15
  59. data/admin/config/initializers/mime_types.rb +0 -5
  60. data/admin/config/initializers/secret_token.rb +0 -7
  61. data/admin/config/initializers/session_store.rb +0 -8
  62. data/admin/config/initializers/wrap_parameters.rb +0 -14
  63. data/admin/config/locales/en.yml +0 -5
  64. data/admin/config/routes.rb +0 -69
  65. data/admin/config.ru +0 -4
  66. data/admin/db/development.sqlite3-journal +0 -0
  67. data/admin/db/migrate/20120218124300_create_messages.rb +0 -16
  68. data/admin/db/migrate/20120219021535_create_applications.rb +0 -11
  69. data/admin/db/migrate/20120219021806_create_message_types.rb +0 -13
  70. data/admin/db/migrate/20120219021940_create_message_routes.rb +0 -13
  71. data/admin/db/migrate/20120411001040_add_app_id_key_msg_type_id_to_messages.rb +0 -7
  72. data/admin/db/migrate/20120411001823_rename_message_type_to_message_type_name_in_messages.rb +0 -5
  73. data/admin/db/migrate/20120413024953_add_message_guid_to_messages.rb +0 -5
  74. data/admin/db/migrate/20120523112257_add_match_all_errors_to_routes.rb +0 -5
  75. data/admin/db/schema.rb +0 -68
  76. data/admin/db/seeds.rb +0 -7
  77. data/admin/doc/README_FOR_APP +0 -2
  78. data/admin/public/404.html +0 -26
  79. data/admin/public/422.html +0 -26
  80. data/admin/public/500.html +0 -25
  81. data/admin/public/favicon.ico +0 -0
  82. data/admin/public/robots.txt +0 -5
  83. data/admin/script/rails +0 -6
  84. data/admin/script/railsrunner +0 -3
  85. data/admin/test/fixtures/applications.yml +0 -14
  86. data/admin/test/fixtures/message_routes.yml +0 -11
  87. data/admin/test/fixtures/message_types.yml +0 -17
  88. data/admin/test/fixtures/messages.yml +0 -45
  89. data/admin/test/functional/applications_controller_test.rb +0 -49
  90. data/admin/test/functional/message_routes_controller_test.rb +0 -49
  91. data/admin/test/functional/message_types_controller_test.rb +0 -49
  92. data/admin/test/functional/messages_controller_test.rb +0 -49
  93. data/admin/test/performance/browsing_test.rb +0 -12
  94. data/admin/test/test_helper.rb +0 -13
  95. data/admin/test/unit/application_test.rb +0 -7
  96. data/admin/test/unit/helpers/applications_helper_test.rb +0 -4
  97. data/admin/test/unit/helpers/message_routes_helper_test.rb +0 -4
  98. data/admin/test/unit/helpers/message_types_helper_test.rb +0 -4
  99. data/admin/test/unit/helpers/messages_helper_test.rb +0 -4
  100. data/admin/test/unit/message_route_test.rb +0 -7
  101. data/admin/test/unit/message_test.rb +0 -7
  102. data/admin/test/unit/message_type_test.rb +0 -7
  103. data/bin/eventbus_dispatcher.rb +0 -118
  104. data/bin/eventbus_emailer.rb +0 -41
  105. data/lib/eventbus/connectors/amqp.rb +0 -70
  106. data/lib/eventbus/connectors/bunny.rb +0 -71
  107. data/lib/eventbus/connectors/stomp.rb +0 -77
@@ -1,48 +0,0 @@
1
- %h1 Message Dispatch Log
2
-
3
- %table
4
- %tr
5
- %th Time
6
- %th Application
7
- %th Type
8
- %th Status
9
- %th Error?
10
- %th Dispatched Queue
11
- %th
12
- %th
13
-
14
- = form_for(Message.new, :action => :index, :method => "get") do |filter|
15
- %tr
16
- %td
17
- = filter.submit "Filter"
18
- %td
19
- = filter.collection_select :application_key, Application.order(:name), :key, :name, :include_blank => true
20
- %td
21
- = filter.collection_select :message_type, MessageType.order(:name), :name, :name, :include_blank => true
22
- %td
23
- = filter.collection_select :status, MessageRoute.select(:incoming_status).order(:incoming_status), :incoming_status, :incoming_status, :include_blank => true
24
- %td
25
- = filter.check_box :is_error
26
- %td
27
- = filter.collection_select :dispatch_to, MessageRoute.select(:dispatch_to).order(:dispatch_to), :dispatch_to, :dispatch_to, :include_blank => true
28
- %td
29
- = filter.submit "Filter"
30
-
31
-
32
- = content_tag_for(:tr, @messages) do |message|
33
- %td
34
- = message.created_at
35
- %td
36
- = message.message_type_id.nil? ? message.application_key : link_to(message.message_type.application.name, message.message_type.application)
37
- %td
38
- = message.message_type_id.nil? ? message.message_type_name : link_to(message.message_type_name, message.message_type)
39
- %td
40
- = message.status
41
- %td
42
- = message.is_error
43
- %td
44
- = message.dispatch_to
45
- %td
46
- = link_to 'Details', message
47
- %td
48
- = link_to 'Filter', "?message[message_guid]=#{message.message_guid}"
@@ -1,45 +0,0 @@
1
- %p#notice
2
- = notice
3
-
4
- %fieldset.info
5
- %legend Message Header Information
6
- %p
7
- %b Message Time
8
- = @message.created_at
9
-
10
- %p
11
- %b Application
12
- = link_to(@message.message_type.application.name, @message.message_type.application) unless @message.message_type.nil?
13
- %p
14
- %b Application Key
15
- = @message.application_key
16
-
17
- %p
18
- %b Message Type
19
- = @message.message_type.nil? ? @message.message_type_name : link_to(@message.message_type_name, @message.message_type)
20
-
21
- %p
22
- %b Incoming Status
23
- = @message.status
24
-
25
- %p
26
- %b Error?
27
- = @message.is_error?
28
-
29
-
30
-
31
- %fieldset.resubmission
32
- %legend Message Resubmission
33
- = form_for(@message, {:url => { :action => 'resubmit_event'}}) do |f|
34
- = f.label :status, "Resubmit for Dispatching"
35
- = f.collection_select :status, MessageRoute.find_all_by_message_type_id(@message.message_type_id), :incoming_status, :incoming_status, :include_blank => "Resbumit as status"
36
- = f.submit "Re-Dispatch"
37
- %br
38
- = form_for(@message, {:url => { :action => 'send_queue' }}) do |f|
39
- = f.label :dispatch_to, "Send to a specific queue"
40
- = f.collection_select :dispatch_to, MessageRoute.find_all_by_message_type_id(@message.message_type_id), :dispatch_to, :dispatch_to, :include_blank => "Send to Queue"
41
- = f.submit "Send"
42
-
43
- #message_content
44
- %h3 Content:
45
- %pre= @message.content
@@ -1,64 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- if defined?(Bundler)
6
- # If you precompile assets before deploying to production, use this line
7
- Bundler.require(*Rails.groups(:assets => %w(development test)))
8
- # If you want your assets lazily compiled in production, use this line
9
- # Bundler.require(:default, :assets, Rails.env)
10
- end
11
-
12
- module EventbusPortal
13
- class Application < Rails::Application
14
- # Settings in config/environments/* take precedence over those specified here.
15
- # Application configuration should go into files in config/initializers
16
- # -- all .rb files in that directory are automatically loaded.
17
-
18
- # Custom directories with classes and modules you want to be autoloadable.
19
- # config.autoload_paths += %W(#{config.root}/extras)
20
-
21
- # Only load the plugins named here, in the order given (default is alphabetical).
22
- # :all can be used as a placeholder for all plugins not explicitly named.
23
- # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
24
-
25
- # Activate observers that should always be running.
26
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
27
-
28
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
29
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
30
- config.time_zone = 'Eastern Time (US & Canada)'
31
-
32
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
33
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
34
- # config.i18n.default_locale = :de
35
-
36
- # Configure the default encoding used in templates for Ruby 1.9.
37
- config.encoding = "utf-8"
38
-
39
- # Configure sensitive parameters which will be filtered from the log file.
40
- config.filter_parameters += [:password]
41
-
42
- # Use SQL instead of Active Record's schema dumper when creating the database.
43
- # This is necessary if your schema can't be completely dumped by the schema dumper,
44
- # like if you have constraints or database-specific column types
45
- # config.active_record.schema_format = :sql
46
-
47
- # Enforce whitelist mode for mass assignment.
48
- # This will create an empty whitelist of attributes available for mass-assignment for all models
49
- # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
50
- # parameters by using an attr_accessible or attr_protected declaration.
51
- # config.active_record.whitelist_attributes = true
52
-
53
- # Enable the asset pipeline
54
- config.assets.enabled = true
55
-
56
- # Version of your assets, change this if you want to expire all your assets
57
- config.assets.version = '1.0'
58
-
59
- config.active_record.table_name_prefix = "ebus_"
60
-
61
- config.threadsafe!
62
-
63
- end
64
- end
data/admin/config/boot.rb DELETED
@@ -1,6 +0,0 @@
1
- require 'rubygems'
2
-
3
- # Set up gems listed in the Gemfile.
4
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5
-
6
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
@@ -1,29 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
7
- adapter: postgresql
8
- database: eventbus_dev
9
- host: localhost
10
- port: 5432
11
- username: eventbus
12
- password: eventbus
13
- pool: 55
14
- timeout: 5000
15
-
16
- # Warning: The database defined as "test" will be erased and
17
- # re-generated from your development database when you run "rake".
18
- # Do not set this db to the same as development or production.
19
- test:
20
- adapter: sqlite3
21
- database: db/test.sqlite3
22
- pool: 55
23
- timeout: 5000
24
-
25
- production:
26
- adapter: sqlite3
27
- database: db/production.sqlite3
28
- pool: 55
29
- timeout: 5000
@@ -1,5 +0,0 @@
1
- # Load the rails application
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the rails application
5
- EventbusPortal::Application.initialize!
@@ -1,37 +0,0 @@
1
- EventbusPortal::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- # Log error messages when you accidentally call methods on nil.
10
- #config.whiny_nils = true
11
-
12
- # Show full error reports and disable caching
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Don't care if the mailer can't send
17
- config.action_mailer.raise_delivery_errors = false
18
-
19
- # Print deprecation notices to the Rails logger
20
- config.active_support.deprecation = :log
21
-
22
- # Only use best-standards-support built into browsers
23
- config.action_dispatch.best_standards_support = :builtin
24
-
25
- # Raise exception on mass assignment protection for ActiveRecord models
26
- config.active_record.mass_assignment_sanitizer = :strict
27
-
28
- # Log the query plan for queries taking more than this (works
29
- # with SQLite, MySQL, and PostgreSQL)
30
- config.active_record.auto_explain_threshold_in_seconds = 0.5
31
-
32
- # Do not compress assets
33
- config.assets.compress = false
34
-
35
- # Expands the lines which load the assets
36
- config.assets.debug = true
37
- end
@@ -1,72 +0,0 @@
1
- EventbusPortal::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # Code is not reloaded between requests
5
- config.cache_classes = true
6
-
7
- # Full error reports are disabled and caching is turned on
8
- config.consider_all_requests_local = false
9
- config.action_controller.perform_caching = true
10
-
11
- # Disable Rails's static asset server (Apache or nginx will already do this)
12
- #config.serve_static_assets = false
13
-
14
- # Eventbus is running under webrick by default -- serve static assets
15
- # If you want to use Apache, Nginx, etc, just set this to false.
16
- config.serve_static_assets = true
17
-
18
-
19
- # Compress JavaScripts and CSS
20
- config.assets.compress = true
21
-
22
- # Don't fallback to assets pipeline if a precompiled asset is missed
23
- config.assets.compile = false
24
-
25
- # Generate digests for assets URLs
26
- config.assets.digest = true
27
-
28
- # Defaults to Rails.root.join("public/assets")
29
- # config.assets.manifest = YOUR_PATH
30
-
31
- # Specifies the header that your server uses for sending files
32
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
33
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
34
-
35
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
36
- # config.force_ssl = true
37
-
38
- # See everything in the log (default is :info)
39
- # config.log_level = :debug
40
-
41
- # Prepend all log lines with the following tags
42
- # config.log_tags = [ :subdomain, :uuid ]
43
-
44
- # Use a different logger for distributed setups
45
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
46
-
47
- # Use a different cache store in production
48
- # config.cache_store = :mem_cache_store
49
-
50
- # Enable serving of images, stylesheets, and JavaScripts from an asset server
51
- # config.action_controller.asset_host = "http://assets.example.com"
52
-
53
- # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
54
- # config.assets.precompile += %w( search.js )
55
-
56
- # Disable delivery errors, bad email addresses will be ignored
57
- # config.action_mailer.raise_delivery_errors = false
58
-
59
- # Enable threaded mode
60
- # config.threadsafe!
61
-
62
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
63
- # the I18n.default_locale when a translation can not be found)
64
- config.i18n.fallbacks = true
65
-
66
- # Send deprecation notices to registered listeners
67
- config.active_support.deprecation = :notify
68
-
69
- # Log the query plan for queries taking more than this (works
70
- # with SQLite, MySQL, and PostgreSQL)
71
- # config.active_record.auto_explain_threshold_in_seconds = 0.5
72
- end
@@ -1,37 +0,0 @@
1
- EventbusPortal::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Configure static asset server for tests with Cache-Control for performance
11
- config.serve_static_assets = true
12
- config.static_cache_control = "public, max-age=3600"
13
-
14
- # Log error messages when you accidentally call methods on nil
15
- #config.whiny_nils = true
16
-
17
- # Show full error reports and disable caching
18
- config.consider_all_requests_local = true
19
- config.action_controller.perform_caching = false
20
-
21
- # Raise exceptions instead of rendering exception templates
22
- config.action_dispatch.show_exceptions = false
23
-
24
- # Disable request forgery protection in test environment
25
- config.action_controller.allow_forgery_protection = false
26
-
27
- # Tell Action Mailer not to deliver emails to the real world.
28
- # The :test delivery method accumulates sent emails in the
29
- # ActionMailer::Base.deliveries array.
30
- config.action_mailer.delivery_method = :test
31
-
32
- # Raise exception on mass assignment protection for ActiveRecord models
33
- config.active_record.mass_assignment_sanitizer = :strict
34
-
35
- # Print deprecation notices to the stderr
36
- config.active_support.deprecation = :stderr
37
- end
@@ -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,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
- EventbusPortal::Application.config.secret_token = 'e616cb9e5afb571eea5641b8e86768dd7ba76fed8704d28b5050eed11f0da2327cbe0800d1cf4fbf0b514664b5543fb856127e91b5650a61fbac96046fa62132'
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- EventbusPortal::Application.config.session_store :cookie_store, key: '_eventbus-portal_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
- # EventbusPortal::Application.config.session_store :active_record_store
@@ -1,14 +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
- wrap_parameters format: [:json]
9
- end
10
-
11
- # Disable root element in JSON by default.
12
- ActiveSupport.on_load(:active_record) do
13
- self.include_root_in_json = false
14
- end
@@ -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,69 +0,0 @@
1
- EventbusPortal::Application.routes.draw do
2
- resources :message_routes
3
- resources :message_types
4
- resources :applications
5
-
6
-
7
- # Message routes
8
- match 'messages/:id/resubmit_event' => 'messages#resubmit_event', :as => :resubmit_event
9
- match 'messages/:id/send_queue' => 'messages#send_queue', :as => :send_queue
10
- resources :messages
11
-
12
-
13
- # The priority is based upon order of creation:
14
- # first created -> highest priority.
15
-
16
- # Sample of regular route:
17
- # match 'products/:id' => 'catalog#view'
18
- # Keep in mind you can assign values other than :controller and :action
19
-
20
- # Sample of named route:
21
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
22
- # This route can be invoked with purchase_url(:id => product.id)
23
-
24
- # Sample resource route (maps HTTP verbs to controller actions automatically):
25
- # resources :products
26
-
27
- # Sample resource route with options:
28
- # resources :products do
29
- # member do
30
- # get 'short'
31
- # post 'toggle'
32
- # end
33
- #
34
- # collection do
35
- # get 'sold'
36
- # end
37
- # end
38
-
39
- # Sample resource route with sub-resources:
40
- # resources :products do
41
- # resources :comments, :sales
42
- # resource :seller
43
- # end
44
-
45
- # Sample resource route with more complex sub-resources
46
- # resources :products do
47
- # resources :comments
48
- # resources :sales do
49
- # get 'recent', :on => :collection
50
- # end
51
- # end
52
-
53
- # Sample resource route within a namespace:
54
- # namespace :admin do
55
- # # Directs /admin/products/* to Admin::ProductsController
56
- # # (app/controllers/admin/products_controller.rb)
57
- # resources :products
58
- # end
59
-
60
- # You can have the root of your site routed with "root"
61
- # just remember to delete public/index.html.
62
- root :to => 'applications#index'
63
-
64
- # See how all your routes lay out with "rake routes"
65
-
66
- # This is a legacy wild controller route that's not recommended for RESTful applications.
67
- # Note: This route will make all actions in every controller accessible via GET requests.
68
- # match ':controller(/:action(/:id))(.:format)'
69
- end
data/admin/config.ru DELETED
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run EventbusPortal::Application
Binary file
@@ -1,16 +0,0 @@
1
- class CreateMessages < ActiveRecord::Migration
2
- def change
3
- create_table :messages do |t|
4
- t.string :message_type
5
- t.string :status
6
- t.string :dispatch_to
7
- t.boolean :is_error
8
- t.text :content
9
-
10
- t.timestamps
11
- end
12
-
13
- add_index :messages, :message_type
14
- add_index :messages, :is_error
15
- end
16
- end
@@ -1,11 +0,0 @@
1
- class CreateApplications < ActiveRecord::Migration
2
- def change
3
- create_table :applications do |t|
4
- t.string :name
5
- t.string :key
6
- t.string :description
7
-
8
- t.timestamps
9
- end
10
- end
11
- end
@@ -1,13 +0,0 @@
1
- class CreateMessageTypes < ActiveRecord::Migration
2
- def change
3
- create_table :message_types do |t|
4
- t.integer :application_id
5
- t.string :name
6
- t.text :description
7
-
8
- t.timestamps
9
- end
10
-
11
- add_index :message_types, :application_id
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- class CreateMessageRoutes < ActiveRecord::Migration
2
- def change
3
- create_table :message_routes do |t|
4
- t.integer :message_type_id
5
- t.string :incoming_status
6
- t.string :dispatch_to
7
-
8
- t.timestamps
9
- end
10
-
11
- add_index :message_routes, [ :message_type_id, :incoming_status ], :name => :ebus_msgroutes_type_status
12
- end
13
- end
@@ -1,7 +0,0 @@
1
- class AddAppIdKeyMsgTypeIdToMessages < ActiveRecord::Migration
2
- def change
3
- add_column :messages, :application_id, :integer
4
- add_column :messages, :application_key, :string
5
- add_column :messages, :message_type_id, :integer
6
- end
7
- end
@@ -1,5 +0,0 @@
1
- class RenameMessageTypeToMessageTypeNameInMessages < ActiveRecord::Migration
2
- def change
3
- rename_column :messages, :message_type, :message_type_name
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class AddMessageGuidToMessages < ActiveRecord::Migration
2
- def change
3
- add_column :messages, :message_guid, :string
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class AddMatchAllErrorsToRoutes < ActiveRecord::Migration
2
- def change
3
- add_column :message_routes, :match_errors, :boolean
4
- end
5
- end
data/admin/db/schema.rb DELETED
@@ -1,68 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended to check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(:version => 20120523112257) do
15
-
16
- create_table "ebus_applications", :force => true do |t|
17
- t.string "name"
18
- t.string "key"
19
- t.string "description"
20
- t.datetime "created_at", :null => false
21
- t.datetime "updated_at", :null => false
22
- end
23
-
24
- create_table "ebus_message_routes", :force => true do |t|
25
- t.integer "message_type_id"
26
- t.string "incoming_status"
27
- t.string "dispatch_to"
28
- t.datetime "created_at", :null => false
29
- t.datetime "updated_at", :null => false
30
- t.boolean "match_errors"
31
- end
32
-
33
- add_index "ebus_message_routes", ["message_type_id", "incoming_status"], :name => "ebus_msgroutes_type_status"
34
-
35
- create_table "ebus_message_types", :force => true do |t|
36
- t.integer "application_id"
37
- t.string "name"
38
- t.text "description"
39
- t.datetime "created_at", :null => false
40
- t.datetime "updated_at", :null => false
41
- end
42
-
43
- add_index "ebus_message_types", ["application_id"], :name => "index_ebus_message_types_on_application_id"
44
-
45
- create_table "ebus_messages", :force => true do |t|
46
- t.string "message_type_name"
47
- t.string "status"
48
- t.string "dispatch_to"
49
- t.boolean "is_error"
50
- t.text "content"
51
- t.datetime "created_at", :null => false
52
- t.datetime "updated_at", :null => false
53
- t.integer "application_id"
54
- t.string "application_key"
55
- t.integer "message_type_id"
56
- t.string "message_guid"
57
- end
58
-
59
- add_index "ebus_messages", ["is_error"], :name => "index_ebus_messages_on_is_error"
60
- add_index "ebus_messages", ["message_type_name"], :name => "index_ebus_messages_on_message_type"
61
-
62
- create_table "ebus_schema_migrations", :id => false, :force => true do |t|
63
- t.string "version", :null => false
64
- end
65
-
66
- add_index "ebus_schema_migrations", ["version"], :name => "ebus_unique_schema_migrations", :unique => true
67
-
68
- end