unpoly-rails 0.22.1 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of unpoly-rails might be problematic. Click here for more details.

Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/design/positioning.txt +28 -0
  4. data/dist/unpoly.css +27 -20
  5. data/dist/unpoly.js +171 -59
  6. data/dist/unpoly.min.css +1 -1
  7. data/dist/unpoly.min.js +3 -3
  8. data/lib/assets/javascripts/unpoly/browser.js.coffee +12 -0
  9. data/lib/assets/javascripts/unpoly/bus.js.coffee +21 -22
  10. data/lib/assets/javascripts/unpoly/form.js.coffee +9 -5
  11. data/lib/assets/javascripts/unpoly/layout.js.coffee +3 -2
  12. data/lib/assets/javascripts/unpoly/link.js.coffee +3 -2
  13. data/lib/assets/javascripts/unpoly/navigation.js.coffee +2 -2
  14. data/lib/assets/javascripts/unpoly/proxy.js.coffee +11 -9
  15. data/lib/assets/javascripts/unpoly/tooltip.js.coffee +9 -2
  16. data/lib/assets/javascripts/unpoly/util.js.coffee +79 -11
  17. data/lib/assets/stylesheets/unpoly/tooltip.css.sass +32 -22
  18. data/lib/unpoly/rails/version.rb +1 -1
  19. data/spec_app/Gemfile.lock +1 -1
  20. data/spec_app/app/assets/images/grid.png +0 -0
  21. data/spec_app/app/assets/javascripts/integration_test.coffee +2 -0
  22. data/spec_app/app/assets/javascripts/jasmine_specs.coffee +7 -0
  23. data/spec_app/app/assets/stylesheets/integration_test.sass +24 -0
  24. data/spec_app/app/assets/stylesheets/jasmine_specs.sass +1 -0
  25. data/spec_app/app/controllers/{test_controller.rb → binding_test_controller.rb} +1 -1
  26. data/spec_app/app/controllers/css_test_controller.rb +5 -0
  27. data/spec_app/app/controllers/form_test/basics_controller.rb +14 -0
  28. data/spec_app/app/controllers/form_test/uploads_controller.rb +15 -0
  29. data/spec_app/app/controllers/pages_controller.rb +5 -0
  30. data/spec_app/app/views/css_test/tooltip.erb +15 -0
  31. data/spec_app/app/views/form_test/basics/new.erb +33 -0
  32. data/spec_app/app/views/form_test/submission_result.erb +30 -0
  33. data/spec_app/app/views/form_test/uploads/new.erb +27 -0
  34. data/spec_app/app/views/layouts/integration_test.erb +14 -0
  35. data/spec_app/app/views/pages/start.erb +25 -0
  36. data/spec_app/config/initializers/assets.rb +4 -1
  37. data/spec_app/config/routes.rb +8 -2
  38. data/spec_app/spec/controllers/{test_controller_spec.rb → binding_test_controller_spec.rb} +1 -1
  39. data/spec_app/spec/javascripts/helpers/parse_form_data.js.coffee +9 -0
  40. data/spec_app/spec/javascripts/support/jasmine.yml +2 -2
  41. data/spec_app/spec/javascripts/up/form_spec.js.coffee +21 -1
  42. data/spec_app/spec/javascripts/up/tooltip_spec.js.coffee +54 -17
  43. metadata +21 -13
  44. data/spec_app/app/assets/javascripts/application.js +0 -20
  45. data/spec_app/app/assets/stylesheets/application.css +0 -17
  46. data/spec_app/app/assets/stylesheets/blocks/card.css.sass +0 -11
  47. data/spec_app/app/assets/stylesheets/blocks/controls.css.sass +0 -7
  48. data/spec_app/app/assets/stylesheets/blocks/menu.css.sass +0 -13
  49. data/spec_app/app/assets/stylesheets/blocks/panel.css.sass +0 -8
  50. data/spec_app/app/assets/stylesheets/jasmine_specs.css +0 -5
  51. data/spec_app/app/controllers/concerns/.keep +0 -0
  52. data/spec_app/app/views/layouts/application.html.erb +0 -12
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unpoly-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.1
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-18 00:00:00.000000000 Z
11
+ date: 2016-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -76,6 +76,7 @@ files:
76
76
  - design/draft.rb
77
77
  - design/ghost-debugging.txt
78
78
  - design/homepage.txt
79
+ - design/positioning.txt
79
80
  - design/rename.txt
80
81
  - dist/unpoly-bootstrap3.css
81
82
  - dist/unpoly-bootstrap3.js
@@ -134,20 +135,26 @@ files:
134
135
  - spec_app/README.rdoc
135
136
  - spec_app/Rakefile
136
137
  - spec_app/app/assets/images/.keep
