wschenk-ws_api 0.0.0

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.
Files changed (69) hide show
  1. data/.document +5 -0
  2. data/.gitignore +7 -0
  3. data/LICENSE +20 -0
  4. data/README.rdoc +16 -0
  5. data/Rakefile +53 -0
  6. data/VERSION +1 -0
  7. data/example/Rakefile +10 -0
  8. data/example/app/controllers/application.rb +15 -0
  9. data/example/app/controllers/user_controller.rb +12 -0
  10. data/example/app/controllers/workstreamer_controller.rb +154 -0
  11. data/example/app/helpers/application_helper.rb +3 -0
  12. data/example/app/helpers/user_helper.rb +2 -0
  13. data/example/app/helpers/workstreamer_helper.rb +2 -0
  14. data/example/app/models/user.rb +2 -0
  15. data/example/app/views/layouts/application.rhtml +158 -0
  16. data/example/app/views/workstreamer/index.html.erb +1 -0
  17. data/example/app/views/workstreamer/info.html.erb +25 -0
  18. data/example/app/views/workstreamer/stream.html.erb +24 -0
  19. data/example/config/boot.rb +109 -0
  20. data/example/config/database.yml +22 -0
  21. data/example/config/environment.rb +77 -0
  22. data/example/config/environments/development.rb +17 -0
  23. data/example/config/environments/production.rb +24 -0
  24. data/example/config/environments/test.rb +22 -0
  25. data/example/config/initializers/inflections.rb +10 -0
  26. data/example/config/initializers/mime_types.rb +5 -0
  27. data/example/config/initializers/new_rails_defaults.rb +17 -0
  28. data/example/config/locales/en.yml +5 -0
  29. data/example/config/routes.rb +43 -0
  30. data/example/db/migrate/20090611183940_create_users.rb +15 -0
  31. data/example/db/schema.rb +23 -0
  32. data/example/doc/README_FOR_APP +5 -0
  33. data/example/public/404.html +30 -0
  34. data/example/public/422.html +30 -0
  35. data/example/public/500.html +33 -0
  36. data/example/public/dispatch.cgi +10 -0
  37. data/example/public/dispatch.fcgi +24 -0
  38. data/example/public/dispatch.rb +10 -0
  39. data/example/public/favicon.ico +0 -0
  40. data/example/public/images/rails.png +0 -0
  41. data/example/public/javascripts/application.js +2 -0
  42. data/example/public/javascripts/controls.js +963 -0
  43. data/example/public/javascripts/dragdrop.js +973 -0
  44. data/example/public/javascripts/effects.js +1128 -0
  45. data/example/public/javascripts/prototype.js +4320 -0
  46. data/example/public/robots.txt +5 -0
  47. data/example/script/about +4 -0
  48. data/example/script/console +3 -0
  49. data/example/script/dbconsole +3 -0
  50. data/example/script/destroy +3 -0
  51. data/example/script/generate +3 -0
  52. data/example/script/performance/benchmarker +3 -0
  53. data/example/script/performance/profiler +3 -0
  54. data/example/script/performance/request +3 -0
  55. data/example/script/plugin +3 -0
  56. data/example/script/process/inspector +3 -0
  57. data/example/script/process/reaper +3 -0
  58. data/example/script/process/spawner +3 -0
  59. data/example/script/runner +3 -0
  60. data/example/script/server +3 -0
  61. data/example/test/fixtures/users.yml +7 -0
  62. data/example/test/functional/user_controller_test.rb +8 -0
  63. data/example/test/functional/workstreamer_controller_test.rb +8 -0
  64. data/example/test/performance/browsing_test.rb +9 -0
  65. data/example/test/test_helper.rb +38 -0
  66. data/example/test/unit/user_test.rb +8 -0
  67. data/spec/spec_helper.rb +9 -0
  68. data/spec/ws_api_spec.rb +7 -0
  69. metadata +131 -0
