chris_lib 1.0.6 → 1.0.7

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
- SHA1:
3
- metadata.gz: 3a77612982d1e205fb772a8403f40c679e5f6edb
4
- data.tar.gz: fedcc2c2837b0e3d4bb6f2ec617ef95c5881d22d
2
+ SHA256:
3
+ metadata.gz: c8a41a7538ec93bacf268f22bfdb80d82e1bbeef37dcb21976307b3a9495105d
4
+ data.tar.gz: 4c803031859313d32cddbee2ce57a334b2e71ebd0b1b1d64ce70710ebd32b96f
5
5
  SHA512:
6
- metadata.gz: 49557451071f3148f67eb457dbfc7160e85f0e5fa6c14b62855cb6937ee737934983a1c841b5b07b2a7f3104368814a0c67b961c9391a7a4ad48c120b6146319
7
- data.tar.gz: c70962d469796981abfb8598254fc9e83c65bf8fbfece7c2998f5013be11f9813596ac880527436aab71ba2e1479cabdf98b1151275952d21664735716a13278
6
+ metadata.gz: '09a6948cf8460a70a34fef549aef1fd772790c881440caf6985d7a9b7cfc82ee0597f1228b22a24069025f354ad9bb5ade2755b0caa8e05a8bd9e7823db9dfb8'
7
+ data.tar.gz: cdf5aa7e4ca3fec15051f053c5d71ca5b6719ef9e6af4a50514c5278940bb7f349e99eb6c74334acc252c006bde4114ddfeafc7c8bfceb6add44ad847bfe8a0f
@@ -30,8 +30,10 @@ module ShellMethods
30
30
  destination = (remote.nil? ? nil : "--remote #{remote}")
31
31
  lv = `rake db:version`
32
32
  puts 'Local version: ', lv
33
- hv = `heroku run rake db:version #{destination}`
33
+ hv = Bundler.with_clean_env { `heroku run rake db:version #{destination}` }
34
34
  puts hv
35
+ return nil if hv.nil? || hv.empty?
36
+ return nil if lv.nil? || lv.empty?
35
37
  key = 'version: '
36
38
  nl = lv.index(key) + 9
37
39
  l_version = lv.slice(nl..-1)
@@ -42,7 +44,8 @@ module ShellMethods
42
44
 
43
45
  def check_git_clean
44
46
  puts "Checking git status"
45
- gs=`git status`; lr=$?.success?
47
+ gs = `git status`
48
+ lr = $?.success?
46
49
  if gs['working directory clean'].nil?
47
50
  puts "Exiting, you need to commit files"
48
51
  exit 1
@@ -1,3 +1,3 @@
1
1
  module ChrisLib
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chris_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-27 00:00:00.000000000 Z
11
+ date: 2018-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '4.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '4.2'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rails
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,8 +80,7 @@ dependencies:
66
80
  - - ">="
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0'
69
- description: It include maths, datetime, and rspec access test libraries. It include
70
- maths, datetime, and rspec access test libraries.
83
+ description: It includes maths, datetime, and rspec access test libraries.
71
84
  email:
72
85
  - obromios@gmail.com
73
86
  executables: []
@@ -86,7 +99,9 @@ files:
86
99
  homepage: https://github.com/obromios
87
100
  licenses:
88
101
  - MIT
89
- metadata: {}
102
+ metadata:
103
+ source_code_uri: https://github.com/obromios/chris_lib
104
+ changelog_uri: https://github.com/obromios/chris_lib/blob/master/CHANGELOG.md
90
105
  post_install_message:
91
106
  rdoc_options: []
92
107
  require_paths:
@@ -103,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
118
  version: '0'
104
119
  requirements: []
105
120
  rubyforge_project:
106
- rubygems_version: 2.6.13
121
+ rubygems_version: 2.7.6
107
122
  signing_key:
108
123
  specification_version: 4
109
124
  summary: This an eclectic collection of methods. It include maths, datetime, and rspec