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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fir/version.rb +1 -1
  3. data/lib/fir.rb +3 -3
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36dea3ffaaeb66f22c46ce59e8ed67836ba53f8b
4
- data.tar.gz: 7f886ad423448e548c6c5d3e4d98e1d048719b32
3
+ metadata.gz: b81a75b3588452bde2a0700b5f22f30b5fefac99
4
+ data.tar.gz: 0bddcee00460793736f8d956f09d9946b7e8ff05
5
5
  SHA512:
6
- metadata.gz: 6dc0f150312f6dcfaac325ecb430b99b0ac31905a52f71d12fa2aa50f7d8657a4e431f9677f2fdf11ecd3a7a9d1e3136d67302c7e645199080cf95095d656c50
7
- data.tar.gz: 49e9118b3913e98331c44ca51f4048f04051fab35844c80755f8c40e36864cd882ebe8e93fd1abc636bef83f60f07585f5b389c82f3c8de1e6f107018c2f8df6
6
+ metadata.gz: 2c816f8e85aac38615496268051474263bb3a0bd94663c80685a09f49d4832221050fa7cca4bf005577b56b196f8cbadb848bf861ad889294ec10aab736ccd0b
7
+ data.tar.gz: 5afd573164037c562edd9cd8bba8dd774136b51bf62d5413633d33bece33bf16e96381799baf247a95c069c186c84ab18366c02094922e191ba21a42789d9d82
data/lib/fir/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module FIR
4
- VERSION = "1.0.3"
4
+ VERSION = "1.0.4"
5
5
  end
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.3
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-05 00:00:00.000000000 Z
11
+ date: 2015-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler