logga 1.7.0 → 2.0.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,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58978dd5944f91b67c81c64d5e010985c0fff7ac17e98c1d538dcfe5ec3aefeb
4
- data.tar.gz: d6582c173776b196192de5088f047072ff1029f7aaadad0979b2147cd5902e56
3
+ metadata.gz: 925035912c3dec0b55b86b29c31f352ff4ffe7ad47e57abd29f229b15279406d
4
+ data.tar.gz: d25e62778b7151aa4a850b94c486712b9543868f7d24eb0e7e1622c418074339
5
5
  SHA512:
6
- metadata.gz: f25606ab136facf5e3f5a024e929f00f3df042289c1f9e8afdba2f32d78a241cbc041cb31d7c65c195a9d78e560c067c2a3cbeba04c50eb2a97eeeb4080efd67
7
- data.tar.gz: a711a0ba44f844d81322aa218e7938ef235373818157979fe107381a28fcfb1fe8068c262e97561e88e1a7e84c9864118deba722718a9abfb535eab060ff7834
6
+ metadata.gz: 9cbdbb94e95b923f6d05f1c4a1de43c3cca46e7f8f504009e0e329f55101e8db4d1f959b68d24f1b0859ac4345b6400eefa4bbb27f4f7a2a53179827259a70ab
7
+ data.tar.gz: f135395e2f9bbfe7e5921de570780cef09930014560184d65bd30f737cccbbcd4083b6b843ed1fc4860787cf022c83630ba7bc6dc9c911c9ec2e21273f7c30fa
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2020 Boxt
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -14,11 +14,15 @@ gem 'logga'
14
14
 
15
15
  And then execute:
16
16
 
17
- $ bundle
17
+ ```sh
18
+ bundle
19
+ ```
18
20
 
19
21
  Or install it yourself as:
20
22
 
21
- $ gem install logga
23
+ ```sh
24
+ gem install logga
25
+ ```
22
26
 
23
27
  ## Usage
24
28
 
@@ -28,7 +32,6 @@ Add this to your model:
28
32
  class Order < ApplicationRecord
29
33
  add_log_entries_for :create, :update
30
34
  end
