contestify 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,10 +19,16 @@ module Contestify
19
19
  @base_dir = Dir.pwd
20
20
  Contestify::Configuration.configure!(@base_dir)
21
21
  Contestify::Uploader.upload!(@judge_url, @judge_password, @base_dir)
22
+ clean_dir!
22
23
  end
23
24
 
24
25
  private ######################################################################## PRIVATE
25
26
 
27
+ def clean_dir!
28
+ puts red "Deleting created files & folders (#{@base_dir})"
29
+ FileUtils.rm_rf @base_dir
30
+ end
31
+
26
32
  def check_dependencies
27
33
  system?(:zip) and
28
34
  system?(:curl) and
@@ -1,3 +1,3 @@
1
1
  module Contestify
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contestify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70342794831580 !ruby/object:Gem::Requirement
16
+ requirement: &70178592865120 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.9.2
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70342794831580
24
+ version_requirements: *70178592865120
25
25
  description: Gem to prepare internal programming contests taking problems from the
26
26
  COCI contests.
27
27
  email:
@@ -60,7 +60,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
60
60
  version: '0'
61
61
  segments:
62
62
  - 0
63
- hash: -4442839192131223781
63
+ hash: -1661828008444752765
64
64
  required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  version: '0'
70
70
  segments:
71
71
  - 0
72
- hash: -4442839192131223781
72
+ hash: -1661828008444752765
73
73
  requirements: []
74
74
  rubyforge_project:
75
75
  rubygems_version: 1.8.10