comet 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/comet +6 -10
  3. data/lib/comet/version.rb +1 -1
  4. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b58c5299c8f7df9bc5404118d335688e73b7487
4
- data.tar.gz: e5bccd67ca9f8237d8c860f930d31db80aacc46b
3
+ metadata.gz: 1b6d2a5d333cf1258c4665f213ca49595393708d
4
+ data.tar.gz: fea2e7915350a93ee46419e353c12d600954178a
5
5
  SHA512:
6
- metadata.gz: 0f8680498d504f79e37cb894897e76d96b8b7c79f2f81e0eef81936ce995dbe347471ae3fa1915da0f491bf42fa3f737ca08c93c4927a33ef23eba7097d78a66
7
- data.tar.gz: d9d9da04b752f630503f610a08d92e018f335bfa12a06bfab133777e050ce9e5d6720858d95a7c315205ab51d57625107a40d724fe908b7f709131a50964a5fb
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
- sorted_challenges = challenges.sort_by do |challenge|
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
- challenge_file = File.join(current_dir, '.challenge')
100
+ kata_file = File.join(current_dir, '.kata')
105
101
 
106
- if File.exists?(challenge_file)
107
- challenge_info = YAML.load(File.read(challenge_file))
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: challenge_info['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 challenge directory."
129
+ puts "Not a kata directory."
134
130
  exit 1
135
131
  end
136
132
  end
data/lib/comet/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Comet
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
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.6
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-24 00:00:00.000000000 Z
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