comet 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/comet +6 -10
- data/lib/comet/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b6d2a5d333cf1258c4665f213ca49595393708d
|
4
|
+
data.tar.gz: fea2e7915350a93ee46419e353c12d600954178a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2454cc479c5c0e5ae218c1fdd5894d0cecdde08d92f2c41da8301a2dd1af112d49e273ca505b07ce6ced90cdde1f941e077b86948380e5711c85fdbd7e856124
|
7
|
+
data.tar.gz: 381073006479c4e9bd37d25bf2e46383fd897f42babf401c8db469533da4a40270c90f6b4136cf125e62ef57c90a36590b6203000bb14eed2a2e5ae5fbbcc6d2
|
data/bin/comet
CHANGED
@@ -34,11 +34,7 @@ command :list do |c|
|
|
34
34
|
if challenges.empty?
|
35
35
|
puts "No challenges available."
|
36
36
|
else
|
37
|
-
|
38
|
-
[challenge[:topic_name], challenge[:difficulty]]
|
39
|
-
end
|
40
|
-
|
41
|
-
sorted_challenges.each do |challenge|
|
37
|
+
challenges.each do |challenge|
|
42
38
|
printf("(%4d) \e[34m%s\e[0m: %s (%s)\n",
|
43
39
|
challenge[:id],
|
44
40
|
challenge[:topic_name],
|
@@ -101,10 +97,10 @@ command :submit do |c|
|
|
101
97
|
require 'tmpdir'
|
102
98
|
|
103
99
|
current_dir = Dir.pwd
|
104
|
-
|
100
|
+
kata_file = File.join(current_dir, '.kata')
|
105
101
|
|
106
|
-
if File.exists?(
|
107
|
-
|
102
|
+
if File.exists?(kata_file)
|
103
|
+
kata_info = YAML.load(File.read(kata_file))
|
108
104
|
lib_dir = File.join(current_dir, 'lib')
|
109
105
|
slug = File.basename(current_dir)
|
110
106
|
|
@@ -113,7 +109,7 @@ command :submit do |c|
|
|
113
109
|
if system("tar zcf #{Shellwords.escape(submission_file)} -C #{Shellwords.escape(lib_dir)} .")
|
114
110
|
payload = {
|
115
111
|
submission: {
|
116
|
-
challenge_id:
|
112
|
+
challenge_id: kata_info['id'],
|
117
113
|
archive: File.new(submission_file)
|
118
114
|
}
|
119
115
|
}
|
@@ -130,7 +126,7 @@ command :submit do |c|
|
|
130
126
|
end
|
131
127
|
|
132
128
|
else
|
133
|
-
puts "Not a
|
129
|
+
puts "Not a kata directory."
|
134
130
|
exit 1
|
135
131
|
end
|
136
132
|
end
|
data/lib/comet/version.rb
CHANGED
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Sheehan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rdoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|