vipassana-design-standards 0.0.19 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/dist/css/bootstrap5-theme.css +2 -2
  2. package/dist/css/bootstrap5-theme.min.css +1 -1
  3. package/dist/css/bootstrap5-theme.rtl.css +2 -2
  4. package/dist/css/bootstrap5-theme.rtl.min.css +1 -1
  5. package/dist/js/helper.js +165 -0
  6. package/package.json +10 -5
  7. package/.htaccess +0 -3
  8. package/HOW_TO_PUBLISH.md +0 -29
  9. package/TODO +0 -14
  10. package/demo/.gitattributes +0 -5
  11. package/demo/.ruby-version +0 -1
  12. package/demo/Gemfile +0 -29
  13. package/demo/Gemfile.lock +0 -182
  14. package/demo/Rakefile +0 -6
  15. package/demo/app/assets/config/manifest.js +0 -2
  16. package/demo/app/assets/stylesheets/application.css +0 -15
  17. package/demo/app/controllers/application_controller.rb +0 -3
  18. package/demo/app/controllers/demo_controller.rb +0 -4
  19. package/demo/app/views/demo/index.html.erb +0 -11
  20. package/demo/app/views/layouts/application.html.erb +0 -74
  21. package/demo/bin/bundle +0 -114
  22. package/demo/bin/rails +0 -4
  23. package/demo/bin/rake +0 -4
  24. package/demo/bin/setup +0 -25
  25. package/demo/config/application.rb +0 -37
  26. package/demo/config/boot.rb +0 -3
  27. package/demo/config/credentials.yml.enc +0 -1
  28. package/demo/config/environment.rb +0 -5
  29. package/demo/config/environments/development.rb +0 -56
  30. package/demo/config/environments/production.rb +0 -72
  31. package/demo/config/environments/test.rb +0 -50
  32. package/demo/config/initializers/assets.rb +0 -12
  33. package/demo/config/initializers/content_security_policy.rb +0 -25
  34. package/demo/config/initializers/filter_parameter_logging.rb +0 -8
  35. package/demo/config/initializers/inflections.rb +0 -16
  36. package/demo/config/initializers/permissions_policy.rb +0 -11
  37. package/demo/config/locales/en.yml +0 -33
  38. package/demo/config/puma.rb +0 -43
  39. package/demo/config/routes.rb +0 -5
  40. package/demo/config.ru +0 -6
  41. package/demo/public/404.html +0 -67
  42. package/demo/public/422.html +0 -67
  43. package/demo/public/500.html +0 -66
  44. package/demo/public/apple-touch-icon-precomposed.png +0 -0
  45. package/demo/public/apple-touch-icon.png +0 -0
  46. package/demo/public/favicon.ico +0 -0
  47. package/demo/public/robots.txt +0 -1
  48. package/demo.html +0 -55
  49. package/dist/0.0.16/css/bootstrap5-theme.css +0 -12623
  50. package/dist/0.0.16/css/bootstrap5-theme.css.map +0 -1
  51. package/dist/0.0.16/css/bootstrap5-theme.min.css +0 -6
  52. package/dist/0.0.16/css/bootstrap5-theme.rtl.css +0 -12586
  53. package/dist/0.0.16/css/bootstrap5-theme.rtl.min.css +0 -6
  54. package/dist/0.0.16/css/fonts-gu.css +0 -65
  55. package/dist/0.0.16/css/fonts-gu.min.css +0 -1
  56. package/dist/0.0.16/css/fonts-ja.css +0 -2399
  57. package/dist/0.0.16/css/fonts-ja.min.css +0 -1
  58. package/dist/0.0.16/css/fonts-km.css +0 -2399
  59. package/dist/0.0.16/css/fonts-km.min.css +0 -1
  60. package/dist/0.0.16/css/fonts.css +0 -472
  61. package/dist/0.0.16/css/fonts.css.map +0 -1
  62. package/dist/0.0.16/css/fonts.min.css +0 -1
  63. package/dist/0.0.16/css/logo.css +0 -135
  64. package/dist/0.0.16/css/logo.css.map +0 -1
  65. package/dist/0.0.16/css/logo.min.css +0 -1
  66. package/dist/0.0.16/js/bootstrap.bundle.js +0 -7075
  67. package/dist/0.0.16/js/bootstrap.bundle.js.map +0 -1
  68. package/dist/0.0.16/js/bootstrap.bundle.min.js +0 -7
  69. package/dist/0.0.16/js/bootstrap.bundle.min.js.map +0 -1
  70. package/dist/0.0.17/css/bootstrap5-theme.css +0 -12629
  71. package/dist/0.0.17/css/bootstrap5-theme.css.map +0 -1
  72. package/dist/0.0.17/css/bootstrap5-theme.min.css +0 -6
  73. package/dist/0.0.17/css/bootstrap5-theme.rtl.css +0 -12592
  74. package/dist/0.0.17/css/bootstrap5-theme.rtl.min.css +0 -6
  75. package/dist/0.0.17/css/fonts-gu.css +0 -65
  76. package/dist/0.0.17/css/fonts-gu.min.css +0 -1
  77. package/dist/0.0.17/css/fonts-ja.css +0 -2399
  78. package/dist/0.0.17/css/fonts-ja.min.css +0 -1
  79. package/dist/0.0.17/css/fonts-km.css +0 -2399
  80. package/dist/0.0.17/css/fonts-km.min.css +0 -1
  81. package/dist/0.0.17/css/fonts.css +0 -472
  82. package/dist/0.0.17/css/fonts.css.map +0 -1
  83. package/dist/0.0.17/css/fonts.min.css +0 -1
  84. package/dist/0.0.17/css/logo.css +0 -135
  85. package/dist/0.0.17/css/logo.css.map +0 -1
  86. package/dist/0.0.17/css/logo.min.css +0 -1
  87. package/dist/0.0.17/js/bootstrap5-theme.min.js +0 -37
  88. package/dist/0.0.17/js/bootstrap5-theme.min.js.map +0 -1
  89. package/dist/0.0.18/css/bootstrap5-theme.css +0 -12632
  90. package/dist/0.0.18/css/bootstrap5-theme.css.map +0 -1
  91. package/dist/0.0.18/css/bootstrap5-theme.min.css +0 -6
  92. package/dist/0.0.18/css/bootstrap5-theme.rtl.css +0 -12595
  93. package/dist/0.0.18/css/bootstrap5-theme.rtl.min.css +0 -6
  94. package/dist/0.0.18/css/fonts-gu.css +0 -65
  95. package/dist/0.0.18/css/fonts-gu.min.css +0 -1
  96. package/dist/0.0.18/css/fonts-ja.css +0 -2399
  97. package/dist/0.0.18/css/fonts-ja.min.css +0 -1
  98. package/dist/0.0.18/css/fonts-km.css +0 -2399
  99. package/dist/0.0.18/css/fonts-km.min.css +0 -1
  100. package/dist/0.0.18/css/fonts.css +0 -472
  101. package/dist/0.0.18/css/fonts.css.map +0 -1
  102. package/dist/0.0.18/css/fonts.min.css +0 -1
  103. package/dist/0.0.18/css/logo.css +0 -135
  104. package/dist/0.0.18/css/logo.css.map +0 -1
  105. package/dist/0.0.18/css/logo.min.css +0 -1
  106. package/dist/0.0.18/js/bootstrap5-theme.min.js +0 -37
  107. package/dist/0.0.18/js/bootstrap5-theme.min.js.map +0 -1
  108. package/dist/0.0.19/css/bootstrap5-theme.css +0 -12637
  109. package/dist/0.0.19/css/bootstrap5-theme.css.map +0 -1
  110. package/dist/0.0.19/css/bootstrap5-theme.min.css +0 -6
  111. package/dist/0.0.19/css/bootstrap5-theme.rtl.css +0 -12600
  112. package/dist/0.0.19/css/bootstrap5-theme.rtl.min.css +0 -6
  113. package/dist/0.0.19/css/fonts-gu.css +0 -65
  114. package/dist/0.0.19/css/fonts-gu.min.css +0 -1
  115. package/dist/0.0.19/css/fonts-ja.css +0 -2399
  116. package/dist/0.0.19/css/fonts-ja.min.css +0 -1
  117. package/dist/0.0.19/css/fonts-km.css +0 -2399
  118. package/dist/0.0.19/css/fonts-km.min.css +0 -1
  119. package/dist/0.0.19/css/fonts.css +0 -472
  120. package/dist/0.0.19/css/fonts.css.map +0 -1
  121. package/dist/0.0.19/css/fonts.min.css +0 -1
  122. package/dist/0.0.19/css/logo.css +0 -135
  123. package/dist/0.0.19/css/logo.css.map +0 -1
  124. package/dist/0.0.19/css/logo.min.css +0 -1
  125. package/dist/0.0.19/js/bootstrap5-theme.min.js +0 -37
  126. package/dist/0.0.19/js/bootstrap5-theme.min.js.map +0 -1
  127. package/dist/design-standards-v0.3.pdf +0 -0
  128. package/dist/dhamma-wheel.svg +0 -1
  129. package/dist/favicon.png +0 -0
  130. package/dist/favicon.svg +0 -1490
  131. package/dist/fonts/FootlightMTProBold.woff +0 -0
  132. package/dist/fonts/FootlightMTProBoldItalic.woff +0 -0
  133. package/dist/fonts/FootlightMTProExtraBold.woff +0 -0
  134. package/dist/fonts/FootlightMTProExtraBoldIt.woff +0 -0
  135. package/dist/fonts/FootlightMTProItalic.woff +0 -0
  136. package/dist/fonts/FootlightMTProLight.base64.js +0 -1
  137. package/dist/fonts/FootlightMTProLight.woff +0 -0
  138. package/dist/fonts/FootlightMTProLightItalic.woff +0 -0
  139. package/dist/fonts/FootlightMTProRegular.woff +0 -0
  140. package/dist/fonts/Lato-Black.woff +0 -0
  141. package/dist/fonts/Lato-BlackItalic.woff +0 -0
  142. package/dist/fonts/Lato-Bold.woff +0 -0
  143. package/dist/fonts/Lato-BoldItalic.woff +0 -0
  144. package/dist/fonts/Lato-Italic.woff +0 -0
  145. package/dist/fonts/Lato-Light.base64.js +0 -1
  146. package/dist/fonts/Lato-Light.woff +0 -0
  147. package/dist/fonts/Lato-LightItalic.woff +0 -0
  148. package/dist/fonts/Lato-Regular.woff +0 -0
  149. package/dist/fonts/Lato-Thin.woff +0 -0
  150. package/dist/fonts/Lato-ThinItalic.woff +0 -0
  151. package/dist/fonts/OFL.txt +0 -93
  152. package/dist/fonts.zip +0 -0
  153. package/dist/logos/logo-bg-large.png +0 -0
  154. package/dist/logos/logo-bg-small.png +0 -0
  155. package/dist/logos/logo-bg.png +0 -0
  156. package/dist/logos/logo-cs-large.png +0 -0
  157. package/dist/logos/logo-cs-small.png +0 -0
  158. package/dist/logos/logo-cs.png +0 -0
  159. package/dist/logos/logo-de-large.png +0 -0
  160. package/dist/logos/logo-de-small.png +0 -0
  161. package/dist/logos/logo-de.png +0 -0
  162. package/dist/logos/logo-el-large.png +0 -0
  163. package/dist/logos/logo-el-small.png +0 -0
  164. package/dist/logos/logo-el.png +0 -0
  165. package/dist/logos/logo-en-large.png +0 -0
  166. package/dist/logos/logo-en-small.png +0 -0
  167. package/dist/logos/logo-en.png +0 -0
  168. package/dist/logos/logo-es-large.png +0 -0
  169. package/dist/logos/logo-es-small.png +0 -0
  170. package/dist/logos/logo-es.png +0 -0
  171. package/dist/logos/logo-fa-large.png +0 -0
  172. package/dist/logos/logo-fa-small.png +0 -0
  173. package/dist/logos/logo-fa.png +0 -0
  174. package/dist/logos/logo-fi-large.png +0 -0
  175. package/dist/logos/logo-fi-small.png +0 -0
  176. package/dist/logos/logo-fi.png +0 -0
  177. package/dist/logos/logo-fr-large.png +0 -0
  178. package/dist/logos/logo-fr-small.png +0 -0
  179. package/dist/logos/logo-fr.png +0 -0
  180. package/dist/logos/logo-gu-large.png +0 -0
  181. package/dist/logos/logo-gu-small.png +0 -0
  182. package/dist/logos/logo-gu.png +0 -0
  183. package/dist/logos/logo-he-large.png +0 -0
  184. package/dist/logos/logo-he-small.png +0 -0
  185. package/dist/logos/logo-he.png +0 -0
  186. package/dist/logos/logo-hi-large.png +0 -0
  187. package/dist/logos/logo-hi-small.png +0 -0
  188. package/dist/logos/logo-hi.png +0 -0
  189. package/dist/logos/logo-hu-large.png +0 -0
  190. package/dist/logos/logo-hu-small.png +0 -0
  191. package/dist/logos/logo-hu.png +0 -0
  192. package/dist/logos/logo-id-large.png +0 -0
  193. package/dist/logos/logo-id-small.png +0 -0
  194. package/dist/logos/logo-id.png +0 -0
  195. package/dist/logos/logo-it-large.png +0 -0
  196. package/dist/logos/logo-it-small.png +0 -0
  197. package/dist/logos/logo-it.png +0 -0
  198. package/dist/logos/logo-ja-large.png +0 -0
  199. package/dist/logos/logo-ja-small.png +0 -0
  200. package/dist/logos/logo-ja.png +0 -0
  201. package/dist/logos/logo-km-large.png +0 -0
  202. package/dist/logos/logo-km-small.png +0 -0
  203. package/dist/logos/logo-km.png +0 -0
  204. package/dist/logos/logo-ko-large.png +0 -0
  205. package/dist/logos/logo-ko-small.png +0 -0
  206. package/dist/logos/logo-ko.png +0 -0
  207. package/dist/logos/logo-lt-large.png +0 -0
  208. package/dist/logos/logo-lt-small.png +0 -0
  209. package/dist/logos/logo-lt.png +0 -0
  210. package/dist/logos/logo-lv-large.png +0 -0
  211. package/dist/logos/logo-lv-small.png +0 -0
  212. package/dist/logos/logo-lv.png +0 -0
  213. package/dist/logos/logo-mk-large.png +0 -0
  214. package/dist/logos/logo-mk-small.png +0 -0
  215. package/dist/logos/logo-mk.png +0 -0
  216. package/dist/logos/logo-mr-large.png +0 -0
  217. package/dist/logos/logo-mr-small.png +0 -0
  218. package/dist/logos/logo-mr.png +0 -0
  219. package/dist/logos/logo-nl-large.png +0 -0
  220. package/dist/logos/logo-nl-small.png +0 -0
  221. package/dist/logos/logo-nl.png +0 -0
  222. package/dist/logos/logo-or-large.png +0 -0
  223. package/dist/logos/logo-or-small.png +0 -0
  224. package/dist/logos/logo-or.png +0 -0
  225. package/dist/logos/logo-pl-large.png +0 -0
  226. package/dist/logos/logo-pl-small.png +0 -0
  227. package/dist/logos/logo-pl.png +0 -0
  228. package/dist/logos/logo-pt-large.png +0 -0
  229. package/dist/logos/logo-pt-small.png +0 -0
  230. package/dist/logos/logo-pt.png +0 -0
  231. package/dist/logos/logo-ro-large.png +0 -0
  232. package/dist/logos/logo-ro-small.png +0 -0
  233. package/dist/logos/logo-ro.png +0 -0
  234. package/dist/logos/logo-ru-large.png +0 -0
  235. package/dist/logos/logo-ru-small.png +0 -0
  236. package/dist/logos/logo-ru.png +0 -0
  237. package/dist/logos/logo-si-large.png +0 -0
  238. package/dist/logos/logo-si-small.png +0 -0
  239. package/dist/logos/logo-si.png +0 -0
  240. package/dist/logos/logo-sl-large.png +0 -0
  241. package/dist/logos/logo-sl-small.png +0 -0
  242. package/dist/logos/logo-sl.png +0 -0
  243. package/dist/logos/logo-sr-large.png +0 -0
  244. package/dist/logos/logo-sr-small.png +0 -0
  245. package/dist/logos/logo-sr.png +0 -0
  246. package/dist/logos/logo-sv-large.png +0 -0
  247. package/dist/logos/logo-sv-small.png +0 -0
  248. package/dist/logos/logo-sv.png +0 -0
  249. package/dist/logos/logo-ta-large.png +0 -0
  250. package/dist/logos/logo-ta-small.png +0 -0
  251. package/dist/logos/logo-ta.png +0 -0
  252. package/dist/logos/logo-te-large.png +0 -0
  253. package/dist/logos/logo-te-small.png +0 -0
  254. package/dist/logos/logo-te.png +0 -0
  255. package/dist/logos/logo-th-large.png +0 -0
  256. package/dist/logos/logo-th-small.png +0 -0
  257. package/dist/logos/logo-th.png +0 -0
  258. package/dist/logos/logo-tr-large.png +0 -0
  259. package/dist/logos/logo-tr-small.png +0 -0
  260. package/dist/logos/logo-tr.png +0 -0
  261. package/dist/logos/logo-vi-large.png +0 -0
  262. package/dist/logos/logo-vi-small.png +0 -0
  263. package/dist/logos/logo-vi.png +0 -0
  264. package/dist/logos/logo-zh-HANS-large.png +0 -0
  265. package/dist/logos/logo-zh-HANS-small.png +0 -0
  266. package/dist/logos/logo-zh-HANS.png +0 -0
  267. package/dist/logos/logo-zh-HANT-HK-large.png +0 -0
  268. package/dist/logos/logo-zh-HANT-HK-small.png +0 -0
  269. package/dist/logos/logo-zh-HANT-HK.png +0 -0
  270. package/dist/logos/logo-zh-HANT-large.png +0 -0
  271. package/dist/logos/logo-zh-HANT-small.png +0 -0
  272. package/dist/logos/logo-zh-HANT.png +0 -0
  273. package/dist/logos-inline-svg.json +0 -1
  274. package/dist/logos.zip +0 -0
  275. package/index.html +0 -231
  276. package/lib/vipassana/design_standards_helper.rb +0 -111
  277. package/lib/vipassana/logos_inline_svg.rb +0 -5
  278. package/lib/vipassana/translations.rb +0 -312
  279. package/lib/vipassana/translations_generator.rb +0 -260
  280. package/lib/vipassana-design-standards.rb +0 -3
  281. package/src/images/wheels/favicon.png +0 -0
  282. package/src/images/wheels/favicon.svg +0 -1483
  283. package/src/images/wheels/old versions/2.5D-wheel.png +0 -0
  284. package/src/images/wheels/old versions/2.5D-wheel.svg +0 -109
  285. package/src/images/wheels/old versions/2D-wheel.svg +0 -472
  286. package/src/images/wheels/old versions/3D-wheel.svg +0 -1
  287. package/src/images/wheels/old versions/dhamma wheel 3D.png +0 -0
  288. package/src/images/wheels/old versions/wheel-3d.ai +5 -3727
  289. package/src/images/wheels/old versions/wheel-3d.png +0 -0
  290. package/src/images/wheels/tests/2.5D-wheel-1.svg +0 -414
  291. package/src/images/wheels/tests/2.5D-wheel-2.svg +0 -409
  292. package/src/images/wheels/tests/2.5D-wheel-3.svg +0 -449
  293. package/src/images/wheels/tests/2.5D-wheel-4.svg +0 -459
  294. package/src/images/wheels/tests/2.5D-wheel-5.svg +0 -452
  295. package/src/images/wheels/tests/2.5D-wheel-6.svg +0 -457
  296. package/src/images/wheels/tests/2.5D-wheel-7.svg +0 -459
  297. package/src/images/wheels/tests/2.5D-wheel-8.svg +0 -459
  298. package/src/images/wheels/tests/2.5D-wheel-sebastian.svg +0 -3
  299. package/src/images/wheels/tests/3D-wheel-2.svg +0 -1352
  300. package/src/images/wheels/tests/3D-wheel-sebastian.svg +0 -1
  301. package/src/images/wheels/tests/3D-wheel.svg +0 -1
  302. package/src/images/wheels/wheel-2023-duotone.png +0 -0
  303. package/src/images/wheels/wheel-2023-duotone.svg +0 -1
  304. package/src/images/wheels/wheel-2023-duotone.svg.js +0 -1
  305. package/src/images/wheels/wheel-2023-working-document-with-all-layers.svg +0 -1608
  306. package/src/images/wheels/wheel-2023.png +0 -0
  307. package/src/images/wheels/wheel-2023.svg +0 -1
  308. package/src/images/wheels/wheel-2023.svg.js +0 -1
  309. package/src/javascripts/auto-resize.js +0 -30
  310. package/src/javascripts/index.js +0 -397
  311. package/src/stylesheets/bootstrap5-theme.scss +0 -24
  312. package/src/stylesheets/custom-bootstrap-utilities.scss +0 -143
  313. package/src/stylesheets/custom-bootstrap-variables.scss +0 -121
  314. package/src/stylesheets/custom-bootstrap.scss +0 -159
  315. package/src/stylesheets/fonts.scss +0 -331
  316. package/src/stylesheets/index.css +0 -179
  317. package/src/stylesheets/layout/vds-header.scss +0 -42
  318. package/src/stylesheets/layout/vds-layout.scss +0 -90
  319. package/src/stylesheets/layout/vds-mixins.scss +0 -5
  320. package/src/stylesheets/layout/vds-sidenav.scss +0 -43
  321. package/src/stylesheets/logo.scss +0 -121
  322. package/src/stylesheets/mixins.scss +0 -11
  323. package/src/stylesheets/specific-fonts/fonts-gu.css +0 -65
  324. package/src/stylesheets/specific-fonts/fonts-ja.css +0 -2399
  325. package/src/stylesheets/specific-fonts/fonts-km.css +0 -2399
  326. package/vipassana-design-standards.gemspec +0 -15
  327. /package/{src/javascripts → dist/js}/i18n.js +0 -0
package/demo/bin/bundle DELETED
@@ -1,114 +0,0 @@
1
- #!/usr/bin/env ruby2.7
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'bundle' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "rubygems"
12
-
13
- m = Module.new do
14
- module_function
15
-
16
- def invoked_as_script?
17
- File.expand_path($0) == File.expand_path(__FILE__)
18
- end
19
-
20
- def env_var_version
21
- ENV["BUNDLER_VERSION"]
22
- end
23
-
24
- def cli_arg_version
25
- return unless invoked_as_script? # don't want to hijack other binstubs
26
- return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
27
- bundler_version = nil
28
- update_index = nil
29
- ARGV.each_with_index do |a, i|
30
- if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
31
- bundler_version = a
32
- end
33
- next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
34
- bundler_version = $1
35
- update_index = i
36
- end
37
- bundler_version
38
- end
39
-
40
- def gemfile
41
- gemfile = ENV["BUNDLE_GEMFILE"]
42
- return gemfile if gemfile && !gemfile.empty?
43
-
44
- File.expand_path("../../Gemfile", __FILE__)
45
- end
46
-
47
- def lockfile
48
- lockfile =
49
- case File.basename(gemfile)
50
- when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
51
- else "#{gemfile}.lock"
52
- end
53
- File.expand_path(lockfile)
54
- end
55
-
56
- def lockfile_version
57
- return unless File.file?(lockfile)
58
- lockfile_contents = File.read(lockfile)
59
- return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
60
- Regexp.last_match(1)
61
- end
62
-
63
- def bundler_version
64
- @bundler_version ||=
65
- env_var_version || cli_arg_version ||
66
- lockfile_version
67
- end
68
-
69
- def bundler_requirement
70
- return "#{Gem::Requirement.default}.a" unless bundler_version
71
-
72
- bundler_gem_version = Gem::Version.new(bundler_version)
73
-
74
- requirement = bundler_gem_version.approximate_recommendation
75
-
76
- return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.7.0")
77
-
78
- requirement += ".a" if bundler_gem_version.prerelease?
79
-
80
- requirement
81
- end
82
-
83
- def load_bundler!
84
- ENV["BUNDLE_GEMFILE"] ||= gemfile
85
-
86
- activate_bundler
87
- end
88
-
89
- def activate_bundler
90
- gem_error = activation_error_handling do
91
- gem "bundler", bundler_requirement
92
- end
93
- return if gem_error.nil?
94
- require_error = activation_error_handling do
95
- require "bundler/version"
96
- end
97
- return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
98
- warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
99
- exit 42
100
- end
101
-
102
- def activation_error_handling
103
- yield
104
- nil
105
- rescue StandardError, LoadError => e
106
- e
107
- end
108
- end
109
-
110
- m.load_bundler!
111
-
112
- if m.invoked_as_script?
113
- load Gem.bin_path("bundler", "bundle")
114
- end
package/demo/bin/rails DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path("../config/application", __dir__)
3
- require_relative "../config/boot"
4
- require "rails/commands"
package/demo/bin/rake DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative "../config/boot"
3
- require "rake"
4
- Rake.application.run
package/demo/bin/setup DELETED
@@ -1,25 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require "fileutils"
3
-
4
- # path to your application root.
5
- APP_ROOT = File.expand_path("..", __dir__)
6
-
7
- def system!(*args)
8
- system(*args) || abort("\n== Command #{args} failed ==")
9
- end
10
-
11
- FileUtils.chdir APP_ROOT do
12
- # This script is a way to set up or update your development environment automatically.
13
- # This script is idempotent, so that you can run it at any time and get an expectable outcome.
14
- # Add necessary setup steps to this file.
15
-
16
- puts "== Installing dependencies =="
17
- system! "gem install bundler --conservative"
18
- system("bundle check") || system!("bundle install")
19
-
20
- puts "\n== Removing old logs and tempfiles =="
21
- system! "bin/rails log:clear tmp:clear"
22
-
23
- puts "\n== Restarting application server =="
24
- system! "bin/rails restart"
25
- end
@@ -1,37 +0,0 @@
1
- require_relative "boot"
2
-
3
- require "rails"
4
- # Pick the frameworks you want:
5
- require "active_model/railtie"
6
- # require "active_job/railtie"
7
- # require "active_record/railtie"
8
- # require "active_storage/engine"
9
- require "action_controller/railtie"
10
- # require "action_mailer/railtie"
11
- # require "action_mailbox/engine"
12
- # require "action_text/engine"
13
- require "action_view/railtie"
14
- # require "action_cable/engine"
15
- require "rails/test_unit/railtie"
16
-
17
- # Require the gems listed in Gemfile, including any gems
18
- # you've limited to :test, :development, or :production.
19
- Bundler.require(*Rails.groups)
20
-
21
- module Demo
22
- class Application < Rails::Application
23
- # Initialize configuration defaults for originally generated Rails version.
24
- config.load_defaults 7.0
25
-
26
- # Configuration for the application, engines, and railties goes here.
27
- #
28
- # These settings can be overridden in specific environments using the files
29
- # in config/environments, which are processed later.
30
- #
31
- # config.time_zone = "Central Time (US & Canada)"
32
- # config.eager_load_paths << Rails.root.join("extras")
33
-
34
- # Don't generate system test files.
35
- config.generators.system_tests = nil
36
- end
37
- end
@@ -1,3 +0,0 @@
1
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
2
-
3
- require "bundler/setup" # Set up gems listed in the Gemfile.
@@ -1 +0,0 @@
1
- SMCc1JJCcKDlZaa1zivvUXtCa531ikojCKU3HdenCG7quPrYgdioKZHRNZy7cDGOIXhiCTVPG+zaLJiao1xEbrMZI8p6XXJ3RT3ftRwl9/rekzfjdBu39H02NDReCDT69BawZ3m10JHTotx1d0oQsLLwlMdbwiSAxgy5Cg+znRl8dl7LOCNOYPH4gKLuAZz4FMCe53tb37RWZSo868gyD5YbiOosVjfcPmZRuWqyR2BFUQlhYcKi8m26/4VcPiNSR2EEz+8IcpUjPejaIhto4HDCFT1YPB2Kan3w5FuxCP5sy94XgydaSbuMXwQZrgR+v7X75xjbZ+37Ddcc9HaJm5pqowmvZhzp8YMR56b+0Nj9Fnm4Hpn2HmQGi5sujXXO8pNFZSu7Pv406g3ec9hqDc0EeFnjmt2Vc7pi--D2pkBQPjjMjB5eJO--+pMnh0PZJk45goJYz2Mbrw==
@@ -1,5 +0,0 @@
1
- # Load the Rails application.
2
- require_relative "application"
3
-
4
- # Initialize the Rails application.
5
- Rails.application.initialize!
@@ -1,56 +0,0 @@
1
- require "active_support/core_ext/integer/time"
2
-
3
- Rails.application.configure do
4
- # Settings specified here will take precedence over those in config/application.rb.
5
-
6
- # In the development environment your application's code is reloaded any time
7
- # it changes. This slows down response time but is perfect for development
8
- # since you don't have to restart the web server when you make code changes.
9
- config.cache_classes = false
10
-
11
- # Do not eager load code on boot.
12
- config.eager_load = false
13
-
14
- # Show full error reports.
15
- config.consider_all_requests_local = true
16
-
17
- # Enable server timing
18
- config.server_timing = true
19
-
20
- # Enable/disable caching. By default caching is disabled.
21
- # Run rails dev:cache to toggle caching.
22
- if Rails.root.join("tmp/caching-dev.txt").exist?
23
- config.action_controller.perform_caching = true
24
- config.action_controller.enable_fragment_cache_logging = true
25
-
26
- config.cache_store = :memory_store
27
- config.public_file_server.headers = {
28
- "Cache-Control" => "public, max-age=#{2.days.to_i}"
29
- }
30
- else
31
- config.action_controller.perform_caching = false
32
-
33
- config.cache_store = :null_store
34
- end
35
-
36
- # Print deprecation notices to the Rails logger.
37
- config.active_support.deprecation = :log
38
-
39
- # Raise exceptions for disallowed deprecations.
40
- config.active_support.disallowed_deprecation = :raise
41
-
42
- # Tell Active Support which deprecation messages to disallow.
43
- config.active_support.disallowed_deprecation_warnings = []
44
-
45
- # Suppress logger output for asset requests.
46
- config.assets.quiet = true
47
-
48
- # Raises error for missing translations.
49
- # config.i18n.raise_on_missing_translations = true
50
-
51
- # Annotate rendered view with file names.
52
- # config.action_view.annotate_rendered_view_with_filenames = true
53
-
54
- # Uncomment if you wish to allow Action Cable access from any origin.
55
- # config.action_cable.disable_request_forgery_protection = true
56
- end
@@ -1,72 +0,0 @@
1
- require "active_support/core_ext/integer/time"
2
-
3
- Rails.application.configure do
4
- # Settings specified here will take precedence over those in config/application.rb.
5
-
6
- # Code is not reloaded between requests.
7
- config.cache_classes = true
8
-
9
- # Eager load code on boot. This eager loads most of Rails and
10
- # your application in memory, allowing both threaded web servers
11
- # and those relying on copy on write to perform better.
12
- # Rake tasks automatically ignore this option for performance.
13
- config.eager_load = true
14
-
15
- # Full error reports are disabled and caching is turned on.
16
- config.consider_all_requests_local = false
17
- config.action_controller.perform_caching = true
18
-
19
- # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
20
- # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
21
- # config.require_master_key = true
22
-
23
- # Disable serving static files from the `/public` folder by default since
24
- # Apache or NGINX already handles this.
25
- config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?
26
-
27
- # Compress CSS using a preprocessor.
28
- # config.assets.css_compressor = :sass
29
-
30
- # Do not fallback to assets pipeline if a precompiled asset is missed.
31
- config.assets.compile = false
32
-
33
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
34
- # config.asset_host = "http://assets.example.com"
35
-
36
- # Specifies the header that your server uses for sending files.
37
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
38
- # config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
39
-
40
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
41
- # config.force_ssl = true
42
-
43
- # Include generic and useful information about system operation, but avoid logging too much
44
- # information to avoid inadvertent exposure of personally identifiable information (PII).
45
- config.log_level = :info
46
-
47
- # Prepend all log lines with the following tags.
48
- config.log_tags = [ :request_id ]
49
-
50
- # Use a different cache store in production.
51
- # config.cache_store = :mem_cache_store
52
-
53
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
54
- # the I18n.default_locale when a translation cannot be found).
55
- config.i18n.fallbacks = true
56
-
57
- # Don't log any deprecations.
58
- config.active_support.report_deprecations = false
59
-
60
- # Use default logging formatter so that PID and timestamp are not suppressed.
61
- config.log_formatter = ::Logger::Formatter.new
62
-
63
- # Use a different logger for distributed setups.
64
- # require "syslog/logger"
65
- # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new "app-name")
66
-
67
- if ENV["RAILS_LOG_TO_STDOUT"].present?
68
- logger = ActiveSupport::Logger.new(STDOUT)
69
- logger.formatter = config.log_formatter
70
- config.logger = ActiveSupport::TaggedLogging.new(logger)
71
- end
72
- end
@@ -1,50 +0,0 @@
1
- require "active_support/core_ext/integer/time"
2
-
3
- # The test environment is used exclusively to run your application's
4
- # test suite. You never need to work with it otherwise. Remember that
5
- # your test database is "scratch space" for the test suite and is wiped
6
- # and recreated between test runs. Don't rely on the data there!
7
-
8
- Rails.application.configure do
9
- # Settings specified here will take precedence over those in config/application.rb.
10
-
11
- # Turn false under Spring and add config.action_view.cache_template_loading = true.
12
- config.cache_classes = true
13
-
14
- # Eager loading loads your whole application. When running a single test locally,
15
- # this probably isn't necessary. It's a good idea to do in a continuous integration
16
- # system, or in some way before deploying your code.
17
- config.eager_load = ENV["CI"].present?
18
-
19
- # Configure public file server for tests with Cache-Control for performance.
20
- config.public_file_server.enabled = true
21
- config.public_file_server.headers = {
22
- "Cache-Control" => "public, max-age=#{1.hour.to_i}"
23
- }
24
-
25
- # Show full error reports and disable caching.
26
- config.consider_all_requests_local = true
27
- config.action_controller.perform_caching = false
28
- config.cache_store = :null_store
29
-
30
- # Raise exceptions instead of rendering exception templates.
31
- config.action_dispatch.show_exceptions = false
32
-
33
- # Disable request forgery protection in test environment.
34
- config.action_controller.allow_forgery_protection = false
35
-
36
- # Print deprecation notices to the stderr.
37
- config.active_support.deprecation = :stderr
38
-
39
- # Raise exceptions for disallowed deprecations.
40
- config.active_support.disallowed_deprecation = :raise
41
-
42
- # Tell Active Support which deprecation messages to disallow.
43
- config.active_support.disallowed_deprecation_warnings = []
44
-
45
- # Raises error for missing translations.
46
- # config.i18n.raise_on_missing_translations = true
47
-
48
- # Annotate rendered view with file names.
49
- # config.action_view.annotate_rendered_view_with_filenames = true
50
- end
@@ -1,12 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Version of your assets, change this if you want to expire all your assets.
4
- Rails.application.config.assets.version = "1.0"
5
-
6
- # Add additional assets to the asset load path.
7
- # Rails.application.config.assets.paths << Emoji.images_path
8
-
9
- # Precompile additional assets.
10
- # application.js, application.css, and all non-JS/CSS in the app/assets
11
- # folder are already added.
12
- # Rails.application.config.assets.precompile += %w( admin.js admin.css )
@@ -1,25 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Define an application-wide content security policy.
4
- # See the Securing Rails Applications Guide for more information:
5
- # https://guides.rubyonrails.org/security.html#content-security-policy-header
6
-
7
- # Rails.application.configure do
8
- # config.content_security_policy do |policy|
9
- # policy.default_src :self, :https
10
- # policy.font_src :self, :https, :data
11
- # policy.img_src :self, :https, :data
12
- # policy.object_src :none
13
- # policy.script_src :self, :https
14
- # policy.style_src :self, :https
15
- # # Specify URI for violation reports
16
- # # policy.report_uri "/csp-violation-report-endpoint"
17
- # end
18
- #
19
- # # Generate session nonces for permitted importmap and inline scripts
20
- # config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
21
- # config.content_security_policy_nonce_directives = %w(script-src)
22
- #
23
- # # Report violations without enforcing the policy.
24
- # # config.content_security_policy_report_only = true
25
- # end
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Configure parameters to be filtered from the log file. Use this to limit dissemination of
4
- # sensitive information. See the ActiveSupport::ParameterFilter documentation for supported
5
- # notations and behaviors.
6
- Rails.application.config.filter_parameters += [
7
- :passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
8
- ]
@@ -1,16 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format. Inflections
4
- # are locale specific, and you may define rules for as many different
5
- # locales as you wish. All of these examples are active by default:
6
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
- # inflect.plural /^(ox)$/i, "\\1en"
8
- # inflect.singular /^(ox)en/i, "\\1"
9
- # inflect.irregular "person", "people"
10
- # inflect.uncountable %w( fish sheep )
11
- # end
12
-
13
- # These inflection rules are supported but not enabled by default:
14
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
- # inflect.acronym "RESTful"
16
- # end
@@ -1,11 +0,0 @@
1
- # Define an application-wide HTTP permissions policy. For further
2
- # information see https://developers.google.com/web/updates/2018/06/feature-policy
3
- #
4
- # Rails.application.config.permissions_policy do |f|
5
- # f.camera :none
6
- # f.gyroscope :none
7
- # f.microphone :none
8
- # f.usb :none
9
- # f.fullscreen :self
10
- # f.payment :self, "https://secure.example.com"
11
- # end
@@ -1,33 +0,0 @@
1
- # Files in the config/locales directory are used for internationalization
2
- # and are automatically loaded by Rails. If you want to use locales other
3
- # than English, add the necessary files in this directory.
4
- #
5
- # To use the locales, use `I18n.t`:
6
- #
7
- # I18n.t "hello"
8
- #
9
- # In views, this is aliased to just `t`:
10
- #
11
- # <%= t("hello") %>
12
- #
13
- # To use a different locale, set it with `I18n.locale`:
14
- #
15
- # I18n.locale = :es
16
- #
17
- # This would use the information in config/locales/es.yml.
18
- #
19
- # The following keys must be escaped otherwise they will not be retrieved by
20
- # the default I18n backend:
21
- #
22
- # true, false, on, off, yes, no
23
- #
24
- # Instead, surround them with single quotes.
25
- #
26
- # en:
27
- # "true": "foo"
28
- #
29
- # To learn more, please read the Rails Internationalization guide
30
- # available at https://guides.rubyonrails.org/i18n.html.
31
-
32
- en:
33
- hello: "Hello world"
@@ -1,43 +0,0 @@
1
- # Puma can serve each request in a thread from an internal thread pool.
2
- # The `threads` method setting takes two numbers: a minimum and maximum.
3
- # Any libraries that use thread pools should be configured to match
4
- # the maximum value specified for Puma. Default is set to 5 threads for minimum
5
- # and maximum; this matches the default thread size of Active Record.
6
- #
7
- max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
8
- min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
9
- threads min_threads_count, max_threads_count
10
-
11
- # Specifies the `worker_timeout` threshold that Puma will use to wait before
12
- # terminating a worker in development environments.
13
- #
14
- worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
15
-
16
- # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
17
- #
18
- port ENV.fetch("PORT") { 3000 }
19
-
20
- # Specifies the `environment` that Puma will run in.
21
- #
22
- environment ENV.fetch("RAILS_ENV") { "development" }
23
-
24
- # Specifies the `pidfile` that Puma will use.
25
- pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
26
-
27
- # Specifies the number of `workers` to boot in clustered mode.
28
- # Workers are forked web server processes. If using threads and workers together
29
- # the concurrency of the application would be max `threads` * `workers`.
30
- # Workers do not work on JRuby or Windows (both of which do not support
31
- # processes).
32
- #
33
- # workers ENV.fetch("WEB_CONCURRENCY") { 2 }
34
-
35
- # Use the `preload_app!` method when specifying a `workers` number.
36
- # This directive tells Puma to first boot the application and load code
37
- # before forking the application. This takes advantage of Copy On Write
38
- # process behavior so workers use less memory.
39
- #
40
- # preload_app!
41
-
42
- # Allow puma to be restarted by `bin/rails restart` command.
43
- plugin :tmp_restart
@@ -1,5 +0,0 @@
1
- Rails.application.routes.draw do
2
- root "demo#index"
3
-
4
- get 'demo/index'
5
- end
package/demo/config.ru DELETED
@@ -1,6 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require_relative "config/environment"
4
-
5
- run Rails.application
6
- Rails.application.load_server
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- .rails-default-error-page {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- .rails-default-error-page div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- .rails-default-error-page div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- .rails-default-error-page h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- .rails-default-error-page div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body class="rails-default-error-page">
58
- <!-- This file lives in public/404.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The page you were looking for doesn't exist.</h1>
62
- <p>You may have mistyped the address or the page may have moved.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>