djinn 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/README.rdoc +106 -9
  2. data/Rakefile +4 -2
  3. data/VERSION +1 -1
  4. data/djinn.gemspec +3 -62
  5. data/lib/djinn/base.rb +2 -0
  6. metadata +5 -64
  7. data/example/basic.rb +0 -27
  8. data/example/em.rb +0 -58
  9. data/example/event_machine_djinn.pid +0 -1
  10. data/example/rails/demo/Rakefile +0 -10
  11. data/example/rails/demo/app/controllers/application_controller.rb +0 -10
  12. data/example/rails/demo/app/controllers/books_controller.rb +0 -2
  13. data/example/rails/demo/app/helpers/application_helper.rb +0 -3
  14. data/example/rails/demo/app/helpers/books_helper.rb +0 -2
  15. data/example/rails/demo/app/models/book.rb +0 -7
  16. data/example/rails/demo/app/views/books/_book.html.erb +0 -3
  17. data/example/rails/demo/app/views/books/index.html.erb +0 -13
  18. data/example/rails/demo/app/views/layouts/application.html.erb +0 -5
  19. data/example/rails/demo/config/boot.rb +0 -110
  20. data/example/rails/demo/config/database.yml +0 -22
  21. data/example/rails/demo/config/environment.rb +0 -38
  22. data/example/rails/demo/config/environments/development.rb +0 -17
  23. data/example/rails/demo/config/environments/production.rb +0 -28
  24. data/example/rails/demo/config/environments/test.rb +0 -28
  25. data/example/rails/demo/config/initializers/backtrace_silencers.rb +0 -7
  26. data/example/rails/demo/config/initializers/cookie_verification_secret.rb +0 -7
  27. data/example/rails/demo/config/initializers/inflections.rb +0 -10
  28. data/example/rails/demo/config/initializers/mime_types.rb +0 -5
  29. data/example/rails/demo/config/initializers/new_rails_defaults.rb +0 -21
  30. data/example/rails/demo/config/initializers/session_store.rb +0 -15
  31. data/example/rails/demo/config/locales/en.yml +0 -5
  32. data/example/rails/demo/config/routes.rb +0 -6
  33. data/example/rails/demo/db/migrate/20100726151602_create_books.rb +0 -15
  34. data/example/rails/demo/db/schema.rb +0 -23
  35. data/example/rails/demo/db/seeds.rb +0 -15
  36. data/example/rails/demo/doc/README_FOR_APP +0 -2
  37. data/example/rails/demo/lib/book_djinn.rb +0 -25
  38. data/example/rails/demo/public/404.html +0 -30
  39. data/example/rails/demo/public/422.html +0 -30
  40. data/example/rails/demo/public/500.html +0 -30
  41. data/example/rails/demo/public/favicon.ico +0 -0
  42. data/example/rails/demo/public/images/rails.png +0 -0
  43. data/example/rails/demo/public/javascripts/application.js +0 -2
  44. data/example/rails/demo/public/javascripts/controls.js +0 -963
  45. data/example/rails/demo/public/javascripts/dragdrop.js +0 -973
  46. data/example/rails/demo/public/javascripts/effects.js +0 -1128
  47. data/example/rails/demo/public/javascripts/prototype.js +0 -4320
  48. data/example/rails/demo/public/robots.txt +0 -5
  49. data/example/rails/demo/script/about +0 -4
  50. data/example/rails/demo/script/book_djinn +0 -7
  51. data/example/rails/demo/script/console +0 -3
  52. data/example/rails/demo/script/dbconsole +0 -3
  53. data/example/rails/demo/script/destroy +0 -3
  54. data/example/rails/demo/script/generate +0 -3
  55. data/example/rails/demo/script/performance/benchmarker +0 -3
  56. data/example/rails/demo/script/performance/profiler +0 -3
  57. data/example/rails/demo/script/plugin +0 -3
  58. data/example/rails/demo/script/runner +0 -3
  59. data/example/rails/demo/script/server +0 -3
  60. data/example/rails/demo/test/fixtures/books.yml +0 -11
  61. data/example/rails/demo/test/functional/books_controller_test.rb +0 -8
  62. data/example/rails/demo/test/performance/browsing_test.rb +0 -9
  63. data/example/rails/demo/test/test_helper.rb +0 -38
  64. data/example/rails/demo/test/unit/book_test.rb +0 -8
  65. data/example/rails/demo/test/unit/helpers/books_helper_test.rb +0 -4
@@ -1,5 +0,0 @@
1
- # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
- #
3
- # To ban all spiders from the entire site uncomment the next two lines:
4
- # User-Agent: *
5
- # Disallow: /
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.expand_path('../../config/boot', __FILE__)
3
- $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info"
4
- require 'commands/about'
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- $:.unshift('/Users/macbookpro/source/craigp/djinn/lib')
4
- require File.join(File.dirname(__FILE__), '../lib/book_djinn')
5
-
6
- BookDjinn.go ARGV
7
-
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.expand_path('../../config/boot', __FILE__)
3
- require 'commands/console'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.expand_path('../../config/boot', __FILE__)
3
- require 'commands/dbconsole'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.expand_path('../../config/boot', __FILE__)
3
- require 'commands/destroy'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.expand_path('../../config/boot', __FILE__)
3
- require 'commands/generate'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.expand_path('../../../config/boot', __FILE__)
3
- require 'commands/performance/benchmarker'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.expand_path('../../../config/boot', __FILE__)
3
- require 'commands/performance/profiler'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.expand_path('../../config/boot', __FILE__)
3
- require 'commands/plugin'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.expand_path('../../config/boot', __FILE__)
3
- require 'commands/runner'
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require File.expand_path('../../config/boot', __FILE__)
3
- require 'commands/server'
@@ -1,11 +0,0 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
-
3
- # This model initially had no columns defined. If you add columns to the
4
- # model remove the '{}' from the fixture names and add the columns immediately
5
- # below each fixture, per the syntax in the comments below
6
- #
7
- one: {}
8
- # column: value
9
- #
10
- two: {}
11
- # column: value
@@ -1,8 +0,0 @@
1
- require 'test_helper'
2
-
3
- class BooksControllerTest < ActionController::TestCase
4
- # Replace this with your real tests.
5
- test "the truth" do
6
- assert true
7
- end
8
- end
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
- require 'performance_test_help'
3
-
4
- # Profiling results for each test method are written to tmp/performance.
5
- class BrowsingTest < ActionController::PerformanceTest
6
- def test_homepage
7
- get '/'
8
- end
9
- end
@@ -1,38 +0,0 @@
1
- ENV["RAILS_ENV"] = "test"
2
- require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
- require 'test_help'
4
-
5
- class ActiveSupport::TestCase
6
- # Transactional fixtures accelerate your tests by wrapping each test method
7
- # in a transaction that's rolled back on completion. This ensures that the
8
- # test database remains unchanged so your fixtures don't have to be reloaded
9
- # between every test method. Fewer database queries means faster tests.
10
- #
11
- # Read Mike Clark's excellent walkthrough at
12
- # http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
13
- #
14
- # Every Active Record database supports transactions except MyISAM tables
15
- # in MySQL. Turn off transactional fixtures in this case; however, if you
16
- # don't care one way or the other, switching from MyISAM to InnoDB tables
17
- # is recommended.
18
- #
19
- # The only drawback to using transactional fixtures is when you actually
20
- # need to test transactions. Since your test is bracketed by a transaction,
21
- # any transactions started in your code will be automatically rolled back.
22
- self.use_transactional_fixtures = true
23
-
24
- # Instantiated fixtures are slow, but give you @david where otherwise you
25
- # would need people(:david). If you don't want to migrate your existing
26
- # test cases which use the @david style and don't mind the speed hit (each
27
- # instantiated fixtures translates to a database query per test method),
28
- # then set this back to true.
29
- self.use_instantiated_fixtures = false
30
-
31
- # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
32
- #
33
- # Note: You'll currently still have to declare fixtures explicitly in integration tests
34
- # -- they do not yet inherit this setting
35
- fixtures :all
36
-
37
- # Add more helper methods to be used by all tests here...
38
- end
@@ -1,8 +0,0 @@
1
- require 'test_helper'
2
-
3
- class BookTest < ActiveSupport::TestCase
4
- # Replace this with your real tests.
5
- test "the truth" do
6
- assert true
7
- end
8
- end
@@ -1,4 +0,0 @@
1
- require 'test_helper'
2
-
3
- class BooksHelperTest < ActionView::TestCase
4
- end