happy_place 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +0 -0
  3. data/.travis.yml +9 -0
  4. data/Gemfile +3 -0
  5. data/README.md +21 -9
  6. data/happy_place.gemspec +7 -3
  7. data/lib/happy_place/controller.rb +22 -19
  8. data/lib/happy_place/version.rb +1 -1
  9. data/spec/dummy/.gitignore +16 -0
  10. data/spec/dummy/README.rdoc +261 -0
  11. data/spec/dummy/Rakefile +7 -0
  12. data/spec/dummy/app/controllers/application_controller.rb +2 -0
  13. data/spec/dummy/app/controllers/examples_controller.rb +7 -0
  14. data/spec/dummy/app/models/.gitkeep +0 -0
  15. data/spec/dummy/config/application.rb +63 -0
  16. data/spec/dummy/config/boot.rb +10 -0
  17. data/spec/dummy/config/database.yml +19 -0
  18. data/spec/dummy/config/environment.rb +5 -0
  19. data/spec/dummy/config/environments/development.rb +30 -0
  20. data/spec/dummy/config/environments/production.rb +67 -0
  21. data/spec/dummy/config/environments/test.rb +34 -0
  22. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  23. data/spec/dummy/config/initializers/inflections.rb +15 -0
  24. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  25. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  26. data/spec/dummy/config/initializers/session_store.rb +8 -0
  27. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  28. data/spec/dummy/config/locales/en.yml +5 -0
  29. data/spec/dummy/config/routes.rb +58 -0
  30. data/spec/dummy/config.ru +4 -0
  31. data/spec/dummy/db/migration_helper.rb +42 -0
  32. data/spec/dummy/db/schema.rb +16 -0
  33. data/spec/dummy/db/seeds.rb +17 -0
  34. data/spec/dummy/db/static/bottles.csv +201 -0
  35. data/spec/dummy/db/static/varietal_aliases.csv +433 -0
  36. data/spec/dummy/db/static/varietals.csv +295 -0
  37. data/spec/dummy/dummy_test +0 -0
  38. data/spec/dummy/lib/assets/.gitkeep +0 -0
  39. data/spec/dummy/public/404.html +26 -0
  40. data/spec/dummy/public/422.html +26 -0
  41. data/spec/dummy/public/500.html +25 -0
  42. data/spec/dummy/public/favicon.ico +0 -0
  43. data/spec/dummy/script/rails +6 -0
  44. data/spec/dummy/spec/controllers/examples_controller_spec.rb +9 -0
  45. data/spec/dummy/spec/tmp/app/models/foo_alias.rb +4 -0
  46. data/spec/spec_helper.rb +17 -0
  47. metadata +138 -3
@@ -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,25 @@
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
+ </div>
24
+ </body>
25
+ </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,9 @@
1
+ require "spec_helper"
2
+
3
+ describe ExamplesController do
4
+ describe "#js" do
5
+ it "should be defined" do
6
+ ExamplesController.new.respond_to?(:js).should == true
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,4 @@
1
+ class FooAlias < ActiveRecord::Base
2
+ # database trigger maintains *_tsquery versions
3
+ attr_accessible :original, :substitution
4
+ end
@@ -0,0 +1,17 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
4
+ # Configure Rails Environment
5
+ ENV["RAILS_ENV"] = "test"
6
+
7
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
8
+ require "rails/test_help"
9
+
10
+ #grr-can't make this work quickly
11
+ Dir.glob("spec/dummy/spec/factories/*.rb").each do |file|
12
+ puts "loading #{file}"
13
+ load "#{file}"
14
+ end
15
+ Rails.backtrace_cleaner.remove_silencers!
16
+
17
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: happy_place
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Piccolo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-02 00:00:00.000000000 Z
11
+ date: 2014-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,6 +52,62 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: mocha
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.0.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.0.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.14'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.14'
83
+ - !ruby/object:Gem::Dependency
84
+ name: yard
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.8'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.8'
97
+ - !ruby/object:Gem::Dependency
98
+ name: sqlite3
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.3.10
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.3.10
55
111
  description: Use javascript in rails in a railsy way.
56
112
  email:
57
113
  - mpiccolo@newleaders.com
@@ -59,7 +115,9 @@ executables: []
59
115
  extensions: []
60
116
  extra_rdoc_files: []
61
117
  files:
118
+ - ".coveralls.yml"
62
119
  - ".gitignore"
120
+ - ".travis.yml"
63
121
  - Gemfile
64
122
  - LICENSE.txt
65
123
  - README.md
@@ -69,6 +127,44 @@ files:
69
127
  - lib/happy_place/controller.rb
70
128
  - lib/happy_place/railtie.rb
71
129
  - lib/happy_place/version.rb
130
+ - spec/dummy/.gitignore
131
+ - spec/dummy/README.rdoc
132
+ - spec/dummy/Rakefile
133
+ - spec/dummy/app/controllers/application_controller.rb
134
+ - spec/dummy/app/controllers/examples_controller.rb
135
+ - spec/dummy/app/models/.gitkeep
136
+ - spec/dummy/config.ru
137
+ - spec/dummy/config/application.rb
138
+ - spec/dummy/config/boot.rb
139
+ - spec/dummy/config/database.yml
140
+ - spec/dummy/config/environment.rb
141
+ - spec/dummy/config/environments/development.rb
142
+ - spec/dummy/config/environments/production.rb
143
+ - spec/dummy/config/environments/test.rb
144
+ - spec/dummy/config/initializers/backtrace_silencers.rb
145
+ - spec/dummy/config/initializers/inflections.rb
146
+ - spec/dummy/config/initializers/mime_types.rb
147
+ - spec/dummy/config/initializers/secret_token.rb
148
+ - spec/dummy/config/initializers/session_store.rb
149
+ - spec/dummy/config/initializers/wrap_parameters.rb
150
+ - spec/dummy/config/locales/en.yml
151
+ - spec/dummy/config/routes.rb
152
+ - spec/dummy/db/migration_helper.rb
153
+ - spec/dummy/db/schema.rb
154
+ - spec/dummy/db/seeds.rb
155
+ - spec/dummy/db/static/bottles.csv
156
+ - spec/dummy/db/static/varietal_aliases.csv
157
+ - spec/dummy/db/static/varietals.csv
158
+ - spec/dummy/dummy_test
159
+ - spec/dummy/lib/assets/.gitkeep
160
+ - spec/dummy/public/404.html
161
+ - spec/dummy/public/422.html
162
+ - spec/dummy/public/500.html
163
+ - spec/dummy/public/favicon.ico
164
+ - spec/dummy/script/rails
165
+ - spec/dummy/spec/controllers/examples_controller_spec.rb
166
+ - spec/dummy/spec/tmp/app/models/foo_alias.rb
167
+ - spec/spec_helper.rb
72
168
  homepage: ''
73
169
  licenses:
74
170
  - MIT
@@ -93,4 +189,43 @@ rubygems_version: 2.2.2
93
189
  signing_key:
94
190
  specification_version: 4
95
191
  summary: A happy_place for Rails and JS
96
- test_files: []
192
+ test_files:
193
+ - spec/dummy/.gitignore
194
+ - spec/dummy/README.rdoc
195
+ - spec/dummy/Rakefile
196
+ - spec/dummy/app/controllers/application_controller.rb
197
+ - spec/dummy/app/controllers/examples_controller.rb
198
+ - spec/dummy/app/models/.gitkeep
199
+ - spec/dummy/config.ru
200
+ - spec/dummy/config/application.rb
201
+ - spec/dummy/config/boot.rb
202
+ - spec/dummy/config/database.yml
203
+ - spec/dummy/config/environment.rb
204
+ - spec/dummy/config/environments/development.rb
205
+ - spec/dummy/config/environments/production.rb
206
+ - spec/dummy/config/environments/test.rb
207
+ - spec/dummy/config/initializers/backtrace_silencers.rb
208
+ - spec/dummy/config/initializers/inflections.rb
209
+ - spec/dummy/config/initializers/mime_types.rb
210
+ - spec/dummy/config/initializers/secret_token.rb
211
+ - spec/dummy/config/initializers/session_store.rb
212
+ - spec/dummy/config/initializers/wrap_parameters.rb
213
+ - spec/dummy/config/locales/en.yml
214
+ - spec/dummy/config/routes.rb
215
+ - spec/dummy/db/migration_helper.rb
216
+ - spec/dummy/db/schema.rb
217
+ - spec/dummy/db/seeds.rb
218
+ - spec/dummy/db/static/bottles.csv
219
+ - spec/dummy/db/static/varietal_aliases.csv
220
+ - spec/dummy/db/static/varietals.csv
221
+ - spec/dummy/dummy_test
222
+ - spec/dummy/lib/assets/.gitkeep
223
+ - spec/dummy/public/404.html
224
+ - spec/dummy/public/422.html
225
+ - spec/dummy/public/500.html
226
+ - spec/dummy/public/favicon.ico
227
+ - spec/dummy/script/rails
228
+ - spec/dummy/spec/controllers/examples_controller_spec.rb
229
+ - spec/dummy/spec/tmp/app/models/foo_alias.rb
230
+ - spec/spec_helper.rb
231
+ has_rdoc: