adsf-live 1.4.0 → 1.4.5

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: d47be61674359db151dee6087cdd56c3953a7a211b3536746f40de00ea04f65a
4
- data.tar.gz: 1fa194bd21d9e39af672fa8c156563da61510bbfc729e512f5288b276c90f875
3
+ metadata.gz: 715d43c183a8686d3da020af41d8c89a2c8bdec408a2743c89c33f06f9380749
4
+ data.tar.gz: a9745f0e602cd03f1ed889fec196e006473a6020d35a3ef323a14125753cc842
5
5
  SHA512:
6
- metadata.gz: c9310e0603333d21366469a26d28d4750e107ea558aab1155f7f6e7335af2b65c89a0d3e0bb63859d043ecf97e0b9c2c20483eb76b981e75270119aae08dea83
7
- data.tar.gz: badb7edd55e039eeec4c3dc97f5da98c2ed0da6ad532859f7ef06d88a8edeb41e7cc9e8c6c7dd169d960aeacc3d3d4c3ad81337896d4009bf8980dbfc90ec513
6
+ metadata.gz: eb1eda58d8201835866b8cce07233388cafc026bc0ff39ee38b3e9d546f888c03bbe189d2a9d1918605871413dba5102b4373dbe11d4b90e6e3113e9973127cf
7
+ data.tar.gz: 44c5ba8c1c041bfbe591cc1d94ce4b80bdf260fd0a303f772c0ba26bddea33150998e243876bd0dd290c15ed56c9ad0b7d0ac4f830959ada0101a39abc94065c
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Adsf
4
4
  module Live
5
- VERSION = '1.4.0'
5
+ VERSION = '1.4.5'
6
6
  end
7
7
  end
@@ -4,7 +4,7 @@ module Adsf
4
4
  module Live
5
5
  class Watcher
6
6
  def initialize(root_dir:)
7
- unless root_dir.start_with?('/')
7
+ unless Pathname.new(root_dir).absolute?
8
8
  raise ArgumentError, 'Watcher#initialize: The root_path argument must be an absolute path'
9
9
  end
10
10
 
@@ -23,7 +23,7 @@ module Adsf
23
23
  data =
24
24
  JSON.dump(
25
25
  command: 'reload',
26
- path: "#{Dir.pwd}#{path}",
26
+ path: "#{Dir.pwd}#{path}",
27
27
  )
28
28
 
29
29
  @sockets.each { |ws| ws.send(data) }
@@ -61,8 +61,8 @@ module Adsf
61
61
  def on_socket_connected(socket)
62
62
  socket.send(
63
63
  JSON.dump(
64
- command: 'hello',
65
- protocols: ['http://livereload.com/protocols/official-7'],
64
+ command: 'hello',
65
+ protocols: ['http://livereload.com/protocols/official-7'],
66
66
  serverName: 'nanoc-view',
67
67
  ),
68
68
  )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adsf-live
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Defreyne
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-26 00:00:00.000000000 Z
11
+ date: 2020-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: adsf
@@ -96,24 +96,23 @@ homepage: http://github.com/ddfreyne/adsf/
96
96
  licenses:
97
97
  - MIT
98
98
  metadata: {}
99
- post_install_message:
99
+ post_install_message:
100
100
  rdoc_options: []
101
101
  require_paths:
102
102
  - lib
103
103
  required_ruby_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - "~>"
105
+ - - ">="
106
106
  - !ruby/object:Gem::Version
107
- version: '2.3'
107
+ version: '2.5'
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  requirements: []
114
- rubyforge_project:
115
- rubygems_version: 2.7.2
116
- signing_key:
114
+ rubygems_version: 3.2.3
115
+ signing_key:
117
116
  specification_version: 4
118
117
  summary: livereload support for adsf
119
118
  test_files: []