homesteading 0.5.0 → 0.5.1

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: 277b7f3921d0118782258f32e4a9ce918aa5565a
4
- data.tar.gz: cfa2f93041be05aa004508d672753ad62acdecf9
3
+ metadata.gz: c8fd71686c3c60264b1640a32ab0a73db5513d91
4
+ data.tar.gz: 3270877ec43197bea37608f306f38eaf76dd5246
5
5
  SHA512:
6
- metadata.gz: e3038a092d65842feb0a54162d20acc689ffeb98fd66923361427b4a4fbe728499aabf20e499148fb93535f81ba43e3c14544b5af1f409414decaa62609c6da1
7
- data.tar.gz: 108087a77e1b4c42c20f090bd5cb5398cf88ce80e98df72a03b52393aab32e72ee22d54cf53b0644060c7ce39dd3d118a590a1bd6d004709a1ac5799bd1cc6be
6
+ metadata.gz: 466e1c4de7e42197e8317921b6ccc4d6547864d1474e0abee0aef87b6617054f579afcd4a7f62637c65a055df1761fff8ba47ea3fffffa930928c69ab9170d5a
7
+ data.tar.gz: 2e84e1a0fc81841de3f248a629587e500bb5395943f8492882aa14df34a9022517550cecb05491e82c77e112cc059b8d8886b592ee8a674e3a50c0583f781b8e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- homesteading (0.5.0)
4
+ homesteading (0.5.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -12,7 +12,7 @@ See the [/help](https://github.com/homesteading/homesteading/tree/master/help) d
12
12
 
13
13
  ## Current Version
14
14
 
15
- 0.5.0
15
+ 0.5.1
16
16
 
17
17
 
18
18
  ## Code Status
@@ -7,8 +7,19 @@ module Homesteading
7
7
  def default
8
8
  puts
9
9
  puts "* Opening deployed site in browser..."
10
- url = "http://" + Homesteading::Routes.new.get_routes[""]
11
- system "open #{url}"
10
+
11
+ app_dir = Dir[Dir.pwd + "/homesteading-router*"].first
12
+
13
+ if File.exist?(app_dir + "/.git")
14
+ git_url = Git.open(app_dir).remote("heroku").url
15
+ unless git_url.nil?
16
+ heroku_app = git_url.split(":").last.split(".").first
17
+ url = "http://#{heroku_app}.herokuapp.com"
18
+ end
19
+
20
+ system "open #{url}"
21
+ end
22
+
12
23
  puts
13
24
  end
14
25
  end
@@ -46,7 +46,7 @@ module Homesteading
46
46
  puts
47
47
  end
48
48
 
49
-
49
+ private
50
50
  def get_routes
51
51
  routes = {}
52
52
 
@@ -1,4 +1,4 @@
1
1
  module Homesteading
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  CODENAME = "The Rooftop Series"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homesteading
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Becker