audit_tables 1.0.1 → 1.0.2

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
  SHA1:
3
- metadata.gz: f9260ca8c0b382befdab485d8ef59cfa5be270f4
4
- data.tar.gz: 83893aa356df6d2f2d38619c9be0e84aba5eb8d4
3
+ metadata.gz: c817f41c8465c2e987267aee8da54ddca4054c84
4
+ data.tar.gz: 263e585124aa4c2237b623500456c1ddebff12ad
5
5
  SHA512:
6
- metadata.gz: f6d3cbf83cc0eb2988b86c333b2349fda198404df5659343955bd048502a9a95b0b09b475d4acaa8a381014f256b156e4e161e29bf515a03fa37f8734fd13250
7
- data.tar.gz: 7c5b677cd684dfe7f07206af7a1869c0bb9b6edb236bf261aab90e64468266586c908818fc03553486aa0e2c64594d22937dfa8866aa2822eb9ac1ec1c04f617
6
+ metadata.gz: 1409d048235a3cd952a643d2bb62d338a5b07b37e1fb836717afc291a9a42864152b464229174dfe02b069c114cac9d0ad92082b923dae4515ef25aad0f73a0e
7
+ data.tar.gz: 3f70bc8be91fa221d5be2f1babe8eb10bd38022d606fb3e23d01c0be8dd91ab74a38070e6fa38c1323bc09df2e1879203acded26016c4e5642846215db303e5e
@@ -7,12 +7,18 @@ AllCops:
7
7
  DisplayCopNames: true
8
8
  AmbiguousOperator:
9
9
  Enabled: false
10
+ Metrics/BlockLength:
11
+ Enabled: false
10
12
  Metrics/LineLength:
11
13
  Max: 120
12
14
  Exclude:
13
15
  - Rakefile
16
+ Style/SymbolArray:
17
+ Enabled: false
14
18
  Style/Documentation:
15
19
  Enabled: false
20
+ Style/EmptyLineAfterMagicComment:
21
+ Enabled: false
16
22
  Style/HashSyntax:
17
23
  Exclude:
18
24
  - Rakefile
data/README.md CHANGED
@@ -123,5 +123,9 @@ The gem is available as open source under the terms of the [MIT License](http://
123
123
 
124
124
  ## Change Log
125
125
 
126
+ * 1.0.2 (2017-12-26)
127
+ * Update development dependency `rubocop` (security vulnerability)
128
+ * 1.0.1 (2017-01-24)
129
+ * Use explicit requires, was causing errors in some environments
126
130
  * Version 1.0.0 (2017-01-20)
127
131
  * Initial Release
data/Rakefile CHANGED
@@ -4,4 +4,8 @@ require 'rspec/core/rake_task'
4
4
 
5
5
  RSpec::Core::RakeTask.new(:spec)
6
6
 
7
- task :default => :spec
7
+ task :default => [:style, :spec]
8
+
9
+ task :style do
10
+ sh 'rubocop'
11
+ end
@@ -32,5 +32,5 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency 'rake', '~> 10.0'
33
33
  spec.add_development_dependency 'rails'
34
34
  spec.add_development_dependency 'rspec', '~> 3.0'
35
- spec.add_development_dependency 'rubocop', '= 0.42.0'
35
+ spec.add_development_dependency 'rubocop', '= 0.48.1'
36
36
  end
data/circle.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  machine:
2
2
  ruby:
3
3
  version:
4
- 2.3.1
4
+ 2.3.5
5
5
  database:
6
6
  override:
7
7
  - echo "NO-OP - tests handle database setup"
@@ -43,7 +43,7 @@ module AuditTables
43
43
  def self.check_for_audit_tables
44
44
  messages = []
45
45
 
46
- all_audit_tables.select { |table| !table.starts_with?('audit_') }.each do |table_name|
46
+ all_audit_tables.reject { |table| table.starts_with?('audit_') }.each do |table_name|
47
47
  messages << table_name unless all_audit_tables.include? "audit_#{table_name}"
48
48
  end
49
49
 
@@ -63,7 +63,7 @@ module AuditTables
63
63
  end
64
64
 
65
65
  def self.rebuild_all_audit_triggers
66
- all_audit_tables.select { |table| !table.starts_with?('audit_') }.each do |table_name|
66
+ all_audit_tables.reject { |table| table.starts_with?('audit_') }.each do |table_name|
67
67
  build_audit_triggers_for(table_name)
68
68
  end
69
69
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module AuditTables
3
- class BuildAuditTrigger < ActiveRecord::Migration
3
+ class BuildAuditTrigger < ActiveRecord::Migration[5.0]
4
4
  attr_reader :table_name
5
5
 
6
6
  def initialize(table_name)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module AuditTables
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audit_tables
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Syncordia Technologies
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-23 00:00:00.000000000 Z
11
+ date: 2017-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 0.42.0
131
+ version: 0.48.1
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: 0.42.0
138
+ version: 0.48.1
139
139
  description: Adds audit tables and triggers for postgres databases
140
140
  email:
141
141
  - info@syncordiahealth.ie
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  version: '0'
183
183
  requirements: []
184
184
  rubyforge_project:
185
- rubygems_version: 2.5.1
185
+ rubygems_version: 2.6.14
186
186
  signing_key:
187
187
  specification_version: 4
188
188
  summary: Adds audit tables and triggers for postgres databases