judges 0.0.35 → 0.0.36

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: 410f436fd79010f188d3768f992bef64ddc4a445773e2c790aacc059597ea227
4
- data.tar.gz: d9eeba81aa97bb9f62ab370aee3e9a3fbaee752f5b1e41df5d33387aece0a151
3
+ metadata.gz: 33bb660b81ce0bef691810c81d0862408485e8351ffbf5feaa1f2210bf2c3185
4
+ data.tar.gz: da9ed740765a9dd6ab61c747aab5b735ea93d5317b4aaf1de0a31cffc9424fc5
5
5
  SHA512:
6
- metadata.gz: 37e8c527a61456b50afba302d2747f43f97804a3831dd310543a3f3eacf810a985be3693d3219bbb0a8a12f8bc24c0e4f4ede6524afbfd5be7e7701a5783e453
7
- data.tar.gz: 9e5be6b00df4e5decac97299579c3805b6f008a405213ab78f336df2bc272aec2a98c356ca605d7849dea34e2596c0b67ce43d04de727936948bf3ed07f64e81
6
+ metadata.gz: '00183c3ee715b3a5a178491ccc429e227c1a94b6cb214ef356c0ec02eee0f3acb59eb5929f3b74d465a889bbf6a79daf47f6a6777274a7cf30794fd7309a4afb'
7
+ data.tar.gz: a777275d1be76618f198712deed4bb10019a266e3d6b985fba45a066ebc1aabba6403945d06bb4d11a9f5f9c89fec66b7a7f690096de73b2a923d300a359200c
@@ -4,7 +4,8 @@ Feature: Push
4
4
  Scenario: Push a small factbase
5
5
  Given We are online
6
6
  Given I make a temp directory
7
- Then I run bin/judges with "--verbose eval simple.fb '$fb.insert.foo = 42'"
7
+ Then I run bin/judges with "--verbose eval simple.fb '(0..1000).each { $fb.insert.foo = 42 }'"
8
+ And Exit code is zero
8
9
  Then I run bin/judges with "push --token 00000000-0000-0000-0000-000000000000 simple simple.fb"
9
10
  Then Stdout contains "Pushed"
10
11
  And Exit code is zero
data/judges.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
  s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
27
27
  s.required_ruby_version = '>=3.2'
28
28
  s.name = 'judges'
29
- s.version = '0.0.35'
29
+ s.version = '0.0.36'
30
30
  s.license = 'MIT'
31
31
  s.summary = 'Command-Line Tool for a Factbase'
32
32
  s.description =
data/lib/judges/baza.rb CHANGED
@@ -49,7 +49,8 @@ class Judges::Baza
49
49
  home.append('push').append(name).to_s,
50
50
  body: data,
51
51
  headers: headers.merge(
52
- 'Content-type' => 'application/x-www-form-urlencoded'
52
+ 'Content-Type' => 'application/octet-stream',
53
+ 'Content-Length' => data.size
53
54
  ),
54
55
  connecttimeout: @timeout,
55
56
  timeout: @timeout
@@ -68,7 +69,9 @@ class Judges::Baza
68
69
  File.open(file, 'wb') do |f|
69
70
  request = Typhoeus::Request.new(
70
71
  home.append('pull').append("#{id}.fb").to_s,
71
- headers:,
72
+ headers: headers.merge(
73
+ 'Accept' => 'application/octet-stream'
74
+ ),
72
75
  connecttimeout: @timeout,
73
76
  timeout: @timeout
74
77
  )
data/lib/judges.rb CHANGED
@@ -25,5 +25,5 @@
25
25
  # Copyright:: Copyright (c) 2024 Yegor Bugayenko
26
26
  # License:: MIT
27
27
  module Judges
28
- VERSION = '0.0.35'
28
+ VERSION = '0.0.36'
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: judges
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.35
4
+ version: 0.0.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko