jquery-iframe_auto_resize 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/MIT-LICENSE +21 -0
  2. data/README.rdoc +28 -0
  3. data/Rakefile +39 -0
  4. data/app/assets/javascripts/jquery.iframe_auto_resize.js.coffee +59 -0
  5. data/lib/jquery-iframe_auto_resize.rb +4 -0
  6. data/lib/jquery-iframe_auto_resize/engine.rb +6 -0
  7. data/lib/jquery-iframe_auto_resize/version.rb +3 -0
  8. data/test/dummy/Gemfile +6 -0
  9. data/test/dummy/Gemfile.lock +9 -0
  10. data/test/dummy/Rakefile +7 -0
  11. data/test/dummy/app/assets/javascripts/application.js +11 -0
  12. data/test/dummy/app/assets/javascripts/static.js +2 -0
  13. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  14. data/test/dummy/app/assets/stylesheets/static.css +4 -0
  15. data/test/dummy/app/controllers/application_controller.rb +3 -0
  16. data/test/dummy/app/controllers/static_controller.rb +12 -0
  17. data/test/dummy/app/helpers/application_helper.rb +2 -0
  18. data/test/dummy/app/helpers/static_helper.rb +2 -0
  19. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  20. data/test/dummy/app/views/static/container.html.haml +32 -0
  21. data/test/dummy/app/views/static/iframe.html.haml +30 -0
  22. data/test/dummy/app/views/static/iframe_with_margin.html.haml +30 -0
  23. data/test/dummy/config.ru +4 -0
  24. data/test/dummy/config/application.rb +45 -0
  25. data/test/dummy/config/boot.rb +10 -0
  26. data/test/dummy/config/database.yml +25 -0
  27. data/test/dummy/config/environment.rb +5 -0
  28. data/test/dummy/config/environments/development.rb +30 -0
  29. data/test/dummy/config/environments/production.rb +60 -0
  30. data/test/dummy/config/environments/test.rb +42 -0
  31. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  32. data/test/dummy/config/initializers/inflections.rb +10 -0
  33. data/test/dummy/config/initializers/mime_types.rb +5 -0
  34. data/test/dummy/config/initializers/secret_token.rb +7 -0
  35. data/test/dummy/config/initializers/session_store.rb +8 -0
  36. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  37. data/test/dummy/config/locales/en.yml +5 -0
  38. data/test/dummy/config/routes.rb +10 -0
  39. data/test/dummy/db/development.sqlite3 +0 -0
  40. data/test/dummy/log/development.log +17214 -0
  41. data/test/dummy/public/404.html +26 -0
  42. data/test/dummy/public/422.html +26 -0
  43. data/test/dummy/public/500.html +26 -0
  44. data/test/dummy/public/favicon.ico +0 -0
  45. data/test/dummy/script/rails +6 -0
  46. data/test/dummy/test/functional/static_controller_test.rb +14 -0
  47. data/test/dummy/test/unit/helpers/static_helper_test.rb +4 -0
  48. data/test/dummy/tmp/cache/assets/C83/200/sprockets%2F9f17e19443d1498ad1ff448310126e53 +0 -0
  49. data/test/dummy/tmp/cache/assets/CA0/A40/sprockets%2Fc1a3b329f54c41592a0854a40f8425e0 +0 -0
  50. data/test/dummy/tmp/cache/assets/CB9/CC0/sprockets%2Fb68d675ba83744035424e579b485c5ba +0 -0
  51. data/test/dummy/tmp/cache/assets/CE9/C20/sprockets%2F0730a1144051a740bb8270be1c38afbb +0 -0
  52. data/test/dummy/tmp/cache/assets/CEB/740/sprockets%2F167888e8cfb09ae4a18e7b75b4011738 +0 -0
  53. data/test/dummy/tmp/cache/assets/D02/1D0/sprockets%2F56536bb3e46ab1f153ba27f0640e57b5 +0 -0
  54. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  55. data/test/dummy/tmp/cache/assets/D4E/340/sprockets%2F4e1fb092086bdcf36e82d47a496e558f +0 -0
  56. data/test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  57. data/test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
  58. data/test/dummy/tmp/cache/assets/DAF/370/sprockets%2Fda500fcfbdf1b2022cd31e35f21d65c2 +0 -0
  59. data/test/dummy/tmp/cache/assets/DC7/0E0/sprockets%2F2cdcb1089fe8a96b07fa1beb4356a3f2 +0 -0
  60. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  61. data/test/dummy/tmp/cache/assets/E6C/EC0/sprockets%2Ffe8be20beeaee9c36c6ce798be7813ad +0 -0
  62. data/test/integration/navigation_test.rb +10 -0
  63. data/test/jquery-iframe_auto_resize_test.rb +7 -0
  64. data/test/test_helper.rb +10 -0
  65. metadata +243 -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,14 @@
