breezy 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/breezy.rb +11 -6
- data/lib/breezy/render.rb +8 -1
- data/lib/breezy/version.rb +1 -1
- data/lib/breezy/xhr_headers.rb +9 -22
- data/lib/generators/breezy/view/templates/{view.jsx → view.jsx.mobile} +0 -0
- data/lib/generators/breezy/view/templates/{view.js → view.jsx.web} +0 -0
- data/lib/generators/breezy/view/view_generator.rb +3 -3
- data/lib/generators/rails/breezy_generator.rb +103 -0
- data/lib/generators/rails/scaffold_controller_generator.rb +13 -0
- data/lib/generators/rails/templates/controller.rb.tt +85 -0
- data/lib/generators/rails/templates/edit.js.props +18 -0
- data/lib/generators/rails/templates/index.js.props +20 -0
- data/lib/generators/rails/templates/mobile/edit.jsx +76 -0
- data/lib/generators/rails/templates/mobile/elements.js +88 -0
- data/lib/generators/rails/templates/mobile/form.jsx +34 -0
- data/lib/generators/rails/templates/mobile/index.jsx +103 -0
- data/lib/generators/rails/templates/mobile/new.jsx +75 -0
- data/lib/generators/rails/templates/mobile/show.jsx +32 -0
- data/lib/generators/rails/templates/new.js.props +7 -0
- data/lib/generators/rails/templates/show.js.props +12 -0
- data/lib/generators/rails/templates/web/base.jsx +68 -0
- data/lib/generators/rails/templates/web/edit.jsx +34 -0
- data/lib/generators/rails/templates/web/form.jsx +37 -0
- data/lib/generators/rails/templates/web/index.jsx +56 -0
- data/lib/generators/rails/templates/web/new.jsx +31 -0
- data/lib/generators/rails/templates/web/show.jsx +28 -0
- data/lib/install/templates/mobile/app.js +31 -38
- data/lib/install/templates/mobile/package.json +5 -2
- data/lib/install/templates/web/application.js +7 -3
- data/lib/install/web.rb +2 -4
- metadata +23 -6
- data/lib/assets/javascript/breezy.js +0 -6067
- data/lib/breezy/xhr_redirect.rb +0 -13
data/lib/breezy/xhr_redirect.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
module Breezy
|
2
|
-
module XHRRedirect
|
3
|
-
def call(env)
|
4
|
-
status, headers, body = super(env)
|
5
|
-
|
6
|
-
if env['rack.session'] && env['HTTP_X_XHR_REFERER']
|
7
|
-
env['rack.session'][:_breezy_redirect_to] = headers['Location']
|
8
|
-
end
|
9
|
-
|
10
|
-
[status, headers, body]
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|