ruby-miradore 2.2.8 → 2.2.9

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: efbcb64691baacb85437513ce026dcbe4d83b3780f80abab9aaaf3987d3ecd84
4
- data.tar.gz: 4af8d25db40cae8541dc8f8c1cd8b1fa77fe7bf2ec8d77d640a5c88535ef1f11
3
+ metadata.gz: 32cd1130d315e189325c8d73590b1ce1d5889734b50d157dd3495cdd1f3ea229
4
+ data.tar.gz: 6aa9217dedeb2b880035d6067ffa4e1934167fb5e07b99d62cc16f85e7e01f23
5
5
  SHA512:
6
- metadata.gz: dd74589d9f523d2f0a8a2cdd2ed47a7154936271cc0657e321d6e959312efc0897e602f92b5ff618bcf51e9b0e081c8cf04ed947e69ea550b7907548ef120a91
7
- data.tar.gz: 940ce07c57138b533c8daf938638ad241153ff86a6c5436142b766286fe05abc80eaf015c93e20a760d5bcff3978139805d9013cdf932dfa7c467fbea9b1a5ff
6
+ metadata.gz: b72485967e471d2e5245e0274176c10d16ed76965fc688aaf5cc9f836e27ef2cc39a6384378993a048714334312b35467e5128c46d759ba16ac302584c439c5e
7
+ data.tar.gz: cf835f493a6be0b063bcb34e5acc883e15b30ced00f9a1f691e3848c4397b93c9c6c2723920bbe004e4597cc9ba672a3dad381645441a633d8780dbfad47276c
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ruby
4
4
  module Miradore
5
- VERSION = "2.2.8"
5
+ VERSION = "2.2.9"
6
6
  end
7
7
  end
data/lib/ruby/miradore.rb CHANGED
@@ -24,8 +24,7 @@ module Ruby
24
24
  include HTTParty
25
25
  format :json
26
26
 
27
- attr_writer :subdomain, :auth
28
- attr_accessor :json
27
+ attr_writer :subdomain, :auth, :json
29
28
 
30
29
  def initialize(json = {})
31
30
  super json
@@ -36,6 +35,10 @@ module Ruby
36
35
  remove_instance_variable(:@auth) if @auth.nil?
37
36
  end
38
37
 
38
+ def as_json(options = nil)
39
+ @json
40
+ end
41
+
39
42
  class << self
40
43
  #
41
44
  # This call will perform all GET calls regardless the API version that it's calling.
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.8
4
+ version: 2.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduard Garcia Castelló