synvert 0.19.0 → 0.19.1

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: dbd02b0af5b4ba1837d80b3e32d58933e7ac124cf7764cf78bf0f110699d2aa1
4
- data.tar.gz: 1806f02df03444ac9764aeb3d23556d1acceecf5e7ab8a483d935db3c9489686
3
+ metadata.gz: 62c51dd8a7a0d58c47644593a0a85a14ab201c8a842187f7fc1bb0b9c185c798
4
+ data.tar.gz: 72dc55fe685d1149ab875eb04a9dfd81d3f199d2930de46589a4e4d9b0d9173f
5
5
  SHA512:
6
- metadata.gz: eafaa98a0ed8f7097728a54d4f59b4ae51df0fd65aecffbdc835d41fdfd541cf39381a9f611b415861205a234b53b1860467fe45e2e7afa20048dcc7a608c8b4
7
- data.tar.gz: 3895acb75e741e738ba53d15ef97ac1de2a2c435be27f0248743d585272b6f385d11c5bff3923ffc5088cdd835efd2761e0786430b4d99ba97878526055521a9
6
+ metadata.gz: c2a3eee39999e331d9d3f24b6fe0c6fc1c512cd9ace5d03a23c111c29a212dad3f80f325d0079fff7c0d302d9ad8e077f546ace95e5dfed53d00feef934504d1
7
+ data.tar.gz: 40f6e3423153314c72ae434e6abf34640d08313909d2389f9355e410d02ddf312bff4a51d602ac7ea0b5eed514c6b8a0cc515a9c973911c723256a2d49128a06
@@ -19,7 +19,7 @@ jobs:
19
19
  runs-on: ubuntu-latest
20
20
  strategy:
21
21
  matrix:
22
- ruby-version: ['2.5', '2.6', '2.7', '3.0']
22
+ ruby-version: ['2.4', '2.5', '2.6', '2.7', '3.0']
23
23
 
24
24
  steps:
25
25
  - uses: actions/checkout@v2
@@ -29,4 +29,4 @@ jobs:
29
29
  ruby-version: ${{ matrix.ruby-version }}
30
30
  bundler-cache: true
31
31
  - name: Run tests
32
- run: bundle exec rake
32
+ run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.19.1 (2021-10-23)
4
+
5
+ * Make URI.open work in ruby 2.4
6
+
3
7
  ## 0.19.0 (2021-09-10)
4
8
 
5
9
  * Add `--show-run-process` option
@@ -8,7 +8,7 @@ module Synvert
8
8
  # Manage synvert snippets.
9
9
  class Snippet
10
10
  def self.fetch_core_version
11
- content = URI.open('https://rubygems.org/api/v1/versions/synvert-core.json').read
11
+ content = uri_open('https://rubygems.org/api/v1/versions/synvert-core.json').read
12
12
  JSON.parse(content).first['number']
13
13
  end
14
14
 
@@ -25,5 +25,13 @@ module Synvert
25
25
  Kernel.system("git clone https://github.com/xinminlabs/synvert-snippets-ruby.git #{@snippets_path}")
26
26
  end
27
27
  end
28
+
29
+ def self.uri_open(url)
30
+ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.5.0')
31
+ URI.open(url)
32
+ else
33
+ open(url)
34
+ end
35
+ end
28
36
  end
29
37
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Synvert
4
- VERSION = '0.19.0'
4
+ VERSION = '0.19.1'
5
5
  end
data/synvert-ruby.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ['lib']
21
21
  spec.post_install_message = 'Please run `synvert-ruby --sync` first to sync snippets remotely.'
22
22
 
23
- spec.add_runtime_dependency 'synvert-core', '>= 0.55.0'
23
+ spec.add_runtime_dependency 'synvert-core', '>= 0.58.2'
24
24
 
25
25
  spec.add_development_dependency 'bundler'
26
26
  spec.add_development_dependency 'rake'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synvert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-11 00:00:00.000000000 Z
11
+ date: 2021-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: synvert-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.55.0
19
+ version: 0.58.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.55.0
26
+ version: 0.58.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement