contour 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. data/CHANGELOG.rdoc +13 -0
  2. data/README.rdoc +1 -7
  3. data/Rakefile +38 -0
  4. data/{vendor → app}/assets/images/contour/addfile.png +0 -0
  5. data/{vendor → app}/assets/images/contour/arrow.png +0 -0
  6. data/{vendor → app}/assets/images/contour/blank.png +0 -0
  7. data/{vendor → app}/assets/images/contour/cas_32.png +0 -0
  8. data/{vendor → app}/assets/images/contour/cas_64.png +0 -0
  9. data/{vendor → app}/assets/images/contour/cross.png +0 -0
  10. data/{vendor → app}/assets/images/contour/delete.png +0 -0
  11. data/{vendor → app}/assets/images/contour/doc.png +0 -0
  12. data/{vendor → app}/assets/images/contour/download.png +0 -0
  13. data/{vendor → app}/assets/images/contour/edit.png +0 -0
  14. data/{vendor → app}/assets/images/contour/email.png +0 -0
  15. data/{vendor → app}/assets/images/contour/external.png +0 -0
  16. data/{vendor → app}/assets/images/contour/facebook_32.png +0 -0
  17. data/{vendor → app}/assets/images/contour/facebook_64.png +0 -0
  18. data/{vendor → app}/assets/images/contour/favorite_no.png +0 -0
  19. data/{vendor → app}/assets/images/contour/favorite_yes.png +0 -0
  20. data/{vendor → app}/assets/images/contour/feed.png +0 -0
  21. data/{vendor → app}/assets/images/contour/google_apps_32.png +0 -0
  22. data/{vendor → app}/assets/images/contour/google_apps_64.png +0 -0
  23. data/{vendor → app}/assets/images/contour/im.png +0 -0
  24. data/{vendor → app}/assets/images/contour/information.png +0 -0
  25. data/{vendor → app}/assets/images/contour/key.png +0 -0
  26. data/{vendor → app}/assets/images/contour/ldap_32.png +0 -0
  27. data/{vendor → app}/assets/images/contour/ldap_64.png +0 -0
  28. data/{vendor → app}/assets/images/contour/linkedin_32.png +0 -0
  29. data/{vendor → app}/assets/images/contour/linkedin_64.png +0 -0
  30. data/{vendor → app}/assets/images/contour/mydocuments.png +0 -0
  31. data/{vendor → app}/assets/images/contour/open.png +0 -0
  32. data/{vendor → app}/assets/images/contour/openid_32.png +0 -0
  33. data/{vendor → app}/assets/images/contour/openid_64.png +0 -0
  34. data/{vendor → app}/assets/images/contour/pdf.png +0 -0
  35. data/{vendor → app}/assets/images/contour/save.png +0 -0
  36. data/{vendor → app}/assets/images/contour/search.png +0 -0
  37. data/{vendor → app}/assets/images/contour/tag_blue.png +0 -0
  38. data/{vendor → app}/assets/images/contour/tag_green.png +0 -0
  39. data/{vendor → app}/assets/images/contour/tag_neutral.png +0 -0
  40. data/{vendor → app}/assets/images/contour/tag_red.png +0 -0
  41. data/{vendor → app}/assets/images/contour/tick.png +0 -0
  42. data/{vendor → app}/assets/images/contour/twitter_32.png +0 -0
  43. data/{vendor → app}/assets/images/contour/twitter_64.png +0 -0
  44. data/{vendor → app}/assets/images/contour/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  45. data/{vendor → app}/assets/images/contour/ui-bg_flat_55_fbec88_40x100.png +0 -0
  46. data/{vendor → app}/assets/images/contour/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  47. data/{vendor → app}/assets/images/contour/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  48. data/{vendor → app}/assets/images/contour/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  49. data/{vendor → app}/assets/images/contour/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  50. data/{vendor → app}/assets/images/contour/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  51. data/{vendor → app}/assets/images/contour/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  52. data/{vendor → app}/assets/images/contour/ui-icons_217bc0_256x240.png +0 -0
  53. data/{vendor → app}/assets/images/contour/ui-icons_2e83ff_256x240.png +0 -0
  54. data/{vendor → app}/assets/images/contour/ui-icons_469bdd_256x240.png +0 -0
  55. data/{vendor → app}/assets/images/contour/ui-icons_6da8d5_256x240.png +0 -0
  56. data/{vendor → app}/assets/images/contour/ui-icons_cd0a0a_256x240.png +0 -0
  57. data/{vendor → app}/assets/images/contour/ui-icons_d8e7f3_256x240.png +0 -0
  58. data/{vendor → app}/assets/images/contour/ui-icons_f9bd01_256x240.png +0 -0
  59. data/{vendor → app}/assets/images/contour/visited.png +0 -0
  60. data/{vendor → app}/assets/images/contour/warning.png +0 -0
  61. data/{vendor → app}/assets/images/contour/xls.png +0 -0
  62. data/{vendor → app}/assets/javascripts/contour.js +0 -0
  63. data/{vendor → app}/assets/javascripts/contour/errors.js.coffee +0 -0
  64. data/app/assets/javascripts/contour/global.js.coffee +13 -0
  65. data/app/assets/javascripts/contour/menu.js.coffee +21 -0
  66. data/{vendor → app}/assets/javascripts/contour/popup.js.coffee +0 -0
  67. data/{vendor → app}/assets/javascripts/external/exporting-2.1.9.src.js +0 -0
  68. data/{vendor → app}/assets/javascripts/external/highcharts-2.1.9.src.js +0 -0
  69. data/{vendor → app}/assets/javascripts/external/jquery-ui-1.8.10.custom.min.js +0 -0
  70. data/{vendor → app}/assets/javascripts/external/waypoints.js +0 -0
  71. data/{vendor → app}/assets/stylesheets/bluetrip-screen.css +0 -0
  72. data/{vendor → app}/assets/stylesheets/contour.css +0 -0
  73. data/{vendor → app}/assets/stylesheets/contour/authentication.css +0 -0
  74. data/{vendor → app}/assets/stylesheets/contour/global.css +2 -1
  75. data/{vendor → app}/assets/stylesheets/contour/header.css +0 -0
  76. data/app/assets/stylesheets/contour/menu.css +109 -0
  77. data/{vendor → app}/assets/stylesheets/contour/message.css +15 -3
  78. data/{vendor → app}/assets/stylesheets/contour/popup.css +0 -0
  79. data/{vendor → app}/assets/stylesheets/jquery-ui-1.8.10.custom.css +0 -0
  80. data/app/models/authentication.rb +11 -0
  81. data/app/views/contour/authentications/_menu.html.erb +26 -0
  82. data/app/views/contour/layouts/_menu.html.erb +15 -21
  83. data/app/views/contour/layouts/application.html.erb +2 -4
  84. data/app/views/contour/sessions/new.html.erb +2 -2
  85. data/config/routes.rb +16 -0
  86. data/contour.gemspec +15 -11
  87. data/lib/contour.rb +10 -6
  88. data/lib/contour/engine.rb +0 -1
  89. data/lib/contour/version.rb +2 -2
  90. data/lib/generators/contour/install_generator.rb +5 -4
  91. data/lib/generators/templates/contour.rb +10 -6
  92. data/test/contour_test.rb +7 -0
  93. data/test/dummy/Rakefile +7 -0
  94. data/test/dummy/app/assets/javascripts/application.js +8 -0
  95. data/test/dummy/app/assets/stylesheets/application.css +8 -0
  96. data/test/dummy/app/controllers/application_controller.rb +3 -0
  97. data/test/dummy/app/helpers/application_helper.rb +2 -0
  98. data/test/dummy/app/models/user.rb +45 -0
  99. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  100. data/test/dummy/config.ru +4 -0
  101. data/test/dummy/config/application.rb +45 -0
  102. data/test/dummy/config/boot.rb +10 -0
  103. data/test/dummy/config/database.yml +37 -0
  104. data/test/dummy/config/environment.rb +5 -0
  105. data/test/dummy/config/environments/development.rb +30 -0
  106. data/test/dummy/config/environments/production.rb +60 -0
  107. data/test/dummy/config/environments/test.rb +39 -0
  108. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  109. data/test/dummy/config/initializers/devise.rb +153 -0
  110. data/test/dummy/config/initializers/inflections.rb +10 -0
  111. data/test/dummy/config/initializers/mime_types.rb +5 -0
  112. data/test/dummy/config/initializers/omniauth.rb +22 -0
  113. data/test/dummy/config/initializers/secret_token.rb +7 -0
  114. data/test/dummy/config/initializers/session_store.rb +8 -0
  115. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  116. data/test/dummy/config/locales/en.yml +5 -0
  117. data/test/dummy/config/routes.rb +58 -0
  118. data/test/dummy/db/migrate/20111203203123_create_users.rb +26 -0
  119. data/test/dummy/db/migrate/20111203203307_create_authentications.rb +11 -0
  120. data/test/dummy/db/schema.rb +45 -0
  121. data/test/dummy/public/404.html +26 -0
  122. data/test/dummy/public/422.html +26 -0
  123. data/test/dummy/public/500.html +26 -0
  124. data/test/dummy/public/favicon.ico +0 -0
  125. data/test/dummy/script/rails +6 -0
  126. data/test/fixtures/authentications.yml +14 -9
  127. data/test/fixtures/users.yml +70 -0
  128. data/test/functional/authentications_controller_test.rb +2 -2
  129. data/test/functional/registrations_controller_test.rb +9 -9
  130. data/test/integration/navigation_test.rb +8 -0
  131. data/test/test_helper.rb +52 -0
  132. data/test/unit/authentication_test.rb +6 -3
  133. data/test/unit/user_test.rb +13 -0
  134. metadata +186 -96
  135. data/.gitignore +0 -7
  136. data/.rvmrc +0 -1
  137. data/lib/contour/engine/routes.rb +0 -10
  138. data/test/unit/helpers/registrations_helper_test.rb +0 -4
  139. data/vendor/assets/javascripts/contour/global.js.coffee +0 -38
  140. data/vendor/assets/javascripts/contour/menu.js.coffee +0 -6
  141. data/vendor/assets/stylesheets/contour/menu.css +0 -77
data/.gitignore DELETED
@@ -1,7 +0,0 @@
1
- # .gitignore lists files and file patterns that are to be ignored by GIT
2
-
3
- # Ignore compiled gems
4
- *.gem
5
-
6
- # OS generated files #
7
- .DS_Store
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm 1.9.3
@@ -1,10 +0,0 @@
1
- module ActionDispatch::Routing
2
- # class RouteSet #:nodoc:
3
- # end
4
-
5
- class Mapper
6
- def contour_for(*resources)
7
-
8
- end
9
- end
10
- end
@@ -1,4 +0,0 @@
1
- require 'test_helper'
2
-
3
- class RegistrationsHelperTest < ActionView::TestCase
4
- end
@@ -1,38 +0,0 @@
1
- # Global functions referenced from HTML
2
- @showWaiting = (element_id, text, centered) ->
3
- element = $(element_id)
4
- if element && centered
5
- element.html('<br /><center><img width=\"13\" height=\"13\" src=\"' + root_url + 'assets/ajax-loader.gif\" align=\"absmiddle\" alt=\"...\" />' + text + '</center><br />')
6
- else if element
7
- element.html('<img width=\"13\" height=\"13\" src=\"' + root_url + 'assets/ajax-loader.gif\" align=\"absmiddle\" alt=\"...\" />' + text)
8
-
9
- # Mouse Out Functions to Show and Hide Divs
10
-
11
- @isTrueMouseOut = (e, handler) ->
12
- if e.type != 'mouseout'
13
- return false
14
-
15
- # relTarget
16
- if e.relatedTarget
17
- relTarget = e.relatedTarget
18
- else if e.type == 'mouseout'
19
- relTarget = e.toElement
20
- else
21
- relTarget = e.fromElement
22
- while relTarget && relTarget != handler
23
- relTarget = relTarget.parentNode
24
- relTarget != handler
25
-
26
- @hideOnMouseOut = (elements) ->
27
- $.each(elements, (index, value) ->
28
- element = $(value)
29
- element.mouseout((e, handler) ->
30
- if isTrueMouseOut(e||window.event, this) then element.hide()
31
- )
32
- )
33
-
34
- @showMessage = (elements) ->
35
- $.each(elements, (index, value) ->
36
- element = $(value)
37
- element.fadeIn(2000)
38
- )
@@ -1,6 +0,0 @@
1
- jQuery ->
2
- $('#menu').waypoint( (event, direction) ->
3
- $(this).toggleClass('sticky', direction == "down")
4
- $(this).css( left: $("#header").offset().left )
5
- event.stopPropagation()
6
- )
@@ -1,77 +0,0 @@
1
- /**************************************/
2
- /* NAVIGATION */
3
- /**************************************/
4
-
5
- #menu {
6
- background:#404040;
7
- padding:5px;
8
- color: #fff;
9
- }
10
-
11
- .sticky {
12
- position:fixed;
13
- top:0;
14
- width:950px;
15
- margin:0 auto;
16
- z-index:100;
17
- }
18
-
19
- #menu a {
20
- color: #fff;
21
- text-decoration: none;
22
- padding:0 5px;
23
- }
24
-
25
- #menu a:hover {
26
- color: #EB6C20;
27
- }
28
-
29
- div.menu_dropdown_right, div.menu_dropdown_right_center {
30
- background-color: #fff;
31
- position:absolute;
32
- border: 2px solid #0E7799;
33
- color: #404040;
34
- border-top: 0px;
35
- top:-2em;
36
- padding:5px;
37
- padding-right:8px;
38
- right:-5px;
39
- z-index:10;
40
- text-align:right;
41
- }
42
-
43
- div.menu_dropdown_left, div.menu_dropdown_left_center {
44
- background-color: #fff;
45
- position:absolute;
46
- border: 2px solid #0E7799;
47
- color: #404040;
48
- border-top: 0px;
49
- top:-2em;
50
- padding:5px;
51
- padding-left:8px;
52
- left:-5px;
53
- z-index:10;
54
- text-align: left;
55
- }
56
-
57
- #menu div.menu_dropdown_left a, #menu div.menu_dropdown_left_center a, #menu div.menu_dropdown_right a, #menu div.menu_dropdown_right_center a {
58
- color: #057080;
59
- padding-left: 0px;
60
- padding-right: 0px;
61
- }
62
-
63
- #menu div.menu_dropdown_left a:hover, #menu div.menu_dropdown_left_center a:hover, #menu div.menu_dropdown_right a:hover, #menu div.menu_dropdown_right_center a:hover {
64
- color: #EB6C20;
65
- }
66
-
67
- #menu, div.menu_dropdown_right {
68
- border-bottom-right-radius: 8px;
69
- -moz-border-radius-bottomright: 8px;
70
- -webkit-border-radius-bottomright: 8px;
71
- }
72
-
73
- #menu, div.menu_dropdown_left {
74
- border-bottom-left-radius: 8px;
75
- -moz-border-radius-bottomleft: 8px;
76
- -webkit-border-radius-bottomleft: 8px;
77
- }