skellington 0.8.6 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7080ea2fd28229641953591ca96ff38b911ce677
4
- data.tar.gz: 376132af5daddf2746c09899ca9336445c7db0f0
3
+ metadata.gz: 93ba8f0cd5375c25d79db1db611914a3891de001
4
+ data.tar.gz: 52e83ee7b6b87f43454872a5660a6b39f3e9da6c
5
5
  SHA512:
6
- metadata.gz: 13f92f91b1d53ad5ea25cc96efb672a772c34f8ee55ac202cf9cafc90591e0a224f35cf771e0f94fd1b6293435da9842f9de722d4777d9b2dff648daaf866ef0
7
- data.tar.gz: 025128255e25c6072a21adb563ebce93ec91653915eaa7f3182310185a53c11b59c0bb22b222cc2190137e94a22071d0334dea7e7722f21b31bacd362e530b72
6
+ metadata.gz: 2834f1673f9ab435a42a816d01f025cbbaaa4d4c0ca5ef02fe50c8009f1bb0efb2278f7b923275915397b1bdafbe82595845be85005f01a5fb1ddc5317d4091f
7
+ data.tar.gz: 8095822360166674e75563b6354e21744d0201080d3dfda43a8c722ef8aa23c85c43b55a0f7ce60cd08e089c614aa49345d3f80a2b9c1786d4171adf8dcbb068
data/README.md CHANGED
@@ -21,6 +21,7 @@ Extremely opinionated generator for your [Sinatra](http://www.sinatrarb.com/) a
21
21
  * [Jekyll](https://jekyllrb.com/)
22
22
  * [Bootstrap](http://getbootstrap.com/)
23
23
  * Reasonable default things
24
+ * An MIT License file
24
25
 
25
26
  Should work fine for both RVM- and rbenv-based setups
26
27
 
@@ -51,16 +52,17 @@ or just
51
52
 
52
53
  cd naming_things_is_hard
53
54
  bundle
54
- rake
55
+ bundle exec rake
55
56
 
56
57
  And presuming that passes OK
57
58
 
58
59
  git add .
59
60
  git commit -m 'First commit'
60
61
 
61
- Then try
62
+ Then try (in 2 different windows)
62
63
 
63
- bundle exec rake run
64
+ bundle exec rake run:sass
65
+ bundle exec rake run:app
64
66
 
65
67
  which will launch Compass and then run the app (at http://localhost:9292)
66
68
 
@@ -84,7 +86,7 @@ or just
84
86
  bundle
85
87
  bundle exec jekyll serve
86
88
 
87
- which will launch the site (at http://localhost:4000)
89
+ which will launch the site (at http://localhost:4000/hello-from-the-magic-tavern/)
88
90
 
89
91
  And presuming that works OK
90
92
 
@@ -104,6 +106,7 @@ or just
104
106
  * Bootstrap major version to include
105
107
  * Default: 3
106
108
  * Possible values: 3, 4
109
+ * VERY EXPERIMENTAL
107
110
 
108
111
  * --licensor
109
112
  * Name to include in the license file
@@ -33,3 +33,11 @@
33
33
  animation: octocat-wave 560ms ease-in-out
34
34
  }
35
35
  }
36
+
37
+ .github-corner {
38
+ svg {
39
+ position: absolute;
40
+ top: $navbar-height;
41
+ right: 0;
42
+ }
43
+ }
@@ -1,7 +1,7 @@
1
1
  <?xml version='1.0' standalone='no'?>
2
2
  <?xml-stylesheet type='text/css' href='styles.css'?>
3
3
  <a href='<%%= @github_url %>' class='github-corner' aria-label='Fork me on Github'>
4
- <svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 250 250' fill='#151513' style='position: absolute; top: 0; right: 0'>
4
+ <svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 250 250'>
5
5
  <path class='octo-background' d='M0 0l115 115h15l12 27 108 108V0z' fill='#fff'/>
6
6
  <path class='octo-arm' d='M128 109c-15-9-9-19-9-19 3-7 2-11 2-11-1-7 3-2 3-2 4 5 2 11 2 11-3 10 5 15 9 16' style='-webkit-transform-origin: 130px 106px; transform-origin: 130px 106px'/>
7
7
  <path class='octo-body' d='M115 115s4 2 5 0l14-14c3-2 6-3 8-3-8-11-15-24 2-41 5-5 10-7 16-7 1-2 3-7 12-11 0 0 5 3 7 16 4 2 8 5 12 9s7 8 9 12c14 3 17 7 17 7-4 8-9 11-11 11 0 6-2 11-7 16-16 16-30 10-41 2 0 3-1 7-5 11l-12 11c-1 1 1 5 1 5z'/>
@@ -69,7 +69,7 @@ module Skellington
69
69
  end
70
70
 
71
71
  def git_init
72
- Git.init wormname
72
+ Git.init "#{@path}/#{wormname}"
73
73
  end
74
74
 
75
75
  def post_run
@@ -1,3 +1,3 @@
1
1
  module Skellington
2
- VERSION = '0.8.6'
2
+ VERSION = '0.8.7'
3
3
  end
@@ -5,7 +5,7 @@ module Skellington
5
5
  end
6
6
 
7
7
  it 'generates an app at a non-local path' do
8
- subject.generate 'subdir/some_app'
8
+ subject.generate 'subdir/some-app'
9
9
  expect('subdir/some_app/lib/some_app.rb').to have_content (
10
10
  """
11
11
  require 'sinatra/base'
@@ -42,6 +42,9 @@ module Skellington
42
42
  run SomeApp::App
43
43
  """
44
44
  )
45
+
46
+ expect(File).to exist 'subdir/some_app/.git'
47
+ expect(File).to_not exist 'some_app'
45
48
  end
46
49
  end
47
50
  end
@@ -56,7 +56,7 @@ module Skellington
56
56
  ul {
57
57
  @extend .list-inline;
58
58
  }
59
-
59
+
60
60
  a {
61
61
  color: white;
62
62
  }
@@ -77,6 +77,54 @@ module Skellington
77
77
  }
78
78
  """
79
79
  )
80
+
81
+ expect('dummy_app/public/sass/_github-corner.scss').to have_content (
82
+ """
83
+ .octo-background {
84
+ fill: $brand-primary;
85
+ }
86
+
87
+ .octo-arm, .octo-body {
88
+ fill: white;
89
+ }
90
+
91
+ .github-corner:hover .octo-arm {
92
+ animation: octocat-wave 560ms ease-in-out
93
+ }
94
+
95
+ @keyframes octocat-wave {
96
+ 0%, 100% {
97
+ transform: rotate(0)
98
+ }
99
+
100
+ 20%, 60% {
101
+ transform: rotate(-25deg)
102
+ }
103
+
104
+ 40%, 80% {
105
+ transform: rotate(10deg)
106
+ }
107
+ }
108
+
109
+ @media (max-width: 500px) {
110
+ .github-corner:hover .octo-arm {
111
+ animation: none
112
+ }
113
+
114
+ .github-corner .octo-arm {
115
+ animation: octocat-wave 560ms ease-in-out
116
+ }
117
+ }
118
+
119
+ .github-corner {
120
+ svg {
121
+ position: absolute;
122
+ top: $navbar-height;
123
+ right: 0;
124
+ }
125
+ }
126
+ """
127
+ )
80
128
  end
81
129
 
82
130
  it 'sets up sass' do
@@ -54,7 +54,7 @@ module Skellington
54
54
  <?xml version='1.0' standalone='no'?>
55
55
  <?xml-stylesheet type='text/css' href='styles.css'?>
56
56
  <a href='<%= @github_url %>' class='github-corner' aria-label='Fork me on Github'>
57
- <svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 250 250' fill='#151513' style='position: absolute; top: 0; right: 0'>
57
+ <svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 250 250'>
58
58
  <path class='octo-background' d='M0 0l115 115h15l12 27 108 108V0z' fill='#fff'/>
59
59
  <path class='octo-arm' d='M128 109c-15-9-9-19-9-19 3-7 2-11 2-11-1-7 3-2 3-2 4 5 2 11 2 11-3 10 5 15 9 16' style='-webkit-transform-origin: 130px 106px; transform-origin: 130px 106px'/>
60
60
  <path class='octo-body' d='M115 115s4 2 5 0l14-14c3-2 6-3 8-3-8-11-15-24 2-41 5-5 10-7 16-7 1-2 3-7 12-11 0 0 5 3 7 16 4 2 8 5 12 9s7 8 9 12c14 3 17 7 17 7-4 8-9 11-11 11 0 6-2 11-7 16-16 16-30 10-41 2 0 3-1 7-5 11l-12 11c-1 1 1 5 1 5z'/>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skellington
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - pikesley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-17 00:00:00.000000000 Z
11
+ date: 2016-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor