chris_lib 1.0.6 → 1.0.7
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 +5 -5
- data/lib/chris_lib/shell_methods.rb +5 -2
- data/lib/chris_lib/version.rb +1 -1
- metadata +21 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c8a41a7538ec93bacf268f22bfdb80d82e1bbeef37dcb21976307b3a9495105d
|
4
|
+
data.tar.gz: 4c803031859313d32cddbee2ce57a334b2e71ebd0b1b1d64ce70710ebd32b96f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/chris_lib/version.rb
CHANGED
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.
|
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-
|
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
|
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
|
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
|