marv 0.6.2 → 0.6.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62e5f5d28517617ac5c41ebbd236678eb7fe00d7
4
- data.tar.gz: 866c15bb2ec6a49f65075cf7234a8d0544e32898
3
+ metadata.gz: 8d718b7102919a456969df50491e8e6942ee8604
4
+ data.tar.gz: a9d4947f385d7f48c55856ff41744782388eceb7
5
5
  SHA512:
6
- metadata.gz: 769ac0c9e011cc988f2c7dcbee33011d5c4ac122c3da71f38915dbb90a574b747071022a7e0c538809bcb88e8bc3603c402f745a5a3407beac83e2cc5178d0b0
7
- data.tar.gz: 99d8be3f3c25dbbe54386523086adb0c40d3da55482d8c2a22e7b9aec82f7f40cae95578393bc89586e7ab961928c43f62380c657765ed2b5f1f0756c5518f2e
6
+ metadata.gz: 6f1529557890104d3ffd6ba8a5e92556067d4b12dac30c1697e910dba5b7d037e575e990a9d686a8858f6db4e7022ed81150e67f9337c8de5da0a708bbd9984b
7
+ data.tar.gz: 41537883293c8e765d3fe28420af0a1061aa9a157718ff8fbdfda85bdb60d1fc5d722e248b1dab1c7d99f404677cdb39125ccfb5932cb0817679b939096493a9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v0.6.3
2
+ * Fix new server start
3
+
1
4
  ## v0.6.2
2
5
  * Fix global link
3
6
  * Fix server debug mode
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.2
1
+ 0.6.3
@@ -34,7 +34,7 @@ module Marv
34
34
  pid_file = ::File.join(@path, 'php.pid')
35
35
 
36
36
  begin
37
- if File.exists?(pid_file)
37
+ if ::File.exists?(pid_file)
38
38
  pid = ::File.read(pid_file).to_i
39
39
 
40
40
  ::Process.kill('KILL', pid)
@@ -113,12 +113,15 @@ module Marv
113
113
 
114
114
  # Check if port is available
115
115
  def is_server_running?(server=@server)
116
- pid_file = ::File.join(server.path, 'php.pid')
117
- pid = ::File.read(pid_file).to_i
118
-
119
116
  begin
120
- ::Process.kill(0, pid)
121
- return true
117
+ pid_file = ::File.join(server.path, 'php.pid')
118
+
119
+ if ::File.exists?(pid_file)
120
+ pid = ::File.read(pid_file).to_i
121
+
122
+ ::Process.kill(0, pid)
123
+ return true
124
+ end
122
125
  rescue Errno::EPERM, Errno::ESRCH
123
126
  return false
124
127
  end
data/marv.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: marv 0.6.2 ruby lib
5
+ # stub: marv 0.6.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "marv"
9
- s.version = "0.6.2"
9
+ s.version = "0.6.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Jonian Guveli", "Olibia Tsati"]
14
- s.date = "2015-04-09"
14
+ s.date = "2015-04-12"
15
15
  s.description = "A toolkit for bootstrapping and developing WordPress themes and plugins using Sass, LESS, and CoffeeScript."
16
16
  s.email = "info@hardpixel.eu"
17
17
  s.executables = ["marv"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonian Guveli
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-09 00:00:00.000000000 Z
12
+ date: 2015-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard