tonic 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Tonic gem — add some tonus for development your gh-pages :)
1
+ # Tonic gem — add some tonus in development your gh-pages :)
2
2
 
3
3
  ### This is beta now
4
4
 
@@ -15,7 +15,7 @@ module Tonic
15
15
  def deal_with_args(args)
16
16
  if want_to_push?(args)
17
17
  Tonic::GhPages.push_pages
18
- elsif want_gh_pages?
18
+ elsif want_gh_pages?(args)
19
19
  Tonic::GhPages.activate(args[0])
20
20
  elsif want_to_create?(args)
21
21
  Tonic::Template.create args[1]
@@ -32,7 +32,7 @@ module Tonic
32
32
  args[0] == 'push'
33
33
  end
34
34
 
35
- def wand_gh_pages?
35
+ def want_gh_pages?(args)
36
36
  args.empty? or %w(middleman jekyll).include?(args[0])
37
37
  end
38
38
 
@@ -1,5 +1,5 @@
1
1
  module Tonic
2
2
 
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
4
4
 
5
5
  end
@@ -1,18 +1,51 @@
1
1
  require 'tonic'
2
2
 
3
- describe Tonic do
4
- context 'Tonic will' do
3
+ module Tonic
4
+ module GhPages
5
+ class << self
6
+
7
+ private
8
+
9
+ def gh_pages(template = nil)
10
+ are_you_in_repo?
11
+
12
+ if branch_exists?
13
+ abort 'You shall no pass. First you should delete gh-pages branch'
14
+ end
15
+
16
+ # This for run shell commands from needed directory
17
+ # puts 'Do you really want to create gh-pages branch with tonic? [y/n]'
18
+ # if gets.chomp =~ /y/i
19
+ check_status
20
+ create_branch
21
+ remove_all_files
22
+ create template
23
+ commit_changes
24
+ # end
25
+ end
5
26
 
6
- before :all do
7
- system 'cd spec/dummy_git_repo'
8
27
  end
28
+ end
29
+ end
30
+
31
+ describe Tonic do
32
+ context 'Tonic will' do
9
33
 
10
- it "" do
11
- Tonic.activate([]).should =~ /not in root of your repo/
34
+ it "do the right stuff with repo" do
35
+ unless Dir.pwd =~ /spec\/dummy_git_repo/
36
+ exec 'cd spec/dummy_git_repo; rspec ../../'
37
+ else
38
+ Tonic.activate []
39
+ Dir.glob('*').size.should == 4
40
+ c = Tonic::Shell.new('git status -s').run.to_s.should == ""
41
+ end
12
42
  end
13
43
 
14
- after :all do
15
- system 'cd ...'
44
+ if Dir.pwd =~ /spec\/dummy_git_repo/
45
+ after :all do
46
+ `git checkout master; git branch -D gh-pages`
47
+ exec 'cd ../..'
48
+ end
16
49
  end
17
50
 
18
51
  end
@@ -3,24 +3,6 @@
3
3
 
4
4
  @import 'base'
5
5
 
6
- body
7
- text-align: center
8
- background: white
9
- color: black
10
- font-size: 16px
11
- font-family: sans-serif
12
-
13
- a
14
- color: darkGray
15
- &:hover
16
- color: red
17
-
18
- .tonic-logo
19
- margin: 50px auto 0 auto
20
- width: +image-width("tonic.png")
21
- height: +image-height("tonic.png")
22
- background: inline-image("tonic.png")
23
-
24
6
  // Octocat corner styles
25
7
  .open-source
26
8
  display: block
@@ -63,7 +45,7 @@ a
63
45
  position: absolute
64
46
  width: 120px
65
47
  height: 120px
66
- background: white
48
+ background: #DDD
67
49
  top: 22px
68
50
  left: -50px
69
51
  +rotate(45deg)
@@ -146,3 +128,284 @@ a
146
128
  +rotate(180deg)
147
129
  .translate
148
130
  opacity: 1
