chris_lib 2.1.4 → 2.1.6

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
  SHA256:
3
- metadata.gz: 27ef0bebf9a6ec7bfa909c55a36ddb13cbfe88407f69799b0176e10ffe387b2d
4
- data.tar.gz: d2ee5dddf8d54886d696fd7e5a64e98c77316e3484abcbcaf6b544d25fe71320
3
+ metadata.gz: 3cb07cbe06e12fbb8979dde3d46276aa0481daab6a1a61aff5ba7a3296193a53
4
+ data.tar.gz: 870757397f15671cbbe3ef4905ab098e110c988a3ebef3bd6d336efed6b81fbc
5
5
  SHA512:
6
- metadata.gz: 914a9543129f547a1ff23fa3d8139ddda9ff046432890323b1c0462f95dd3552b1e6b3bfaed8e24ebb26f5d9f3b42947857e77df94c96229060b43254f3f599e
7
- data.tar.gz: 8364d7178f6d052de19dba7331aa6ba5c23bb8621aa6a838b4e432477698cdab9a201550b106967ba0f848a9a6df7a9b6da596787aa38c3c5a2184d05e685a8e
6
+ metadata.gz: 87e1dbc1fe073d2be18e03c4d1dea303efd92cfc1896ab6d02a5dd556fa69a6a6b687eb476fcc86d8112c3ea9e3e0de9796bf2ff33a507c2832bdbca0e9a8018
7
+ data.tar.gz: b53674dff3fa9ea7c9543cbffe0cc071dd9537f603b0dba4a0065e1e3718ae7bb9652ff29429240b2c473dd67b2c3b12c55d9484aff31e99ba4219dec38f5813
@@ -76,34 +76,19 @@ module ShellMethods
76
76
  system('heroku run rake util:warn_under_maintenance --remote production')
77
77
  end
78
78
 
79
- def precompile_assets(target: 'local')
80
- puts "Precompiling assets for #{target}"
81
- if target == 'local'
82
- asset_host = ENV['RAILS_HOST_PATH']
83
- elsif target == 'staging'
84
- asset_host = 'cstaging-golf.herokuapp.com'
85
- elsif target == 'production'
86
- asset_host = 'www.thegolfmentor.com'
87
- else
88
- raise "Invalid target for precompile: #{target}"
89
- end
90
- puts "precompile asset_host is #{asset_host}"
91
- system("RAILS_ENV=production RAILS_HOST_PATH=#{asset_host} rake assets:precompile")
92
- `git add .`
93
- commit_msg = "Add precompiled assets for #{target}"
94
- system(%[git commit -m "#{commit_msg}"])
95
- end
96
-
97
79
  def time_hash
98
80
  time = Time.now
99
81
  time.day.to_s + time.month.to_s + time.year.to_s + '-' + time.hour.to_s + time.min.to_s
100
82
  end
101
83
 
84
+ # change in response to
85
+ #[DEPRECATED] `Bundler.with_clean_env` has been deprecated in favor of `Bundler.with_unbundled_env`. If you instead want the environment before bundler was originally loaded, use `Bundler.with_original_env`
86
+ # remove this comment when clear that this works.
102
87
  def same_db_version(remote: nil)
103
88
  destination = (remote.nil? ? nil : "--remote #{remote}")
104
89
  lv = `rake db:version`
105
90
  puts 'Local version: ', lv
106
- hv = Bundler.with_clean_env {
91
+ hv = Bundler.with_unbundled_env{
107
92
  `heroku run rake db:version #{destination}`
108
93
  }
109
94
  puts hv
@@ -1,3 +1,3 @@
1
1
  module ChrisLib
2
- VERSION = '2.1.4'
2
+ VERSION = '2.1.6'
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: 2.1.4
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-15 00:00:00.000000000 Z
11
+ date: 2022-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv