exercism 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjYyYTE2NGU4YzE3MWNmYTY2YTY0ZTY5YjU4ZDgwOTlkZDY1OTY5OQ==
4
+ YmYzZjA0YjJlYmUxYzg0MTJiYTE2YTAyNmI3ZGUzYjcxYzIyYjQ3Yg==
5
5
  data.tar.gz: !binary |-
6
- OTk2NTY5NWY5ZDcyYWNhMzEyNTQzNjE2ZWYyNTVjOGRhYjU2NTkwNg==
6
+ NWU3NTc0ZmI4OWE0NDQ0NjE2MDkyOWVkNWExYTIyMDVjYWQ1M2M0NQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NmMzYzgxMjVlNjI2OWY4NzI2ZWJhODY5MWFmNWNmNmY1NjNmNGJhOGNlNDEw
10
- MzA4YWFjODY0YjU2MGRjYjg4NzdlYzc4YjQ4N2UzY2JmYzZmYjZlY2FkZGI0
11
- ZWYyY2MyM2MxYWM2M2U5YWUzZjE2OGJkMWU0Y2U3ODIwNDBlNWM=
9
+ Y2ZjNDdiMjZkYTlmMGI0MzRjOTk1ZDQxYzJmMTM2MDRjOTMwNWExZWM2MTYz
10
+ NWU1ZjA0MmE0OTk5ZDMxNWIwMmJmZmE1OGE0NTM3NGViNjI2ZjRjMDE5NjRm
11
+ OWQ4MjE5YmE0ZmU1NjNlNzJmMmYwN2UwZDgxNGQ0YzhjMzJmNTI=
12
12
  data.tar.gz: !binary |-
13
- MmVlNzIxMWJmZGE4ZjBkYzYxZmQzMzNjYWU4ZDhhNjJkOWUxODcxN2NiZmE3
14
- MDZhNTIwNzQzYjk3MjBhMjk1ZGRmZGRlNDI0MzE0Mjk3ZWZlMzQ3YzcxZjc4
15
- NTA0YmQ1YjgzN2JiM2QzNDQ4ZDc3ZWI1OTgzMjRiOTM4YzVjZmM=
13
+ NTA4NDI4MjNkNGJlZDQ3OTMzNThiNjZhYzJjYTQ3ZWQ3Yjg1ZDU3NWJjZDNl
14
+ NjkxN2E3ZDMzY2ExMjg4OGRlNDc4YjFmODk2YWIzZTAzNDUwZjQ5ZmFkOWUw
15
+ M2IwNzRkZDg3NzI3MWI5ODdkMTZlZjY1ZTg4NGMwZDQ0YTIwMzY=
data/README.md CHANGED
@@ -24,6 +24,10 @@ This retrieves the README and test suite for your current assignment.
24
24
 
25
25
  This submits `example.rb` on your current assignment.
26
26
 
27
+ $ export EXERCISM_ENV=development
28
+
29
+ Reveals stack traces on errors.
30
+
27
31
  ## Contributing
28
32
 
29
33
  1. Fork it
data/bin/exercism CHANGED
@@ -1,6 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ trap("INT") { print "\nExiting. \n"; exit }
3
4
  $:.unshift File.expand_path("../../lib", __FILE__)
4
5
  require 'cli'
5
6
 
6
- Exercism::CLI.start
7
+ begin
8
+ Exercism::CLI.start
9
+ rescue Exception => e
10
+ print "\nERROR: Something went wrong. Exiting.\n"
11
+ raise e if ENV['EXERCISM_ENV'] =~ /test|development/
12
+ end
@@ -1,3 +1,3 @@
1
1
  class Exercism
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -20,7 +20,7 @@ class ExercismTest < MiniTest::Unit::TestCase
20
20
  def test_login_gives_you_a_user
21
21
  Exercism.stub(:home, './test/fixtures') do
22
22
  key = '97e9975'
23
- user = Exercism.login('bob', key, '/dev/null')
23
+ user = Exercism.login('bob', key, '/tmp')
24
24
  assert_equal 'bob', user.github_username
25
25
  assert_equal key, user.key
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exercism
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katrina Owen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-17 00:00:00.000000000 Z
11
+ date: 2013-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday