ruby-miradore 3.3.10 → 3.3.11

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: e5544643d4203ff31e5e1f670dd79edee4042c693329a6946e5d490e3c51a047
4
- data.tar.gz: 27aa64da0c960fcc6134e84e8c226714c2679b4ee85783dc77da4edfcc7eaee9
3
+ metadata.gz: b06855a6dc337daa1aed5959b18747ca839af28dc5b3c5b6660f266c8e287a34
4
+ data.tar.gz: 2a23544c9191c9a40392797dfb6d4dda501887ef3a155370180114a2675ce150
5
5
  SHA512:
6
- metadata.gz: 0f40c1ae482d458770d80f9e7897ca1168417c82431921844afaca8de19f1c83a293138974838a4059cba9941907f4171227a1b43ff3796c5d1de89236390da1
7
- data.tar.gz: 9bb0a7dd28569eeeeada1d384007af37d57a1e66c4912014f539b82e157b4edf815ef564baa6453a97454e3942e0f7fee244cdb4a9ef642c640550c25ed36977
6
+ metadata.gz: a0f2abc784e0d960bff77731a71cbcbfec6e0550f7bec84b568eed85bda639532e2332cf7d9c0177da111f6fcfaa821ef3d8b6263497ca23a20b19f16fe5f60e
7
+ data.tar.gz: 67f139f86fee3d1102cd42f973d078705cad2ad277a13526137396b0003277e555cd3b0bc092b42d9b4b522239241105c8fd5caa172205843303ce12183de7fb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-miradore (3.3.10)
4
+ ruby-miradore (3.3.11)
5
5
  activesupport (~> 6.1)
6
6
  builder (~> 3.1)
7
7
  crack (~> 0.4)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ruby
4
4
  module Miradore
5
- VERSION = "3.3.10"
5
+ VERSION = "3.3.11"
6
6
  end
7
7
  end
data/lib/ruby/miradore.rb CHANGED
@@ -61,19 +61,14 @@ module Ruby
61
61
  @json
62
62
  end
63
63
 
64
- # It won't use instance private method anymore. In order to keep consistency between Request and Device,User,Organization
65
- # all call will happen the same way, creating a new instance.
66
- # class << self
67
- protected
68
-
69
- def version
64
+ def api_version
70
65
  superclass == Object ? :request_v1 : :item_v1
71
66
  end
72
67
 
73
68
  private
74
69
 
75
70
  def http_method_v1(**args)
76
- url = Miradore.url[version] % args.merge(
71
+ url = Miradore.url[api_version] % args.merge(
77
72
  subdomain: @subdomain || args[:subdomain],
78
73
  auth: args.fetch(:auth, @auth),
79
74
  item: self.class.to_s.split("::").last,
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: 3.3.10
4
+ version: 3.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduard Garcia Castelló