@@ -0,0 +1,5 @@
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: /
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info"
4
+ require 'commands/about'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/console'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/dbconsole'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/destroy'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/generate'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/benchmarker'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/profiler'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/performance/request'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/plugin'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/inspector'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/reaper'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../../config/boot'
3
+ require 'commands/process/spawner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/runner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/server'
@@ -0,0 +1,7 @@
1
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
+
3
+ # one:
4
+ # column: value
5
+ #
6
+ # two:
7
+ # column: value
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class UserControllerTest < ActionController::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class WorkstreamerControllerTest < ActionController::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,9 @@
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
@@ -0,0 +1,38 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
+ require 'test_help'
4
+
5
+ class Test::Unit::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
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class UserTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec'
2
+
3
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
4
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
5
+ require 'ws_api'
6
+
7
+ Spec::Runner.configure do |config|
8
+
9
+ end
@@ -0,0 +1,7 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "WsApi" do
4
+ it "fails" do
5
+ fail "hey buddy, you should probably rename this file and start specing for real"
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,131 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wschenk-ws_api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Will Schenk
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-06-24 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: oauth
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ description:
26
+ email: wschenk@gmail.com
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - LICENSE
33
+ - README.rdoc
34
+ files:
35
+ - .document
36
+ - .gitignore
37
+ - LICENSE
38
+ - README.rdoc
39
+ - Rakefile
40
+ - VERSION
41
+ - example/Rakefile
42
+ - example/app/controllers/application.rb
43
+ - example/app/controllers/user_controller.rb
44
+ - example/app/controllers/workstreamer_controller.rb
45
+ - example/app/helpers/application_helper.rb
46
+ - example/app/helpers/user_helper.rb
47
+ - example/app/helpers/workstreamer_helper.rb
48
+ - example/app/models/user.rb
49
+ - example/app/views/layouts/application.rhtml
50
+ - example/app/views/workstreamer/index.html.erb
51
+ - example/app/views/workstreamer/info.html.erb
52
+ - example/app/views/workstreamer/stream.html.erb
53
+ - example/config/boot.rb
54
+ - example/config/database.yml
55
+ - example/config/environment.rb
56
+ - example/config/environments/development.rb
57
+ - example/config/environments/production.rb
58
+ - example/config/environments/test.rb
59
+ - example/config/initializers/inflections.rb
60
+ - example/config/initializers/mime_types.rb
61
+ - example/config/initializers/new_rails_defaults.rb
62
+ - example/config/locales/en.yml
63
+ - example/config/routes.rb
64
+ - example/db/migrate/20090611183940_create_users.rb
65
+ - example/db/schema.rb
66
+ - example/doc/README_FOR_APP
67
+ - example/public/404.html
68
+ - example/public/422.html
69
+ - example/public/500.html
70
+ - example/public/dispatch.cgi
71
+ - example/public/dispatch.fcgi
72
+ - example/public/dispatch.rb
73
+ - example/public/favicon.ico
74
+ - example/public/images/rails.png
75
+ - example/public/javascripts/application.js
76
+ - example/public/javascripts/controls.js
77
+ - example/public/javascripts/dragdrop.js
78
+ - example/public/javascripts/effects.js
79
+ - example/public/javascripts/prototype.js
80
+ - example/public/robots.txt
81
+ - example/script/about
82
+ - example/script/console
83
+ - example/script/dbconsole
84
+ - example/script/destroy
85
+ - example/script/generate
86
+ - example/script/performance/benchmarker
87
+ - example/script/performance/profiler
88
+ - example/script/performance/request
89
+ - example/script/plugin
90
+ - example/script/process/inspector
91
+ - example/script/process/reaper
92
+ - example/script/process/spawner
93
+ - example/script/runner
94
+ - example/script/server
95
+ - example/test/fixtures/users.yml
96
+ - example/test/functional/user_controller_test.rb
97
+ - example/test/functional/workstreamer_controller_test.rb
98
+ - example/test/performance/browsing_test.rb
99
+ - example/test/test_helper.rb
100
+ - example/test/unit/user_test.rb
101
+ - spec/spec_helper.rb
102
+ - spec/ws_api_spec.rb
103
+ has_rdoc: true
104
+ homepage: http://github.com/wschenk/ws_api
105
+ post_install_message:
106
+ rdoc_options:
107
+ - --charset=UTF-8
108
+ require_paths:
109
+ - lib
110
+ required_ruby_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: "0"
115
+ version:
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: "0"
121
+ version:
122
+ requirements: []
123
+
124
+ rubyforge_project: ws_api
125
+ rubygems_version: 1.2.0
126
+ signing_key:
127
+ specification_version: 2
128
+ summary: TODO
129
+ test_files:
130
+ - spec/spec_helper.rb
131
+ - spec/ws_api_spec.rb