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 +4 -4
- data/features/push.feature +2 -1
- data/judges.gemspec +1 -1
- data/lib/judges/baza.rb +5 -2
- data/lib/judges.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33bb660b81ce0bef691810c81d0862408485e8351ffbf5feaa1f2210bf2c3185
|
4
|
+
data.tar.gz: da9ed740765a9dd6ab61c747aab5b735ea93d5317b4aaf1de0a31cffc9424fc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '00183c3ee715b3a5a178491ccc429e227c1a94b6cb214ef356c0ec02eee0f3acb59eb5929f3b74d465a889bbf6a79daf47f6a6777274a7cf30794fd7309a4afb'
|
7
|
+
data.tar.gz: a777275d1be76618f198712deed4bb10019a266e3d6b985fba45a066ebc1aabba6403945d06bb4d11a9f5f9c89fec66b7a7f690096de73b2a923d300a359200c
|
data/features/push.feature
CHANGED
@@ -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.
|
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-
|
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