chris_lib 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e76deaa3a7824340278bd4eb24898ca3ad0ded771c0fab25ada63ef77bd850e
4
- data.tar.gz: febe97bd1fc1c7eb4c55c218961685d35dea75eba78bc0d4b1cf2a26607f4f0c
3
+ metadata.gz: 2ac235a699e1646e3d23f3033e63497cc8521ca0f8813ebd8d0a0ba40ee8f3e5
4
+ data.tar.gz: 7464f39ab26916584b50d2bc200d5e79837cde4ab0363b1ecee28d9006db7fcf
5
5
  SHA512:
6
- metadata.gz: d99b4d0e88fd728b064212aed2d3bd87ec1921583c2a20e70a906501ec3c175be3f684f444a2495d7c422352eea0a740cfc935568a6e5cf16af261ee6cd8dba3
7
- data.tar.gz: bc0a1a439fce1c6e8b8ef6a36b0b557e893e2bab208b694602f2ff2e85393a494dd1da62e261b2c41828864720042bfeb3af7ff0b9020c309c9bc72c69cb3500
6
+ metadata.gz: 3074a8487fa7178c83465f80d0ae4e5eec28640f5a35e246dfb491c167d5ffeff103dfea5b9281abbda1bb92b89f486999188e9847abb740a74bb6cf5eeeff1f
7
+ data.tar.gz: 5c2d852a16e239c2a8d3837deaef9697cf0be57a020e7a517976a441a767871ee56f301390ae1f7ad912cace1d97f18232776900da3d79f92af6bf9de3ae7147
@@ -90,19 +90,16 @@ module ShellMethods
90
90
  def check_git_clean
91
91
  puts "Checking git status"
92
92
  gs = `git status`
93
- lr = $?.success?
94
- if gs['working directory clean'].nil?
95
- puts "Exiting, you need to commit files"
96
- exit 1
97
- end
93
+ return unless gs['working tree clean'].nil?
94
+ puts "Exiting, you need to commit files"
95
+ exit 1
98
96
  end
99
97
 
100
98
  def check_chris_lib_status
101
99
  gs=`cd ../chris_lib;git status`; lr=$?.success?
102
- if gs['working directory clean'].nil? && gs['up-to-date'].nil?
103
- puts "Exiting, chris_lib is not up to date with master."
104
- exit 3
105
- end
100
+ return unless gs['working tree clean'].nil? && gs['up-to-date'].nil?
101
+ puts "Exiting, chris_lib is not up to date with master."
102
+ exit 3
106
103
  system('cd $OLDPWD')
107
104
  end
108
105
 
@@ -1,3 +1,3 @@
1
1
  module ChrisLib
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chris_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-24 00:00:00.000000000 Z
11
+ date: 2019-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -127,8 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  requirements: []
130
- rubyforge_project:
131
- rubygems_version: 2.7.9
130
+ rubygems_version: 3.0.3
132
131
  signing_key:
133
132
  specification_version: 4
134
133
  summary: This an eclectic collection of methods. It include maths, datetime, and rspec