131
+
132
+
133
+ // bottle with ruby
134
+
135
+ *
136
+ padding: 0
137
+ margin: 0
138
+ border: none
139
+
140
+ @-webkit-keyframes spaceboots
141
+ 0%
142
+ -webkit-transform: translate(2px, 1px)
143
+ -webkit-transform: rotate(0deg)
144
+ 10%
145
+ -webkit-transform: translate(-1px, -2px)
146
+ -webkit-transform: rotate(-1deg)
147
+ 20%
148
+ -webkit-transform: translate(-3px, 0px)
149
+ -webkit-transform: rotate(1deg)
150
+ 30%
151
+ -webkit-transform: translate(0px, 2px)
152
+ -webkit-transform: rotate(0deg)
153
+ 40%
154
+ -webkit-transform: translate(1px, -1px)
155
+ -webkit-transform: rotate(1deg)
156
+ 50%
157
+ -webkit-transform: translate(-1px, 2px)
158
+ -webkit-transform: rotate(-1deg)
159
+ 60%
160
+ -webkit-transform: translate(-3px, 1px)
161
+ -webkit-transform: rotate(0deg)
162
+ 70%
163
+ -webkit-transform: translate(2px, 1px)
164
+ -webkit-transform: rotate(-1deg)
165
+ 80%
166
+ -webkit-transform: translate(-1px, -1px)
167
+ -webkit-transform: rotate(1deg)
168
+ 90%
169
+ -webkit-transform: translate(2px, 2px)
170
+ -webkit-transform: rotate(0deg)
171
+ 100%
172
+ -webkit-transform: translate(1px, -2px)
173
+ -webkit-transform: rotate(-1deg)
174
+
175
+ @-webkit-keyframes water
176
+ 0%
177
+ -webkit-transform: translate(20px, 10px)
178
+ 10%
179
+ -webkit-transform: translate(-10px, -20px)
180
+ 20%
181
+ -webkit-transform: translate(-25px, 0px)
182
+ 30%
183
+ -webkit-transform: translate(0px, 20px)
184
+ 40%
185
+ -webkit-transform: translate(10px, -10px)
186
+ 50%
187
+ -webkit-transform: translate(-10px, 20px)
188
+ 60%
189
+ -webkit-transform: translate(-25px, 10px)
190
+ 70%
191
+ -webkit-transform: translate(20px, 11px)
192
+ 80%
193
+ -webkit-transform: translate(-10px, -10px)
194
+ 90%
195
+ -webkit-transform: translate(20px, 20px)
196
+ 100%
197
+ -webkit-transform: translate(20px, 10px)
198
+
199
+ @-webkit-keyframes bubbleFloat
200
+ 0%
201
+ bottom: 50px
202
+ 10%
203
+ +opacity(0)
204
+ 20%
205
+ +opacity(1)
206
+ 33%
207
+ bottom: 340px
208
+ left: 170px
209
+ 35%
210
+ +opacity(0)
211
+ 100%
212
+ bottom: 50px
213
+ +opacity(0)
214
+
215
+ @-webkit-keyframes bubbleFloat2
216
+ 0%
217
+ bottom: 40px
218
+ 10%
219
+ +opacity(0)
220
+ 25%
221
+ +opacity(1)
222
+ 33%
223
+ bottom: 320px
224
+ left: 150px
225
+ 35%
226
+ +opacity(0)
227
+ 100%
228
+ bottom: 40px
229
+ +opacity(0)
230
+
231
+ @-webkit-keyframes bubbleFloat3
232
+ 0%
233
+ bottom: 40px
234
+ 10%
235
+ +opacity(0)
236
+ 25%
237
+ +opacity(1)
238
+ 33%
239
+ bottom: 320px
240
+ left: 135px
241
+ 35%
242
+ +opacity(0)
243
+ 100%
244
+ bottom: 40px
245
+ +opacity(0)
246
+
247
+ @-webkit-keyframes bubbleFloat4
248
+ 0%
249
+ bottom: 40px
250
+ 10%
251
+ +opacity(0)
252
+ 25%
253
+ +opacity(1)
254
+ 33%
255
+ bottom: 320px
256
+ left: 120px
257
+ 35%
258
+ +opacity(0)
259
+ 100%
260
+ bottom: 40px
261
+ +opacity(0)
262
+
263
+ @-webkit-keyframes bubbleFloat5
264
+ 0%
265
+ bottom: 40px
266
+ 10%
267
+ +opacity(0)
268
+ 25%
269
+ +opacity(1)
270
+ 33%
271
+ bottom: 320px
272
+ left: 150px
273
+ 35%
274
+ +opacity(0)
275
+ 100%
276
+ bottom: 40px
277
+ +opacity(0)
278
+
279
+ div
280
+ display: block
281
+
282
+ body
283
+ font-family: "BebasNeueRegular", "Arial Narrow", Arial, sans-serif
284
+ font-size: 15px
285
+ color: #333
286
+ line-height: 1.2
287
+ background: #DDD
288
+ padding: 0
289
+ margin: 0
290
+ display: block
291
+ .container
292
+ position: relative
293
+ width: 100%
294
+ text-align: center
295
+ .header
296
+ padding: 30px 30px 0 30px
297
+ margin: 0 20px 10px 20px
298
+ position: relative
299
+ display: block
300
+ h1
301
+ font-size: 30px
302
+ text-transform: uppercase
303
+ line-height: 1.5
304
+ position: relative
305
+ font-weight: 400
306
+ text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.7)
307
+ padding-bottom: 5px
308
+ margin: 0 20px
309
+ h2
310
+ font-size: 16px
311
+ padding: 10px 0
312
+ .content
313
+ position: relative
314
+ width: 800px
315
+ margin: 30px auto
316
+ display: block
317
+ text-align: center
318
+ .anime
319
+ display: block
320
+ &:hover
321
+ .shake
322
+ -webkit-animation-name: spaceboots
323
+ -webkit-animation-duration: 0.9s
324
+ -webkit-transform-origin: 50% 50%
325
+ -webkit-animation-iteration-count: infinite
326
+ -webkit-animation-timing-function: linear
327
+ .ruby
328
+ -webkit-animation-name: water
329
+ -webkit-animation-duration: 6s
330
+ -webkit-transform-origin: 50% 50%
331
+ -webkit-animation-iteration-count: infinite
332
+ -webkit-animation-timing-function: linear
333
+ .ruby
334
+ position: relative
335
+ display: inline-block
336
+ top: 350px
337
+ right: 50px
338
+ .shake
339
+ display: inline-block
340
+ position: relative
341
+ .action
342
+ width: 300px
343
+ height: 450px
344
+ margin: 0 auto
345
+ position: relative
346
+ top: -450px
347
+ .bubble
348
+ width: 3px
349
+ height: 3px
350
+ position: absolute
351
+ display: block
352
+ left: 105px
353
+ bottom: 110px
354
+ +border-radius(20px)
355
+ +opacity(0.5)
356
+ background: black
357
+ -webkit-animation-name: bubbleFloat
358
+ -webkit-animation-duration: 3s
359
+ -webkit-animation-iteration-count: infinite
360
+ .bubble2
361
+ width: 3px
362
+ height: 3px
363
+ position: absolute
364
+ display: block
365
+ left: 90px
366
+ bottom: 80px
367
+ +border-radius(20px)
368
+ +opacity(0.5)
369
+ background: black
370
+ -webkit-animation-name: bubbleFloat2
371
+ -webkit-animation-duration: 3.2s
372
+ -webkit-animation-iteration-count: infinite
373
+ .bubble3
374
+ width: 3px
375
+ height: 3px
376
+ position: absolute
377
+ display: block
378
+ left: 80px
379
+ bottom: 76px
380
+ +border-radius(20px)
381
+ +opacity(0.5)
382
+ background: black
383
+ -webkit-animation-name: bubbleFloat3
384
+ -webkit-animation-duration: 3.6s
385
+ -webkit-animation-iteration-count: infinite
386
+ .bubble4
387
+ width: 3px
388
+ height: 3px
389
+ position: absolute
390
+ display: block
391
+ left: 70px
392
+ bottom: 70px
393
+ +border-radius(20px)
394
+ +opacity(0.5)
395
+ background: black
396
+ -webkit-animation-name: bubbleFloat4
397
+ -webkit-animation-duration: 2.5s
398
+ -webkit-animation-iteration-count: infinite
399
+ .bubble5
400
+ width: 3px
401
+ height: 3px
402
+ position: absolute
403
+ display: block
404
+ left: 85px
405
+ bottom: 85px
406
+ +border-radius(20px)
407
+ +opacity(0.5)
408
+ background: black
409
+ -webkit-animation-name: bubbleFloat5
410
+ -webkit-animation-duration: 2s
411
+ -webkit-animation-iteration-count: infinite
@@ -1,11 +1,17 @@
1
1
  // You should replace all this content with your styles :)
2
2
  // Of course you can grab from here something you like :)
3
3
 
4
- %h1
5
- %a( href='https://github.com/gazay/tonic' ) This is tonic gem gh-page
6
-
7
- %h2 Which was made with tonic-template: sass/compass/haml/coffee.
8
-
9
- .tonic-logo
10
-
11
-
4
+ .container
5
+ .header
6
+ %h1 This is tonic gem gh-page
7
+ %h2 Which was made with tonic-template: sass/compass/haml/coffee.
8
+ .content
9
+ .anime
10
+ %img.shake(src="assets/images/bottle.png")
11
+ .action
12
+ %span.bubble
13
+ %span.bubble2
14
+ %span.bubble3
15
+ %span.bubble4
16
+ %span.bubble5
17
+ %img.ruby(src="assets/images/ruby.png")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tonic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: middleman
16
- requirement: &70281059243480 !ruby/object:Gem::Requirement
16
+ requirement: &70363183195400 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70281059243480
24
+ version_requirements: *70363183195400
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jekyll
27
- requirement: &70281059241580 !ruby/object:Gem::Requirement
27
+ requirement: &70363183194560 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70281059241580
35
+ version_requirements: *70363183194560
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70281059239400 !ruby/object:Gem::Requirement
38
+ requirement: &70363183192680 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70281059239400
46
+ version_requirements: *70363183192680
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &70281059238320 !ruby/object:Gem::Requirement
49
+ requirement: &70363183190800 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70281059238320
57
+ version_requirements: *70363183190800
58
58
  description: You don't need to write your github pages in html and css anymore - now
59
59
  it's simple to use your favorite technologies with tonic!
60
60
  email:
@@ -78,7 +78,6 @@ files:
78
78
  - lib/tonic/shell.rb
79
79
  - lib/tonic/template.rb
80
80
  - lib/tonic/version.rb
81
- - spec/tonic/fail_spec.rb
82
81
  - spec/tonic/tonic_spec.rb
83
82
  - template/.tonic
84
83
  - template/Gemfile
@@ -86,7 +85,9 @@ files:
86
85
  - template/Rakefile
87
86
  - template/assets/coffee/application.coffee
88
87
  - template/assets/coffee/open_source.coffee
88
+ - template/assets/images/bottle.png
89
89
  - template/assets/images/octocat.png
90
+ - template/assets/images/ruby.png
90
91
  - template/assets/images/tonic.png
91
92
  - template/assets/sass/_base.sass
92
93
  - template/assets/sass/application.css.sass
@@ -119,5 +120,4 @@ signing_key:
119
120
  specification_version: 3
120
121
  summary: Create one-page apps easy with Sass, Haml/Compass, Coffee.
121
122
  test_files:
122
- - spec/tonic/fail_spec.rb
123
123
  - spec/tonic/tonic_spec.rb
@@ -1,7 +0,0 @@
1
- require 'tonic'
2
-
3
- describe Tonic, '#not_working' do
4
- it 'really not working yet' do
5
- Tonic::VERSION.should == '0.0.2'
6
- end
7
- end