ruby-miradore 2.2.6 → 2.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97151079f196820b698900c24e99ef9347ddb0af5ed6898954d0e7648e4d821d
4
- data.tar.gz: 0d387e3d389ec3109d0e7b56ff0272d3a32018f0e784f3cf5abb7f79a5532c77
3
+ metadata.gz: fca67778e21e76a8fb1caa3ce6f8d3afec5ea3da041b67cce2e54948eff504e8
4
+ data.tar.gz: 32a0a508f6149c6b1dbdfa664c9b456bfc6a8aac83dcf4556d412b437e2ac037
5
5
  SHA512:
6
- metadata.gz: d64b7a84e53d415388a8899bc230340e77ecf0b2e139aea618b7f9fe22f8d852ca0b5d4a12d41cdd7e6dd05afd308d799ae427f7c847a3655ac010745a5149cf
7
- data.tar.gz: ad1a881e39d0f0f608524f2d13f348fd79d9cd2a7cd5ad852a1f1a1e6901bc446947fff1c7bb1881e9fbd9efa11cc3a672312b18685d575d5dc167698da99189
6
+ metadata.gz: 3a92fdc54501ae36f96b1db4a745f258487fbbcf3b17602f9dd080e926d8b63e016f28f7a587d46960616578e2a553472f014f2429d57f0ccd400ffc77077197
7
+ data.tar.gz: 589a6e1121166c520fe9ed9c6cbfe3fbc408d44fd9ebb2f1dc154ccab32c5bc694f5f0893ad0d4fb0f1ace1f8afcd1736a090725f86feca46d871ba0ca67e724
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ruby
4
4
  module Miradore
5
- VERSION = "2.2.6"
5
+ VERSION = "2.2.7"
6
6
  end
7
7
  end
data/lib/ruby/miradore.rb CHANGED
@@ -25,11 +25,13 @@ module Ruby
25
25
  format :json
26
26
 
27
27
  attr_writer :subdomain, :auth
28
+ attr_accessor :json
28
29
 
29
30
  def initialize(json = {})
30
31
  super json
31
32
  @subdomain ||= json[:subdomain]
32
33
  @auth ||= json[:auth]
34
+ @json ||= json.to_json
33
35
  remove_instance_variable(:@subdomain) if @subdomain.nil?
34
36
  remove_instance_variable(:@auth) if @auth.nil?
35
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-miradore
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.6
4
+ version: 2.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduard Garcia Castelló