erb_lint_daemon 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 0d496463d30131bb2ad398b705fedb62d3f94e3b2ff0919013d783d3cd6a5107
4
- data.tar.gz: ca1bff36a62dba95bfe16e63843b2da448441a3d1c9c159876c8fc657e18edc8
3
+ metadata.gz: 89aa269f4a448ff3b9d3e20b8df238d3a34843d86ebb7a089f223baf9f4d6058
4
+ data.tar.gz: 40a3ae9ea58ab49a155549fa33bfc6c6548c685ec222a2b3ccd20c4b51911cf6
5
5
  SHA512:
6
- metadata.gz: 437c395f96ad32260a35c7cf68ea75db4671275135585cc6fce76214222f641f0252ff59fbc403bb4c4b70efad390d843a3ce024fd7d492615497d51fe003c4a
7
- data.tar.gz: 0ebd647e7f9ced9d4def4696cf3c0be128ba9184dfc1d5feed6c86568471b7abc7e7efb42748a38c9722d1ab0d42bc70c91d0d8c4bd41b225999af5fabd78f74
6
+ metadata.gz: 7a9e21cbdafcfde0409e69ab95cc64ea7e29395dd4f894d65b6eb014425b307f9b29c5a7ec46e78422664dd68b04acb0244e22ed6b8c366cd4f3b72582c199b3
7
+ data.tar.gz: 963b695ce1be9cd69039840a6d0bfa3ac01db641198a71bac7c7774e1971d1d53c88b3b43d1857da1ff5c108193fef5168e330b434e1ad5a6d656e98e2eb5283
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- erb_lint_daemon (0.1.0)
4
+ erb_lint_daemon (0.1.1)
5
5
  erb_lint
6
6
 
7
7
  GEM
data/bin/erb_lint_daemon CHANGED
@@ -1,3 +1,5 @@
1
- #!/bin/sh
1
+ #!/usr/bin/env ruby
2
2
  # Wrapper to execute the compiled Go client
3
- exec "$(dirname "$0")/erb_lint_client_bin" "$@"
3
+ # We expect the binary to be in the same directory as this script
4
+ binary = File.join(File.dirname(__FILE__), 'erb_lint_client_bin')
5
+ exec(binary, *ARGV)
@@ -27,4 +27,19 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  spec.add_dependency "erb_lint"
29
29
  spec.add_development_dependency "rake"
30
+
31
+ spec.post_install_message = <<~MESSAGE
32
+ --------------------------------------------------------------------------------
33
+ ErbLintDaemon Installed!
34
+
35
+ NOTE: To achieve the maximum performance (~20ms startup), you should run the
36
+ compiled binary directly to bypass the RubyGems wrapper overhead (~100ms).
37
+
38
+ The binary is located at:
39
+ <GEM_HOME>/gems/erb_lint_daemon-#{ErbLintDaemon::VERSION}/bin/erb_lint_client_bin
40
+
41
+ You can symlink it to your path, e.g.:
42
+ ln -s $(gem which erb_lint_daemon | sed 's|lib/erb_lint_daemon.rb|bin/erb_lint_client_bin|') /usr/local/bin/erb_lint_client
43
+ --------------------------------------------------------------------------------
44
+ MESSAGE
30
45
  end
@@ -1,3 +1,3 @@
1
1
  module ErbLintDaemon
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erb_lint_daemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owais Khan
@@ -70,7 +70,19 @@ licenses:
70
70
  metadata:
71
71
  homepage_uri: https://github.com/example/erb_lint_daemon
72
72
  source_code_uri: https://github.com/example/erb_lint_daemon
73
- post_install_message:
73
+ post_install_message: |
74
+ --------------------------------------------------------------------------------
75
+ ErbLintDaemon Installed!
76
+
77
+ NOTE: To achieve the maximum performance (~20ms startup), you should run the
78
+ compiled binary directly to bypass the RubyGems wrapper overhead (~100ms).
79
+
80
+ The binary is located at:
81
+ <GEM_HOME>/gems/erb_lint_daemon-0.1.1/bin/erb_lint_client_bin
82
+
83
+ You can symlink it to your path, e.g.:
84
+ ln -s $(gem which erb_lint_daemon | sed 's|lib/erb_lint_daemon.rb|bin/erb_lint_client_bin|') /usr/local/bin/erb_lint_client
85
+ --------------------------------------------------------------------------------
74
86
  rdoc_options: []
75
87
  require_paths:
76
88
  - lib