31
-
32
35
  ```
33
36
 
34
37
  So that new LogEntry records attached to a given Order instance will be created whenever a new one is created or
@@ -36,11 +39,13 @@ modified.
36
39
 
37
40
  ## Development
38
41
 
39
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
42
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
40
43
 
41
44
  To install this gem onto your local machine, run `bundle exec rake install`.
42
45
 
43
- To release a new version, update the version number in `version.rb`.
46
+ ## Versioning
47
+
48
+ The version of the gem should be set in the `VERSION` file found in the root of the project. This is then read by the `lib/boxt_aasm_ext/version.rb` file to set in the gem.
44
49
 
45
50
  ## Contributing
46
51
 
@@ -52,5 +57,5 @@ The gem is available as open source under the terms of the [MIT License](http://
52
57
 
53
58
  ## TODOs
54
59
 
55
- * Write some tests
56
- * Improve the documentation
60
+ - Write some tests
61
+ - Improve the documentation
data/Rakefile CHANGED
@@ -1,6 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
4
+ require "rake/testtask"
3
5
 
4
- RSpec::Core::RakeTask.new(:spec)
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/*_test.rb"]
10
+ end
5
11
 
6
- task :default => :spec
12
+ task default: :test
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 2.0.0
@@ -4,13 +4,13 @@ module Logga
4
4
  module ActiveRecord
5
5
  extend ActiveSupport::Concern
6
6
 
7
- EXCLUDED_KEYS = %i[id created_at deleted_at initial updated_at log sent_after_sales_emails].freeze
7
+ EXCLUDED_KEYS = %i[id created_at deleted_at initial updated_at log sent_after_sales_emails].freeze
8
8
  EXCLUDED_KEYS_SUFFIXES = %i[_id _filenames].freeze
9
9
 
10
10
  included do
11
- class_attribute :log_fields, instance_writer: false
11
+ class_attribute :log_fields, instance_writer: false
12
12
  class_attribute :excluded_fields, instance_writer: false
13
- self.log_fields = {}
13
+ self.log_fields = {}
14
14
  self.excluded_fields = {}
15
15
  end
16
16
 
@@ -21,7 +21,7 @@ module Logga
21
21
  after_update :log_model_changes if actions.include?(:update)
22
22
  define_method(:log_receiver) { to == :self ? self : send(to) }
23
23
 
24
- self.log_fields = fields
24
+ self.log_fields = fields
25
25
  self.excluded_fields = Array(exclude_fields)
26
26
  end
27
27
  end
@@ -37,7 +37,7 @@ module Logga
37
37
  return if should_not_log?
38
38
 
39
39
  body_generator = ->(record) { default_creation_log_body(record) }
40
- body = log_fields.fetch(:created_at, body_generator).call(self)
40
+ body = log_fields.fetch(:created_at, body_generator).call(self)
41
41
  create_log_entry(author_data.merge(body: body, created_at: creation_at))
42
42
  end
43
43
 
@@ -45,7 +45,7 @@ module Logga
45
45
  return if should_not_log?
46
46
 
47
47
  body_generator = ->(record) { default_deletion_log_body(record) }
48
- body = log_fields.fetch(:deleted_at, body_generator).call(self)
48
+ body = log_fields.fetch(:deleted_at, body_generator).call(self)
49
49
  create_log_entry(author_data.merge(body: body))
50
50
  end
51
51
 
@@ -61,7 +61,7 @@ module Logga
61
61
  def author_data
62
62
  data = Hash(log_receiver.try(:author) || try(:author)).with_indifferent_access
63
63
  {
64
- author_id: data[:id],
64
+ author_id: data[:id],
65
65
  author_type: data[:type],
66
66
  author_name: data[:name]
67
67
  }
data/lib/logga/version.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Logga
4
- VERSION = "1.7.0"
4
+ version_file = File.join(File.dirname(__FILE__), "../../VERSION")
5
+ VERSION = File.read(version_file).split("\n").first
5
6
  end
metadata CHANGED
@@ -1,29 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logga
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boxt
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-06 00:00:00.000000000 Z
11
+ date: 2020-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activerecord
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '5.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.2'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: boxt_ruby_style_guide
15
43
  requirement: !ruby/object:Gem::Requirement
16
44
  requirements:
17
45
  - - "~>"
18
46
  - !ruby/object:Gem::Version
19
- version: '2.1'
47
+ version: '4.0'
20
48
  type: :development
21
49
  prerelease: false
22
50
  version_requirements: !ruby/object:Gem::Requirement
23
51
  requirements:
24
52
  - - "~>"
25
53
  - !ruby/object:Gem::Version
26
- version: '2.1'
54
+ version: '4.0'
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: bundler
29
57
  requirement: !ruby/object:Gem::Requirement
@@ -44,84 +72,126 @@ dependencies:
44
72
  requirements:
45
73
  - - "~>"
46
74
  - !ruby/object:Gem::Version
47
- version: '10.0'
75
+ version: '11.0'
48
76
  type: :development
49
77
  prerelease: false
50
78
  version_requirements: !ruby/object:Gem::Requirement
51
79
  requirements:
52
80
  - - "~>"
53
81
  - !ruby/object:Gem::Version
54
- version: '10.0'
82
+ version: '11.0'
55
83
  - !ruby/object:Gem::Dependency
56
- name: rake
84
+ name: factory_bot
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
87
  - - "~>"
60
88
  - !ruby/object:Gem::Version
61
- version: '12.3'
89
+ version: '4.8'
62
90
  type: :development
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
94
  - - "~>"
67
95
  - !ruby/object:Gem::Version
68
- version: '12.3'
96
+ version: '4.8'
69
97
  - !ruby/object:Gem::Dependency
70
- name: rspec
98
+ name: minitest
71
99
  requirement: !ruby/object:Gem::Requirement
72
100
  requirements:
73
101
  - - "~>"
74
102
  - !ruby/object:Gem::Version
75
- version: '3.6'
103
+ version: '5.13'
76
104
  type: :development
77
105
  prerelease: false
78
106
  version_requirements: !ruby/object:Gem::Requirement
79
107
  requirements:
80
108
  - - "~>"
81
109
  - !ruby/object:Gem::Version
82
- version: '3.6'
110
+ version: '5.13'
83
111
  - !ruby/object:Gem::Dependency
84
- name: simplecov
112
+ name: minitest-bang
85
113
  requirement: !ruby/object:Gem::Requirement
86
114
  requirements:
87
115
  - - "~>"
88
116
  - !ruby/object:Gem::Version
89
- version: '0.16'
117
+ version: '1.0'
90
118
  type: :development
91
119
  prerelease: false
92
120
  version_requirements: !ruby/object:Gem::Requirement
93
121
  requirements:
94
122
  - - "~>"
95
123
  - !ruby/object:Gem::Version
96
- version: '0.16'
124
+ version: '1.0'
97
125
  - !ruby/object:Gem::Dependency
98
- name: activerecord
126
+ name: minitest-fail-fast
99
127
  requirement: !ruby/object:Gem::Requirement
100
128
  requirements:
101
129
  - - "~>"
102
130
  - !ruby/object:Gem::Version
103
- version: '5.2'
104
- type: :runtime
131
+ version: '0.1'
132
+ type: :development
105
133
  prerelease: false
106
134
  version_requirements: !ruby/object:Gem::Requirement
107
135
  requirements:
108
136
  - - "~>"
109
137
  - !ruby/object:Gem::Version
110
- version: '5.2'
138
+ version: '0.1'
111
139
  - !ruby/object:Gem::Dependency
112
- name: activesupport
140
+ name: minitest-macos-notification
113
141
  requirement: !ruby/object:Gem::Requirement
114
142
  requirements:
115
143
  - - "~>"
116
144
  - !ruby/object:Gem::Version
117
- version: '5.2'
118
- type: :runtime
145
+ version: '0.3'
146
+ type: :development
119
147
  prerelease: false
120
148
  version_requirements: !ruby/object:Gem::Requirement
121
149
  requirements:
122
150
  - - "~>"
123
151
  - !ruby/object:Gem::Version
124
- version: '5.2'
152
+ version: '0.3'
153
+ - !ruby/object:Gem::Dependency
154
+ name: minitest-reporters
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1.4'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '1.4'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rake
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '13.0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '13.0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: simplecov
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '0.17'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '0.17'
125
195
  description: Extensions to ActiveRecord to log entries on model changes
126
196
  email:
127
197
  - developers@boxt.co.uk
@@ -129,22 +199,13 @@ executables: []
129
199
  extensions: []
130
200
  extra_rdoc_files: []
131
201
  files:
132
- - ".circleci/config.yml"
133
- - ".gitignore"
134
- - ".rspec"
135
- - ".rubocop.yml"
136
- - ".ruby-version"
137
- - Gemfile
138
- - Gemfile.lock
139
- - LICENSE.txt
202
+ - MIT-LICENSE
140
203
  - README.md
141
204
  - Rakefile
142
- - bin/console
143
- - bin/setup
205
+ - VERSION
144
206
  - lib/logga.rb
145
207
  - lib/logga/active_record.rb
146
208
  - lib/logga/version.rb
147
- - logga.gemspec
148
209
  homepage: https://github.com/boxt/logga
149
210
  licenses:
150
211
  - MIT
@@ -164,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
225
  - !ruby/object:Gem::Version
165
226
  version: '0'
166
227
  requirements: []
167
- rubygems_version: 3.0.3
228
+ rubygems_version: 3.1.2
168
229
  signing_key:
169
230
  specification_version: 4
170
231
  summary: ActiveRecord log entries on model changes
data/.circleci/config.yml DELETED
@@ -1,36 +0,0 @@
1
- version: 2
2
- jobs:
3
- build:
4
- parallelism: 1
5
- docker:
6
- - image: circleci/ruby:2.6.3
7
- environment:
8
- BUNDLE_JOBS: 3
9
- BUNDLE_RETRY: 3
10
- BUNDLE_PATH: vendor/bundle
11
- steps:
12
- - checkout
13
- - run:
14
- name: Configure Bundler
15
- command: |
16
- echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
17
- source $BASH_ENV
18
- gem install bundler
19
- - run:
20
- name: Which bundler?
21
- command: bundle -v
22
- - restore_cache:
23
- keys:
24
- - logga-{{ checksum "Gemfile.lock" }}
25
- - run:
26
- name: Bundle Install
27
- command: bundle install
28
- - save_cache:
29
- key: logga-{{ checksum "Gemfile.lock" }}
30
- paths:
31
- - vendor/bundle
32
- - run:
33
- name: Run tests
34
- command: bundle exec rake | circleci tests split --split-by=timings
35
- - store_test_results:
36
- path: test_results
data/.gitignore DELETED
@@ -1,98 +0,0 @@
1
- # See http://help.github.com/ignore-files/ for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile '~/.gitignore_global'
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- # Ignore the default SQLite database.
11
- /db/*.sqlite3
12
- /db/*.sqlite3-journal
13
-
14
- # Ignore gem building folder: pkg
15
- pkg
16
-
17
- # Ignore log and tmp files
18
- log/*
19
- *.log
20
- tmp
21
- tmp/**/*
22
-
23
- # Documentation
24
- /doc/
25
- doc/api
26
- doc/app
27
- .yardoc
28
- /_yardoc/
29
- .yardopts
30
-
31
- # Public Uploads
32
- public/system/*
33
- public/themes/*
34
-
35
- # Public Cache
36
- public/javascripts/cache
37
- public/stylesheets/cache
38
-
39
- # Vendor Cache
40
- vendor/cache
41
-
42
- # Acts as Indexed
43
- index/**/*
44
-
45
- # Refinery Specific
46
- *.tmproj
47
- *.autobackupbyrefinery.*
48
- refinerycms-*.gem
49
- .autotest
50
-
51
- # Mac
52
- .DS_Store
53
-
54
- # Windows
55
- Thumbs.db
56
-
57
- # NetBeans
58
- nbproject
59
-
60
- # Eclipse
61
- .project
62
-
63
- # Redcar
64
- .redcar
65
-
66
- # Rubinius
67
- *.rbc
68
-
69
- # RVM / rbenv
70
- .ruby-gemset
71
- .rvmrc
72
-
73
- # Vim
74
- *.swp
75
- *.swo
76
-
77
- # RubyMine
78
- .idea
79
-
80
- # E-texteditor
81
- .eprj
82
-
83
- # Backup
84
- *~
85
-
86
- # Capybara Bug
87
- capybara-*html
88
-
89
- # sass
90
- .sass-cache
91
- .sass-cache/*
92
-
93
- # SimpleCov (tests code converage)
94
- /coverage
95
-
96
- # RSpec
97
- /spec/reports/
98
- .rspec_status
data/.rspec DELETED
@@ -1,4 +0,0 @@
1
- --color
2
- --require byebug
3
- --require spec_helper
4
- --format documentation
data/.rubocop.yml DELETED
@@ -1,3 +0,0 @@
1
- inherit_gem:
2
- boxt_ruby_style_guide:
3
- - default.yml
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- ruby-2.6.3
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in logga.gemspec
6
- gemspec
data/Gemfile.lock DELETED
@@ -1,112 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- logga (1.7.0)
5
- activerecord (~> 5.2)
6
- activesupport (~> 5.2)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- activemodel (5.2.3)
12
- activesupport (= 5.2.3)
13
- activerecord (5.2.3)
14
- activemodel (= 5.2.3)
15
- activesupport (= 5.2.3)
16
- arel (>= 9.0)
17
- activesupport (5.2.3)
18
- concurrent-ruby (~> 1.0, >= 1.0.2)
19
- i18n (>= 0.7, < 2)
20
- minitest (~> 5.1)
21
- tzinfo (~> 1.1)
22
- arel (9.0.0)
23
- ast (2.4.0)
24
- axiom-types (0.1.1)
25
- descendants_tracker (~> 0.0.4)
26
- ice_nine (~> 0.11.0)
27
- thread_safe (~> 0.3, >= 0.3.1)
28
- boxt_ruby_style_guide (2.1.0)
29
- reek (~> 5.3, >= 5.3.0)
30
- rubocop (~> 0.63.1)
31
- byebug (10.0.2)
32
- codeclimate-engine-rb (0.4.1)
33
- virtus (~> 1.0)
34
- coercible (1.0.0)
35
- descendants_tracker (~> 0.0.1)
36
- concurrent-ruby (1.1.5)
37
- descendants_tracker (0.0.4)
38
- thread_safe (~> 0.3, >= 0.3.1)
39
- diff-lcs (1.3)
40
- docile (1.3.1)
41
- equalizer (0.0.11)
42
- i18n (1.6.0)
43
- concurrent-ruby (~> 1.0)
44
- ice_nine (0.11.2)
45
- jaro_winkler (1.5.2)
46
- json (2.2.0)
47
- kwalify (0.7.2)
48
- minitest (5.11.3)
49
- parallel (1.16.0)
50
- parser (2.6.2.0)
51
- ast (~> 2.4.0)
52
- powerpack (0.1.2)
53
- psych (3.1.0)
54
- rainbow (3.0.0)
55
- rake (12.3.2)
56
- reek (5.3.2)
57
- codeclimate-engine-rb (~> 0.4.0)
58
- kwalify (~> 0.7.0)
59
- parser (>= 2.5.0.0, < 2.7, != 2.5.1.1)
60
- psych (~> 3.1.0)
61
- rainbow (>= 2.0, < 4.0)
62
- rspec (3.8.0)
63
- rspec-core (~> 3.8.0)
64
- rspec-expectations (~> 3.8.0)
65
- rspec-mocks (~> 3.8.0)
66
- rspec-core (3.8.0)
67
- rspec-support (~> 3.8.0)
68
- rspec-expectations (3.8.2)
69
- diff-lcs (>= 1.2.0, < 2.0)
70
- rspec-support (~> 3.8.0)
71
- rspec-mocks (3.8.0)
72
- diff-lcs (>= 1.2.0, < 2.0)
73
- rspec-support (~> 3.8.0)
74
- rspec-support (3.8.0)
75
- rubocop (0.63.1)
76
- jaro_winkler (~> 1.5.1)
77
- parallel (~> 1.10)
78
- parser (>= 2.5, != 2.5.1.1)
79
- powerpack (~> 0.1)
80
- rainbow (>= 2.2.2, < 4.0)
81
- ruby-progressbar (~> 1.7)
82
- unicode-display_width (~> 1.4.0)
83
- ruby-progressbar (1.10.0)
84
- simplecov (0.16.1)
85
- docile (~> 1.1)
86
- json (>= 1.8, < 3)
87
- simplecov-html (~> 0.10.0)
88
- simplecov-html (0.10.2)
89
- thread_safe (0.3.6)
90
- tzinfo (1.2.5)
91
- thread_safe (~> 0.1)
92
- unicode-display_width (1.4.1)
93
- virtus (1.0.5)
94
- axiom-types (~> 0.1)
95
- coercible (~> 1.0)
96
- descendants_tracker (~> 0.0, >= 0.0.3)
97
- equalizer (~> 0.0, >= 0.0.9)
98
-
99
- PLATFORMS
100
- ruby
101
-
102
- DEPENDENCIES
103
- boxt_ruby_style_guide (~> 2.1)
104
- bundler (~> 2.0)
105
- byebug (~> 10.0)
106
- logga!
107
- rake (~> 12.3)
108
- rspec (~> 3.6)
109
- simplecov (~> 0.16)
110
-
111
- BUNDLED WITH
112
- 2.0.2
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2017 Lorenzo Tello
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "logga"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
data/logga.gemspec DELETED
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # rubocop:disable Style/ExpandPathArguments
4
- # NOTE: This is because of Gemfury failing with __dir__
5
- lib = File.expand_path("../lib", __FILE__)
6
- # rubocop:enable Style/ExpandPathArguments
7
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
8
- require "logga/version"
9
-
10
- Gem::Specification.new do |spec|
11
- spec.name = "logga"
12
- spec.version = Logga::VERSION
13
- spec.authors = ["Boxt"]
14
- spec.email = ["developers@boxt.co.uk"]
15
-
16
- spec.summary = "ActiveRecord log entries on model changes"
17
- spec.description = "Extensions to ActiveRecord to log entries on model changes"
18
- spec.homepage = "https://github.com/boxt/logga"
19
- spec.license = "MIT"
20
-
21
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
22
- f.match(%r{^(test|spec|features)/})
23
- end
24
- spec.bindir = "exe"
25
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
- spec.require_paths = ["lib"]
27
-
28
- spec.add_development_dependency "boxt_ruby_style_guide", "~> 2.1"
29
- spec.add_development_dependency "bundler", "~> 2.0"
30
- spec.add_development_dependency "byebug", "~> 10.0"
31
- spec.add_development_dependency "rake", "~> 12.3"
32
- spec.add_development_dependency "rspec", "~> 3.6"
33
- spec.add_development_dependency "simplecov", "~> 0.16"
34
-
35
- spec.add_runtime_dependency "activerecord", "~> 5.2"
36
- spec.add_runtime_dependency "activesupport", "~> 5.2"
37
- end