fir-cli 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fir/version.rb +1 -1
- data/lib/fir.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b81a75b3588452bde2a0700b5f22f30b5fefac99
|
4
|
+
data.tar.gz: 0bddcee00460793736f8d956f09d9946b7e8ff05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c816f8e85aac38615496268051474263bb3a0bd94663c80685a09f49d4832221050fa7cca4bf005577b56b196f8cbadb848bf861ad889294ec10aab736ccd0b
|
7
|
+
data.tar.gz: 5afd573164037c562edd9cd8bba8dd774136b51bf62d5413633d33bece33bf16e96381799baf247a95c069c186c84ab18366c02094922e191ba21a42789d9d82
|
data/lib/fir/version.rb
CHANGED
data/lib/fir.rb
CHANGED
@@ -59,7 +59,7 @@ module FIR
|
|
59
59
|
logger.error e.response
|
60
60
|
exit 1
|
61
61
|
end
|
62
|
-
JSON.parse(res.body, symbolize_names: true)
|
62
|
+
JSON.parse(res.body.force_encoding("UTF-8"), symbolize_names: true)
|
63
63
|
end
|
64
64
|
|
65
65
|
def post url, query, content_type = :json
|
@@ -69,7 +69,7 @@ module FIR
|
|
69
69
|
logger.error e.response
|
70
70
|
exit 1
|
71
71
|
end
|
72
|
-
JSON.parse(res.body, symbolize_names: true)
|
72
|
+
JSON.parse(res.body.force_encoding("UTF-8"), symbolize_names: true)
|
73
73
|
end
|
74
74
|
|
75
75
|
def put url, query, content_type = :json
|
@@ -79,7 +79,7 @@ module FIR
|
|
79
79
|
logger.error e.response
|
80
80
|
exit 1
|
81
81
|
end
|
82
|
-
JSON.parse(res.body, symbolize_names: true)
|
82
|
+
JSON.parse(res.body.force_encoding("UTF-8"), symbolize_names: true)
|
83
83
|
end
|
84
84
|
|
85
85
|
alias_method :☠, :exit
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fir-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FIR.im
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|