wiskey 0.0.1

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 (73) hide show
  1. data/.gitignore +28 -0
  2. data/.rvmrc +1 -0
  3. data/Gemfile +10 -0
  4. data/Gemfile.lock +89 -0
  5. data/MIT-LICENSE +20 -0
  6. data/README.rdoc +3 -0
  7. data/Rakefile +29 -0
  8. data/app/assets/stylesheets/_wiskey.scss +25 -0
  9. data/app/assets/stylesheets/addons/_animation-keyframes.scss +28 -0
  10. data/app/assets/stylesheets/addons/_button.scss +169 -0
  11. data/app/assets/stylesheets/addons/_position.scss +30 -0
  12. data/app/assets/stylesheets/addons/_timing-functions.scss +29 -0
  13. data/app/assets/stylesheets/css3/_animation.scss +161 -0
  14. data/app/assets/stylesheets/css3/_background-clip.scss +25 -0
  15. data/app/assets/stylesheets/css3/_border-radius.scss +54 -0
  16. data/app/assets/stylesheets/css3/_box-shadow.scss +3 -0
  17. data/app/assets/stylesheets/css3/_box-sizing.scss +8 -0
  18. data/app/assets/stylesheets/css3/_flex-box.scss +67 -0
  19. data/app/assets/stylesheets/css3/_inline-block.scss +21 -0
  20. data/app/assets/stylesheets/css3/_linear-gradient.scss +32 -0
  21. data/app/assets/stylesheets/css3/_opacity.scss +6 -0
  22. data/app/assets/stylesheets/css3/_radial-gradient.scss +21 -0
  23. data/app/assets/stylesheets/css3/_text-overflow.scss +5 -0
  24. data/app/assets/stylesheets/css3/_text-shadow.scss +3 -0
  25. data/app/assets/stylesheets/css3/_transform.scss +19 -0
  26. data/app/assets/stylesheets/css3/_transition.scss +104 -0
  27. data/app/assets/stylesheets/functions/_experimental.scss +15 -0
  28. data/app/assets/stylesheets/functions/_linear-gradient.scss +21 -0
  29. data/lib/tasks/install.rake +10 -0
  30. data/lib/wiskey/engine.rb +5 -0
  31. data/lib/wiskey/sass_extensions/functions/compact.rb +13 -0
  32. data/lib/wiskey/sass_extensions/functions.rb +13 -0
  33. data/lib/wiskey/sass_extensions.rb +6 -0
  34. data/lib/wiskey/version.rb +3 -0
  35. data/lib/wiskey.rb +17 -0
  36. data/test/dummy/Rakefile +7 -0
  37. data/test/dummy/app/assets/stylesheets/application.css.scss +1 -0
  38. data/test/dummy/app/controllers/application_controller.rb +3 -0
  39. data/test/dummy/app/helpers/application_helper.rb +2 -0
  40. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  41. data/test/dummy/config/application.rb +48 -0
  42. data/test/dummy/config/boot.rb +10 -0
  43. data/test/dummy/config/database.yml +22 -0
  44. data/test/dummy/config/environment.rb +5 -0
  45. data/test/dummy/config/environments/development.rb +25 -0
  46. data/test/dummy/config/environments/production.rb +52 -0
  47. data/test/dummy/config/environments/test.rb +39 -0
  48. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  49. data/test/dummy/config/initializers/inflections.rb +10 -0
  50. data/test/dummy/config/initializers/mime_types.rb +5 -0
  51. data/test/dummy/config/initializers/secret_token.rb +7 -0
  52. data/test/dummy/config/initializers/session_store.rb +8 -0
  53. data/test/dummy/config/locales/en.yml +5 -0
  54. data/test/dummy/config/routes.rb +58 -0
  55. data/test/dummy/config.ru +4 -0
  56. data/test/dummy/public/404.html +26 -0
  57. data/test/dummy/public/422.html +26 -0
  58. data/test/dummy/public/500.html +26 -0
  59. data/test/dummy/public/favicon.ico +0 -0
  60. data/test/dummy/public/javascripts/application.js +2 -0
  61. data/test/dummy/public/javascripts/controls.js +965 -0
  62. data/test/dummy/public/javascripts/dragdrop.js +974 -0
  63. data/test/dummy/public/javascripts/effects.js +1123 -0
  64. data/test/dummy/public/javascripts/prototype.js +6001 -0
  65. data/test/dummy/public/javascripts/rails.js +191 -0
  66. data/test/dummy/public/stylesheets/.gitkeep +0 -0
  67. data/test/dummy/script/rails +6 -0
  68. data/test/integration/navigation_test.rb +7 -0
  69. data/test/support/integration_case.rb +5 -0
  70. data/test/test_helper.rb +22 -0
  71. data/test/wiskey_test.rb +7 -0
  72. data/wiskey.gemspec +16 -0
  73. metadata +129 -0
@@ -0,0 +1,54 @@
1
+ @mixin border-radius ($top-right, $top-left: false, $bottom-right: false, $bottom-left: false) {
2
+ @if not $top-left { $top-left: $top-right }
3
+ @if not $bottom-right { $bottom-right: $top-right }
4
+ @if not $bottom-left { $bottom-left: $top-left }
5
+
6
+ @include border-top-left-radius($top-left);
7
+ @include border-top-right-radius($top-right);
8
+ @include border-bottom-left-radius($bottom-left);
9
+ @include border-bottom-right-radius($bottom-right);
10
+ }
11
+
12
+ @mixin border-top-left-radius($top-left) {
13
+ -webkit-border-top-left-radius: $top-left;
14
+ -moz-border-radius-topleft: $top-left;
15
+ border-top-left-radius: $top-left;
16
+ }
17
+
18
+ @mixin border-top-right-radius($top-right) {
19
+ -webkit-border-top-right-radius: $top-right;
20
+ -moz-border-radius-topright: $top-right;
21
+ border-top-right-radius: $top-right;
22
+ }
23
+
24
+ @mixin border-bottom-left-radius($bottom-left) {
25
+ -webkit-border-bottom-left-radius: $bottom-left;
26
+ -moz-border-radius-bottomleft: $bottom-left;
27
+ border-bottom-left-radius: $bottom-left;
28
+ }
29
+
30
+ @mixin border-bottom-right-radius($bottom-right) {
31
+ -webkit-border-bottom-right-radius: $bottom-right;
32
+ -moz-border-radius-bottomright: $bottom-right;
33
+ border-bottom-right-radius: $bottom-right;
34
+ }
35
+
36
+ @mixin border-top-radius($top) {
37
+ @include border-top-left-radius($top);
38
+ @include border-top-right-radius($top);
39
+ }
40
+
41
+ @mixin border-bottom-radius($bottom) {
42
+ @include border-bottom-left-radius($bottom);
43
+ @include border-bottom-right-radius($bottom);
44
+ }
45
+
46
+ @mixin border-left-radius($left) {
47
+ @include border-top-left-radius($left);
48
+ @include border-bottom-right-radius($left);
49
+ }
50
+
51
+ @mixin border-right-radius($right) {
52
+ @include border-top-right-radius($right);
53
+ @include border-bottom-right-radius($right);
54
+ }
@@ -0,0 +1,3 @@
1
+ @mixin box-shadow($params) {
2
+ @include experimental(box-shadow, $params, -moz, -webkit, -o, not -ms, not -khtml, official);
3
+ }
@@ -0,0 +1,8 @@
1
+ @mixin box-sizing ($box) {
2
+ // content-box | border-box | inherit
3
+ -webkit-box-sizing: $box;
4
+ -moz-box-sizing: $box;
5
+ -ms-box-sizing: $box;
6
+ -o-box-sizing: $box;
7
+ box-sizing: $box;
8
+ }
@@ -0,0 +1,67 @@
1
+ // CSS3 Flexible Box Model and property defaults
2
+
3
+ // Custom shorthand notation for flexbox
4
+ @mixin box($orient: inline-axis, $pack: start, $align: stretch) {
5
+ @include display-box;
6
+ @include box-orient($orient);
7
+ @include box-pack($pack);
8
+ @include box-align($align);
9
+ }
10
+
11
+ @mixin display-box {
12
+ display: -webkit-box;
13
+ display: -moz-box;
14
+ display: box;
15
+ }
16
+
17
+ @mixin box-orient($orient: inline-axis) {
18
+ // horizontal|vertical|inline-axis|block-axis|inherit
19
+ -webkit-box-orient: $orient;
20
+ -moz-box-orient: $orient;
21
+ box-orient: $orient;
22
+ }
23
+
24
+ @mixin box-pack($pack: start) {
25
+ // start|end|center|justify
26
+ -webkit-box-pack: $pack;
27
+ -moz-box-pack: $pack;
28
+ box-pack: $pack;
29
+ }
30
+
31
+ @mixin box-align($align: stretch) {
32
+ // start|end|center|baseline|stretch
33
+ -webkit-box-align: $align;
34
+ -moz-box-align: $align;
35
+ box-align: $align;
36
+ }
37
+
38
+ @mixin box-direction($direction: normal) {
39
+ // normal|reverse|inherit
40
+ -webkit-box-direction: $direction;
41
+ -moz-box-direction: $direction;
42
+ box-direction: $direction;
43
+ }
44
+ @mixin box-lines($lines: single) {
45
+ // single|multiple
46
+ -webkit-box-lines: $lines;
47
+ -moz-box-lines: $lines;
48
+ box-lines: $lines;
49
+ }
50
+
51
+ @mixin box-ordinal-group($integer: 1) {
52
+ -webkit-box-ordinal-group: $integer;
53
+ -moz-box-ordinal-group: $integer;
54
+ box-ordinal-group: $integer;
55
+ }
56
+
57
+ @mixin box-flex($value: 0.0) {
58
+ -webkit-box-flex: $value;
59
+ -moz-box-flex: $value;
60
+ box-flex: $value;
61
+ }
62
+
63
+ @mixin box-flex-group($integer: 1) {
64
+ -webkit-box-flex-group: $integer;
65
+ -moz-box-flex-group: $integer;
66
+ box-flex-group: $integer;
67
+ }
@@ -0,0 +1,21 @@
1
+ // Legacy support for inline-block in IE7 (maybe IE6)
2
+ @mixin inline-block {
3
+ display: -moz-inline-box;
4
+ -moz-box-orient: vertical;
5
+ display: inline-block;
6
+ vertical-align: baseline;
7
+ zoom: 1;
8
+ *display: inline;
9
+ *vertical-align: auto;
10
+ }
11
+
12
+ // remove spaces from inline-blocks. this is hack, in general. The better way - remove it from HTML
13
+ @mixin inline-block-fix {
14
+ letter-spacing: -.25em;
15
+ word-spacing: -1em;
16
+
17
+ > * {
18
+ word-spacing: normal;
19
+ letter-spacing: normal;
20
+ }
21
+ }
@@ -0,0 +1,32 @@
1
+ // Requires Sass 3.1+
2
+ @mixin linear-gradient($pos, $G1, $G2: false,
3
+ $G3: false, $G4: false,
4
+ $G5: false, $G6: false,
5
+ $G7: false, $G8: false,
6
+ $G9: false, $G10: false) {
7
+ // Detect what type of value exists in $pos
8
+ $pos-type: type-of(nth($pos, 1));
9
+
10
+ // If $pos is missing from mixin, reassign vars and add default position
11
+ @if ($pos-type == color) or (nth($pos, 1) == "transparent") {
12
+ $G10: $G9; $G9: $G8; $G8: $G7; $G7: $G6; $G6: $G5;
13
+ $G5: $G4; $G4: $G3; $G3: $G2; $G2: $G1; $G1: $pos;
14
+ $pos: top; // Default position
15
+ }
16
+
17
+ $full: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10);
18
+
19
+ background-color: nth($G1, 1);
20
+ background-image: -webkit-gradient(linear, left top, left bottom, from($G1), to($G2)); /* Saf4+, Chrome */
21
+ background-image: -webkit-linear-gradient($pos, $full);
22
+ background-image: -moz-linear-gradient($pos, $full);
23
+ background-image: -ms-linear-gradient($pos, $full);
24
+ background-image: -o-linear-gradient($pos, $full);
25
+ background-image: unquote("linear-gradient(#{$pos}, #{$full})");
26
+ }
27
+
28
+ // Usage: Gradient position is optional, default is top. Position can be a degree. Color stops are optional as well.
29
+
30
+ // @include linear-gradient(#1e5799, #2989d8);
31
+ // @include linear-gradient(top, #1e5799 0%, #2989d8 50%);
32
+ // @include linear-gradient(50deg, rgba(10, 10, 10, 0.5) 0%, #2989d8 50%, #207cca 51%, #7db9e8 100%);
@@ -0,0 +1,6 @@
1
+ @mixin opacity($val) {
2
+ filter: progid:DXImageTransform.Microsoft.Alpha(opacity = #{$val*100});
3
+ -moz-opacity: $val;
4
+ -khtml-opacity: $val;
5
+ opacity: $val;
6
+ }
@@ -0,0 +1,21 @@
1
+ // Requires Sass 3.1+
2
+ @mixin radial-gradient($pos, $shape-size,
3
+ $G1, $G2,
4
+ $G3: false, $G4: false,
5
+ $G5: false, $G6: false,
6
+ $G7: false, $G8: false,
7
+ $G9: false, $G10: false) {
8
+
9
+ $full: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10);
10
+
11
+ background-color: nth($G1, 1);
12
+ background-image: -webkit-radial-gradient($pos, $shape-size, $full);
13
+ background-image: -moz-radial-gradient($pos, $shape-size, $full);
14
+ background-image: -ms-radial-gradient($pos, $shape-size, $full);
15
+ background-image: -o-radial-gradient($pos, $shape-size, $full);
16
+ background-image: radial-gradient($pos, $shape-size, $full);
17
+ }
18
+
19
+ // Usage: Gradient position and shape-size are required. Color stops are optional.
20
+ // @include radial-gradient(50% 50%, circle cover, #1e5799, #efefef);
21
+ // @include radial-gradient(50% 50%, circle cover, #eee 10%, #1e5799 30%, #efefef);
@@ -0,0 +1,5 @@
1
+ @mixin text-overflow {
2
+ overflow: hidden;
3
+ -o-text-overflow: ellipsis;
4
+ text-overflow: ellipsis;
5
+ }
@@ -0,0 +1,3 @@
1
+ @mixin text-shadow($params) {
2
+ text-shadow: $params;
3
+ }
@@ -0,0 +1,19 @@
1
+ @mixin transform($property: none) {
2
+ // none | <transform-function>
3
+ -webkit-transform: $property;
4
+ -moz-transform: $property;
5
+ -ms-transform: $property;
6
+ -o-transform: $property;
7
+ transform: $property;
8
+ }
9
+
10
+ @mixin transform-origin($axes: 50%) {
11
+ // x-axis - left | center | right | length | %
12
+ // y-axis - top | center | bottom | length | %
13
+ // z-axis - length
14
+ -webkit-transform-origin: $axes;
15
+ -moz-transform-origin: $axes;
16
+ -ms-transform-origin: $axes;
17
+ -o-transform-origin: $axes;
18
+ transform-origin: $axes;
19
+ }
@@ -0,0 +1,104 @@
1
+ // Shorthand mixin. Supports multiple parentheses-deliminated values for each variable.
2
+ // Example: @include transition (all, 2.0s, ease-in-out);
3
+ // @include transition ((opacity, width), (1.0s, 2.0s), ease-in, (0, 2s));
4
+ // @include transition ($property:(opacity, width), $delay: (1.5s, 2.5s));
5
+
6
+ @mixin transition ($property: all, $duration: 0.15s, $timing-function: ease-out, $delay: 0) {
7
+
8
+ // Detect # of args passed into each variable
9
+ $length-of-property: length($property);
10
+ $length-of-duration: length($duration);
11
+ $length-of-timing-function: length($timing-function);
12
+ $length-of-delay: length($delay);
13
+
14
+ @if $length-of-property > 1 {
15
+ @include transition-property(zip($property)); }
16
+ @else {
17
+ @include transition-property( $property);
18
+ }
19
+
20
+ @if $length-of-duration > 1 {
21
+ @include transition-duration(zip($duration)); }
22
+ @else {
23
+ @include transition-duration( $duration);
24
+ }
25
+
26
+ @if $length-of-timing-function > 1 {
27
+ @include transition-timing-function(zip($timing-function)); }
28
+ @else {
29
+ @include transition-timing-function( $timing-function);
30
+ }
31
+
32
+ @if $length-of-delay > 1 {
33
+ @include transition-delay(zip($delay)); }
34
+ @else {
35
+ @include transition-delay( $delay);
36
+ }
37
+ }
38
+
39
+
40
+ @mixin transition-property ($prop-1: all,
41
+ $prop-2: false, $prop-3: false,
42
+ $prop-4: false, $prop-5: false,
43
+ $prop-6: false, $prop-7: false,
44
+ $prop-8: false, $prop-9: false)
45
+ {
46
+ $full: compact($prop-1, $prop-2, $prop-3, $prop-4, $prop-5,
47
+ $prop-6, $prop-7, $prop-8, $prop-9);
48
+
49
+ -webkit-transition-property: $full;
50
+ -moz-transition-property: $full;
51
+ -ms-transition-property: $full;
52
+ -o-transition-property: $full;
53
+ transition-property: $full;
54
+ }
55
+
56
+ @mixin transition-duration ($time-1: 0,
57
+ $time-2: false, $time-3: false,
58
+ $time-4: false, $time-5: false,
59
+ $time-6: false, $time-7: false,
60
+ $time-8: false, $time-9: false)
61
+ {
62
+ $full: compact($time-1, $time-2, $time-3, $time-4, $time-5,
63
+ $time-6, $time-7, $time-8, $time-9);
64
+
65
+ -webkit-transition-duration: $full;
66
+ -moz-transition-duration: $full;
67
+ -ms-transition-duration: $full;
68
+ -o-transition-duration: $full;
69
+ transition-duration: $full;
70
+ }
71
+
72
+ @mixin transition-timing-function ($motion-1: ease,
73
+ $motion-2: false, $motion-3: false,
74
+ $motion-4: false, $motion-5: false,
75
+ $motion-6: false, $motion-7: false,
76
+ $motion-8: false, $motion-9: false)
77
+ {
78
+ $full: compact($motion-1, $motion-2, $motion-3, $motion-4, $motion-5,
79
+ $motion-6, $motion-7, $motion-8, $motion-9);
80
+
81
+ // ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier()
82
+ -webkit-transition-timing-function: $full;
83
+ -moz-transition-timing-function: $full;
84
+ -ms-transition-timing-function: $full;
85
+ -o-transition-timing-function: $full;
86
+ transition-timing-function: $full;
87
+ }
88
+
89
+ @mixin transition-delay ($time-1: 0,
90
+ $time-2: false, $time-3: false,
91
+ $time-4: false, $time-5: false,
92
+ $time-6: false, $time-7: false,
93
+ $time-8: false, $time-9: false)
94
+ {
95
+ $full: compact($time-1, $time-2, $time-3, $time-4, $time-5,
96
+ $time-6, $time-7, $time-8, $time-9);
97
+
98
+ -webkit-transition-delay: $full;
99
+ -moz-transition-delay: $full;
100
+ -ms-transition-delay: $full;
101
+ -o-transition-delay: $full;
102
+ transition-delay: $full;
103
+ }
104
+
@@ -0,0 +1,15 @@
1
+ @mixin experimental($property, $value,
2
+ $moz : true,
3
+ $webkit : true,
4
+ $o : true,
5
+ $ms : true,
6
+ $khtml : true,
7
+ $official : true
8
+ ) {
9
+ @if $moz { -moz-#{$property} : $value; }
10
+ @if $webkit { -webkit-#{$property} : $value; }
11
+ @if $o { -o-#{$property} : $value; }
12
+ @if $ms { -ms-#{$property} : $value; }
13
+ @if $khtml { -khtml-#{$property} : $value; }
14
+ @if $official { #{$property} : $value; }
15
+ }
@@ -0,0 +1,21 @@
1
+ @function linear-gradient($pos: top, $G1: false, $G2: false,
2
+ $G3: false, $G4: false,
3
+ $G5: false, $G6: false,
4
+ $G7: false, $G8: false,
5
+ $G9: false, $G10: false) {
6
+
7
+ // Detect what type of value exists in $pos
8
+ $pos-type: type-of(nth($pos, 1));
9
+
10
+ // If $pos is missing from mixin, reassign vars and add default position
11
+ @if ($pos-type == color) or (nth($pos, 1) == "transparent") {
12
+ $G10: $G9; $G9: $G8; $G8: $G7; $G7: $G6; $G6: $G5;
13
+ $G5: $G4; $G4: $G3; $G3: $G2; $G2: $G1; $G1: $pos;
14
+ $pos: top; // Default position
15
+ }
16
+
17
+ $full: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10);
18
+
19
+ @return join($pos, $full, comma);
20
+
21
+ }
@@ -0,0 +1,10 @@
1
+ # Needed for pre-3.1.
2
+ namespace :wiskey do
3
+ desc "Move files to the Rails assets directory."
4
+ task :install do
5
+ source_root = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
6
+ `mkdir -p #{Rails.root}/public/stylesheets/sass/wiskey`
7
+ `cp -a #{source_root}/app/assets/stylesheets/* #{Rails.root}/public/stylesheets/sass/wiskey`
8
+ `find #{Rails.root}/public/stylesheets/sass/wiskey -name "*.css.scss" | while read i; do mv "$i" "${i%.css.scss}.scss"; done`
9
+ end
10
+ end
@@ -0,0 +1,5 @@
1
+ module Wiskey
2
+ class Engine < Rails::Engine
3
+ # auto wire
4
+ end
5
+ end
@@ -0,0 +1,13 @@
1
+ # Compact function pulled from compass
2
+ module Wiskey::SassExtensions::Functions::Compact
3
+
4
+ def compact(*args)
5
+ sep = :comma
6
+ if args.size == 1 && args.first.is_a?(Sass::Script::List)
7
+ args = args.first.value
8
+ sep = args.first.separator
9
+ end
10
+ Sass::Script::List.new(args.reject{|a| !a.to_bool}, sep)
11
+ end
12
+
13
+ end
@@ -0,0 +1,13 @@
1
+ module Wiskey::SassExtensions::Functions
2
+ end
3
+
4
+ require File.join(File.dirname(__FILE__), "/functions/compact")
5
+
6
+ module Sass::Script::Functions
7
+ include Wiskey::SassExtensions::Functions::Compact
8
+ end
9
+
10
+ # Wierd that this has to be re-included to pick up sub-modules. Ruby bug?
11
+ class Sass::Script::Functions::EvaluationContext
12
+ include Sass::Script::Functions
13
+ end
@@ -0,0 +1,6 @@
1
+ module Wiskey::SassExtensions
2
+ end
3
+
4
+ require "sass"
5
+
6
+ require File.join(File.dirname(__FILE__), "/sass_extensions/functions")
@@ -0,0 +1,3 @@
1
+ module Wiskey
2
+ VERSION = "0.1.5"
3
+ end
data/lib/wiskey.rb ADDED
@@ -0,0 +1,17 @@
1
+ module Wiskey
2
+ if defined?(Rails)
3
+ class Engine < ::Rails::Engine
4
+ require 'wiskey/engine'
5
+ end
6
+
7
+ module Rails
8
+ class Railtie < ::Rails::Railtie
9
+ rake_tasks do
10
+ load "tasks/install.rake"
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
16
+
17
+ require File.join(File.dirname(__FILE__), "/wiskey/sass_extensions")
@@ -0,0 +1,7 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+ require 'rake'
6
+
7
+ Dummy::Application.load_tasks
@@ -0,0 +1 @@
1
+ @import 'wiskey'
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag :all %>
6
+ <%= javascript_include_tag :defaults %>
7
+ <%= csrf_meta_tag %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,48 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ # require 'rails/all'
4
+ # require 'active_record/railtie'
5
+ require 'action_controller/railtie'
6
+ require 'action_mailer/railtie'
7
+ require 'active_resource/railtie'
8
+ require 'sprockets/railtie'
9
+
10
+ Bundler.require
11
+ require "wiskey"
12
+
13
+ module Dummy
14
+ class Application < Rails::Application
15
+ # Settings in config/environments/* take precedence over those specified here.
16
+ # Application configuration should go into files in config/initializers
17
+ # -- all .rb files in that directory are automatically loaded.
18
+
19
+ # Custom directories with classes and modules you want to be autoloadable.
20
+ # config.autoload_paths += %W(#{config.root}/extras)
21
+
22
+ # Only load the plugins named here, in the order given (default is alphabetical).
23
+ # :all can be used as a placeholder for all plugins not explicitly named.
24
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
25
+
26
+ # Activate observers that should always be running.
27
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
28
+
29
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
30
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
31
+ # config.time_zone = 'Central Time (US & Canada)'
32
+
33
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
34
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
35
+ # config.i18n.default_locale = :de
36
+
37
+ # JavaScript files you want as :defaults (application.js is always included).
38
+ # config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
39
+
40
+ # Configure the default encoding used in templates for Ruby 1.9.
41
+ config.encoding = "utf-8"
42
+
43
+ # Configure sensitive parameters which will be filtered from the log file.
44
+ config.filter_parameters += [:password]
45
+
46
+ config.assets.enabled = true
47
+ end
48
+ end
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,22 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ development:
4
+ adapter: sqlite3
5
+ database: db/development.sqlite3
6
+ pool: 5
7
+ timeout: 5000
8
+
9
+ # Warning: The database defined as "test" will be erased and
10
+ # re-generated from your development database when you run "rake".
11
+ # Do not set this db to the same as development or production.
12
+ test:
13
+ adapter: sqlite3
14
+ database: db/test.sqlite3
15
+ pool: 5
16
+ timeout: 5000
17
+
18
+ production:
19
+ adapter: sqlite3
20
+ database: db/production.sqlite3
21
+ pool: 5
22
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,25 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger
20
+ config.active_support.deprecation = :log
21
+
22
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+ end
25
+