undercase 0.2.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (407) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +70 -0
  3. data/Rakefile +21 -0
  4. data/app/assets/fonts/FontAwesome/FontAwesome.otf +0 -0
  5. data/app/assets/fonts/FontAwesome/fontawesome-webfont.eot +0 -0
  6. data/app/assets/fonts/FontAwesome/fontawesome-webfont.svg +414 -0
  7. data/app/assets/fonts/FontAwesome/fontawesome-webfont.ttf +0 -0
  8. data/app/assets/fonts/FontAwesome/fontawesome-webfont.woff +0 -0
  9. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-black-webfont.eot +0 -0
  10. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-black-webfont.svg +914 -0
  11. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-black-webfont.ttf +0 -0
  12. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-black-webfont.woff +0 -0
  13. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-blackit-webfont.eot +0 -0
  14. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-blackit-webfont.svg +812 -0
  15. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-blackit-webfont.ttf +0 -0
  16. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-blackit-webfont.woff +0 -0
  17. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-bold-webfont.eot +0 -0
  18. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-bold-webfont.svg +955 -0
  19. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-bold-webfont.ttf +0 -0
  20. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-bold-webfont.woff +0 -0
  21. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-boldit-webfont.eot +0 -0
  22. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-boldit-webfont.svg +831 -0
  23. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-boldit-webfont.ttf +0 -0
  24. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-boldit-webfont.woff +0 -0
  25. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralight-webfont.eot +0 -0
  26. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralight-webfont.svg +905 -0
  27. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralight-webfont.ttf +0 -0
  28. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralight-webfont.woff +0 -0
  29. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralightit-webfont.eot +0 -0
  30. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralightit-webfont.svg +828 -0
  31. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralightit-webfont.ttf +0 -0
  32. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-extralightit-webfont.woff +0 -0
  33. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-it-webfont.eot +0 -0
  34. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-it-webfont.svg +843 -0
  35. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-it-webfont.ttf +0 -0
  36. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-it-webfont.woff +0 -0
  37. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  38. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +904 -0
  39. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  40. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  41. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-lightit-webfont.eot +0 -0
  42. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-lightit-webfont.svg +830 -0
  43. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-lightit-webfont.ttf +0 -0
  44. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-lightit-webfont.woff +0 -0
  45. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  46. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +978 -0
  47. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  48. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  49. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semibold-webfont.eot +0 -0
  50. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semibold-webfont.svg +968 -0
  51. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semibold-webfont.ttf +0 -0
  52. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semibold-webfont.woff +0 -0
  53. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semiboldit-webfont.eot +0 -0
  54. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semiboldit-webfont.svg +838 -0
  55. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semiboldit-webfont.ttf +0 -0
  56. data/app/assets/fonts/Source-Sans-Pro/sourcesanspro-semiboldit-webfont.woff +0 -0
  57. data/app/assets/fonts/Undercase-Icons/Undercase-Icons.eot +0 -0
  58. data/app/assets/fonts/Undercase-Icons/Undercase-Icons.svg +72 -0
  59. data/app/assets/fonts/Undercase-Icons/Undercase-Icons.ttf +0 -0
  60. data/app/assets/fonts/Undercase-Icons/Undercase-Icons.woff +0 -0
  61. data/app/assets/images/avatar_male_small.png +0 -0
  62. data/app/assets/images/backgrounds/checkerboard_tile.png +0 -0
  63. data/app/assets/images/icons/calendar_datepicker.svg +18 -0
  64. data/app/assets/images/icons/checkbox-selected.svg +17 -0
  65. data/app/assets/images/icons/checkbox-unselected.svg +12 -0
  66. data/app/assets/images/icons/double-arrow-left.svg +13 -0
  67. data/app/assets/images/icons/double-arrow-right.svg +13 -0
  68. data/app/assets/images/icons/focus-child.svg +14 -0
  69. data/app/assets/images/icons/master-profile.svg +11 -0
  70. data/app/assets/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  71. data/app/assets/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  72. data/app/assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  73. data/app/assets/images/ui-bg_flat_100_b8b8b8_40x100.png +0 -0
  74. data/app/assets/images/ui-bg_flat_10_000000_40x100.png +0 -0
  75. data/app/assets/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  76. data/app/assets/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  77. data/app/assets/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  78. data/app/assets/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  79. data/app/assets/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  80. data/app/assets/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  81. data/app/assets/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  82. data/app/assets/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  83. data/app/assets/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  84. data/app/assets/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  85. data/app/assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  86. data/app/assets/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  87. data/app/assets/images/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
  88. data/app/assets/images/ui-icons_222222_256x240.png +0 -0
  89. data/app/assets/images/ui-icons_228ef1_256x240.png +0 -0
  90. data/app/assets/images/ui-icons_2e83ff_256x240.png +0 -0
  91. data/app/assets/images/ui-icons_454545_256x240.png +0 -0
  92. data/app/assets/images/ui-icons_888888_256x240.png +0 -0
  93. data/app/assets/images/ui-icons_cd0a0a_256x240.png +0 -0
  94. data/app/assets/images/ui-icons_ef8c08_256x240.png +0 -0
  95. data/app/assets/images/ui-icons_ffd27a_256x240.png +0 -0
  96. data/app/assets/images/ui-icons_ffffff_256x240.png +0 -0
  97. data/app/assets/images/undercase/undercase_gem_logo.png +0 -0
  98. data/app/assets/javascripts/undercase/index.js +19 -0
  99. data/app/assets/javascripts/undercase/lib/BreakpointTell.js +9 -0
  100. data/app/assets/javascripts/undercase/lib/timezone.js +28 -0
  101. data/app/assets/javascripts/undercase/patterns/Filter.js +75 -0
  102. data/app/assets/javascripts/undercase/patterns/FlexibleSearchMenu.js +64 -0
  103. data/app/assets/javascripts/undercase/patterns/ToggleNavigationSearch.js +60 -0
  104. data/app/assets/javascripts/undercase/patterns/datepicker.js +36 -0
  105. data/app/assets/javascripts/undercase/patterns/expando.js +39 -0
  106. data/app/assets/javascripts/undercase/patterns/modal.js +60 -0
  107. data/app/assets/javascripts/undercase/patterns/tabs.js +26 -0
  108. data/app/assets/javascripts/undercase/patterns/timepicker.js +5 -0
  109. data/app/assets/javascripts/undercase/popover.js +26 -0
  110. data/app/assets/javascripts/undercase/presenter.js +55 -0
  111. data/app/assets/javascripts/undercase/show_code.js +35 -0
  112. data/app/assets/javascripts/undercase/vendor/date.js +879 -0
  113. data/app/assets/javascripts/undercase/vendor/jquery-extensions/jquery.calendrical.js +517 -0
  114. data/app/assets/javascripts/undercase/vendor/jquery-ui-1.10.3.js +14972 -0
  115. data/app/assets/javascripts/undercase/vendor/modernizr.custom.14960.js +764 -0
  116. data/app/assets/javascripts/undercase/vendor/underscore.js +1189 -0
  117. data/app/assets/stylesheets/undercase/libraries/_all.scss +38 -0
  118. data/app/assets/stylesheets/undercase/libraries/_borders.scss +20 -0
  119. data/app/assets/stylesheets/undercase/libraries/_colors.scss +41 -0
  120. data/app/assets/stylesheets/undercase/libraries/_constants.scss +76 -0
  121. data/app/assets/stylesheets/undercase/libraries/_groundwork_settings.scss +351 -0
  122. data/app/assets/stylesheets/undercase/libraries/_icon_codes.scss +369 -0
  123. data/app/assets/stylesheets/undercase/libraries/_mixins.scss +49 -0
  124. data/app/assets/stylesheets/undercase/libraries/mixins/_button.scss +124 -0
  125. data/app/assets/stylesheets/undercase/libraries/mixins/_forms.scss +33 -0
  126. data/app/assets/stylesheets/undercase/libraries/mixins/_layout.scss +23 -0
  127. data/app/assets/stylesheets/undercase/libraries/mixins/_typography.scss +99 -0
  128. data/app/assets/stylesheets/undercase/patterns/_all.scss +32 -0
  129. data/app/assets/stylesheets/undercase/patterns/_borders.scss +89 -0
  130. data/app/assets/stylesheets/undercase/patterns/_box_helpers.scss +39 -0
  131. data/app/assets/stylesheets/undercase/patterns/_buttons.scss +110 -0
  132. data/app/assets/stylesheets/undercase/patterns/_cards.scss +36 -0
  133. data/app/assets/stylesheets/undercase/patterns/_chevrons.scss +98 -0
  134. data/app/assets/stylesheets/undercase/patterns/_colors.scss +34 -0
  135. data/app/assets/stylesheets/undercase/patterns/_content_with_toolbar.scss +23 -0
  136. data/app/assets/stylesheets/undercase/patterns/_dropdowns.scss +49 -0
  137. data/app/assets/stylesheets/undercase/patterns/_filters.scss +121 -0
  138. data/app/assets/stylesheets/undercase/patterns/_font_faces.scss +32 -0
  139. data/app/assets/stylesheets/undercase/patterns/_forms.scss +617 -0
  140. data/app/assets/stylesheets/undercase/patterns/_horizontal_rules.scss +5 -0
  141. data/app/assets/stylesheets/undercase/patterns/_icons.scss +4 -0
  142. data/app/assets/stylesheets/undercase/patterns/_inline_message.scss +36 -0
  143. data/app/assets/stylesheets/undercase/patterns/_layout.scss +57 -0
  144. data/app/assets/stylesheets/undercase/patterns/_length_of_time.scss +10 -0
  145. data/app/assets/stylesheets/undercase/patterns/_links.scss +96 -0
  146. data/app/assets/stylesheets/undercase/patterns/_lists.scss +84 -0
  147. data/app/assets/stylesheets/undercase/patterns/_media.scss +15 -0
  148. data/app/assets/stylesheets/undercase/patterns/_modals.scss +114 -0
  149. data/app/assets/stylesheets/undercase/patterns/_navigation.scss +224 -0
  150. data/app/assets/stylesheets/undercase/patterns/_pagination.scss +33 -0
  151. data/app/assets/stylesheets/undercase/patterns/_person_placard.scss +52 -0
  152. data/app/assets/stylesheets/undercase/patterns/_popovers.scss +12 -0
  153. data/app/assets/stylesheets/undercase/patterns/_quiz.scss +67 -0
  154. data/app/assets/stylesheets/undercase/patterns/_site.scss +95 -0
  155. data/app/assets/stylesheets/undercase/patterns/_spinners.scss +23 -0
  156. data/app/assets/stylesheets/undercase/patterns/_tables.scss +111 -0
  157. data/app/assets/stylesheets/undercase/patterns/_tabs.scss +56 -0
  158. data/app/assets/stylesheets/undercase/patterns/_typography.scss +231 -0
  159. data/app/assets/stylesheets/undercase/patterns/undercase_icons/glyphs.scss +28 -0
  160. data/app/assets/stylesheets/undercase/patterns_new_front_end/_all.scss +6 -0
  161. data/app/assets/stylesheets/undercase/patterns_new_front_end/_cards.scss +248 -0
  162. data/app/assets/stylesheets/undercase/patterns_new_front_end/_links.scss +10 -0
  163. data/app/assets/stylesheets/undercase/patterns_new_front_end/_warnings.scss +32 -0
  164. data/app/assets/stylesheets/undercase/vendor_static/_all.scss +12 -0
  165. data/app/assets/stylesheets/undercase/vendor_static/_calendrical.scss +105 -0
  166. data/app/assets/stylesheets/undercase/vendor_static/_icons.scss +422 -0
  167. data/app/assets/stylesheets/undercase/vendor_static/_jquery-ui-1.8.13.custom.scss +615 -0
  168. data/app/assets/stylesheets/undercase_frame/_dummy_site.scss +307 -0
  169. data/app/assets/stylesheets/undercase_frame/vendor/coderay.css +118 -0
  170. data/app/assets/stylesheets/undercase_frame_application.css.scss +18 -0
  171. data/app/assets/stylesheets/undercase_frame_vendor_static.scss +4 -0
  172. data/app/controllers/undercase/application_controller.rb +4 -0
  173. data/app/controllers/undercase/patterns_controller.rb +13 -0
  174. data/app/helpers/undercase/application_helper.rb +86 -0
  175. data/app/helpers/undercase/pattern_helper.rb +7 -0
  176. data/app/inputs/currency_input.rb +20 -0
  177. data/app/inputs/date_picker_input.rb +77 -0
  178. data/app/inputs/date_time_picker_input.rb +141 -0
  179. data/app/inputs/radio_as_accessible_input.rb +33 -0
  180. data/app/inputs/radio_with_clear_input.rb +41 -0
  181. data/app/models/dummy_form_object.rb +24 -0
  182. data/app/views/layouts/undercase/application.html.haml +49 -0
  183. data/app/views/undercase/patterns/_blue_dotted_link_caps.html.haml +2 -0
  184. data/app/views/undercase/patterns/_blue_link.html.haml +2 -0
  185. data/app/views/undercase/patterns/_blue_link_clean.html.haml +2 -0
  186. data/app/views/undercase/patterns/_cc_button_auto.html.haml +8 -0
  187. data/app/views/undercase/patterns/_cc_button_flat_blue.html.haml +2 -0
  188. data/app/views/undercase/patterns/_cc_button_flat_gray.html.haml +7 -0
  189. data/app/views/undercase/patterns/_cc_button_flat_gray_split.html.haml +4 -0
  190. data/app/views/undercase/patterns/_cc_button_flat_green.html.haml +2 -0
  191. data/app/views/undercase/patterns/_cc_button_gray.html.haml +1 -0
  192. data/app/views/undercase/patterns/_cc_button_icon.html.haml +2 -0
  193. data/app/views/undercase/patterns/_cc_button_wire_auto.html.haml +8 -0
  194. data/app/views/undercase/patterns/_cc_link_smartbar.html.haml +2 -0
  195. data/app/views/undercase/patterns/_chevrons.html.haml +38 -0
  196. data/app/views/undercase/patterns/_colors.html.haml +12 -0
  197. data/app/views/undercase/patterns/_content_with_toolbar.html.haml +6 -0
  198. data/app/views/undercase/patterns/_dropdown.html.haml +21 -0
  199. data/app/views/undercase/patterns/_filters.html.haml +210 -0
  200. data/app/views/undercase/patterns/_filters_show_only.html.haml +77 -0
  201. data/app/views/undercase/patterns/_gray_link.html.haml +2 -0
  202. data/app/views/undercase/patterns/_grid.html.haml +0 -0
  203. data/app/views/undercase/patterns/_icon_classes.html.haml +8 -0
  204. data/app/views/undercase/patterns/_icon_custom.html.haml +12 -0
  205. data/app/views/undercase/patterns/_inline_message.html.haml +5 -0
  206. data/app/views/undercase/patterns/_length_of_time.html.haml +12 -0
  207. data/app/views/undercase/patterns/_list_circle.html.haml +4 -0
  208. data/app/views/undercase/patterns/_list_disc.html.haml +4 -0
  209. data/app/views/undercase/patterns/_navigation.html.haml +40 -0
  210. data/app/views/undercase/patterns/_pagination.html.haml +17 -0
  211. data/app/views/undercase/patterns/_pattern.html.haml +27 -0
  212. data/app/views/undercase/patterns/_person_placard.html.haml +103 -0
  213. data/app/views/undercase/patterns/_popover.html.haml +9 -0
  214. data/app/views/undercase/patterns/_tables_mobile.html.haml +23 -0
  215. data/app/views/undercase/patterns/_tables_not_desktop.html.haml +21 -0
  216. data/app/views/undercase/patterns/_tables_small_mobile.html.haml +23 -0
  217. data/app/views/undercase/patterns/_tables_small_tablet.html.haml +25 -0
  218. data/app/views/undercase/patterns/_typography.html.haml +16 -0
  219. data/app/views/undercase/patterns/_typography_body_em.html.haml +1 -0
  220. data/app/views/undercase/patterns/_typography_body_p.html.haml +1 -0
  221. data/app/views/undercase/patterns/_typography_body_strong.html.haml +1 -0
  222. data/app/views/undercase/patterns/_typography_body_thin.html.haml +1 -0
  223. data/app/views/undercase/patterns/_typography_body_underline.html.haml +1 -0
  224. data/app/views/undercase/patterns/_typography_body_uppercase.html.haml +1 -0
  225. data/app/views/undercase/patterns/_typography_heading_1.html.haml +1 -0
  226. data/app/views/undercase/patterns/_typography_heading_2.html.haml +1 -0
  227. data/app/views/undercase/patterns/_typography_heading_3.html.haml +1 -0
  228. data/app/views/undercase/patterns/_typography_heading_4.html.haml +1 -0
  229. data/app/views/undercase/patterns/_typography_heading_thin.html.haml +1 -0
  230. data/app/views/undercase/patterns/_typography_links_general.html.haml +2 -0
  231. data/app/views/undercase/patterns/_typography_links_navigation.html.haml +2 -0
  232. data/app/views/undercase/patterns/_typography_links_page_banner.html.haml +2 -0
  233. data/app/views/undercase/patterns/_uc_borders_blue.html.haml +2 -0
  234. data/app/views/undercase/patterns/_uc_borders_gray.html.haml +2 -0
  235. data/app/views/undercase/patterns/_uc_borders_hover_blue.html.haml +3 -0
  236. data/app/views/undercase/patterns/_uc_borders_left.html.haml +4 -0
  237. data/app/views/undercase/patterns/_uc_borders_lighter_gray.html.haml +3 -0
  238. data/app/views/undercase/patterns/_uc_borders_middle_blue_2.html.haml +1 -0
  239. data/app/views/undercase/patterns/_uc_borders_middle_gray.html.haml +2 -0
  240. data/app/views/undercase/patterns/_uc_borders_yellow.html.haml +1 -0
  241. data/app/views/undercase/patterns/_uc_card.html.haml +40 -0
  242. data/app/views/undercase/patterns/_uc_dialog_loading.html.haml +2 -0
  243. data/app/views/undercase/patterns/_uc_errors.html.haml +1 -0
  244. data/app/views/undercase/patterns/_uc_forms_check_boxes.html.haml +7 -0
  245. data/app/views/undercase/patterns/_uc_forms_check_boxes_boolean.html.haml +20 -0
  246. data/app/views/undercase/patterns/_uc_forms_checkbutton.html.haml +14 -0
  247. data/app/views/undercase/patterns/_uc_forms_conditionally_required.html.haml +19 -0
  248. data/app/views/undercase/patterns/_uc_forms_currency_input.html.haml +7 -0
  249. data/app/views/undercase/patterns/_uc_forms_date_picker.html.haml +9 -0
  250. data/app/views/undercase/patterns/_uc_forms_date_time_picker.html.haml +9 -0
  251. data/app/views/undercase/patterns/_uc_forms_disabled_field.html.haml +8 -0
  252. data/app/views/undercase/patterns/_uc_forms_dropdown.html.haml +10 -0
  253. data/app/views/undercase/patterns/_uc_forms_dropdown_with_optgroups.html.haml +10 -0
  254. data/app/views/undercase/patterns/_uc_forms_full_name.html.haml +32 -0
  255. data/app/views/undercase/patterns/_uc_forms_grouped_inputs.html.haml +17 -0
  256. data/app/views/undercase/patterns/_uc_forms_large_field.html.haml +8 -0
  257. data/app/views/undercase/patterns/_uc_forms_medium_field.html.haml +8 -0
  258. data/app/views/undercase/patterns/_uc_forms_phone.html.haml +26 -0
  259. data/app/views/undercase/patterns/_uc_forms_radio_button_clear_link.html.haml +7 -0
  260. data/app/views/undercase/patterns/_uc_forms_radio_buttons.html.haml +7 -0
  261. data/app/views/undercase/patterns/_uc_forms_radio_buttons_breathe.html.haml +11 -0
  262. data/app/views/undercase/patterns/_uc_forms_radio_buttons_horizontal.html.haml +11 -0
  263. data/app/views/undercase/patterns/_uc_forms_search.html.haml +23 -0
  264. data/app/views/undercase/patterns/_uc_forms_short_name.html.haml +20 -0
  265. data/app/views/undercase/patterns/_uc_forms_small_field.html.haml +8 -0
  266. data/app/views/undercase/patterns/_uc_forms_textarea.html.haml +9 -0
  267. data/app/views/undercase/patterns/_uc_forms_tiny_field.html.haml +8 -0
  268. data/app/views/undercase/patterns/_uc_list_comma.html.haml +4 -0
  269. data/app/views/undercase/patterns/_uc_list_ordered_alpha.html.haml +12 -0
  270. data/app/views/undercase/patterns/_uc_list_ordered_decimal.html.haml +12 -0
  271. data/app/views/undercase/patterns/_uc_list_pipe.html.haml +4 -0
  272. data/app/views/undercase/patterns/_uc_media.html.haml +6 -0
  273. data/app/views/undercase/patterns/_uc_modal_basic.html.haml +28 -0
  274. data/app/views/undercase/patterns/_uc_modal_exception.html.haml +34 -0
  275. data/app/views/undercase/patterns/_uc_modal_with_linked.html.haml +37 -0
  276. data/app/views/undercase/patterns/_uc_quiz_questions.html.haml +12 -0
  277. data/app/views/undercase/patterns/_uc_tabs.html.haml +16 -0
  278. data/app/views/undercase/patterns/index.html.haml +48 -0
  279. data/app/views/undercase/patterns/show.html.haml +7 -0
  280. data/app/views/undercase/popups/_dropdown.html.haml +5 -0
  281. data/config/initializers/dotiw.rb +1 -0
  282. data/config/initializers/simple_form.rb +147 -0
  283. data/config/routes.rb +4 -0
  284. data/config/tddium.yml +17 -0
  285. data/config/undercase-icons-regular.yml +41 -0
  286. data/lib/tasks/undercase.rake +51 -0
  287. data/lib/undercase.rb +15 -0
  288. data/lib/undercase/categories.yml +12 -0
  289. data/lib/undercase/category.rb +20 -0
  290. data/lib/undercase/engine.rb +13 -0
  291. data/lib/undercase/pattern.rb +68 -0
  292. data/lib/undercase/patterns/blue_dotted_link_caps.yml +4 -0
  293. data/lib/undercase/patterns/blue_link.yml +4 -0
  294. data/lib/undercase/patterns/blue_link_clean.yml +4 -0
  295. data/lib/undercase/patterns/cc_button_auto.yml +4 -0
  296. data/lib/undercase/patterns/cc_button_flat_blue.yml +4 -0
  297. data/lib/undercase/patterns/cc_button_flat_gray.yml +4 -0
  298. data/lib/undercase/patterns/cc_button_flat_gray_split.yml +9 -0
  299. data/lib/undercase/patterns/cc_button_flat_green.yml +27 -0
  300. data/lib/undercase/patterns/cc_button_gray.yml +4 -0
  301. data/lib/undercase/patterns/cc_button_icon.yml +4 -0
  302. data/lib/undercase/patterns/cc_button_wire_auto.yml +5 -0
  303. data/lib/undercase/patterns/cc_link_smartbar.yml +4 -0
  304. data/lib/undercase/patterns/chevrons.yml +4 -0
  305. data/lib/undercase/patterns/colors.yml +5 -0
  306. data/lib/undercase/patterns/content_with_toolbar.yml +4 -0
  307. data/lib/undercase/patterns/dropdown.yml +4 -0
  308. data/lib/undercase/patterns/filters.yml +5 -0
  309. data/lib/undercase/patterns/filters_show_only.yml +5 -0
  310. data/lib/undercase/patterns/gray_link.yml +4 -0
  311. data/lib/undercase/patterns/grid.yml +4 -0
  312. data/lib/undercase/patterns/icon_classes.yml +5 -0
  313. data/lib/undercase/patterns/icon_custom.yml +4 -0
  314. data/lib/undercase/patterns/inline_message.yml +4 -0
  315. data/lib/undercase/patterns/length_of_time.yml +4 -0
  316. data/lib/undercase/patterns/list_circle.yml +4 -0
  317. data/lib/undercase/patterns/list_disc.yml +4 -0
  318. data/lib/undercase/patterns/navigation.yml +4 -0
  319. data/lib/undercase/patterns/pagination.yml +4 -0
  320. data/lib/undercase/patterns/person_placard.yml +4 -0
  321. data/lib/undercase/patterns/popover.yml +4 -0
  322. data/lib/undercase/patterns/tables_mobile.yml +4 -0
  323. data/lib/undercase/patterns/tables_not_desktop.yml +4 -0
  324. data/lib/undercase/patterns/tables_small_tablet.yml +4 -0
  325. data/lib/undercase/patterns/typography.yml +4 -0
  326. data/lib/undercase/patterns/typography_body_em.yml +4 -0
  327. data/lib/undercase/patterns/typography_body_p.yml +4 -0
  328. data/lib/undercase/patterns/typography_body_strong.yml +4 -0
  329. data/lib/undercase/patterns/typography_body_thin.yml +4 -0
  330. data/lib/undercase/patterns/typography_body_underline.yml +4 -0
  331. data/lib/undercase/patterns/typography_body_uppercase.yml +4 -0
  332. data/lib/undercase/patterns/typography_heading_1.yml +4 -0
  333. data/lib/undercase/patterns/typography_heading_2.yml +4 -0
  334. data/lib/undercase/patterns/typography_heading_3.yml +4 -0
  335. data/lib/undercase/patterns/typography_heading_4.yml +4 -0
  336. data/lib/undercase/patterns/typography_heading_thin.yml +4 -0
  337. data/lib/undercase/patterns/typography_links_general.yml +4 -0
  338. data/lib/undercase/patterns/typography_links_navigation.yml +4 -0
  339. data/lib/undercase/patterns/typography_links_page_banner.yml +4 -0
  340. data/lib/undercase/patterns/uc_borders_blue.yml +4 -0
  341. data/lib/undercase/patterns/uc_borders_gray.yml +4 -0
  342. data/lib/undercase/patterns/uc_borders_hover_blue.yml +4 -0
  343. data/lib/undercase/patterns/uc_borders_left.yml +4 -0
  344. data/lib/undercase/patterns/uc_borders_lighter_gray.yml +4 -0
  345. data/lib/undercase/patterns/uc_borders_middle_blue_2.yml +4 -0
  346. data/lib/undercase/patterns/uc_borders_middle_gray.yml +4 -0
  347. data/lib/undercase/patterns/uc_borders_yellow.yml +4 -0
  348. data/lib/undercase/patterns/uc_card.yml +5 -0
  349. data/lib/undercase/patterns/uc_dialog_loading.yml +4 -0
  350. data/lib/undercase/patterns/uc_errors.yml +5 -0
  351. data/lib/undercase/patterns/uc_forms_check_boxes.yml +4 -0
  352. data/lib/undercase/patterns/uc_forms_check_boxes_boolean.yml +4 -0
  353. data/lib/undercase/patterns/uc_forms_checkbutton.yml +4 -0
  354. data/lib/undercase/patterns/uc_forms_conditionally_required.yml +4 -0
  355. data/lib/undercase/patterns/uc_forms_currency_input.yml +4 -0
  356. data/lib/undercase/patterns/uc_forms_date_picker.yml +4 -0
  357. data/lib/undercase/patterns/uc_forms_date_time_picker.yml +4 -0
  358. data/lib/undercase/patterns/uc_forms_disabled_field.yml +4 -0
  359. data/lib/undercase/patterns/uc_forms_dropdown.yml +4 -0
  360. data/lib/undercase/patterns/uc_forms_dropdown_with_optgroups.yml +4 -0
  361. data/lib/undercase/patterns/uc_forms_full_name.yml +4 -0
  362. data/lib/undercase/patterns/uc_forms_grouped_inputs.yml +4 -0
  363. data/lib/undercase/patterns/uc_forms_large_field.yml +4 -0
  364. data/lib/undercase/patterns/uc_forms_medium_field.yml +4 -0
  365. data/lib/undercase/patterns/uc_forms_phone.yml +4 -0
  366. data/lib/undercase/patterns/uc_forms_radio_button_clear_link.yml +4 -0
  367. data/lib/undercase/patterns/uc_forms_radio_buttons.yml +4 -0
  368. data/lib/undercase/patterns/uc_forms_radio_buttons_breathe.yml +4 -0
  369. data/lib/undercase/patterns/uc_forms_radio_buttons_horizontal.yml +4 -0
  370. data/lib/undercase/patterns/uc_forms_search.yml +4 -0
  371. data/lib/undercase/patterns/uc_forms_short_name.yml +4 -0
  372. data/lib/undercase/patterns/uc_forms_small_field.yml +4 -0
  373. data/lib/undercase/patterns/uc_forms_textarea.yml +4 -0
  374. data/lib/undercase/patterns/uc_forms_tiny_field.yml +4 -0
  375. data/lib/undercase/patterns/uc_list_comma.yml +4 -0
  376. data/lib/undercase/patterns/uc_list_ordered_alpha.yml +4 -0
  377. data/lib/undercase/patterns/uc_list_ordered_decimal.yml +4 -0
  378. data/lib/undercase/patterns/uc_list_pipe.yml +4 -0
  379. data/lib/undercase/patterns/uc_media.yml +4 -0
  380. data/lib/undercase/patterns/uc_modal_basic.yml +4 -0
  381. data/lib/undercase/patterns/uc_modal_exception.yml +4 -0
  382. data/lib/undercase/patterns/uc_modal_with_linked.yml +4 -0
  383. data/lib/undercase/patterns/uc_quiz_questions.yml +4 -0
  384. data/lib/undercase/patterns/uc_tabs.yml +4 -0
  385. data/lib/undercase/templates/fontcustom/glyphs.scss +6 -0
  386. data/lib/undercase/version.rb +3 -0
  387. data/public/timezones/Makefile +523 -0
  388. data/public/timezones/africa +1194 -0
  389. data/public/timezones/antarctica +411 -0
  390. data/public/timezones/asia +2751 -0
  391. data/public/timezones/australasia +1726 -0
  392. data/public/timezones/backward +117 -0
  393. data/public/timezones/etcetera +81 -0
  394. data/public/timezones/europe +2973 -0
  395. data/public/timezones/factory +10 -0
  396. data/public/timezones/iso3166.tab +276 -0
  397. data/public/timezones/leapseconds +100 -0
  398. data/public/timezones/northamerica +3254 -0
  399. data/public/timezones/pacificnew +28 -0
  400. data/public/timezones/solar87 +390 -0
  401. data/public/timezones/solar88 +390 -0
  402. data/public/timezones/solar89 +395 -0
  403. data/public/timezones/southamerica +1718 -0
  404. data/public/timezones/systemv +38 -0
  405. data/public/timezones/yearistype.sh +38 -0
  406. data/public/timezones/zone.tab +444 -0
  407. metadata +789 -0
