homesteading 0.3.1 → 0.3.2

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: a268e39a24a8529310b3c12d0ceb99542b803e16
4
- data.tar.gz: b6ee7431bc266a2ba5d430b6ba10da1b400f78a7
3
+ metadata.gz: b71027ca5b551403273eab5b0647eb1f739272ba
4
+ data.tar.gz: 701b059a378bde2360ff8f9e37921c30aa9a94a8
5
5
  SHA512:
6
- metadata.gz: abe953e171117d736bd632250263f8b258101c344aac98a3d967b3ca9b800d95356a64ffb1eb4eb0b91fb4b7991c7bb133a3befcecb62811261e7d8ca69e4616
7
- data.tar.gz: 87ff2f5e634d91eee8475cf8991c31cac4ba5bb86577fcebedc30a449c0bc1ee936b8556a02ca04e8ff0b8bc836f2d42f9ae22e1ba48510e9f420e4c3357b75a
6
+ metadata.gz: a7ce8c691fc91947f6bde99bb41467075cea8ae70a144d01c4ddfee9383944fa9074da72550bfc1369d919e295d3a7566b7bdeb09db529303e9c91a361bbb0d7
7
+ data.tar.gz: 65e0c66c4d0fec6306e90f5eb302e53b5e6c6a4d7f573285c83612c677fc32cb82d5a1a7904cbbd013e54737322d04e6da2548a6baa2560e185cb23e82bc59df
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- homesteading (0.3.1)
4
+ homesteading (0.3.2)
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.3.1
15
+ 0.3.2
16
16
 
17
17
 
18
18
  ## Code Status
@@ -11,9 +11,9 @@ module Homesteading
11
11
  publisher_apps = []
12
12
  nonpublisher_apps = []
13
13
 
14
- Dir.glob("#{Dir.pwd}/homesteading-*/").each do |directory|
15
- app = directory.split("/").last.sub(/homesteading-/, "").downcase
16
- app_file_path = directory + "app.json"
14
+ Dir.glob("#{Dir.pwd}/homesteading-*/").each do |app_dir|
15
+ app = app_dir.split("/").last.sub(/homesteading-/, "").downcase
16
+ app_file_path = app_dir + "app.json"
17
17
 
18
18
  app_keywords = []
19
19
  if File.exist?(app_file_path)
@@ -14,15 +14,15 @@ module Homesteading
14
14
  puts
15
15
  options = parse_options
16
16
 
17
- Dir.glob("#{Dir.pwd}/homesteading-#{options[:app]}*/").each do |directory|
18
- app = directory.split("/").last.sub(/homesteading-/, "").downcase
19
- app_file_path = directory + "app.json"
17
+ Dir.glob("#{Dir.pwd}/homesteading-#{options[:app]}*/").each do |app_dir|
18
+ app = app_dir.split("/").last.sub(/homesteading-/, "").downcase
19
+ app_file_path = app_dir + "app.json"
20
20
 
21
- if File.exist?(app_file_path) && File.exist?(directory + ".git")
21
+ if File.exist?(app_file_path) && File.exist?(app_dir + ".git")
22
22
  if options[:verbose]
23
- g = Git.open(directory, :log => Logger.new(STDOUT))
23
+ g = Git.open(app_dir, :log => Logger.new(STDOUT))
24
24
  else
25
- g = Git.open(directory)
25
+ g = Git.open(app_dir)
26
26
  end
27
27
 
28
28
  heroku_remote = g.remotes.map { |r| r if r.name == "heroku" }
@@ -41,7 +41,7 @@ module Homesteading
41
41
  puts "* ...done"
42
42
 
43
43
  # run initial app remote setup
44
- Homesteading::Command.create("init").default(nil, server: :heroku, app: :note)
44
+ Homesteading::Command.create("init").default(nil, server: :heroku, app: app)
45
45
  end
46
46
  end
47
47
  end
@@ -41,15 +41,15 @@ module Homesteading
41
41
  routes = []
42
42
 
43
43
  app_port = 3000
44
- Dir.glob("#{Dir.pwd}/homesteading-*/").each_with_index do |directory, index|
45
- app_file_path = directory + "app.json"
44
+ Dir.glob("#{Dir.pwd}/homesteading-*/").each_with_index do |app_dir, index|
45
+ app_file_path = app_dir + "app.json"
46
46
 
47
47
  if File.exist?(app_file_path)
48
48
  app_file = JSON.parse(File.read(app_file_path))
49
49
  app_route = app_file["routes"]
50
50
 
51
51
  if app_route
52
- app_name = directory.split("/").last
52
+ app_name = app_dir.split("/").last
53
53
 
54
54
  app_path = app_route["path"]
55
55
  if app_name =~ /feed/
@@ -66,7 +66,7 @@ module Homesteading
66
66
  # skipping assets and router
67
67
  else
68
68
  puts "* Starting on port #{app_port} : #{app_name.sub(/homesteading-/, "")}"
69
- servers << IO.popen("cd #{directory} && bin/rails server -d --port #{app_port}", "w")
69
+ servers << IO.popen("cd #{app_dir} && bin/rails server -d --port #{app_port}", "w")
70
70
  end
71
71
  end
72
72
 
@@ -1,4 +1,4 @@
1
1
  module Homesteading
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
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.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Becker