attr_vault 1.0.0 → 2.1.2

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
- SHA1:
3
- metadata.gz: 9fcb265c898624cea0181abc4fcc39589e95014e
4
- data.tar.gz: 75ea676dfabd0e3fea0c2436d48234539381a789
2
+ SHA256:
3
+ metadata.gz: 338e1432cc70095ee760e6e7a1aa225ca8fd30b787eb04970dad77481fff5d25
4
+ data.tar.gz: bd3c6918a9d121967facf8868fd8e41b1aef9d22b8ffbf0e12ebb37b20ca7dfa
5
5
  SHA512:
6
- metadata.gz: f33061f44368a2c3c30b8d14ed0a80aec258180dde3cc25b2df8c512db396eb491ba86d7ff5fb5a15e84128c5cb2c88f4423c2632fe4876eae2fefa57ceb20aa
7
- data.tar.gz: 292c8f1a98d7f472d9faeeda946b593e498ecd3a44d649d3025b6013b59ebaa0a8c96139d18be9f4198a6a4fac4ac0d1b65b87efa96f18128d53b5e8a8001cf8
6
+ metadata.gz: 86a8b5da4de9bfd8f236e3029e02d598dffb18999d407241ef8f99737ec7d493a921b96f8f2dbc2ec6cd3c29bbd56ea40e4579a589fa637f5a41d25455279d6d
7
+ data.tar.gz: 67c66eec7cc52b7ba1aeb355578c2de4c78e052e42e9ff55c21a048ef3ba33d8ec29e78b31c5342c3aec9e5ecb2b57238457ee7617fe93b9ace2da18de10704a
@@ -0,0 +1,32 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ test:
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ ruby: [2.7]
15
+ pg: [10, 11, 12, 13]
16
+ runs-on: ubuntu-latest
17
+ continue-on-error: ${{ matrix.ruby == 'debug' }}
18
+
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+ - uses: ruby/setup-ruby@v1
22
+ with:
23
+ bundler-cache: true
24
+ ruby-version: ${{ matrix.ruby }}
25
+ - uses: Daniel-Marynicz/postgresql-action@0.1.0
26
+ with:
27
+ postgres_image_tag: ${{ matrix.pg }}
28
+ postgres_db: attr_vault
29
+ postgres_password: hunter2
30
+
31
+ - run: bundle install
32
+ - run: DATABASE_URL="postgres://postgres:hunter2@localhost/attr_vault" bundle exec rspec
@@ -1 +1 @@
1
- 2.4.0
1
+ 2.7.1
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- ruby '2.4.0'
3
+ ruby '2.7.1'
4
4
 
5
5
  # Specify your gem's dependencies in attr_vault.gemspec
6
6
  gemspec
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- attr_vault (1.0.0)
5
- pg (~> 0.18)
6
- sequel (~> 4.13)
4
+ attr_vault (2.1.2)
5
+ pg (>= 0.18)
6
+ sequel (>= 4.13, < 6.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  diff-lcs (1.2.5)
12
- pg (0.19.0)
12
+ pg (1.1.4)
13
13
  rspec (3.1.0)
14
14
  rspec-core (~> 3.1.0)
15
15
  rspec-expectations (~> 3.1.0)
@@ -22,7 +22,7 @@ GEM
22
22
  rspec-mocks (3.1.3)
23
23
  rspec-support (~> 3.1.0)
24
24
  rspec-support (3.1.2)
25
- sequel (4.43.0)
25
+ sequel (5.36.0)
26
26
 
27
27
  PLATFORMS
28
28
  ruby
@@ -32,7 +32,7 @@ DEPENDENCIES
32
32
  rspec (~> 3.0)
33
33
 
34
34
  RUBY VERSION
35
- ruby 2.4.0p0
35
+ ruby 2.7.1p83
36
36
 
37
37
  BUNDLED WITH
38
- 1.14.4
38
+ 2.1.4
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://travis-ci.org/uhoh-itsmaciek/attr_vault.svg)](https://travis-ci.org/uhoh-itsmaciek/attr_vault)
1
+ ![CI](https://github.com/uhoh-itsmaciek/attr_vault/workflows/CI/badge.svg)
2
2
 
3
3
  # AttrVault
4
4
 
@@ -217,6 +217,6 @@ project under the MIT License.
217
217
 
218
218
  ### License
219
219
 
220
- Copyright (c) 2014-2015 AttrVault Contributors
220
+ Copyright (c) 2014-2017 AttrVault Contributors
221
221
 
222
222
  MIT License. See LICENSE for full text.
@@ -15,8 +15,8 @@ Gem::Specification.new do |gem|
15
15
  gem.version = AttrVault::VERSION
16
16
  gem.license = "MIT"
17
17
 
18
- gem.add_runtime_dependency "pg", '~> 0.18'
19
- gem.add_runtime_dependency "sequel", '~> 4.13'
18
+ gem.add_runtime_dependency "pg", '>= 0.18'
19
+ gem.add_runtime_dependency "sequel", '>= 4.13', '< 6.0'
20
20
 
21
21
  gem.add_development_dependency "rspec", '~> 3.0'
22
22
  end
@@ -3,6 +3,7 @@ require 'attr_vault/keyring'
3
3
  require 'attr_vault/secret'
4
4
  require 'attr_vault/encryption'
5
5
  require 'attr_vault/cryptor'
6
+ require 'json'
6
7
 
7
8
  module AttrVault
8
9
  def self.included(base)
@@ -73,7 +74,7 @@ module AttrVault
73
74
  end
74
75
 
75
76
  def vault_attr(name, opts={})
76
- attr = VaultAttr.new(name, opts)
77
+ attr = VaultAttr.new(name, **opts)
77
78
  self.vault_attrs << attr
78
79
 
79
80
  define_method(name) do
@@ -1,3 +1,3 @@
1
1
  module AttrVault
2
- VERSION = "1.0.0"
2
+ VERSION = "2.1.2"
3
3
  end
metadata CHANGED
@@ -1,43 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attr_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciek Sakrejda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-26 00:00:00.000000000 Z
11
+ date: 2020-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.18'
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.18'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sequel
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4.13'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '6.0'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: '4.13'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '6.0'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: rspec
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -59,8 +65,8 @@ executables: []
59
65
  extensions: []
60
66
  extra_rdoc_files: []
61
67
  files:
68
+ - ".github/workflows/ci.yml"
62
69
  - ".ruby-version"
63
- - ".travis.yml"
64
70
  - Gemfile
65
71
  - Gemfile.lock
66
72
  - LICENSE
@@ -96,8 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
102
  - !ruby/object:Gem::Version
97
103
  version: '0'
98
104
  requirements: []
99
- rubyforge_project:
100
- rubygems_version: 2.6.8
105
+ rubygems_version: 3.1.2
101
106
  signing_key:
102
107
  specification_version: 4
103
108
  summary: Sequel plugin for encryption at rest
@@ -1,13 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- before_script: createdb -U postgres attr_vault
4
- dist: trusty
5
- sudo: false
6
- script: DATABASE_URL="postgres:///attr_vault" bundle exec rspec
7
- addons:
8
- postgresql: "9.6"
9
- env:
10
- rvm:
11
- - 2.4.0
12
- notifications:
13
- email: false