@@ -0,0 +1,4 @@
1
+ name: Links - Page Banner
2
+ description: Page Banner Link styling
3
+ usage: Use the classes
4
+ category: :typography
@@ -0,0 +1,4 @@
1
+ name: Blue
2
+ description: Blue border
3
+ usage: Use on elements
4
+ category: :borders
@@ -0,0 +1,4 @@
1
+ name: Gray
2
+ description: Gray dotted border
3
+ usage: Use on elements
4
+ category: :borders
@@ -0,0 +1,4 @@
1
+ name: Blue background and border on hover
2
+ description: Adds a light blue background and a blue border when hovering on the element
3
+ usage: Use on elements
4
+ category: :borders
@@ -0,0 +1,4 @@
1
+ name: Left border
2
+ description: Yellow border to the left
3
+ usage: Separates main content area from sidebar
4
+ category: :borders
@@ -0,0 +1,4 @@
1
+ name: Lighter Gray
2
+ description: Lighter Gray border
3
+ usage: Use on elements
4
+ category: :borders
@@ -0,0 +1,4 @@
1
+ name: Middle Blue 2
2
+ description: Border with the color "Middle Blue 2"
3
+ usage: Use on elements
4
+ category: :borders
@@ -0,0 +1,4 @@
1
+ name: Middle Gray
2
+ description: Middle Gray border
3
+ usage: Use on elements
4
+ category: :borders
@@ -0,0 +1,4 @@
1
+ name: Yellow
2
+ description: Yellow border
3
+ usage: Use on elements
4
+ category: :borders
@@ -0,0 +1,5 @@
1
+ name: Card
2
+ description: The card
3
+ usage: To hold information
4
+ category: :components
5
+
@@ -0,0 +1,4 @@
1
+ name: Loading content
2
+ description: Used as an intermediate dialog to let the user know that content is loading.
3
+ usage: Used when loading large content areas asynchronously from page load.
4
+ category: :popups
@@ -0,0 +1,5 @@
1
+ name: Errors/Warnings
2
+ description: Validation errors or warnings
3
+ usage: To show warnings in a card when something needs to be filled out. Or top level list of errors on a form.
4
+ category: :components
5
+
@@ -0,0 +1,4 @@
1
+ name: Check Boxes
2
+ description: Check Boxes
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Lone Boolean Check Boxes
2
+ description: Lone Boolean Check Boxes
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Checkbutton
2
+ description: Checkbutton
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Conditionally required fields
2
+ description: Conditionally required fields
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Currency input
2
+ description: Currency input
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Date Picker
2
+ description: Date Picker
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Date Time Picker
2
+ description: Date Time Picker
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Disabled Field
2
+ description: A disabled field
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Dropdown
2
+ description: Dropdown
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Dropdown with optgroups
2
+ description: Dropdown with optgroups
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Full Name
2
+ description: A full name
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Grouped Inputs
2
+ description: Grouped Inputs
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Large Field
2
+ description: A large field
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Medium Field
2
+ description: A Medium Field
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Phone
2
+ description: Phone
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Radio Button with Clear Link
2
+ description: Radio Button with Clear Link
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Radio Buttons
2
+ description: Radio buttons
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Radio Buttons Breathe
2
+ description: Radio buttons breathe
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Radio Buttons Horizontal
2
+ description: Horizontal radio buttons
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Search
2
+ description: Search
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Short Name
2
+ description: A short name
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Small Field
2
+ description: A small field
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Textarea
2
+ description: Textarea
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Tiny Field
2
+ description: A tiny field
3
+ usage: Use on forms
4
+ category: :forms
@@ -0,0 +1,4 @@
1
+ name: Comma-Separated List
2
+ description: List with commas
3
+ usage: Use in unordered list (<ul>) only
4
+ category: :lists
@@ -0,0 +1,4 @@
1
+ name: List, lower alpha
2
+ description: An ordered list, alphabetical
3
+ usage: use only with <ol>
4
+ category: :lists
@@ -0,0 +1,4 @@
1
+ name: List, numbered
2
+ description: An ordered list, numbered
3
+ usage: use only with <ol>
4
+ category: :lists
@@ -0,0 +1,4 @@
1
+ name: Pipe-Separated List
2
+ description: List with separated by pipe character
3
+ usage: Use in unordered list (<ul>) only
4
+ category: :lists
@@ -0,0 +1,4 @@
1
+ name: Media with content
2
+ description: Displays an image of any size to the left of content. Text content does not wrap around the image. Any type of content can go inside .uc-media__content, including other modules.
3
+ usage: N/A
4
+ category: :components
@@ -0,0 +1,4 @@
1
+ name: Basic Modal
2
+ description: An unadorned responsive modal that should fill the entire screen with top alignment in the smallest viewport.
3
+ usage: Use when other modals do not apply.
4
+ category: :popups
@@ -0,0 +1,4 @@
1
+ name: Modal with Exception
2
+ description: Inherits style and behavior from the basic modal, with additional styling indicating it's unique role.
3
+ usage: Utilized when a user is attempting to record their rationale for being unable to collect and enter certain pieces of required data.
4
+ category: :popups
@@ -0,0 +1,4 @@
1
+ name: Modal w/ Linked Content
2
+ description: Inherits style and behavior from the basic modal, with additional contextual information about its the unit of work.
3
+ usage: Use this modal when performing an action on the Unit of Work container itself such as assigning or submitting the unit of work.
4
+ category: :popups
@@ -0,0 +1,4 @@
1
+ name: Quiz Questions
2
+ description: Use in quiz questions
3
+ usage: Quiz with questions
4
+ category: :lists
@@ -0,0 +1,4 @@
1
+ name: Autocompleter Tabs
2
+ description: Autocompleter inside tabbed panels. Activates a Bootstrap tab component.
3
+ usage: Switch autcompleter search mode between associated people and global search.
4
+ category: :components
@@ -0,0 +1,6 @@
1
+ <% @glyphs.each do |name, value| -%>
2
+ <%= @options[:css_selector].sub('{{glyph}}', name.to_s) %>:before {
3
+ font-family: <%= font_name %>;
4
+ content: "\<%= value[:codepoint].to_s(16) %>";
5
+ }
6
+ <% end -%>
@@ -0,0 +1,3 @@
1
+ module Undercase
2
+ VERSION = '0.2.29'
3
+ end
@@ -0,0 +1,523 @@
1
+ # <pre>
2
+ # This file is in the public domain, so clarified as of
3
+ # 2009-05-17 by Arthur David Olson.
4
+
5
+ # Package name for the code distribution.
6
+ PACKAGE= tzcode
7
+
8
+ # Version numbers of the code and data distributions.
9
+ VERSION= 2013a
10
+
11
+ # Email address for bug reports.
12
+ BUGEMAIL= tz@iana.org
13
+
14
+ # Change the line below for your time zone (after finding the zone you want in
15
+ # the time zone files, or adding it to a time zone file).
16
+ # Alternately, if you discover you've got the wrong time zone, you can just
17
+ # zic -l rightzone
18
+ # to correct things.
19
+ # Use the command
20
+ # make zonenames
21
+ # to get a list of the values you can use for LOCALTIME.
22
+
23
+ LOCALTIME= GMT
24
+
25
+ # If you want something other than Eastern United States time as a template
26
+ # for handling POSIX-style time zone environment variables,
27
+ # change the line below (after finding the zone you want in the
28
+ # time zone files, or adding it to a time zone file).
29
+ # (When a POSIX-style environment variable is handled, the rules in the
30
+ # template file are used to determine "spring forward" and "fall back" days and
31
+ # times; the environment variable itself specifies UTC offsets of standard and
32
+ # summer time.)
33
+ # Alternately, if you discover you've got the wrong time zone, you can just
34
+ # zic -p rightzone
35
+ # to correct things.
36
+ # Use the command
37
+ # make zonenames
38
+ # to get a list of the values you can use for POSIXRULES.
39
+ # If you want POSIX compatibility, use "America/New_York".
40
+
41
+ POSIXRULES= America/New_York
42
+
43
+ # Also see TZDEFRULESTRING below, which takes effect only
44
+ # if the time zone files cannot be accessed.
45
+
46
+ # Everything gets put in subdirectories of. . .
47
+
48
+ TOPDIR= /usr/local
49
+
50
+ # "Compiled" time zone information is placed in the "TZDIR" directory
51
+ # (and subdirectories).
52
+ # Use an absolute path name for TZDIR unless you're just testing the software.
53
+
54
+ TZDIR= $(TOPDIR)/etc/zoneinfo
55
+
56
+ # The "tzselect", "zic", and "zdump" commands get installed in. . .
57
+
58
+ ETCDIR= $(TOPDIR)/etc
59
+
60
+ # If you "make INSTALL", the "date" command gets installed in. . .
61
+
62
+ BINDIR= $(TOPDIR)/bin
63
+
64
+ # Manual pages go in subdirectories of. . .
65
+
66
+ MANDIR= $(TOPDIR)/man
67
+
68
+ # Library functions are put in an archive in LIBDIR.
69
+
70
+ LIBDIR= $(TOPDIR)/lib
71
+ TZLIB= $(LIBDIR)/libtz.a
72
+
73
+ # If you always want time values interpreted as "seconds since the epoch
74
+ # (not counting leap seconds)", use
75
+ # REDO= posix_only
76
+ # below. If you always want right time values interpreted as "seconds since
77
+ # the epoch" (counting leap seconds)", use
78
+ # REDO= right_only
79
+ # below. If you want both sets of data available, with leap seconds not
80
+ # counted normally, use
81
+ # REDO= posix_right
82
+ # below. If you want both sets of data available, with leap seconds counted
83
+ # normally, use
84
+ # REDO= right_posix
85
+ # below.
86
+ # POSIX mandates that leap seconds not be counted; for compatibility with it,
87
+ # use either "posix_only" or "posix_right".
88
+
89
+ REDO= posix_right
90
+
91
+ # Since "." may not be in PATH...
92
+
93
+ YEARISTYPE= ./yearistype
94
+
95
+ # Non-default libraries needed to link.
96
+ # Add -lintl if you want to use `gettext' on Solaris.
97
+ LDLIBS=
98
+
99
+ # Add the following to the end of the "CFLAGS=" line as needed.
100
+ # -DHAVE_ADJTIME=0 if `adjtime' does not exist (SVR0?)
101
+ # -DHAVE_GETTEXT=1 if `gettext' works (GNU, Linux, Solaris); also see LDLIBS
102
+ # -DHAVE_INCOMPATIBLE_CTIME_R=1 if your system's time.h declares
103
+ # ctime_r and asctime_r incompatibly with the POSIX standard (Solaris 8).
104
+ # -DHAVE_SETTIMEOFDAY=0 if settimeofday does not exist (SVR0?)
105
+ # -DHAVE_SETTIMEOFDAY=1 if settimeofday has just 1 arg (SVR4)
106
+ # -DHAVE_SETTIMEOFDAY=2 if settimeofday uses 2nd arg (4.3BSD)
107
+ # -DHAVE_SETTIMEOFDAY=3 if settimeofday ignores 2nd arg (4.4BSD)
108
+ # -DHAVE_STDINT_H=1 if you have a pre-C99 compiler with "stdint.h"
109
+ # -DHAVE_SYMLINK=0 if your system lacks the symlink function
110
+ # -DHAVE_SYS_STAT_H=0 if your compiler lacks a "sys/stat.h"
111
+ # -DHAVE_SYS_WAIT_H=0 if your compiler lacks a "sys/wait.h"
112
+ # -DLOCALE_HOME=\"path\" if locales are in "path", not "/usr/lib/locale"
113
+ # -DHAVE_UNISTD_H=0 if your compiler lacks a "unistd.h" (Microsoft C++ 7?)
114
+ # -DHAVE_UTMPX_H=1 if your compiler has a "utmpx.h"
115
+ # -DTZDEFRULESTRING=\",date/time,date/time\" to default to the specified
116
+ # DST transitions if the time zone files cannot be accessed
117
+ # -DTZ_DOMAIN=\"foo\" to use "foo" for gettext domain name; default is "tz"
118
+ # -TTZ_DOMAINDIR=\"/path\" to use "/path" for gettext directory;
119
+ # the default is system-supplied, typically "/usr/lib/locale"
120
+ # $(GCC_DEBUG_FLAGS) if you are using GCC and want lots of checking
121
+ # -DNO_RUN_TIME_WARNINGS_ABOUT_YEAR_2000_PROBLEMS_THANK_YOU=1
122
+ # if you do not want run time warnings about formats that may cause
123
+ # year 2000 grief
124
+ # -DZIC_MAX_ABBR_LEN_WO_WARN=3
125
+ # (or some other number) to set the maximum time zone abbreviation length
126
+ # that zic will accept without a warning (the default is 6)
127
+ GCC_DEBUG_FLAGS = -Dlint -g3 -O3 -fno-common -fstrict-aliasing \
128
+ -Wall -Wextra \
129
+ -Wbad-function-cast -Wcast-align -Wcast-qual \
130
+ -Wformat=2 -Winit-self \
131
+ -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes \
132
+ -Wnested-externs \
133
+ -Wno-format-nonliteral -Wno-sign-compare -Wno-sign-conversion \
134
+ -Wno-type-limits \
135
+ -Wno-unused-parameter -Woverlength-strings -Wpointer-arith \
136
+ -Wshadow -Wstrict-prototypes -Wsuggest-attribute=const \
137
+ -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wtrampolines \
138
+ -Wwrite-strings
139
+ #
140
+ # If you want to use System V compatibility code, add
141
+ # -DUSG_COMPAT
142
+ # to the end of the "CFLAGS=" line. This arrange for "timezone" and "daylight"
143
+ # variables to be kept up-to-date by the time conversion functions. Neither
144
+ # "timezone" nor "daylight" is described in X3J11's work.
145
+ #
146
+ # If your system has a "GMT offset" field in its "struct tm"s
147
+ # (or if you decide to add such a field in your system's "time.h" file),
148
+ # add the name to a define such as
149
+ # -DTM_GMTOFF=tm_gmtoff
150
+ # or
151
+ # -DTM_GMTOFF=_tm_gmtoff
152
+ # to the end of the "CFLAGS=" line.
153
+ # Neither tm_gmtoff nor _tm_gmtoff is described in X3J11's work;
154
+ # in its work, use of "tm_gmtoff" is described as non-conforming.
155
+ # Both Linux and BSD have done the equivalent of defining TM_GMTOFF in
156
+ # their recent releases.
157
+ #
158
+ # If your system has a "zone abbreviation" field in its "struct tm"s
159
+ # (or if you decide to add such a field in your system's "time.h" file),
160
+ # add the name to a define such as
161
+ # -DTM_ZONE=tm_zone
162
+ # or
163
+ # -DTM_ZONE=_tm_zone
164
+ # to the end of the "CFLAGS=" line.
165
+ # Neither tm_zone nor _tm_zone is described in X3J11's work;
166
+ # in its work, use of "tm_zone" is described as non-conforming.
167
+ # Both UCB and Sun have done the equivalent of defining TM_ZONE in
168
+ # their recent releases.
169
+ #
170
+ # If you want functions that were inspired by early versions of X3J11's work,
171
+ # add
172
+ # -DSTD_INSPIRED
173
+ # to the end of the "CFLAGS=" line. This arranges for the functions
174
+ # "tzsetwall", "offtime", "timelocal", "timegm", "timeoff",
175
+ # "posix2time", and "time2posix" to be added to the time conversion library.
176
+ # "tzsetwall" is like "tzset" except that it arranges for local wall clock
177
+ # time (rather than the time specified in the TZ environment variable)
178
+ # to be used.
179
+ # "offtime" is like "gmtime" except that it accepts a second (long) argument
180
+ # that gives an offset to add to the time_t when converting it.
181
+ # "timelocal" is equivalent to "mktime".
182
+ # "timegm" is like "timelocal" except that it turns a struct tm into
183
+ # a time_t using UTC (rather than local time as "timelocal" does).
184
+ # "timeoff" is like "timegm" except that it accepts a second (long) argument
185
+ # that gives an offset to use when converting to a time_t.
186
+ # "posix2time" and "time2posix" are described in an included manual page.
187
+ # X3J11's work does not describe any of these functions.
188
+ # Sun has provided "tzsetwall", "timelocal", and "timegm" in SunOS 4.0.
189
+ # These functions may well disappear in future releases of the time
190
+ # conversion package.
191
+ #
192
+ # If you want Source Code Control System ID's left out of object modules, add
193
+ # -DNOID
194
+ # to the end of the "CFLAGS=" line.
195
+ #
196
+ # If you'll never want to handle solar-time-based time zones, add
197
+ # -DNOSOLAR
198
+ # to the end of the "CFLAGS=" line
199
+ # (and comment out the "SDATA=" line below).
200
+ # This reduces (slightly) the run-time data-space requirements of
201
+ # the time conversion functions; it may reduce the acceptability of your system
202
+ # to folks in oil- and cash-rich places.
203
+ #
204
+ # If you want to allocate state structures in localtime, add
205
+ # -DALL_STATE
206
+ # to the end of the "CFLAGS=" line. Storage is obtained by calling malloc.
207
+ #
208
+ # If you want an "altzone" variable (a la System V Release 3.1), add
209
+ # -DALTZONE
210
+ # to the end of the "CFLAGS=" line.
211
+ # This variable is not described in X3J11's work.
212
+ #
213
+ # If you want a "gtime" function (a la MACH), add
214
+ # -DCMUCS
215
+ # to the end of the "CFLAGS=" line
216
+ # This function is not described in X3J11's work.
217
+ #
218
+ # NIST-PCTS:151-2, Version 1.4, (1993-12-03) is a test suite put
219
+ # out by the National Institute of Standards and Technology
220
+ # which claims to test C and Posix conformance. If you want to pass PCTS, add
221
+ # -DPCTS
222
+ # to the end of the "CFLAGS=" line.
223
+ #
224
+ # If you want strict compliance with XPG4 as of 1994-04-09, add
225
+ # -DXPG4_1994_04_09
226
+ # to the end of the "CFLAGS=" line. This causes "strftime" to always return
227
+ # 53 as a week number (rather than 52 or 53) for those days in January that
228
+ # before the first Monday in January when a "%V" format is used and January 1
229
+ # falls on a Friday, Saturday, or Sunday.
230
+
231
+ CFLAGS=
232
+
233
+ # Linker flags. Default to $(LFLAGS) for backwards compatibility
234
+ # to tzcode2012h and earlier.
235
+
236
+ LDFLAGS= $(LFLAGS)
237
+
238
+ zic= ./zic
239
+ ZIC= $(zic) $(ZFLAGS)
240
+
241
+ # The name of a Posix-compliant `awk' on your system.
242
+ AWK= awk
243
+
244
+ # The full path name of a Posix-compliant shell that supports the Korn shell's
245
+ # 'select' statement, as an extension. These days, Bash is the most popular.
246
+ KSHELL= /bin/bash
247
+
248
+ # The path where SGML DTDs are kept.
249
+ # The default is appropriate for Ubuntu 12.10.
250
+ SGML_TOPDIR= /usr
251
+ SGML_DTDDIR= $(SGML_TOPDIR)/share/xml/w3c-sgml-lib/schema/dtd
252
+ SGML_SEARCH_PATH= $(SGML_DTDDIR)/REC-html401-19991224
253
+
254
+ # The catalog file(s) to use when validating.
255
+ SGML_CATALOG_FILES= HTML4.cat
256
+
257
+ # The name, arguments and environment of a program to validate your web pages.
258
+ # See <http://www.jclark.com/sp/> for a validator, and
259
+ # <http://validator.w3.org/source/> for a validation library.
260
+ VALIDATE = nsgmls
261
+ VALIDATE_FLAGS = -s -B -wall -wno-unused-param
262
+ VALIDATE_ENV = \
263
+ SGML_CATALOG_FILES=$(SGML_CATALOG_FILES) \
264
+ SGML_SEARCH_PATH=$(SGML_SEARCH_PATH) \
265
+ SP_CHARSET_FIXED=YES \
266
+ SP_ENCODING=UTF-8
267
+
268
+ # INVALID_CHAR is a regular expression that matches invalid characters in
269
+ # distributed files. For now, stick to a safe subset of ASCII.
270
+ # The caller must set the shell variable 'sharp' to the character '#',
271
+ # since Makefile macros cannot contain '#'.
272
+ # TAB_CHAR is a single tab character, in single quotes.
273
+ TAB_CHAR= ' '
274
+ INVALID_CHAR1= $(TAB_CHAR)' !\"'$$sharp'$$%&'\''()*+,./0123456789:;<=>?@'
275
+ INVALID_CHAR2= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\^_`'
276
+ INVALID_CHAR3= 'abcdefghijklmnopqrstuvwxyz{|}~'
277
+ INVALID_CHAR= '[^]'$(INVALID_CHAR1)$(INVALID_CHAR2)$(INVALID_CHAR3)'-]'
278
+
279
+ # Flags to give 'tar' when making a distribution.
280
+ # Try to use flags appropriate for GNU tar.
281
+ GNUTARFLAGS= --numeric-owner --owner=0 --group=0 --mode=go+u,go-w
282
+ TARFLAGS= `if tar $(GNUTARFLAGS) --version >/dev/null 2>&1; \
283
+ then echo $(GNUTARFLAGS); \
284
+ else :; \
285
+ fi`
286
+
287
+ # Flags to give 'gzip' when making a distribution.
288
+ GZIPFLAGS= -9n
289
+
290
+ ###############################################################################
291
+
292
+ cc= cc
293
+ CC= $(cc) -DTZDIR=\"$(TZDIR)\"
294
+
295
+ TZCSRCS= zic.c localtime.c asctime.c scheck.c ialloc.c
296
+ TZCOBJS= zic.o localtime.o asctime.o scheck.o ialloc.o
297
+ TZDSRCS= zdump.c localtime.c ialloc.c
298
+ TZDOBJS= zdump.o localtime.o ialloc.o
299
+ DATESRCS= date.c localtime.c strftime.c asctime.c
300
+ DATEOBJS= date.o localtime.o strftime.o asctime.o
301
+ LIBSRCS= localtime.c asctime.c difftime.c
302
+ LIBOBJS= localtime.o asctime.o difftime.o
303
+ HEADERS= tzfile.h private.h
304
+ NONLIBSRCS= zic.c zdump.c scheck.c ialloc.c
305
+ NEWUCBSRCS= date.c strftime.c
306
+ SOURCES= $(HEADERS) $(LIBSRCS) $(NONLIBSRCS) $(NEWUCBSRCS) tzselect.ksh
307
+ MANS= newctime.3 newstrftime.3 newtzset.3 time2posix.3 \
308
+ tzfile.5 tzselect.8 zic.8 zdump.8
309
+ COMMON= Makefile
310
+ DOCS= README Theory $(MANS) date.1
311
+ PRIMARY_YDATA= africa antarctica asia australasia \
312
+ europe northamerica southamerica
313
+ YDATA= $(PRIMARY_YDATA) pacificnew etcetera backward
314
+ NDATA= systemv factory
315
+ SDATA= solar87 solar88 solar89
316
+ TDATA= $(YDATA) $(NDATA) $(SDATA)
317
+ TABDATA= iso3166.tab zone.tab
318
+ DATA= $(YDATA) $(NDATA) $(SDATA) $(TABDATA) leapseconds yearistype.sh
319
+ WEB_PAGES= tz-art.htm tz-link.htm
320
+ MISC= usno1988 usno1989 usno1989a usno1995 usno1997 usno1998 \
321
+ $(WEB_PAGES) checktab.awk workman.sh \
322
+ zoneinfo2tdf.pl
323
+ ENCHILADA= $(COMMON) $(DOCS) $(SOURCES) $(DATA) $(MISC)
324
+
325
+ # And for the benefit of csh users on systems that assume the user
326
+ # shell should be used to handle commands in Makefiles. . .
327
+
328
+ SHELL= /bin/sh
329
+
330
+ all: tzselect zic zdump $(LIBOBJS)
331
+
332
+ ALL: all date
333
+
334
+ install: all $(DATA) $(REDO) $(TZLIB) $(MANS) $(TABDATA)
335
+ $(ZIC) -y $(YEARISTYPE) \
336
+ -d $(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
337
+ -rm -f $(TZDIR)/iso3166.tab $(TZDIR)/zone.tab
338
+ cp iso3166.tab zone.tab $(TZDIR)/.
339
+ -mkdir $(TOPDIR) $(ETCDIR)
340
+ cp tzselect zic zdump $(ETCDIR)/.
341
+ -mkdir $(TOPDIR) $(MANDIR) \
342
+ $(MANDIR)/man3 $(MANDIR)/man5 $(MANDIR)/man8
343
+ -rm -f $(MANDIR)/man3/newctime.3 \
344
+ $(MANDIR)/man3/newtzset.3 \
345
+ $(MANDIR)/man5/tzfile.5 \
346
+ $(MANDIR)/man8/tzselect.8 \
347
+ $(MANDIR)/man8/zdump.8 \
348
+ $(MANDIR)/man8/zic.8
349
+ cp newctime.3 newtzset.3 $(MANDIR)/man3/.
350
+ cp tzfile.5 $(MANDIR)/man5/.
351
+ cp tzselect.8 zdump.8 zic.8 $(MANDIR)/man8/.
352
+
353
+ INSTALL: ALL install date.1
354
+ -mkdir $(TOPDIR) $(BINDIR)
355
+ cp date $(BINDIR)/.
356
+ -mkdir $(TOPDIR) $(MANDIR) $(MANDIR)/man1
357
+ -rm -f $(MANDIR)/man1/date.1
358
+ cp date.1 $(MANDIR)/man1/.
359
+
360
+ version.h:
361
+ (echo 'static char const PKGVERSION[]="($(PACKAGE)) ";' && \
362
+ echo 'static char const TZVERSION[]="$(VERSION)";' && \
363
+ echo 'static char const REPORT_BUGS_TO[]="$(BUGEMAIL)";') >$@
364
+
365
+ zdump: $(TZDOBJS)
366
+ $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZDOBJS) $(LDLIBS)
367
+
368
+ zic: $(TZCOBJS) yearistype
369
+ $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZCOBJS) $(LDLIBS)
370
+
371
+ yearistype: yearistype.sh
372
+ cp yearistype.sh yearistype
373
+ chmod +x yearistype
374
+
375
+ posix_only: zic $(TDATA)
376
+ $(ZIC) -y $(YEARISTYPE) -d $(TZDIR) -L /dev/null $(TDATA)
377
+
378
+ right_only: zic leapseconds $(TDATA)
379
+ $(ZIC) -y $(YEARISTYPE) -d $(TZDIR) -L leapseconds $(TDATA)
380
+
381
+ # In earlier versions of this makefile, the other two directories were
382
+ # subdirectories of $(TZDIR). However, this led to configuration errors.
383
+ # For example, with posix_right under the earlier scheme,
384
+ # TZ='right/Australia/Adelaide' got you localtime with leap seconds,
385
+ # but gmtime without leap seconds, which led to problems with applications
386
+ # like sendmail that subtract gmtime from localtime.
387
+ # Therefore, the other two directories are now siblings of $(TZDIR).
388
+ # You must replace all of $(TZDIR) to switch from not using leap seconds
389
+ # to using them, or vice versa.
390
+ other_two: zic leapseconds $(TDATA)
391
+ $(ZIC) -y $(YEARISTYPE) -d $(TZDIR)-posix -L /dev/null $(TDATA)
392
+ $(ZIC) -y $(YEARISTYPE) \
393
+ -d $(TZDIR)-leaps -L leapseconds $(TDATA)
394
+
395
+ posix_right: posix_only other_two
396
+
397
+ right_posix: right_only other_two
398
+
399
+ zones: $(REDO)
400
+
401
+ $(TZLIB): $(LIBOBJS)
402
+ -mkdir $(TOPDIR) $(LIBDIR)
403
+ ar ru $@ $(LIBOBJS)
404
+ if [ -x /usr/ucb/ranlib ] || [ -x /usr/bin/ranlib ]; \
405
+ then ranlib $@ ; fi
406
+
407
+ date: $(DATEOBJS)
408
+ $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(DATEOBJS) $(LDLIBS)
409
+
410
+ tzselect: tzselect.ksh
411
+ sed \
412
+ -e 's|#!/bin/bash|#!$(KSHELL)|g' \
413
+ -e 's|AWK=[^}]*|AWK=$(AWK)|g' \
414
+ -e 's|\(PKGVERSION\)=.*|\1='\''($(PACKAGE)) '\''|' \
415
+ -e 's|\(REPORT_BUGS_TO\)=.*|\1=$(BUGEMAIL)|' \
416
+ -e 's|TZDIR=[^}]*|TZDIR=$(TZDIR)|' \
417
+ -e 's|\(TZVERSION\)=.*|\1=$(VERSION)|' \
418
+ <$? >$@
419
+ chmod +x $@
420
+
421
+ check: check_character_set check_tables check_web
422
+
423
+ check_character_set: $(ENCHILADA)
424
+ sharp='#'; ! grep -n $(INVALID_CHAR) $(ENCHILADA)
425
+
426
+ check_tables: checktab.awk $(PRIMARY_YDATA)
427
+ $(AWK) -f checktab.awk $(PRIMARY_YDATA)
428
+
429
+ check_web: $(WEB_PAGES)
430
+ $(VALIDATE_ENV) $(VALIDATE) $(VALIDATE_FLAGS) $(WEB_PAGES)
431
+
432
+ clean:
433
+ rm -f core *.o *.out \
434
+ date tzselect version.h zdump zic yearistype
435
+ rm -f -r tzpublic
436
+
437
+ maintainer-clean: clean
438
+ @echo 'This command is intended for maintainers to use; it'
439
+ @echo 'deletes files that may need special tools to rebuild.'
440
+ rm -f *.[1-8].txt *.asc *.tar.gz
441
+
442
+ names:
443
+ @echo $(ENCHILADA)
444
+
445
+ public: check check_public set-timestamps tarballs signatures
446
+
447
+ # Set the time stamps to those of the git repository, if available,
448
+ # and if the files have not changed since then.
449
+ # This uses GNU 'touch' syntax 'touch -d@N FILE',
450
+ # where N is the number of seconds since 1970.
451
+ # If git or GNU 'touch' is absent, do nothing.
452
+ set-timestamps:
453
+ -TZ=UTC0 && export TZ && files=`git ls-files` && \
454
+ touch -d @1 test.out && rm -f test.out && \
455
+ for file in $$files; do \
456
+ test -z "`git diff --name-only $$file`" || continue; \
457
+ cmd="touch -d @`git log -1 --format='format:%ct' $$file \
458
+ ` $$file" && \
459
+ echo "$$cmd" && \
460
+ $$cmd || exit; \
461
+ done
462
+
463
+ # The zics below ensure that each data file can stand on its own.
464
+ # We also do an all-files run to catch links to links.
465
+
466
+ check_public: $(ENCHILADA)
467
+ make maintainer-clean
468
+ make "CFLAGS=$(GCC_DEBUG_FLAGS)"
469
+ mkdir tzpublic
470
+ for i in $(TDATA) ; do \
471
+ $(zic) -v -d tzpublic $$i 2>&1 || exit; \
472
+ done
473
+ $(zic) -v -d tzpublic $(TDATA)
474
+ rm -f -r tzpublic
475
+
476
+ tarballs: tzcode$(VERSION).tar.gz tzdata$(VERSION).tar.gz
477
+
478
+ tzcode$(VERSION).tar.gz: $(COMMON) $(DOCS) $(SOURCES) $(MISC)
479
+ for i in *.[1-8] ; do \
480
+ LC_ALL=C sh workman.sh $$i > $$i.txt && \
481
+ touch -r $$i $$i.txt || exit; \
482
+ done
483
+ LC_ALL=C && export LC_ALL && \
484
+ tar $(TARFLAGS) -cf - \
485
+ $(COMMON) $(DOCS) $(SOURCES) $(MISC) *.[1-8].txt | \
486
+ gzip $(GZIPFLAGS) > $@
487
+
488
+ tzdata$(VERSION).tar.gz: $(COMMON) $(DATA)
489
+ LC_ALL=C && export LC_ALL && \
490
+ tar $(TARFLAGS) -cf - $(COMMON) $(DATA) | \
491
+ gzip $(GZIPFLAGS) > $@
492
+
493
+ signatures: tzcode$(VERSION).tar.gz.asc tzdata$(VERSION).tar.gz.asc
494
+
495
+ tzcode$(VERSION).tar.gz.asc: tzcode$(VERSION).tar.gz
496
+ gpg --armor --detach-sign $?
497
+
498
+ tzdata$(VERSION).tar.gz.asc: tzdata$(VERSION).tar.gz
499
+ gpg --armor --detach-sign $?
500
+
501
+ typecheck:
502
+ make clean
503
+ for i in "long long" unsigned double; \
504
+ do \
505
+ make CFLAGS="-DTYPECHECK -D__time_t_defined -D_TIME_T \"-Dtime_t=$$i\"" ; \
506
+ ./zdump -v Europe/Rome ; \
507
+ make clean ; \
508
+ done
509
+
510
+ zonenames: $(TDATA)
511
+ @$(AWK) '/^Zone/ { print $$2 } /^Link/ { print $$3 }' $(TDATA)
512
+
513
+ asctime.o: private.h tzfile.h
514
+ date.o: private.h
515
+ difftime.o: private.h
516
+ ialloc.o: private.h
517
+ localtime.o: private.h tzfile.h
518
+ scheck.o: private.h
519
+ strftime.o: tzfile.h
520
+ zdump.o: version.h
521
+ zic.o: private.h tzfile.h version.h
522
+
523
+ .KEEP_STATE: