venduitz 0.4.0 → 0.5.0

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,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d731579d5ab45c36f5817e0c32e81316392ee1ec
4
- data.tar.gz: a333a6bdc74cec51e07740e22ce40092074c92de
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Njc0MjY1MmY1YTU5MmQ3NmJiODVmOWVhOGNmZTYxMTVmYWZjZjUyNQ==
5
+ data.tar.gz: !binary |-
6
+ Y2NjMjQzODAyM2ZhMTI3ZjBmZTNhZGNjMTljNmMwM2FkNjg1YTg5OQ==
5
7
  SHA512:
6
- metadata.gz: b2e273ad146d03b28e72f35ef7b161c88cb5fc0558a86bd6f8e6566ec331aa4795b3f200b6c3db1162c19a54e9af5f2434091bf378d990120511ea3fbcd722c2
7
- data.tar.gz: aa4272307be01665b92bd760616b51edb5e5a896def521c7a824bfb6e86c7a427ae7ee4a5c111a3dadfbf62dde72fa7ca4c72cf0cdb9a254aecdf589736f87b9
8
+ metadata.gz: !binary |-
9
+ NTQ1YzUyNWM3NzA1NzUwMTM4ZGM1NzRkYWQ4OWM4NDY3MTkzYjg3MWRmOGE0
10
+ NTJiYTUxYzJlNjRjYWJjY2ViODcwNzk4OWQ2ZmY1NGNmZjIyMTBmYTE2OGVl
11
+ NTczNWIyZDk1MjA0ODMxYzdiY2M2MmVlYzc2NDA4ZTE0NzRlYjE=
12
+ data.tar.gz: !binary |-
13
+ YmIzMDI5MDljOGI4MGJiNWIxNDAzMzY5MzE0Nzk0ZDkyNzY1ZTdhNTRkOThi
14
+ MGNjOTRjMmVkMjMxYzg5NDU4ZmVmYjU3ZTMzZDljMWZjMGIxMDNmYWYyZTdj
15
+ ZTJhNGI3NjZhOGYxNWI5ODJkMjRmMzUyNTZjNDViYTZlNTJjN2I=
@@ -1,5 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.3.0
3
+ - 2.3.0
4
4
  script:
5
- - bundle exec rspec
5
+ - bundle exec rspec
6
+ deploy:
7
+ provider: rubygems
8
+ on:
9
+ tags: true
10
+ api_key:
11
+ secure: goNAEGIa/usm7/u+wALYR9YBljTMnUtNUvvf/DxzckBna+xks3ekv0/LmZ7qWKDUucWEvteJShRKG14XAEj8lcRqVSLBjl9IrlLg8UIg1n/FQU4llf/jRGiYTu9S7D7uKCpjh+cavOvhK9+yDbrKuTJQZ2wcYWvSo8njHyENSE6HxrytEJ2Vt4/MdY7skRi5gJ6ykYLGVjMaUQ+igX2LDF8nsBSRX80SFRlw5UqT3Mr+iNgfSp4oe3IDVT1HWm8rc1FF/iPpEMJaCi7s+NU1lCsIYLSjLa+7XbnYQ44IzAozRYvx/H+kReBGN8ioqqyaRb8GtGiBn1epI7uia+kyVbsFE/31fbU2049z7yBxAgSWYIRwNNJ2V5hoT6G6wnsYi/kzlBI7V1eXhwl8lcuB77GS8QQK+K3fKhKIluy4GDWmVvPxyHl818loN4A2sCVKucwcnuFGSxHPBYThO+p4yMKYR8X/6utcyJWm8kcQBUrAyC1k0+hpZt7canQ6iZ5XyabI1Nw0/E+KIupuAwVITX5r9srRZqfbrncr0TahswAq4JxVnW79Hn9RbDRib9yBJFR3HZB5aDPZQLOuitibPx/qWVeug1JXT0WSSKXpVGW9+TAGlb14wrn5MlusqX04LBQEvo79iqFWITq8g6mFow6MRwHvSMxatEgVr/eqZvE=
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- venduitz (0.4.0)
4
+ venduitz (0.5.0)
5
5
  multi_json
6
6
  oj
7
7
 
@@ -10,15 +10,18 @@ module Venduitz
10
10
  # Must define the Representer in the endpoint
11
11
  raise 'Must define the Venduitz in the endpoind' if options[:venduitz].nil?
12
12
 
13
+ # Vendtuiz options
14
+ view_options = options[:venduitz_options].nil? ? {} : options[:venduitz_options]
15
+
13
16
  # Representer options
14
- options[:exclude] ||= []
17
+ view_options[:exclude] ||= []
15
18
 
16
19
  # Define the Cache options
17
- options[:cache] ||= Venduitz::Cache.enabled
18
- options[:cache_options] ||= Venduitz::Cache.config
20
+ view_options[:cache] ||= Venduitz::Cache.enabled
21
+ view_options[:cache_options] ||= Venduitz::Cache.config
19
22
 
20
23
  # Render it!
21
- options[:venduitz].to_json object, options[:exclude], options[:cache], options[:cache_options]
24
+ options[:venduitz].to_json object, view_options[:exclude], view_options[:cache], view_options[:cache_options]
22
25
  end
23
26
  end
24
27
  end
@@ -2,6 +2,6 @@
2
2
  module Venduitz
3
3
  # Gem version
4
4
  def self.version
5
- '0.4.0'.freeze
5
+ '0.5.0'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: venduitz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Corado
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-19 00:00:00.000000000 Z
11
+ date: 2016-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: oj
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  description: ''
@@ -58,8 +58,8 @@ executables: []
58
58
  extensions: []
59
59
  extra_rdoc_files: []
60
60
  files:
61
- - ".gitignore"
62
- - ".travis.yml"
61
+ - .gitignore
62
+ - .travis.yml
63
63
  - Dockerfile
64
64
  - Gemfile
65
65
  - Gemfile.lock
@@ -83,17 +83,17 @@ require_paths:
83
83
  - lib
84
84
  required_ruby_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ">="
86
+ - - ! '>='
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - ">="
91
+ - - ! '>='
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.4.5.1
96
+ rubygems_version: 2.4.5
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: ''