learn-submit 1.0.7 → 1.0.8

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: cd9a42b49631aeee8a18cb2d39f2ac858e240683
4
- data.tar.gz: 42b9650890f4d798fb6c75b7a2b9f51c4c1e102e
3
+ metadata.gz: dee1ddd4067ac298836e1f132ea2a8d765acb920
4
+ data.tar.gz: d09e312a5d03b31ecd9fd1fbde8b01ed36a06f5c
5
5
  SHA512:
6
- metadata.gz: a9f6ae87964fac107940e135353fad751507126c917b14e0e36dbd2001c9d656ef74bdb357b470817d4a84d2a6fecaa9dc498a8f42a6183166b01b1873c7ce7e
7
- data.tar.gz: 65ea1e61c81337a0cae275c190a2f5105b554a8c9c4ea594f4976604f4c481d2d249c9f7a32fb7f4df2c4572c80c2f3f2bc39db0963f0e52d19098e51d0cee2f
6
+ metadata.gz: 3eb7c407f2a3c128d72d37aac495523a60d181693475a61529f698757b0b00f9714e3031defba61394a491d680b9a00272bbc2ffc65025f0b44e7edbcd48b6b9
7
+ data.tar.gz: e0c3d37b7fa7bc2496e4768fc3e87ed1bdd542c0801d082ca3a26cd99345393c2a8207b9662bf2abce06eae625aca0b2b45c38bbcfb32d46ee55cf7b85a6bba0
@@ -76,7 +76,13 @@ module LearnSubmit
76
76
  exit
77
77
  else
78
78
  puts pr_response.message
79
- File.write(file_path, 'Done.')
79
+
80
+ if pr_response.message.match(/looks the same/)
81
+ File.write(file_path, 'ERROR: Nothing to submit')
82
+ else
83
+ File.write(file_path, 'Done.')
84
+ end
85
+
80
86
  exit
81
87
  end
82
88
  end
@@ -1,3 +1,3 @@
1
1
  module LearnSubmit
2
- VERSION = '1.0.7'
2
+ VERSION = '1.0.8'
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.0.7
4
+ version: 1.0.8
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-06-03 00:00:00.000000000 Z
11
+ date: 2015-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler