anonymous_active_record 1.0.3 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ test:
2
+ adapter: sqlite3
3
+ encoding: utf8
4
+ database: ':memory:'
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'byebug' if RUBY_ENGINE == 'ruby'
4
+
5
+ require 'rspec/block_is_expected'
6
+
7
+ ruby_version = Gem::Version.new(RUBY_VERSION)
8
+ require 'simplecov' if ruby_version >= Gem::Version.new('2.7') && RUBY_ENGINE == 'ruby'
9
+
10
+ require 'anonymous_active_record'
11
+
12
+ RSpec.configure do |config|
13
+ # Enable flags like --only-failures and --next-failure
14
+ config.example_status_persistence_file_path = '.rspec_status'
15
+
16
+ # Disable RSpec exposing methods globally on `Module` and `main`
17
+ config.disable_monkey_patching!
18
+
19
+ config.expect_with :rspec do |c|
20
+ c.syntax = :expect
21
+ end
22
+ end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anonymous_active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-11 00:00:00.000000000 Z
11
+ date: 2021-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '12'
33
+ version: '13'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '12'
40
+ version: '13'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,42 +58,126 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.0'
61
+ version: '1'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.0'
68
+ version: '1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.60'
75
+ version: '1.9'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.60'
82
+ version: '1.9'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-md
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-minitest
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-packaging
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-performance
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rubocop-rake
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
83
153
  - !ruby/object:Gem::Dependency
84
154
  name: rubocop-rspec
85
155
  requirement: !ruby/object:Gem::Requirement
86
156
  requirements:
87
- - - "~>"
157
+ - - ">="
88
158
  - !ruby/object:Gem::Version
89
- version: '1.30'
159
+ version: '0'
90
160
  type: :development
91
161
  prerelease: false
92
162
  version_requirements: !ruby/object:Gem::Requirement
93
163
  requirements:
94
- - - "~>"
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: simplecov
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
95
179
  - !ruby/object:Gem::Version
96
- version: '1.30'
180
+ version: '0'
97
181
  - !ruby/object:Gem::Dependency
98
182
  name: sqlite3
99
183
  requirement: !ruby/object:Gem::Requirement
@@ -112,14 +196,14 @@ dependencies:
112
196
  name: activerecord
113
197
  requirement: !ruby/object:Gem::Requirement
114
198
  requirements:
115
- - - "~>"
199
+ - - ">="
116
200
  - !ruby/object:Gem::Version
117
201
  version: '5'
118
202
  type: :runtime
119
203
  prerelease: false
120
204
  version_requirements: !ruby/object:Gem::Requirement
121
205
  requirements:
122
- - - "~>"
206
+ - - ">="
123
207
  - !ruby/object:Gem::Version
124
208
  version: '5'
125
209
  description: Replacement for broken Class.new(ActiveRecord::Base)
@@ -129,27 +213,23 @@ executables: []
129
213
  extensions: []
130
214
  extra_rdoc_files: []
131
215
  files:
132
- - ".gitignore"
133
- - ".rspec"
134
- - ".travis.yml"
135
216
  - CODE_OF_CONDUCT.md
136
- - Gemfile
137
217
  - LICENSE
138
218
  - README.md
139
- - Rakefile
140
- - anonymous_active_record.gemspec
141
- - bin/console
142
- - bin/setup
143
219
  - lib/anonymous_active_record.rb
144
220
  - lib/anonymous_active_record/factory.rb
145
221
  - lib/anonymous_active_record/generator.rb
146
222
  - lib/anonymous_active_record/version.rb
223
+ - spec/anonymous_active_record_spec.rb
224
+ - spec/db/database.yml
225
+ - spec/spec_helper.rb
147
226
  homepage: https://github.com/pboling/anonymous_active_record
148
227
  licenses:
149
228
  - MIT
150
229
  metadata: {}
151
- post_install_message:
152
- rdoc_options: []
230
+ post_install_message:
231
+ rdoc_options:
232
+ - "--charset=UTF-8"
153
233
  require_paths:
154
234
  - lib
155
235
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -163,8 +243,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
243
  - !ruby/object:Gem::Version
164
244
  version: '0'
165
245
  requirements: []
166
- rubygems_version: 3.0.3
167
- signing_key:
246
+ rubygems_version: 3.2.3
247
+ signing_key:
168
248
  specification_version: 4
169
249
  summary: Almost Anonymous ActiveRecord classes
170
- test_files: []
250
+ test_files:
251
+ - spec/anonymous_active_record_spec.rb
252
+ - spec/db/database.yml
253
+ - spec/spec_helper.rb
data/.gitignore DELETED
@@ -1,13 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /*.gem
5
- /_yardoc/
6
- /coverage/
7
- /doc/
8
- /pkg/
9
- /spec/reports/
10
- /tmp/
11
-
12
- # rspec failure tracking
13
- .rspec_status
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.travis.yml DELETED
@@ -1,32 +0,0 @@
1
- env:
2
- global:
3
- - JRUBY_OPTS="-Xcli.debug=true --debug"
4
- - CC_TEST_REPORTER_ID=79a38e2ae5a4a583152ef08b7a89eb7550f9554244f1309775332fc0ec81389e
5
-
6
- before_script:
7
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
8
- - chmod +x ./cc-test-reporter
9
- - ./cc-test-reporter before-build
10
-
11
- script:
12
- - bundle exec rspec
13
-
14
- after_script:
15
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
16
-
17
- before_install:
18
- - gem update --system
19
- - gem install bundler
20
-
21
- install:
22
- - bundle install
23
-
24
- bundler_args: --no-deployment --jobs 3 --retry 3
25
-
26
- cache: bundler
27
-
28
- language: ruby
29
- sudo: false
30
- rvm:
31
- - 2.4.4
32
- - 2.5.1
data/Gemfile DELETED
@@ -1,13 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
-
5
- group :test do
6
- gem 'byebug', '~> 10', platform: :mri, require: false
7
- gem 'pry', '~> 0', platform: :mri, require: false
8
- gem 'pry-byebug', '~> 3', platform: :mri, require: false
9
- gem 'simplecov', '~> 0', require: false
10
- end
11
-
12
- # Specify your gem's dependencies in anonymous_active_record.gemspec
13
- gemspec
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task default: :spec
@@ -1,33 +0,0 @@
1
- lib = File.expand_path('lib', __dir__)
2
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require 'anonymous_active_record/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'anonymous_active_record'
7
- spec.version = AnonymousActiveRecord::VERSION
8
- spec.authors = ['Peter Boling']
9
- spec.email = ['peter.boling@gmail.com']
10
-
11
- spec.summary = 'Almost Anonymous ActiveRecord classes'
12
- spec.description = 'Replacement for broken Class.new(ActiveRecord::Base)'
13
- spec.homepage = 'https://github.com/pboling/anonymous_active_record'
14
-
15
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
16
- f.match(%r{^(test|spec|features)/})
17
- end
18
- spec.bindir = 'exe'
19
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
- spec.require_paths = ['lib']
21
- spec.license = 'MIT'
22
-
23
- spec.required_ruby_version = '>= 2.4' # Requirement for Ruby String#capitalize
24
-
25
- spec.add_development_dependency 'bundler', '~> 1'
26
- spec.add_development_dependency 'rake', '~> 12'
27
- spec.add_development_dependency 'rspec', '~> 3'
28
- spec.add_development_dependency 'rspec-block_is_expected', '~> 1.0'
29
- spec.add_development_dependency 'rubocop', '~> 0.60'
30
- spec.add_development_dependency 'rubocop-rspec', '~> 1.30'
31
- spec.add_development_dependency 'sqlite3', '~> 1'
32
- spec.add_dependency 'activerecord', '~> 5'
33
- end
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'bundler/setup'
4
- require 'anonymous_active_record'
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