1
+ require 'test_helper'
2
+
3
+ class StaticControllerTest < ActionController::TestCase
4
+ test "should get container" do
5
+ get :container
6
+ assert_response :success
7
+ end
8
+
9
+ test "should get iframe" do
10
+ get :iframe
11
+ assert_response :success
12
+ end
13
+
14
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class StaticHelperTest < ActionView::TestCase
4
+ 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,7 @@
1
+ require 'test_helper'
2
+
3
+ class JqueryIframeAutoResizeTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, JqueryIframeAutoResize
6
+ end
7
+ end
@@ -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 }
metadata ADDED
@@ -0,0 +1,243 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jquery-iframe_auto_resize
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Patrick Helm
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-09-05 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 3
31
+ - 1
32
+ - 0
33
+ version: 3.1.0
34
+ requirement: *id001
35
+ name: rails
36
+ - !ruby/object:Gem::Dependency
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
47
+ version: "0"
48
+ requirement: *id002
49
+ name: sqlite3
50
+ - !ruby/object:Gem::Dependency
51
+ type: :development
52
+ prerelease: false
53
+ version_requirements: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 0
61
+ version: "0"
62
+ requirement: *id003
63
+ name: haml
64
+ - !ruby/object:Gem::Dependency
65
+ type: :development
66
+ prerelease: false
67
+ version_requirements: &id004 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
75
+ version: "0"
76
+ requirement: *id004
77
+ name: jquery-rails
78
+ description: JQuery Plugin to auto-resize iFrames from same domain.
79
+ email:
80
+ - deradon87@gmail.com
81
+ - patrick.helm@werbeboten.de
82
+ executables: []
83
+
84
+ extensions: []
85
+
86
+ extra_rdoc_files: []
87
+
88
+ files:
89
+ - app/assets/javascripts/jquery.iframe_auto_resize.js.coffee
90
+ - lib/jquery-iframe_auto_resize.rb
91
+ - lib/jquery-iframe_auto_resize/version.rb
92
+ - lib/jquery-iframe_auto_resize/engine.rb
93
+ - MIT-LICENSE
94
+ - Rakefile
95
+ - README.rdoc
96
+ - test/integration/navigation_test.rb
97
+ - test/jquery-iframe_auto_resize_test.rb
98
+ - test/test_helper.rb
99
+ - test/dummy/db/development.sqlite3
100
+ - test/dummy/Gemfile.lock
101
+ - test/dummy/config.ru
102
+ - test/dummy/test/functional/static_controller_test.rb
103
+ - test/dummy/test/unit/helpers/static_helper_test.rb
104
+ - test/dummy/Rakefile
105
+ - test/dummy/log/development.log
106
+ - test/dummy/app/views/static/iframe_with_margin.html.haml
107
+ - test/dummy/app/views/static/container.html.haml
108
+ - test/dummy/app/views/static/iframe.html.haml
109
+ - test/dummy/app/views/layouts/application.html.erb
110
+ - test/dummy/app/assets/javascripts/application.js
111
+ - test/dummy/app/assets/javascripts/static.js
112
+ - test/dummy/app/assets/stylesheets/application.css
113
+ - test/dummy/app/assets/stylesheets/static.css
114
+ - test/dummy/app/helpers/application_helper.rb
115
+ - test/dummy/app/helpers/static_helper.rb
116
+ - test/dummy/app/controllers/application_controller.rb
117
+ - test/dummy/app/controllers/static_controller.rb
118
+ - test/dummy/config/database.yml
119
+ - test/dummy/config/boot.rb
120
+ - test/dummy/config/locales/en.yml
121
+ - test/dummy/config/routes.rb
122
+ - test/dummy/config/environments/production.rb
123
+ - test/dummy/config/environments/test.rb
124
+ - test/dummy/config/environments/development.rb
125
+ - test/dummy/config/initializers/inflections.rb
126
+ - test/dummy/config/initializers/session_store.rb
127
+ - test/dummy/config/initializers/secret_token.rb
128
+ - test/dummy/config/initializers/wrap_parameters.rb
129
+ - test/dummy/config/initializers/mime_types.rb
130
+ - test/dummy/config/initializers/backtrace_silencers.rb
131
+ - test/dummy/config/environment.rb
132
+ - test/dummy/config/application.rb
133
+ - test/dummy/public/404.html
134
+ - test/dummy/public/422.html
135
+ - test/dummy/public/favicon.ico
136
+ - test/dummy/public/500.html
137
+ - test/dummy/tmp/cache/assets/D02/1D0/sprockets%2F56536bb3e46ab1f153ba27f0640e57b5
138
+ - test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
139
+ - test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
140
+ - test/dummy/tmp/cache/assets/CE9/C20/sprockets%2F0730a1144051a740bb8270be1c38afbb
141
+ - test/dummy/tmp/cache/assets/C83/200/sprockets%2F9f17e19443d1498ad1ff448310126e53
142
+ - test/dummy/tmp/cache/assets/D4E/340/sprockets%2F4e1fb092086bdcf36e82d47a496e558f
143
+ - test/dummy/tmp/cache/assets/CA0/A40/sprockets%2Fc1a3b329f54c41592a0854a40f8425e0
144
+ - test/dummy/tmp/cache/assets/CEB/740/sprockets%2F167888e8cfb09ae4a18e7b75b4011738
145
+ - test/dummy/tmp/cache/assets/E6C/EC0/sprockets%2Ffe8be20beeaee9c36c6ce798be7813ad
146
+ - test/dummy/tmp/cache/assets/CB9/CC0/sprockets%2Fb68d675ba83744035424e579b485c5ba
147
+ - test/dummy/tmp/cache/assets/DAF/370/sprockets%2Fda500fcfbdf1b2022cd31e35f21d65c2
148
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
149
+ - test/dummy/tmp/cache/assets/DC7/0E0/sprockets%2F2cdcb1089fe8a96b07fa1beb4356a3f2
150
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
151
+ - test/dummy/Gemfile
152
+ - test/dummy/script/rails
153
+ homepage: http://www.deckel-gesucht.de
154
+ licenses: []
155
+
156
+ post_install_message:
157
+ rdoc_options: []
158
+
159
+ require_paths:
160
+ - lib
161
+ required_ruby_version: !ruby/object:Gem::Requirement
162
+ none: false
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ hash: 3
167
+ segments:
168
+ - 0
169
+ version: "0"
170
+ required_rubygems_version: !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ hash: 3
176
+ segments:
177
+ - 0
178
+ version: "0"
179
+ requirements: []
180
+
181
+ rubyforge_project:
182
+ rubygems_version: 1.8.10
183
+ signing_key:
184
+ specification_version: 3
185
+ summary: JQuery Plugin to auto-resize iFrames from same domain.
186
+ test_files:
187
+ - test/integration/navigation_test.rb
188
+ - test/jquery-iframe_auto_resize_test.rb
189
+ - test/test_helper.rb
190
+ - test/dummy/db/development.sqlite3
191
+ - test/dummy/Gemfile.lock
192
+ - test/dummy/config.ru
193
+ - test/dummy/test/functional/static_controller_test.rb
194
+ - test/dummy/test/unit/helpers/static_helper_test.rb
195
+ - test/dummy/Rakefile
196
+ - test/dummy/log/development.log
197
+ - test/dummy/app/views/static/iframe_with_margin.html.haml
198
+ - test/dummy/app/views/static/container.html.haml
199
+ - test/dummy/app/views/static/iframe.html.haml
200
+ - test/dummy/app/views/layouts/application.html.erb
201
+ - test/dummy/app/assets/javascripts/application.js
202
+ - test/dummy/app/assets/javascripts/static.js
203
+ - test/dummy/app/assets/stylesheets/application.css
204
+ - test/dummy/app/assets/stylesheets/static.css
205
+ - test/dummy/app/helpers/application_helper.rb
206
+ - test/dummy/app/helpers/static_helper.rb
207
+ - test/dummy/app/controllers/application_controller.rb
208
+ - test/dummy/app/controllers/static_controller.rb
209
+ - test/dummy/config/database.yml
210
+ - test/dummy/config/boot.rb
211
+ - test/dummy/config/locales/en.yml
212
+ - test/dummy/config/routes.rb
213
+ - test/dummy/config/environments/production.rb
214
+ - test/dummy/config/environments/test.rb
215
+ - test/dummy/config/environments/development.rb
216
+ - test/dummy/config/initializers/inflections.rb
217
+ - test/dummy/config/initializers/session_store.rb
218
+ - test/dummy/config/initializers/secret_token.rb
219
+ - test/dummy/config/initializers/wrap_parameters.rb
220
+ - test/dummy/config/initializers/mime_types.rb
221
+ - test/dummy/config/initializers/backtrace_silencers.rb
222
+ - test/dummy/config/environment.rb
223
+ - test/dummy/config/application.rb
224
+ - test/dummy/public/404.html
225
+ - test/dummy/public/422.html
226
+ - test/dummy/public/favicon.ico
227
+ - test/dummy/public/500.html
228
+ - test/dummy/tmp/cache/assets/D02/1D0/sprockets%2F56536bb3e46ab1f153ba27f0640e57b5
229
+ - test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
230
+ - test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
231
+ - test/dummy/tmp/cache/assets/CE9/C20/sprockets%2F0730a1144051a740bb8270be1c38afbb
232
+ - test/dummy/tmp/cache/assets/C83/200/sprockets%2F9f17e19443d1498ad1ff448310126e53
233
+ - test/dummy/tmp/cache/assets/D4E/340/sprockets%2F4e1fb092086bdcf36e82d47a496e558f
234
+ - test/dummy/tmp/cache/assets/CA0/A40/sprockets%2Fc1a3b329f54c41592a0854a40f8425e0
235
+ - test/dummy/tmp/cache/assets/CEB/740/sprockets%2F167888e8cfb09ae4a18e7b75b4011738
236
+ - test/dummy/tmp/cache/assets/E6C/EC0/sprockets%2Ffe8be20beeaee9c36c6ce798be7813ad
237
+ - test/dummy/tmp/cache/assets/CB9/CC0/sprockets%2Fb68d675ba83744035424e579b485c5ba
238
+ - test/dummy/tmp/cache/assets/DAF/370/sprockets%2Fda500fcfbdf1b2022cd31e35f21d65c2
239
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
240
+ - test/dummy/tmp/cache/assets/DC7/0E0/sprockets%2F2cdcb1089fe8a96b07fa1beb4356a3f2
241
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
242
+ - test/dummy/Gemfile
243
+ - test/dummy/script/rails