on_container 0.0.12 → 0.0.13

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
  SHA256:
3
- metadata.gz: cc7ffb417b7d418f2415df1cd5c6cbd0325d78e576e71a701010bd44ead098f6
4
- data.tar.gz: 260e06a5fa81789bc977cac9b02c8e092100a0896d9eccc4c4f88423592a1f9d
3
+ metadata.gz: 666ea07dfb60a918f47d2eedad555afbe2324d6ddffb4c6cb35daf13e703a1f6
4
+ data.tar.gz: 308df21b88f61bdddbc6d0459378ae8d268cc799bf554be3284e1c8b646fd5dd
5
5
  SHA512:
6
- metadata.gz: 9e54869d4ec1c390a555731ac199ece8b804098eece937321123e48884d0b7fa0dff418147f97e811b4e05fb23517f433bf622b08fc4f4941d04801fa31f8570
7
- data.tar.gz: 410eb4b5c14a632600ecccade83dcca9764965085dfa95177976365bc762516ac36e8d6ec70cdd51925d9204c19652afe80c50887774b67ffbe0990c9edeb18b
6
+ metadata.gz: 7e446514b49eb072b58f16fa2a91c6fed017ef7b0712a41b36d5504c56649372814fd08f88e8948873cd8c462c831b3f02ac32837f4333cd5da5d93fb94ed5bd
7
+ data.tar.gz: '068422169d75c3a008847deb728f43694d5e40dc9c697d287b5f0e9dc3c7367ca0c88649f011a175df0e810f13d4f7765e129d3d995d36d9e6b9fe1219a5267b'
@@ -6,10 +6,14 @@ module OnContainer
6
6
  def remove_rails_pidfile
7
7
  system "rm -rf #{File.expand_path('tmp/pids/server.pid')}"
8
8
  end
9
+
10
+ def rails?
11
+ ARGV[0] == 'rails'
12
+ end
9
13
 
10
14
  def rails_server?
11
- ARGV[0] == 'rails' && %w[server s].include?(ARGV[1])
15
+ rails? && %w[server s].include?(ARGV[1])
12
16
  end
13
17
  end
14
18
  end
15
- end
19
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OnContainer
4
- VERSION = '0.0.12'
4
+ VERSION = '0.0.13'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: on_container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Quintanilla
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-23 00:00:00.000000000 Z
11
+ date: 2021-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport