factory_girl_instruments 1.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 +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +137 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/factory_girl_instruments.gemspec +32 -0
- data/factory_girl_instruments_test.db +0 -0
- data/lib/factory_girl_instruments/benchmarking.rb +41 -0
- data/lib/factory_girl_instruments/tracing.rb +84 -0
- data/lib/factory_girl_instruments/version.rb +3 -0
- data/lib/factory_girl_instruments.rb +22 -0
- metadata +143 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 61b1b0370431833b8d454eedd3e58f3f5107984d
|
4
|
+
data.tar.gz: a547df695405976256b24d735956cebc7e6a5b5e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bf4d4cbef3bc8abe25d7da3b6a56ab67f1cd3597abc3cb069b38b0b80484b8abd9d45e26de7598e5a0fa2afe1347fbc70f959c2a8fded348ec846819354bd000
|
7
|
+
data.tar.gz: bccbe9dfa46b3d7ff929b52b219eaa4fa03bcae7c035b4d55a7879eaf20743e5769f319dbac4bb77277bd3b933084987d2e8c3b1cf78187b88e4330082ca592d
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at igor@renderedtext.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Igor Šarčević
|
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/README.md
ADDED
@@ -0,0 +1,137 @@
|
|
1
|
+
# Factory Girl Instruments
|
2
|
+
|
3
|
+
[](https://semaphoreci.com/shiroyasha/factory_girl_instruments)
|
4
|
+
|
5
|
+
Instruments for benchmarking, tracing, and debugging Factory Girl models.
|
6
|
+
|
7
|
+
Table of content:
|
8
|
+
|
9
|
+
- [Setup](#setup)
|
10
|
+
- [Benchmark one Factory](#benchmarking-one-factory-girl-model)
|
11
|
+
- [Benchmark all Factories](#benchmarking-all-factory-girl-models)
|
12
|
+
- [Trace Factory Girl calls](#tracing-factory-girl-calls)
|
13
|
+
|
14
|
+
## Install
|
15
|
+
|
16
|
+
Add the following to your Gemfile:
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
gem 'factory_girl_instruments'
|
20
|
+
```
|
21
|
+
|
22
|
+
and run `bundle install` from your shell.
|
23
|
+
|
24
|
+
To install the gem manually from your shell, run:
|
25
|
+
|
26
|
+
``` ruby
|
27
|
+
gem install factory_girl_instruments
|
28
|
+
```
|
29
|
+
|
30
|
+
## Documentation
|
31
|
+
|
32
|
+
### Benchmarking one Factory Girl model
|
33
|
+
|
34
|
+
If you have a `user` factory, you can benchmark it with:
|
35
|
+
|
36
|
+
``` ruby
|
37
|
+
FactoryGirl.benchmark(:user)
|
38
|
+
```
|
39
|
+
|
40
|
+
By default, the `FactoryGirl.crete(<model>)` is called. You can pass `:method`
|
41
|
+
to override this:
|
42
|
+
|
43
|
+
``` ruby
|
44
|
+
FactoryGirl.benchmark(:user, :method => :build_stubbed)
|
45
|
+
```
|
46
|
+
|
47
|
+
The above snippet will call `FactoryGirl.build_stubbed(:user)`.
|
48
|
+
|
49
|
+
### Benchmarking all Factory Girl models
|
50
|
+
|
51
|
+
To collect benchmarking information from all Factory Girl models:
|
52
|
+
|
53
|
+
``` ruby
|
54
|
+
FactoryGirl.benchmark_all
|
55
|
+
```
|
56
|
+
|
57
|
+
To skip a factory, pass the `:except` options:
|
58
|
+
|
59
|
+
``` ruby
|
60
|
+
FactoryGirl.benchmark_all(:except => [:user])
|
61
|
+
```
|
62
|
+
|
63
|
+
By default, benchmarks for `FactoryGirl.create(<model>)`,
|
64
|
+
`FactoryGirl.build(<model>)`, `FactoryGirl.build_stubbed(<model>)` are
|
65
|
+
collected. You can override this by passing an array of methods:
|
66
|
+
|
67
|
+
``` ruby
|
68
|
+
FactoryGirl.benchmark_all(:methods => [:create]) # benchmark only :create
|
69
|
+
```
|
70
|
+
|
71
|
+
### Tracing Factory Girl calls
|
72
|
+
|
73
|
+
To trace factory girl actions, wrap your call in the `FactoryGirl.trace` method:
|
74
|
+
|
75
|
+
``` ruby
|
76
|
+
FactoryGirl.trace do
|
77
|
+
FactoryGirl.create(:comment)
|
78
|
+
end
|
79
|
+
```
|
80
|
+
|
81
|
+
The above snippet will output the following tree:
|
82
|
+
|
83
|
+
``` txt
|
84
|
+
┌ (start) create :comment
|
85
|
+
| ┌ (start) create :user
|
86
|
+
| | (0.1ms) begin transaction
|
87
|
+
| | (0.4ms) INSERT INTO "users" ("name", "username") VALUES (?, ?) [["name", "Peter Parker"], ["username", "spiderman"]]
|
88
|
+
| | (2.3ms) commit transaction
|
89
|
+
| └ (finish) create :user [0.010s]
|
90
|
+
| ┌ (start) create :article
|
91
|
+
| | ┌ (start) create :user
|
92
|
+
| | | (0.1ms) begin transaction
|
93
|
+
| | | (0.3ms) INSERT INTO "users" ("name", "username") VALUES (?, ?) [["name", "Peter Parker"], ["username", "spiderman"]]
|
94
|
+
| | | (1.8ms) commit transaction
|
95
|
+
| | └ (finish) create :user [0.007s]
|
96
|
+
| | (0.1ms) begin transaction
|
97
|
+
| | (0.2ms) INSERT INTO "articles" ("title", "content", "user_id") VALUES (?, ?, ?) [["title", "New Article"], ["content", "article content"], ["user_id", "121"]]
|
98
|
+
| | (1.5ms) commit transaction
|
99
|
+
| └ (finish) create :article [0.021s]
|
100
|
+
| (0.1ms) begin transaction
|
101
|
+
| (0.2ms) INSERT INTO "comments" ("content", "user_id", "article_id") VALUES (?, ?, ?) [["content", "First!"], ["user_id", "120"], ["article_id", "61"]]
|
102
|
+
| (1.5ms) commit transaction
|
103
|
+
└ (finish) create :comment [0.046s]
|
104
|
+
```
|
105
|
+
|
106
|
+
To trace without SQL logs, use the following:
|
107
|
+
|
108
|
+
``` ruby
|
109
|
+
FactoryGirl.trace(sql: false) do
|
110
|
+
FactoryGirl.create(:comment)
|
111
|
+
end
|
112
|
+
```
|
113
|
+
|
114
|
+
## Development
|
115
|
+
|
116
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then,
|
117
|
+
run `rake spec` to run the tests. You can also run `bin/console` for an
|
118
|
+
interactive prompt that will allow you to experiment.
|
119
|
+
|
120
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
121
|
+
To release a new version, update the version number in `version.rb`, and then
|
122
|
+
run `bundle exec rake release`, which will create a git tag for the version,
|
123
|
+
push git commits and tags, and push the `.gem` file
|
124
|
+
to [rubygems.org](https://rubygems.org).
|
125
|
+
|
126
|
+
## Contributing
|
127
|
+
|
128
|
+
Bug reports and pull requests are welcome on GitHub at
|
129
|
+
https://github.com/shiroyasha/factory_girl_instruments. This project is intended
|
130
|
+
to be a safe, welcoming space for collaboration, and contributors are expected
|
131
|
+
to adhere to the [Contributor Covenant](http://contributor-covenant.org) code
|
132
|
+
of conduct.
|
133
|
+
|
134
|
+
## License
|
135
|
+
|
136
|
+
The gem is available as open source under the terms of
|
137
|
+
the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "factory_girl_instruments"
|
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
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'factory_girl_instruments/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "factory_girl_instruments"
|
8
|
+
spec.version = FactoryGirlInstruments::VERSION
|
9
|
+
spec.authors = ["Igor Šarčević"]
|
10
|
+
spec.email = ["igor@renderedtext.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Instruments for Factory Girl}
|
13
|
+
spec.description = %q{Instruments for Factory Girl}
|
14
|
+
spec.homepage = "https://github.com/shiroyasha/factory_girl_instruments"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
|
21
|
+
spec.bindir = "exe"
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ["lib"]
|
24
|
+
|
25
|
+
spec.add_dependency "factory_girl", "~> 4.5"
|
26
|
+
spec.add_dependency "activerecord", ">= 4.0"
|
27
|
+
|
28
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
29
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
30
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
31
|
+
spec.add_development_dependency "sqlite3"
|
32
|
+
end
|
Binary file
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module FactoryGirlInstruments
|
2
|
+
module Benchmarking
|
3
|
+
def benchmark_all(
|
4
|
+
except: [],
|
5
|
+
methods: [:create, :build, :build_stubbed],
|
6
|
+
progress: false)
|
7
|
+
|
8
|
+
factories = FactoryGirl.factories.map(&:name) - except
|
9
|
+
|
10
|
+
report = factories.map do |factory|
|
11
|
+
puts "Processing #{factory}" if progress
|
12
|
+
|
13
|
+
methods.map do |method|
|
14
|
+
benchmark(factory, :method => method)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
report.flatten.sort_by(&:duration)
|
19
|
+
end
|
20
|
+
|
21
|
+
def benchmark(factory, method: :create)
|
22
|
+
start = Time.now
|
23
|
+
|
24
|
+
ActiveRecord::Base.transaction do
|
25
|
+
FactoryGirl.public_send(method, factory)
|
26
|
+
|
27
|
+
raise ActiveRecord::Rollback
|
28
|
+
end
|
29
|
+
|
30
|
+
Benchmark.new(factory, method, Time.now - start)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
Benchmark = Struct.new(:factory, :method, :duration) do
|
35
|
+
def to_s
|
36
|
+
formated_duration = format("%5.3fs", duration)
|
37
|
+
|
38
|
+
"#{formated_duration}: FactoryGirl.#{method}(:#{factory})"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
$FACTORY_GIRL_INSTRUMENTS_TRACING = false
|
2
|
+
$FACTORY_GIRL_INSTRUMENTS_TRACING_DEPTH = 0
|
3
|
+
|
4
|
+
# monkey patch Factory#run
|
5
|
+
module FactoryGirl
|
6
|
+
class Factory
|
7
|
+
alias_method :original_run, :run
|
8
|
+
|
9
|
+
def run(build_strategy, overrides, &block)
|
10
|
+
if $FACTORY_GIRL_INSTRUMENTS_TRACING
|
11
|
+
depth = "| " * $FACTORY_GIRL_INSTRUMENTS_TRACING_DEPTH
|
12
|
+
signature = "#{build_strategy} \e[32m:#{@name}\e[0m"
|
13
|
+
start = Time.now
|
14
|
+
|
15
|
+
puts "#{depth}┌ (start) #{signature}"
|
16
|
+
$FACTORY_GIRL_INSTRUMENTS_TRACING_DEPTH += 1
|
17
|
+
end
|
18
|
+
|
19
|
+
result = original_run(build_strategy, overrides, &block)
|
20
|
+
|
21
|
+
if $FACTORY_GIRL_INSTRUMENTS_TRACING
|
22
|
+
duration = format("%4.3fs", Time.now - start)
|
23
|
+
puts "#{depth}└ (finish) #{signature} [#{duration}]"
|
24
|
+
|
25
|
+
$FACTORY_GIRL_INSTRUMENTS_TRACING_DEPTH -= 1
|
26
|
+
end
|
27
|
+
|
28
|
+
result
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
module FactoryGirlInstruments
|
34
|
+
module TracingHelpers
|
35
|
+
def self.uncolorize(string)
|
36
|
+
string.gsub(/\033\[\d+m/, "")
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.sql_tracer(active)
|
40
|
+
return yield unless active
|
41
|
+
|
42
|
+
begin
|
43
|
+
stdout_log = Logger.new($stdout)
|
44
|
+
|
45
|
+
stdout_log.formatter = proc do |severity, datetime, progname, msg|
|
46
|
+
depth = "| " * ($FACTORY_GIRL_INSTRUMENTS_TRACING_DEPTH - 1)
|
47
|
+
|
48
|
+
msg = FactoryGirlInstruments::TracingHelpers.uncolorize(msg)
|
49
|
+
msg = msg.strip
|
50
|
+
msg = msg.gsub(/^SQL /, "") # remove SQL prefix
|
51
|
+
|
52
|
+
"#{depth}| \e[36m#{msg}\e[0m\n"
|
53
|
+
end
|
54
|
+
|
55
|
+
standard_logger = ActiveRecord::Base.logger
|
56
|
+
ActiveRecord::Base.logger = stdout_log
|
57
|
+
|
58
|
+
yield
|
59
|
+
ensure
|
60
|
+
ActiveRecord::Base.logger = standard_logger
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
module Tracing
|
66
|
+
def trace(sql: true)
|
67
|
+
result = nil
|
68
|
+
|
69
|
+
begin
|
70
|
+
$FACTORY_GIRL_INSTRUMENTS_TRACING = true
|
71
|
+
$FACTORY_GIRL_INSTRUMENTS_TRACING_DEPTH = 0
|
72
|
+
|
73
|
+
FactoryGirlInstruments::TracingHelpers.sql_tracer(sql) do
|
74
|
+
result = yield
|
75
|
+
end
|
76
|
+
ensure
|
77
|
+
$FACTORY_GIRL_INSTRUMENTS_TRACING = false
|
78
|
+
$FACTORY_GIRL_INSTRUMENTS_TRACING_DEPTH = 0
|
79
|
+
end
|
80
|
+
|
81
|
+
result
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require "factory_girl_instruments/version"
|
2
|
+
|
3
|
+
require "factory_girl"
|
4
|
+
require "active_record"
|
5
|
+
|
6
|
+
require_relative "factory_girl_instruments/benchmarking"
|
7
|
+
require_relative "factory_girl_instruments/tracing"
|
8
|
+
|
9
|
+
FactoryGirl.extend(FactoryGirlInstruments::Benchmarking)
|
10
|
+
FactoryGirl.extend(FactoryGirlInstruments::Tracing)
|
11
|
+
|
12
|
+
module FactoryGirlInstruments
|
13
|
+
|
14
|
+
def self.benchmark_report(options = {})
|
15
|
+
options = { :progress => true }.merge(options)
|
16
|
+
|
17
|
+
FactoryGirl.benchmark_all(options).each do |benchmark|
|
18
|
+
puts benchmark
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,143 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: factory_girl_instruments
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Igor Šarčević
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-05-03 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: factory_girl
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.5'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activerecord
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '4.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '4.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.12'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.12'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: sqlite3
|
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
|
+
description: Instruments for Factory Girl
|
98
|
+
email:
|
99
|
+
- igor@renderedtext.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec"
|
106
|
+
- CODE_OF_CONDUCT.md
|
107
|
+
- Gemfile
|
108
|
+
- LICENSE.txt
|
109
|
+
- README.md
|
110
|
+
- Rakefile
|
111
|
+
- bin/console
|
112
|
+
- bin/setup
|
113
|
+
- factory_girl_instruments.gemspec
|
114
|
+
- factory_girl_instruments_test.db
|
115
|
+
- lib/factory_girl_instruments.rb
|
116
|
+
- lib/factory_girl_instruments/benchmarking.rb
|
117
|
+
- lib/factory_girl_instruments/tracing.rb
|
118
|
+
- lib/factory_girl_instruments/version.rb
|
119
|
+
homepage: https://github.com/shiroyasha/factory_girl_instruments
|
120
|
+
licenses:
|
121
|
+
- MIT
|
122
|
+
metadata: {}
|
123
|
+
post_install_message:
|
124
|
+
rdoc_options: []
|
125
|
+
require_paths:
|
126
|
+
- lib
|
127
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
requirements: []
|
138
|
+
rubyforge_project:
|
139
|
+
rubygems_version: 2.5.2
|
140
|
+
signing_key:
|
141
|
+
specification_version: 4
|
142
|
+
summary: Instruments for Factory Girl
|
143
|
+
test_files: []
|