rdeis 0.0.8 → 0.0.9

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: 1df42fa5b070732b2b16e19b57508360a42c282e
4
- data.tar.gz: 2361bb85b58778e8a68c325968c49b11d02ca5ee
3
+ metadata.gz: 44bcbb4094b26e89501275ce80570e1155b17473
4
+ data.tar.gz: 0d1e28af9e9107149dd94889ac182a216d451f1c
5
5
  SHA512:
6
- metadata.gz: 8bfaf8f5454b2499175d8336fd2fa1a6d3c20bbab7ba421feeb442b2cefdd254f8290f710007d3a0ea4274fb20fad3cfa24c58f67e92337d3d3dc0d95f18ddd6
7
- data.tar.gz: 5609ff5c1e12fb08d3931e45a9c0395e920c9e2b083af77ff460817a7fccf6b83b28ea1e15e384d3d88314ff1698dd526b2651de22685a88d77e45418a917148
6
+ metadata.gz: 1c537fec9f23596cdd6b0e3896e37b1db04c9f19e43e531249fa22e0e4d53d37a5d86e3b6bfeff13cde2af93d9a20ece6c8a1976a6751bde624208b165e588e2
7
+ data.tar.gz: 48e378fda95d22b066c287982c21e82050cbbe7e7db0654a64ce0877ed75fc5b74d341cc15aac60c94a78ce4df85154139bac751382c245cfa263583d8966835
data/gemconversion CHANGED
@@ -2,10 +2,14 @@
2
2
  # encoding: UTF-8
3
3
  file = "./Gemfile"
4
4
  ignore = "./gitignore"
5
+ ruby_version = `ruby -v | grep "ruby [0-9]\.[0-9]\.[0-9]" -o | sed -E "s#ruby ##"`.strip
5
6
  if File.exists?(file)
6
7
  contents = File.open(file, "r") {|f| f.read }
7
8
  # convert values over
8
9
  contents = contents.gsub("'", '"').gsub("git@github.com:", "https://#{ENV['GITHUB_TOKEN']}:x-oauth-basic@github.com/")
10
+ # check for ruby verion in the gemfile
11
+ version_found = contents.index(/ruby \"[0-9]\.[0-9]\.[0-9]\"/)
12
+ contents = contents + "\nruby \"#{ruby_version}\" " if version_found.nil?
9
13
  # write back to file
10
14
  File.open(file, "w"){ |f| f.write(contents) }
11
15
  # add this file to the gitignore
@@ -14,6 +18,8 @@ if File.exists?(file)
14
18
  igoring = File.open(ignore, "r"){|g| g.read }
15
19
  File.open(ignore, "w"){|g| g.write(ignoring.gsub("gemconversion", "") + "\ngemconversion" ) }
16
20
  end
21
+ # look for ruby version file
22
+ `echo "#{ruby_version}" > ./ruby-version` if ! File.exists?(".ruby-version")
17
23
  # run the bundle
18
24
  install = `bundle install 2>&1 | grep 'Your bundle is complete!' | wc -l`.to_i
19
25
  # check the status
data/lib/rdeis/base.rb CHANGED
@@ -24,7 +24,9 @@ module DEIS
24
24
  end
25
25
 
26
26
  def local_profile
27
- "#{ENV['HOME']}/.profile"
27
+ file = "#{ENV['HOME']}/.profile"
28
+ `> #{file}` if ! File.exists?(file)
29
+ file
28
30
  end
29
31
 
30
32
  def remote_profile
data/lib/rdeis/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module DEIS
2
- VERSION='0.0.8'
3
- LAST_VERSION='0.0.4'
2
+ VERSION='0.0.9'
3
+ LAST_VERSION='0.0.8'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdeis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Marshall
@@ -79,7 +79,7 @@ files:
79
79
  - lib/rdeis/version.rb
80
80
  - lib/ssh.rb
81
81
  - rdeis.gemspec
82
- homepage: https://github.com/charlesmarshall/deis_deploy/tree/0.0.8
82
+ homepage: https://github.com/charlesmarshall/deis_deploy/tree/0.0.9
83
83
  licenses:
84
84
  - MIT
85
85
  metadata: {}