137
- - spec_app/app/assets/javascripts/application.js
138
- - spec_app/app/assets/stylesheets/application.css
139
- - spec_app/app/assets/stylesheets/blocks/card.css.sass
140
- - spec_app/app/assets/stylesheets/blocks/controls.css.sass
141
- - spec_app/app/assets/stylesheets/blocks/menu.css.sass
142
- - spec_app/app/assets/stylesheets/blocks/panel.css.sass
143
- - spec_app/app/assets/stylesheets/jasmine_specs.css
138
+ - spec_app/app/assets/images/grid.png
139
+ - spec_app/app/assets/javascripts/integration_test.coffee
140
+ - spec_app/app/assets/javascripts/jasmine_specs.coffee
141
+ - spec_app/app/assets/stylesheets/integration_test.sass
142
+ - spec_app/app/assets/stylesheets/jasmine_specs.sass
144
143
  - spec_app/app/controllers/application_controller.rb
145
- - spec_app/app/controllers/concerns/.keep
146
- - spec_app/app/controllers/test_controller.rb
144
+ - spec_app/app/controllers/binding_test_controller.rb
145
+ - spec_app/app/controllers/css_test_controller.rb
146
+ - spec_app/app/controllers/form_test/basics_controller.rb
147
+ - spec_app/app/controllers/form_test/uploads_controller.rb
148
+ - spec_app/app/controllers/pages_controller.rb
147
149
  - spec_app/app/helpers/application_helper.rb
148
150
  - spec_app/app/mailers/.keep
149
151
  - spec_app/app/models/concerns/.keep
150
- - spec_app/app/views/layouts/application.html.erb
152
+ - spec_app/app/views/css_test/tooltip.erb
153
+ - spec_app/app/views/form_test/basics/new.erb
154
+ - spec_app/app/views/form_test/submission_result.erb
155
+ - spec_app/app/views/form_test/uploads/new.erb
156
+ - spec_app/app/views/layouts/integration_test.erb
157
+ - spec_app/app/views/pages/start.erb
151
158
  - spec_app/bin/bundle
152
159
  - spec_app/bin/rails
153
160
  - spec_app/bin/rake
@@ -185,7 +192,7 @@ files:
185
192
  - spec_app/public/favicon.ico
186
193
  - spec_app/public/robots.txt
187
194
  - spec_app/script/cucumber
188
- - spec_app/spec/controllers/test_controller_spec.rb
195
+ - spec_app/spec/controllers/binding_test_controller_spec.rb
189
196
  - spec_app/spec/javascripts/helpers/append_fixture.js.coffee
190
197
  - spec_app/spec/javascripts/helpers/browser_switches.js.coffee
191
198
  - spec_app/spec/javascripts/helpers/index.js.coffee
@@ -193,6 +200,7 @@ files:
193
200
  - spec_app/spec/javascripts/helpers/last_request.js.coffee
194
201
  - spec_app/spec/javascripts/helpers/mock_ajax.js.coffee
195
202
  - spec_app/spec/javascripts/helpers/mock_clock.js.coffee
203
+ - spec_app/spec/javascripts/helpers/parse_form_data.js.coffee
196
204
  - spec_app/spec/javascripts/helpers/remove_body_margin.js.coffee
197
205
  - spec_app/spec/javascripts/helpers/reset_knife.js.coffee
198
206
  - spec_app/spec/javascripts/helpers/reset_path.js.coffee
@@ -1,20 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require jquery
14
- //= require jquery_ujs
15
- //= require jasmine-jquery
16
- //= require jasmine-fixture
17
- //= require jasmine-ajax
18
- //= require helpers/knife
19
- //= require unpoly
20
- //= require_tree .
@@ -1,17 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require unpoly
14
- *= require_tree ./blocks
15
- *= require_self
16
- */
17
-
@@ -1,11 +0,0 @@
1
- .card
2
- border: 1px solid #666
3
- padding: 15px
4
-
5
- .card__title
6
- margin: 20px 0
7
- font-weight: bold
8
- font-size: 30px
9
-
10
- .card__body
11
- margin: 20px 0
@@ -1,7 +0,0 @@
1
- .controls
2
-
3
- dt
4
- font-weight: bold
5
-
6
- dd
7
- margin: 0 0 10px 0
@@ -1,13 +0,0 @@
1
- .menu
2
-
3
- .menu__item
4
- display: block
5
- padding: 20px
6
- background-color: #eee
7
- border-top: 1px solid #999
8
-
9
- &.up-active
10
- background-color: yellow
11
-
12
- &.up-current
13
- background-color: #35c
@@ -1,8 +0,0 @@
1
- .panel
2
-
3
- .panel__side
4
- float: left
5
- width: 200px
6
-
7
- .panel__main
8
- margin-left: 220px
@@ -1,5 +0,0 @@
1
- /*
2
- *= require unpoly
3
- *= require_self
4
- */
5
-
File without changes
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title><%= @window_title || 'Default window title' %></title>
5
- <%= stylesheet_link_tag 'application', media: 'all' %>
6
- <%= javascript_include_tag 'application' %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
- <%= yield %>
11
- </body>
12
- </html>