rusty_json_schema 0.3.1 → 0.3.2

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: 817092f70e5c85ce436572e1906c6af05da905499a743db1da6d6e5903def2d6
4
- data.tar.gz: 1693e48e350045cefb6114a491291143205c419f9c760fd44e8f14046cafed87
3
+ metadata.gz: f1e9da4b27f62c9eff44103b3eeacefdd83f2c3831c569c450f25348d268b464
4
+ data.tar.gz: 934abcfc7eaebfc9354fb9b5c65ad8be406421969cd6ae9df185dcd90c57020c
5
5
  SHA512:
6
- metadata.gz: 473b1be704fae2edf7c475d6c98ff545b6206472d51ddb7c98fe4f99604c126d14b4551c81ed583773d48e1dd54e41ca8f60113d6cd8e8eb09f62d17daeaf0a8
7
- data.tar.gz: 4c43b2a45914901105008d8d80d5d60cc9378bc4d49df4882819e309b843a7b805d8e8f722515a5083e896403e249407b29bbc0f8505c567133b2a80972e0ac7
6
+ metadata.gz: 053f4b712ddda62db5cac62d834feaab370b076d89674c5d858b31c5a863740c0742e6ff0bd073cc87ffe296ee7b6e74cf26e74486669a37fdb832da4381d644
7
+ data.tar.gz: b8619fa8cf4d1caa53a8a0418b51e57c10cafaa1c4589e384903667a4e08c02116f98d3314015d46853231e993988848d063e0065c8575c2fcf505fed8dc8113
data/README.md CHANGED
@@ -8,6 +8,8 @@ Currently during heavy development.
8
8
 
9
9
  ## Installation
10
10
 
11
+ > **NOTE**: Compilation requires openssl-dev / openssl-devel package
12
+
11
13
  Add this line to your application's Gemfile:
12
14
 
13
15
  ```ruby
@@ -8,10 +8,19 @@ thermite = Thermite::Tasks.new(cargo_project_path: project_dir,
8
8
  ruby_project_path: project_dir,
9
9
  optional_rust_extension: true)
10
10
 
11
- namespace :thermite do
11
+ namespace :thermite do # rubocop:disable Metrics/BlockLength
12
+ desc "Clean up default binaries"
13
+ task :clean_binnaries do
14
+ puts "Cleaning up"
15
+ Dir["#{thermite.config.ruby_extension_path}.*.default"].each do |file|
16
+ FileUtils.rm(file)
17
+ end
18
+ end
19
+
12
20
  desc "Try to build extension if cargo is available or setup default lib"
13
21
  task :build_or_default do
14
- default_ext_path = "#{thermite.config.ruby_extension_path}.#{Gem::Platform.local}.default"
22
+ platform = "#{Gem::Platform.local.cpu}-#{Gem::Platform.local.os}"
23
+ default_ext_path = "#{thermite.config.ruby_extension_path}.#{platform}.default"
15
24
 
16
25
  if thermite.cargo
17
26
  profile = ENV.fetch("CARGO_PROFILE", "release")
@@ -39,4 +48,4 @@ namespace :thermite do
39
48
  end
40
49
  end
41
50
 
42
- task default: %w[thermite:build_or_default thermite:cargo_clean]
51
+ task default: %w[thermite:build_or_default thermite:cargo_clean thermite:clean_binnaries]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RustyJSONSchema
4
4
 
5
- VERSION = "0.3.1"
5
+ VERSION = "0.3.2"
6
6
 
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rusty_json_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leszek Zalewski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-07 00:00:00.000000000 Z
11
+ date: 2021-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thermite
@@ -67,7 +67,7 @@ files:
67
67
  - README.md
68
68
  - ext/Rakefile
69
69
  - ext/json_schema.so.x64-mingw32.default
70
- - ext/json_schema.so.x86_64-darwin-19.default
70
+ - ext/json_schema.so.x86_64-darwin.default
71
71
  - ext/json_schema.so.x86_64-linux.default
72
72
  - lib/rusty_json_schema.rb
73
73
  - lib/rusty_json_schema/binding.rb