datastore_redis 0.0.1

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 (77) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +39 -0
  4. data/app/assets/javascripts/datastore_redis/application.js +9 -0
  5. data/app/assets/javascripts/datastore_redis/redis_strings.js +2 -0
  6. data/app/assets/stylesheets/datastore_redis/application.css +7 -0
  7. data/app/assets/stylesheets/datastore_redis/redis_strings.css +4 -0
  8. data/app/assets/stylesheets/scaffold.css +56 -0
  9. data/app/controllers/datastore_redis/application_controller.rb +4 -0
  10. data/app/controllers/datastore_redis/redis_strings_controller.rb +81 -0
  11. data/app/helpers/datastore_redis/application_helper.rb +4 -0
  12. data/app/helpers/datastore_redis/redis_strings_helper.rb +4 -0
  13. data/app/models/datastore_redis/redis_connection.rb +21 -0
  14. data/app/models/datastore_redis/redis_string.rb +29 -0
  15. data/app/views/datastore_redis/redis_strings/_form.html.erb +10 -0
  16. data/app/views/datastore_redis/redis_strings/edit.html.erb +6 -0
  17. data/app/views/datastore_redis/redis_strings/index.html.erb +23 -0
  18. data/app/views/datastore_redis/redis_strings/new.html.erb +5 -0
  19. data/app/views/datastore_redis/redis_strings/show.html.erb +15 -0
  20. data/app/views/layouts/datastore_redis/application.html.erb +14 -0
  21. data/config/routes.rb +3 -0
  22. data/lib/datastore_redis.rb +4 -0
  23. data/lib/datastore_redis/engine.rb +5 -0
  24. data/lib/datastore_redis/version.rb +3 -0
  25. data/lib/tasks/datastore_redis_tasks.rake +4 -0
  26. data/lib/tasks/routes.rake +7 -0
  27. data/test/datastore_redis_test.rb +7 -0
  28. data/test/dummy/Rakefile +7 -0
  29. data/test/dummy/app/assets/javascripts/application.js +9 -0
  30. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  31. data/test/dummy/app/controllers/application_controller.rb +3 -0
  32. data/test/dummy/app/helpers/application_helper.rb +2 -0
  33. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  34. data/test/dummy/config.ru +4 -0
  35. data/test/dummy/config/application.rb +45 -0
  36. data/test/dummy/config/boot.rb +10 -0
  37. data/test/dummy/config/database.yml +25 -0
  38. data/test/dummy/config/environment.rb +5 -0
  39. data/test/dummy/config/environments/development.rb +30 -0
  40. data/test/dummy/config/environments/production.rb +60 -0
  41. data/test/dummy/config/environments/test.rb +39 -0
  42. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  43. data/test/dummy/config/initializers/inflections.rb +10 -0
  44. data/test/dummy/config/initializers/mime_types.rb +5 -0
  45. data/test/dummy/config/initializers/secret_token.rb +7 -0
  46. data/test/dummy/config/initializers/session_store.rb +8 -0
  47. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  48. data/test/dummy/config/locales/en.yml +5 -0
  49. data/test/dummy/config/routes.rb +4 -0
  50. data/test/dummy/db/development.sqlite3 +0 -0
  51. data/test/dummy/lib/tasks/datastore_redis_tasks.rake +4 -0
  52. data/test/dummy/lib/tasks/routes.rake +7 -0
  53. data/test/dummy/log/development.log +989 -0
  54. data/test/dummy/public/404.html +26 -0
  55. data/test/dummy/public/422.html +26 -0
  56. data/test/dummy/public/500.html +26 -0
  57. data/test/dummy/public/favicon.ico +0 -0
  58. data/test/dummy/script/rails +6 -0
  59. data/test/dummy/tmp/cache/assets/CAE/810/sprockets%2F6e17affb146108a554244e494ed83351 +0 -0
  60. data/test/dummy/tmp/cache/assets/CBB/050/sprockets%2F385671e24d82c400d04f38f6e9287c4f +0 -0
  61. data/test/dummy/tmp/cache/assets/D3C/550/sprockets%2F085759d3bb472fea26d0d3bf2a8813e3 +0 -0
  62. data/test/dummy/tmp/cache/assets/D45/0B0/sprockets%2Fb6fb348130590989cecd0f7bcf3c8621 +0 -0
  63. data/test/dummy/tmp/cache/assets/D46/5C0/sprockets%2F63820178fa5358b3e9206aadfc66e5fe +0 -0
  64. data/test/dummy/tmp/cache/assets/D48/5D0/sprockets%2Fb5b9698ca26593ccfc1001cc88d0d788 +0 -0
  65. data/test/dummy/tmp/cache/assets/D5F/DB0/sprockets%2F797375835dc5b5494eb88ccd66abc98e +0 -0
  66. data/test/dummy/tmp/cache/assets/D76/B90/sprockets%2F3d5585be95ebd0989b7100db3ff820ed +0 -0
  67. data/test/dummy/tmp/cache/assets/D98/0C0/sprockets%2F122a68de8c1c103dca5f83da769f5e1b +0 -0
  68. data/test/dummy/tmp/cache/assets/DB1/CF0/sprockets%2Fb2c2c9f24470bc59162f01ac1daeac1b +0 -0
  69. data/test/dummy/tmp/cache/assets/DCC/E80/sprockets%2F2a7ec065ceafb5054a729df9390fec2b +0 -0
  70. data/test/dummy/tmp/cache/assets/E94/610/sprockets%2F884cdccdc1ce3ee3df9c60e4ed2fa6d6 +0 -0
  71. data/test/fixtures/datastore_redis/redis_strings.yml +11 -0
  72. data/test/functional/datastore_redis/redis_strings_controller_test.rb +51 -0
  73. data/test/integration/navigation_test.rb +10 -0
  74. data/test/test_helper.rb +10 -0
  75. data/test/unit/datastore_redis/redis_string_test.rb +9 -0
  76. data/test/unit/helpers/datastore_redis/redis_strings_helper_test.rb +6 -0
  77. metadata +199 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/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
@@ -0,0 +1,51 @@
1
+ require 'test_helper'
2
+
3
+ module DatastoreRedis
4
+ class RedisStringsControllerTest < ActionController::TestCase
5
+ setup do
6
+ @redis_string = redis_strings(:one)
7
+ end
8
+
9
+ test "should get index" do
10
+ get :index
11
+ assert_response :success
12
+ assert_not_nil assigns(:redis_strings)
13
+ end
14
+
15
+ test "should get new" do
16
+ get :new
17
+ assert_response :success
18
+ end
19
+
20
+ test "should create redis_string" do
21
+ assert_difference('RedisString.count') do
22
+ post :create, redis_string: @redis_string.attributes
23
+ end
24
+
25
+ assert_redirected_to redis_string_path(assigns(:redis_string))
26
+ end
27
+
28
+ test "should show redis_string" do
29
+ get :show, id: @redis_string.to_param
30
+ assert_response :success
31
+ end
32
+
33
+ test "should get edit" do
34
+ get :edit, id: @redis_string.to_param
35
+ assert_response :success
36
+ end
37
+
38
+ test "should update redis_string" do
39
+ put :update, id: @redis_string.to_param, redis_string: @redis_string.attributes
40
+ assert_redirected_to redis_string_path(assigns(:redis_string))
41
+ end
42
+
43
+ test "should destroy redis_string" do
44
+ assert_difference('RedisString.count', -1) do
45
+ delete :destroy, id: @redis_string.to_param
46
+ end
47
+
48
+ assert_redirected_to redis_strings_path
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,10 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module DatastoreRedis
4
+ class RedisStringTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ module DatastoreRedis
4
+ class RedisStringsHelperTest < ActionView::TestCase
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,199 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: datastore_redis
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - John Hinnegan
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-11-12 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &2155996000 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.1.1
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2155996000
25
+ - !ruby/object:Gem::Dependency
26
+ name: sqlite3
27
+ requirement: &2155994180 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *2155994180
36
+ description: Ditto
37
+ email:
38
+ - john@thinknear.com
39
+ executables: []
40
+ extensions: []
41
+ extra_rdoc_files: []
42
+ files:
43
+ - app/assets/javascripts/datastore_redis/application.js
44
+ - app/assets/javascripts/datastore_redis/redis_strings.js
45
+ - app/assets/stylesheets/datastore_redis/application.css
46
+ - app/assets/stylesheets/datastore_redis/redis_strings.css
47
+ - app/assets/stylesheets/scaffold.css
48
+ - app/controllers/datastore_redis/application_controller.rb
49
+ - app/controllers/datastore_redis/redis_strings_controller.rb
50
+ - app/helpers/datastore_redis/application_helper.rb
51
+ - app/helpers/datastore_redis/redis_strings_helper.rb
52
+ - app/models/datastore_redis/redis_connection.rb
53
+ - app/models/datastore_redis/redis_string.rb
54
+ - app/views/datastore_redis/redis_strings/_form.html.erb
55
+ - app/views/datastore_redis/redis_strings/edit.html.erb
56
+ - app/views/datastore_redis/redis_strings/index.html.erb
57
+ - app/views/datastore_redis/redis_strings/new.html.erb
58
+ - app/views/datastore_redis/redis_strings/show.html.erb
59
+ - app/views/layouts/datastore_redis/application.html.erb
60
+ - config/routes.rb
61
+ - lib/datastore_redis/engine.rb
62
+ - lib/datastore_redis/version.rb
63
+ - lib/datastore_redis.rb
64
+ - lib/tasks/datastore_redis_tasks.rake
65
+ - lib/tasks/routes.rake
66
+ - MIT-LICENSE
67
+ - Rakefile
68
+ - README.rdoc
69
+ - test/datastore_redis_test.rb
70
+ - test/dummy/app/assets/javascripts/application.js
71
+ - test/dummy/app/assets/stylesheets/application.css
72
+ - test/dummy/app/controllers/application_controller.rb
73
+ - test/dummy/app/helpers/application_helper.rb
74
+ - test/dummy/app/views/layouts/application.html.erb
75
+ - test/dummy/config/application.rb
76
+ - test/dummy/config/boot.rb
77
+ - test/dummy/config/database.yml
78
+ - test/dummy/config/environment.rb
79
+ - test/dummy/config/environments/development.rb
80
+ - test/dummy/config/environments/production.rb
81
+ - test/dummy/config/environments/test.rb
82
+ - test/dummy/config/initializers/backtrace_silencers.rb
83
+ - test/dummy/config/initializers/inflections.rb
84
+ - test/dummy/config/initializers/mime_types.rb
85
+ - test/dummy/config/initializers/secret_token.rb
86
+ - test/dummy/config/initializers/session_store.rb
87
+ - test/dummy/config/initializers/wrap_parameters.rb
88
+ - test/dummy/config/locales/en.yml
89
+ - test/dummy/config/routes.rb
90
+ - test/dummy/config.ru
91
+ - test/dummy/db/development.sqlite3
92
+ - test/dummy/lib/tasks/datastore_redis_tasks.rake
93
+ - test/dummy/lib/tasks/routes.rake
94
+ - test/dummy/log/development.log
95
+ - test/dummy/public/404.html
96
+ - test/dummy/public/422.html
97
+ - test/dummy/public/500.html
98
+ - test/dummy/public/favicon.ico
99
+ - test/dummy/Rakefile
100
+ - test/dummy/script/rails
101
+ - test/dummy/tmp/cache/assets/CAE/810/sprockets%2F6e17affb146108a554244e494ed83351
102
+ - test/dummy/tmp/cache/assets/CBB/050/sprockets%2F385671e24d82c400d04f38f6e9287c4f
103
+ - test/dummy/tmp/cache/assets/D3C/550/sprockets%2F085759d3bb472fea26d0d3bf2a8813e3
104
+ - test/dummy/tmp/cache/assets/D45/0B0/sprockets%2Fb6fb348130590989cecd0f7bcf3c8621
105
+ - test/dummy/tmp/cache/assets/D46/5C0/sprockets%2F63820178fa5358b3e9206aadfc66e5fe
106
+ - test/dummy/tmp/cache/assets/D48/5D0/sprockets%2Fb5b9698ca26593ccfc1001cc88d0d788
107
+ - test/dummy/tmp/cache/assets/D5F/DB0/sprockets%2F797375835dc5b5494eb88ccd66abc98e
108
+ - test/dummy/tmp/cache/assets/D76/B90/sprockets%2F3d5585be95ebd0989b7100db3ff820ed
109
+ - test/dummy/tmp/cache/assets/D98/0C0/sprockets%2F122a68de8c1c103dca5f83da769f5e1b
110
+ - test/dummy/tmp/cache/assets/DB1/CF0/sprockets%2Fb2c2c9f24470bc59162f01ac1daeac1b
111
+ - test/dummy/tmp/cache/assets/DCC/E80/sprockets%2F2a7ec065ceafb5054a729df9390fec2b
112
+ - test/dummy/tmp/cache/assets/E94/610/sprockets%2F884cdccdc1ce3ee3df9c60e4ed2fa6d6
113
+ - test/fixtures/datastore_redis/redis_strings.yml
114
+ - test/functional/datastore_redis/redis_strings_controller_test.rb
115
+ - test/integration/navigation_test.rb
116
+ - test/test_helper.rb
117
+ - test/unit/datastore_redis/redis_string_test.rb
118
+ - test/unit/helpers/datastore_redis/redis_strings_helper_test.rb
119
+ homepage: http://softwaregravy.com
120
+ licenses: []
121
+ post_install_message:
122
+ rdoc_options: []
123
+ require_paths:
124
+ - lib
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ none: false
127
+ requirements:
128
+ - - ! '>='
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ segments:
132
+ - 0
133
+ hash: 81504906587188330
134
+ required_rubygems_version: !ruby/object:Gem::Requirement
135
+ none: false
136
+ requirements:
137
+ - - ! '>='
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ segments:
141
+ - 0
142
+ hash: 81504906587188330
143
+ requirements: []
144
+ rubyforge_project:
145
+ rubygems_version: 1.8.10
146
+ signing_key:
147
+ specification_version: 3
148
+ summary: A very simple mountable engine for redis
149
+ test_files:
150
+ - test/datastore_redis_test.rb
151
+ - test/dummy/app/assets/javascripts/application.js
152
+ - test/dummy/app/assets/stylesheets/application.css
153
+ - test/dummy/app/controllers/application_controller.rb
154
+ - test/dummy/app/helpers/application_helper.rb
155
+ - test/dummy/app/views/layouts/application.html.erb
156
+ - test/dummy/config/application.rb
157
+ - test/dummy/config/boot.rb
158
+ - test/dummy/config/database.yml
159
+ - test/dummy/config/environment.rb
160
+ - test/dummy/config/environments/development.rb
161
+ - test/dummy/config/environments/production.rb
162
+ - test/dummy/config/environments/test.rb
163
+ - test/dummy/config/initializers/backtrace_silencers.rb
164
+ - test/dummy/config/initializers/inflections.rb
165
+ - test/dummy/config/initializers/mime_types.rb
166
+ - test/dummy/config/initializers/secret_token.rb
167
+ - test/dummy/config/initializers/session_store.rb
168
+ - test/dummy/config/initializers/wrap_parameters.rb
169
+ - test/dummy/config/locales/en.yml
170
+ - test/dummy/config/routes.rb
171
+ - test/dummy/config.ru
172
+ - test/dummy/db/development.sqlite3
173
+ - test/dummy/lib/tasks/datastore_redis_tasks.rake
174
+ - test/dummy/lib/tasks/routes.rake
175
+ - test/dummy/log/development.log
176
+ - test/dummy/public/404.html
177
+ - test/dummy/public/422.html
178
+ - test/dummy/public/500.html
179
+ - test/dummy/public/favicon.ico
180
+ - test/dummy/Rakefile
181
+ - test/dummy/script/rails
182
+ - test/dummy/tmp/cache/assets/CAE/810/sprockets%2F6e17affb146108a554244e494ed83351
183
+ - test/dummy/tmp/cache/assets/CBB/050/sprockets%2F385671e24d82c400d04f38f6e9287c4f
184
+ - test/dummy/tmp/cache/assets/D3C/550/sprockets%2F085759d3bb472fea26d0d3bf2a8813e3
185
+ - test/dummy/tmp/cache/assets/D45/0B0/sprockets%2Fb6fb348130590989cecd0f7bcf3c8621
186
+ - test/dummy/tmp/cache/assets/D46/5C0/sprockets%2F63820178fa5358b3e9206aadfc66e5fe
187
+ - test/dummy/tmp/cache/assets/D48/5D0/sprockets%2Fb5b9698ca26593ccfc1001cc88d0d788
188
+ - test/dummy/tmp/cache/assets/D5F/DB0/sprockets%2F797375835dc5b5494eb88ccd66abc98e
189
+ - test/dummy/tmp/cache/assets/D76/B90/sprockets%2F3d5585be95ebd0989b7100db3ff820ed
190
+ - test/dummy/tmp/cache/assets/D98/0C0/sprockets%2F122a68de8c1c103dca5f83da769f5e1b
191
+ - test/dummy/tmp/cache/assets/DB1/CF0/sprockets%2Fb2c2c9f24470bc59162f01ac1daeac1b
192
+ - test/dummy/tmp/cache/assets/DCC/E80/sprockets%2F2a7ec065ceafb5054a729df9390fec2b
193
+ - test/dummy/tmp/cache/assets/E94/610/sprockets%2F884cdccdc1ce3ee3df9c60e4ed2fa6d6
194
+ - test/fixtures/datastore_redis/redis_strings.yml
195
+ - test/functional/datastore_redis/redis_strings_controller_test.rb
196
+ - test/integration/navigation_test.rb
197
+ - test/test_helper.rb
198
+ - test/unit/datastore_redis/redis_string_test.rb
199
+ - test/unit/helpers/datastore_redis/redis_strings_helper_test.rb