remix-stash 0.9.6 → 1.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 (61) hide show
  1. data/AUTHORS +1 -0
  2. data/README.markdown +28 -15
  3. data/VERSION +1 -1
  4. data/init.rb +1 -0
  5. data/lib/remix/stash/auto_detection.rb +27 -0
  6. data/lib/remix/stash/cluster.rb +1 -0
  7. data/lib/remix/stash/protocol.rb +71 -6
  8. data/lib/remix/stash.rb +86 -25
  9. data/remix-stash.gemspec +74 -4
  10. data/spec/auto_detection_spec.rb +29 -0
  11. data/spec/spec.rb +18 -7
  12. data/spec/stash_spec.rb +134 -34
  13. data/spec/support/bar.rb +2 -0
  14. data/spec/support/rails/README +243 -0
  15. data/spec/support/rails/Rakefile +10 -0
  16. data/spec/support/rails/app/controllers/application_controller.rb +10 -0
  17. data/spec/support/rails/app/helpers/application_helper.rb +3 -0
  18. data/spec/support/rails/config/boot.rb +110 -0
  19. data/spec/support/rails/config/database.yml +22 -0
  20. data/spec/support/rails/config/environment.rb +41 -0
  21. data/spec/support/rails/config/environments/development.rb +17 -0
  22. data/spec/support/rails/config/environments/production.rb +28 -0
  23. data/spec/support/rails/config/environments/test.rb +28 -0
  24. data/spec/support/rails/config/initializers/backtrace_silencers.rb +7 -0
  25. data/spec/support/rails/config/initializers/inflections.rb +10 -0
  26. data/spec/support/rails/config/initializers/mime_types.rb +5 -0
  27. data/spec/support/rails/config/initializers/new_rails_defaults.rb +21 -0
  28. data/spec/support/rails/config/initializers/session_store.rb +15 -0
  29. data/spec/support/rails/config/locales/en.yml +5 -0
  30. data/spec/support/rails/config/routes.rb +43 -0
  31. data/spec/support/rails/db/seeds.rb +7 -0
  32. data/spec/support/rails/doc/README_FOR_APP +2 -0
  33. data/spec/support/rails/log/development.log +0 -0
  34. data/spec/support/rails/log/production.log +0 -0
  35. data/spec/support/rails/log/server.log +0 -0
  36. data/spec/support/rails/log/test.log +0 -0
  37. data/spec/support/rails/public/404.html +30 -0
  38. data/spec/support/rails/public/422.html +30 -0
  39. data/spec/support/rails/public/500.html +30 -0
  40. data/spec/support/rails/public/favicon.ico +0 -0
  41. data/spec/support/rails/public/images/rails.png +0 -0
  42. data/spec/support/rails/public/index.html +275 -0
  43. data/spec/support/rails/public/javascripts/application.js +2 -0
  44. data/spec/support/rails/public/javascripts/controls.js +963 -0
  45. data/spec/support/rails/public/javascripts/dragdrop.js +973 -0
  46. data/spec/support/rails/public/javascripts/effects.js +1128 -0
  47. data/spec/support/rails/public/javascripts/prototype.js +4320 -0
  48. data/spec/support/rails/public/robots.txt +5 -0
  49. data/spec/support/rails/script/about +4 -0
  50. data/spec/support/rails/script/console +3 -0
  51. data/spec/support/rails/script/dbconsole +3 -0
  52. data/spec/support/rails/script/destroy +3 -0
  53. data/spec/support/rails/script/generate +3 -0
  54. data/spec/support/rails/script/performance/benchmarker +3 -0
  55. data/spec/support/rails/script/performance/profiler +3 -0
  56. data/spec/support/rails/script/plugin +3 -0
  57. data/spec/support/rails/script/runner +3 -0
  58. data/spec/support/rails/script/server +3 -0
  59. data/spec/support/rails/test/performance/browsing_test.rb +9 -0
  60. data/spec/support/rails/test/test_helper.rb +38 -0
  61. metadata +72 -2
@@ -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.expand_path('../../config/boot', __FILE__)
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.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/console'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/dbconsole'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/destroy'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/generate'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../../config/boot', __FILE__)
3
+ require 'commands/performance/benchmarker'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../../config/boot', __FILE__)
3
+ require 'commands/performance/profiler'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/plugin'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/runner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/server'
@@ -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 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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remix-stash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Mitchell
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-22 00:00:00 -04:00
12
+ date: 2009-10-03 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -24,6 +24,7 @@ extra_rdoc_files:
24
24
  - README.markdown
25
25
  files:
26
26
  - .gitignore
27
+ - AUTHORS
27
28
  - LICENSE
28
29
  - README.markdown
29
30
  - Rakefile
@@ -36,14 +37,65 @@ files:
36
37
  - examples/scope.rb
37
38
  - examples/stash.rb
38
39
  - harness.rb
40
+ - init.rb
39
41
  - lib/remix/stash.rb
42
+ - lib/remix/stash/auto_detection.rb
40
43
  - lib/remix/stash/cluster.rb
41
44
  - lib/remix/stash/extension.rb
42
45
  - lib/remix/stash/protocol.rb
43
46
  - remix-stash.gemspec
47
+ - spec/auto_detection_spec.rb
44
48
  - spec/extension_spec.rb
45
49
  - spec/spec.rb
46
50
  - spec/stash_spec.rb
51
+ - spec/support/bar.rb
52
+ - spec/support/rails/README
53
+ - spec/support/rails/Rakefile
54
+ - spec/support/rails/app/controllers/application_controller.rb
55
+ - spec/support/rails/app/helpers/application_helper.rb
56
+ - spec/support/rails/config/boot.rb
57
+ - spec/support/rails/config/database.yml
58
+ - spec/support/rails/config/environment.rb
59
+ - spec/support/rails/config/environments/development.rb
60
+ - spec/support/rails/config/environments/production.rb
61
+ - spec/support/rails/config/environments/test.rb
62
+ - spec/support/rails/config/initializers/backtrace_silencers.rb
63
+ - spec/support/rails/config/initializers/inflections.rb
64
+ - spec/support/rails/config/initializers/mime_types.rb
65
+ - spec/support/rails/config/initializers/new_rails_defaults.rb
66
+ - spec/support/rails/config/initializers/session_store.rb
67
+ - spec/support/rails/config/locales/en.yml
68
+ - spec/support/rails/config/routes.rb
69
+ - spec/support/rails/db/seeds.rb
70
+ - spec/support/rails/doc/README_FOR_APP
71
+ - spec/support/rails/log/development.log
72
+ - spec/support/rails/log/production.log
73
+ - spec/support/rails/log/server.log
74
+ - spec/support/rails/log/test.log
75
+ - spec/support/rails/public/404.html
76
+ - spec/support/rails/public/422.html
77
+ - spec/support/rails/public/500.html
78
+ - spec/support/rails/public/favicon.ico
79
+ - spec/support/rails/public/images/rails.png
80
+ - spec/support/rails/public/index.html
81
+ - spec/support/rails/public/javascripts/application.js
82
+ - spec/support/rails/public/javascripts/controls.js
83
+ - spec/support/rails/public/javascripts/dragdrop.js
84
+ - spec/support/rails/public/javascripts/effects.js
85
+ - spec/support/rails/public/javascripts/prototype.js
86
+ - spec/support/rails/public/robots.txt
87
+ - spec/support/rails/script/about
88
+ - spec/support/rails/script/console
89
+ - spec/support/rails/script/dbconsole
90
+ - spec/support/rails/script/destroy
91
+ - spec/support/rails/script/generate
92
+ - spec/support/rails/script/performance/benchmarker
93
+ - spec/support/rails/script/performance/profiler
94
+ - spec/support/rails/script/plugin
95
+ - spec/support/rails/script/runner
96
+ - spec/support/rails/script/server
97
+ - spec/support/rails/test/performance/browsing_test.rb
98
+ - spec/support/rails/test/test_helper.rb
47
99
  has_rdoc: true
48
100
  homepage: http://github.com/binary42/remix-stash
49
101
  post_install_message:
@@ -71,9 +123,27 @@ signing_key:
71
123
  specification_version: 2
72
124
  summary: Remix your memcache
73
125
  test_files:
126
+ - spec/auto_detection_spec.rb
74
127
  - spec/extension_spec.rb
75
128
  - spec/spec.rb
76
129
  - spec/stash_spec.rb
130
+ - spec/support/bar.rb
131
+ - spec/support/rails/app/controllers/application_controller.rb
132
+ - spec/support/rails/app/helpers/application_helper.rb
133
+ - spec/support/rails/config/boot.rb
134
+ - spec/support/rails/config/environment.rb
135
+ - spec/support/rails/config/environments/development.rb
136
+ - spec/support/rails/config/environments/production.rb
137
+ - spec/support/rails/config/environments/test.rb
138
+ - spec/support/rails/config/initializers/backtrace_silencers.rb
139
+ - spec/support/rails/config/initializers/inflections.rb
140
+ - spec/support/rails/config/initializers/mime_types.rb
141
+ - spec/support/rails/config/initializers/new_rails_defaults.rb
142
+ - spec/support/rails/config/initializers/session_store.rb
143
+ - spec/support/rails/config/routes.rb
144
+ - spec/support/rails/db/seeds.rb
145
+ - spec/support/rails/test/performance/browsing_test.rb
146
+ - spec/support/rails/test/test_helper.rb
77
147
  - examples/eval.rb
78
148
  - examples/gate.rb
79
149
  - examples/getset.rb