remix-stash 0.9.6 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +1 -0
- data/README.markdown +28 -15
- data/VERSION +1 -1
- data/init.rb +1 -0
- data/lib/remix/stash/auto_detection.rb +27 -0
- data/lib/remix/stash/cluster.rb +1 -0
- data/lib/remix/stash/protocol.rb +71 -6
- data/lib/remix/stash.rb +86 -25
- data/remix-stash.gemspec +74 -4
- data/spec/auto_detection_spec.rb +29 -0
- data/spec/spec.rb +18 -7
- data/spec/stash_spec.rb +134 -34
- data/spec/support/bar.rb +2 -0
- data/spec/support/rails/README +243 -0
- data/spec/support/rails/Rakefile +10 -0
- data/spec/support/rails/app/controllers/application_controller.rb +10 -0
- data/spec/support/rails/app/helpers/application_helper.rb +3 -0
- data/spec/support/rails/config/boot.rb +110 -0
- data/spec/support/rails/config/database.yml +22 -0
- data/spec/support/rails/config/environment.rb +41 -0
- data/spec/support/rails/config/environments/development.rb +17 -0
- data/spec/support/rails/config/environments/production.rb +28 -0
- data/spec/support/rails/config/environments/test.rb +28 -0
- data/spec/support/rails/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/support/rails/config/initializers/inflections.rb +10 -0
- data/spec/support/rails/config/initializers/mime_types.rb +5 -0
- data/spec/support/rails/config/initializers/new_rails_defaults.rb +21 -0
- data/spec/support/rails/config/initializers/session_store.rb +15 -0
- data/spec/support/rails/config/locales/en.yml +5 -0
- data/spec/support/rails/config/routes.rb +43 -0
- data/spec/support/rails/db/seeds.rb +7 -0
- data/spec/support/rails/doc/README_FOR_APP +2 -0
- data/spec/support/rails/log/development.log +0 -0
- data/spec/support/rails/log/production.log +0 -0
- data/spec/support/rails/log/server.log +0 -0
- data/spec/support/rails/log/test.log +0 -0
- data/spec/support/rails/public/404.html +30 -0
- data/spec/support/rails/public/422.html +30 -0
- data/spec/support/rails/public/500.html +30 -0
- data/spec/support/rails/public/favicon.ico +0 -0
- data/spec/support/rails/public/images/rails.png +0 -0
- data/spec/support/rails/public/index.html +275 -0
- data/spec/support/rails/public/javascripts/application.js +2 -0
- data/spec/support/rails/public/javascripts/controls.js +963 -0
- data/spec/support/rails/public/javascripts/dragdrop.js +973 -0
- data/spec/support/rails/public/javascripts/effects.js +1128 -0
- data/spec/support/rails/public/javascripts/prototype.js +4320 -0
- data/spec/support/rails/public/robots.txt +5 -0
- data/spec/support/rails/script/about +4 -0
- data/spec/support/rails/script/console +3 -0
- data/spec/support/rails/script/dbconsole +3 -0
- data/spec/support/rails/script/destroy +3 -0
- data/spec/support/rails/script/generate +3 -0
- data/spec/support/rails/script/performance/benchmarker +3 -0
- data/spec/support/rails/script/performance/profiler +3 -0
- data/spec/support/rails/script/plugin +3 -0
- data/spec/support/rails/script/runner +3 -0
- data/spec/support/rails/script/server +3 -0
- data/spec/support/rails/test/performance/browsing_test.rb +9 -0
- data/spec/support/rails/test/test_helper.rb +38 -0
- metadata +72 -2
@@ -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.
|
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-
|
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
|