rdeis 0.0.8 → 0.0.9
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 +4 -4
- data/gemconversion +6 -0
- data/lib/rdeis/base.rb +3 -1
- data/lib/rdeis/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44bcbb4094b26e89501275ce80570e1155b17473
|
4
|
+
data.tar.gz: 0d1e28af9e9107149dd94889ac182a216d451f1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/rdeis/version.rb
CHANGED
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.
|
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.
|
82
|
+
homepage: https://github.com/charlesmarshall/deis_deploy/tree/0.0.9
|
83
83
|
licenses:
|
84
84
|
- MIT
|
85
85
|
metadata: {}
|