learn-submit 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f2c58b59b32da30d6e8fefa8ea3432a20ddbdb6
4
- data.tar.gz: 810ec07be6cd681e6b315fb2c22252dcbac9bcf1
3
+ metadata.gz: 0f885c784b4cfc9306f4ef659a2ef3faed450db8
4
+ data.tar.gz: c8bb8b785f43d864d3d0989924f42b9b7d3fc6fd
5
5
  SHA512:
6
- metadata.gz: be94a2827bac6529f9c1436034a3270d9e5f6fd5f9bfed95ad01af6db45ae4f80a1f4d46e8b85d20233fe1c23dc93263bcfa1ae2bffe0d77d51a6da450f27134
7
- data.tar.gz: e4cfc0c1f3960bda9bc8e7b33c2ab4f0ac0f0a4ab13372418c79be25b43c6332d7c4e79bf0a4af58db450ea29a20b4045e833d899b99e8a3e16e22c71a3a4470
6
+ metadata.gz: efa6903f2dff7c8e9baa32afb7337e3c7f7e78f49dd0420d17d4a473a0f6503a7143524b0980abc1ded9af950d30ed7d2d2048a139dbe3e56ea2ee7de5c33329
7
+ data.tar.gz: 26088c3fe941ff7cc26a7e7769fce064c847f492511cad02f119135d56ba3b0b4c11d51df51ee3f0dd369af324ce6c6fc3603eb7fba602301f92fbaa55cf9b64
@@ -42,10 +42,10 @@ module LearnSubmit
42
42
  puts "It doesn't look like you're in a lesson directory."
43
43
  puts 'Please cd into an appropriate directory and try again.'
44
44
 
45
- exit
45
+ exit 1
46
46
  else
47
47
  puts 'Sorry, something went wrong. Please try again.'
48
- exit
48
+ exit 1
49
49
  end
50
50
  end
51
51
  end
@@ -55,7 +55,7 @@ module LearnSubmit
55
55
  puts "It doesn't look like you're in a lesson directory."
56
56
  puts 'Please cd into an appropriate directory and try again.'
57
57
 
58
- exit
58
+ exit 1
59
59
  else
60
60
  self.remote_name = if git.remote.url.match(/#{username}/).nil?
61
61
  fix_remote!
@@ -80,7 +80,7 @@ module LearnSubmit
80
80
  rescue Git::GitExecuteError => e
81
81
  if e.message.match(/already exists/).nil?
82
82
  puts "Sorry, something Git-related went wrong. Please try again."
83
- exit
83
+ exit 1
84
84
  end
85
85
  end
86
86
  end
@@ -110,7 +110,7 @@ module LearnSubmit
110
110
  puts "It looks like you have no changes to commit. Will still try updating your submission..."
111
111
  else
112
112
  puts 'Sorry, something went wrong. Please try again.'
113
- exit
113
+ exit 1
114
114
  end
115
115
  end
116
116
  end
@@ -128,7 +128,7 @@ module LearnSubmit
128
128
  puts!(retries-1)
129
129
  else
130
130
  puts "Can't reach GitHub right now. Please try again."
131
- exit
131
+ exit 1
132
132
  end
133
133
  end
134
134
  end
@@ -66,7 +66,7 @@ module LearnSubmit
66
66
  else
67
67
  puts "Sorry, there's a problem reaching Learn right now. Please try again."
68
68
  File.write(file_path, 'ERROR: Error connecting to learn.')
69
- exit
69
+ exit 1
70
70
  end
71
71
  end
72
72
 
@@ -78,7 +78,7 @@ module LearnSubmit
78
78
  when 404
79
79
  puts 'Sorry, it seems like there was a problem connecting with Learn. Please try again.'
80
80
  File.write(file_path, 'ERROR: Error connecting to learn.')
81
- exit
81
+ exit 1
82
82
  else
83
83
  puts pr_response.message
84
84
 
@@ -88,7 +88,7 @@ module LearnSubmit
88
88
  File.write(file_path, 'Done.')
89
89
  end
90
90
 
91
- exit
91
+ exit 1
92
92
  end
93
93
  end
94
94
  end
@@ -1,3 +1,3 @@
1
1
  module LearnSubmit
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learn-submit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flatiron School
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-28 00:00:00.000000000 Z
11
+ date: 2015-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler