machinist_redux 3.0.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,31 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ ruby RUBY_VERSION
6
+
7
+ gem "sqlite3"
8
+ gem "activerecord", "~> 5.2.0", group: :test, require: false
9
+
10
+ group :development do
11
+ gem "appraisal", require: false
12
+ gem "gem-release", "> 1", require: false
13
+ gem "github_changelog_generator", require: false
14
+ gem "guard", require: false
15
+ gem "guard-rspec", require: false
16
+ gem "guard-rubocop", require: false
17
+ gem "guard-rubycritic", require: false
18
+ gem "rdoc", require: false
19
+ gem "rubocop-rspec", require: false
20
+ end
21
+
22
+ group :test do
23
+ gem "codeclimate-test-reporter", require: false
24
+ gem "coveralls", require: false
25
+ gem "fuubar", require: false
26
+ gem "rspec", require: false
27
+ gem "rspec_junit_formatter", require: false
28
+ gem "simplecov", "~> 0.14", require: false
29
+ end
30
+
31
+ gemspec path: "../"
@@ -0,0 +1,231 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ machinist_redux (3.0.4)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ activemodel (5.2.0)
10
+ activesupport (= 5.2.0)
11
+ activerecord (5.2.0)
12
+ activemodel (= 5.2.0)
13
+ activesupport (= 5.2.0)
14
+ arel (>= 9.0)
15
+ activesupport (5.2.0)
16
+ concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ i18n (>= 0.7, < 2)
18
+ minitest (~> 5.1)
19
+ tzinfo (~> 1.1)
20
+ addressable (2.5.2)
21
+ public_suffix (>= 2.0.2, < 4.0)
22
+ appraisal (2.2.0)
23
+ bundler
24
+ rake
25
+ thor (>= 0.14.0)
26
+ arel (9.0.0)
27
+ ast (2.4.0)
28
+ axiom-types (0.1.1)
29
+ descendants_tracker (~> 0.0.4)
30
+ ice_nine (~> 0.11.0)
31
+ thread_safe (~> 0.3, >= 0.3.1)
32
+ codeclimate-engine-rb (0.4.1)
33
+ virtus (~> 1.0)
34
+ codeclimate-test-reporter (1.0.7)
35
+ simplecov
36
+ coderay (1.1.2)
37
+ coercible (1.0.0)
38
+ descendants_tracker (~> 0.0.1)
39
+ concurrent-ruby (1.0.5)
40
+ coveralls (0.8.21)
41
+ json (>= 1.8, < 3)
42
+ simplecov (~> 0.14.1)
43
+ term-ansicolor (~> 1.3)
44
+ thor (~> 0.19.4)
45
+ tins (~> 1.6)
46
+ descendants_tracker (0.0.4)
47
+ thread_safe (~> 0.3, >= 0.3.1)
48
+ diff-lcs (1.3)
49
+ docile (1.1.5)
50
+ equalizer (0.0.11)
51
+ erubis (2.7.0)
52
+ faraday (0.15.2)
53
+ multipart-post (>= 1.2, < 3)
54
+ faraday-http-cache (2.0.0)
55
+ faraday (~> 0.8)
56
+ ffi (1.9.23)
57
+ flay (2.12.0)
58
+ erubis (~> 2.7.0)
59
+ path_expander (~> 1.0)
60
+ ruby_parser (~> 3.0)
61
+ sexp_processor (~> 4.0)
62
+ flog (4.6.2)
63
+ path_expander (~> 1.0)
64
+ ruby_parser (~> 3.1, > 3.1.0)
65
+ sexp_processor (~> 4.8)
66
+ formatador (0.2.5)
67
+ fuubar (2.3.1)
68
+ rspec-core (~> 3.0)
69
+ ruby-progressbar (~> 1.4)
70
+ gem-release (2.0.0.rc.3)
71
+ github_changelog_generator (1.14.3)
72
+ activesupport
73
+ faraday-http-cache
74
+ multi_json
75
+ octokit (~> 4.6)
76
+ rainbow (>= 2.1)
77
+ rake (>= 10.0)
78
+ retriable (~> 2.1)
79
+ guard (2.14.2)
80
+ formatador (>= 0.2.4)
81
+ listen (>= 2.7, < 4.0)
82
+ lumberjack (>= 1.0.12, < 2.0)
83
+ nenv (~> 0.1)
84
+ notiffany (~> 0.0)
85
+ pry (>= 0.9.12)
86
+ shellany (~> 0.0)
87
+ thor (>= 0.18.1)
88
+ guard-compat (1.2.1)
89
+ guard-rspec (4.7.3)
90
+ guard (~> 2.1)
91
+ guard-compat (~> 1.1)
92
+ rspec (>= 2.99.0, < 4.0)
93
+ guard-rubocop (1.3.0)
94
+ guard (~> 2.0)
95
+ rubocop (~> 0.20)
96
+ guard-rubycritic (2.9.3)
97
+ guard (~> 2.6)
98
+ rubycritic (>= 2.9.3)
99
+ i18n (1.0.1)
100
+ concurrent-ruby (~> 1.0)
101
+ ice_nine (0.11.2)
102
+ json (2.1.0)
103
+ launchy (2.4.3)
104
+ addressable (~> 2.3)
105
+ listen (3.1.5)
106
+ rb-fsevent (~> 0.9, >= 0.9.4)
107
+ rb-inotify (~> 0.9, >= 0.9.7)
108
+ ruby_dep (~> 1.2)
109
+ lumberjack (1.0.13)
110
+ method_source (0.9.0)
111
+ minitest (5.11.3)
112
+ multi_json (1.13.1)
113
+ multipart-post (2.0.0)
114
+ nenv (0.3.0)
115
+ notiffany (0.1.1)
116
+ nenv (~> 0.1)
117
+ shellany (~> 0.0)
118
+ octokit (4.9.0)
119
+ sawyer (~> 0.8.0, >= 0.5.3)
120
+ parallel (1.12.1)
121
+ parser (2.5.1.0)
122
+ ast (~> 2.4.0)
123
+ path_expander (1.0.3)
124
+ powerpack (0.1.1)
125
+ pry (0.11.3)
126
+ coderay (~> 1.1.0)
127
+ method_source (~> 0.9.0)
128
+ public_suffix (3.0.2)
129
+ rainbow (3.0.0)
130
+ rake (12.3.1)
131
+ rb-fsevent (0.10.3)
132
+ rb-inotify (0.9.10)
133
+ ffi (>= 0.5.0, < 2)
134
+ rdoc (6.0.4)
135
+ reek (4.8.1)
136
+ codeclimate-engine-rb (~> 0.4.0)
137
+ parser (>= 2.5.0.0, < 2.6)
138
+ rainbow (>= 2.0, < 4.0)
139
+ retriable (2.1.0)
140
+ rspec (3.7.0)
141
+ rspec-core (~> 3.7.0)
142
+ rspec-expectations (~> 3.7.0)
143
+ rspec-mocks (~> 3.7.0)
144
+ rspec-core (3.7.1)
145
+ rspec-support (~> 3.7.0)
146
+ rspec-expectations (3.7.0)
147
+ diff-lcs (>= 1.2.0, < 2.0)
148
+ rspec-support (~> 3.7.0)
149
+ rspec-mocks (3.7.0)
150
+ diff-lcs (>= 1.2.0, < 2.0)
151
+ rspec-support (~> 3.7.0)
152
+ rspec-support (3.7.1)
153
+ rspec_junit_formatter (0.4.0)
154
+ rspec-core (>= 2, < 4, != 2.12.0)
155
+ rubocop (0.56.0)
156
+ parallel (~> 1.10)
157
+ parser (>= 2.5)
158
+ powerpack (~> 0.1)
159
+ rainbow (>= 2.2.2, < 4.0)
160
+ ruby-progressbar (~> 1.7)
161
+ unicode-display_width (~> 1.0, >= 1.0.1)
162
+ rubocop-rspec (1.25.1)
163
+ rubocop (>= 0.53.0)
164
+ ruby-progressbar (1.9.0)
165
+ ruby_dep (1.5.0)
166
+ ruby_parser (3.11.0)
167
+ sexp_processor (~> 4.9)
168
+ rubycritic (3.4.0)
169
+ flay (~> 2.8)
170
+ flog (~> 4.4)
171
+ launchy (= 2.4.3)
172
+ parser (~> 2.5.0)
173
+ rainbow (~> 3.0)
174
+ reek (~> 4.4)
175
+ ruby_parser (~> 3.8)
176
+ tty-which (~> 0.3.0)
177
+ virtus (~> 1.0)
178
+ sawyer (0.8.1)
179
+ addressable (>= 2.3.5, < 2.6)
180
+ faraday (~> 0.8, < 1.0)
181
+ sexp_processor (4.11.0)
182
+ shellany (0.0.1)
183
+ simplecov (0.14.1)
184
+ docile (~> 1.1.0)
185
+ json (>= 1.8, < 3)
186
+ simplecov-html (~> 0.10.0)
187
+ simplecov-html (0.10.2)
188
+ sqlite3 (1.3.13)
189
+ term-ansicolor (1.6.0)
190
+ tins (~> 1.0)
191
+ thor (0.19.4)
192
+ thread_safe (0.3.6)
193
+ tins (1.16.3)
194
+ tty-which (0.3.0)
195
+ tzinfo (1.2.5)
196
+ thread_safe (~> 0.1)
197
+ unicode-display_width (1.3.3)
198
+ virtus (1.0.5)
199
+ axiom-types (~> 0.1)
200
+ coercible (~> 1.0)
201
+ descendants_tracker (~> 0.0, >= 0.0.3)
202
+ equalizer (~> 0.0, >= 0.0.9)
203
+
204
+ PLATFORMS
205
+ ruby
206
+
207
+ DEPENDENCIES
208
+ activerecord (~> 5.2.0)
209
+ appraisal
210
+ codeclimate-test-reporter
211
+ coveralls
212
+ fuubar
213
+ gem-release (> 1)
214
+ github_changelog_generator
215
+ guard
216
+ guard-rspec
217
+ guard-rubocop
218
+ guard-rubycritic
219
+ machinist_redux!
220
+ rdoc
221
+ rspec
222
+ rspec_junit_formatter
223
+ rubocop-rspec
224
+ simplecov (~> 0.14)
225
+ sqlite3
226
+
227
+ RUBY VERSION
228
+ ruby 2.4.1p111
229
+
230
+ BUNDLED WITH
231
+ 1.16.2
@@ -1,7 +1,7 @@
1
1
  module Machinist
2
2
  module Generators #:nodoc:
3
3
  class InstallGenerator < Rails::Generators::Base #:nodoc:
4
- source_root File.expand_path('../templates', __FILE__)
4
+ source_root File.expand_path('templates', __dir__)
5
5
 
6
6
  class_option :test_framework, type: :string, aliases: '-t', desc: 'Test framework to use Machinist with'
7
7
  class_option :cucumber, type: :boolean, desc: 'Set up access to Machinist from Cucumber'
@@ -23,9 +23,7 @@ module Machinist
23
23
  end
24
24
 
25
25
  def cucumber_support
26
- if cucumber?
27
- template 'machinist.rb.erb', 'features/support/machinist.rb'
28
- end
26
+ template 'machinist.rb.erb', 'features/support/machinist.rb' if cucumber?
29
27
  end
30
28
 
31
29
  private
@@ -66,7 +66,7 @@ module Machinist
66
66
  else
67
67
  @serial_number ||= 0
68
68
  @serial_number += 1
69
- sprintf('%04d', @serial_number)
69
+ format('%04d', @serial_number)
70
70
  end
71
71
  end
72
72
 
@@ -23,9 +23,7 @@ module Machinist
23
23
  attr_reader :object
24
24
 
25
25
  def method_missing(attribute, *args, &block) #:nodoc:
26
- unless attribute_assigned?(attribute)
27
- assign_attribute(attribute, make_attribute(attribute, args, &block))
28
- end
26
+ assign_attribute(attribute, make_attribute(attribute, args, &block)) unless attribute_assigned?(attribute)
29
27
  end
30
28
 
31
29
  # Undef a couple of methods that are common ActiveRecord attributes.
@@ -1,3 +1,3 @@
1
1
  module Machinist
2
- VERSION = '3.0.3'.freeze
2
+ VERSION = '3.0.4'.freeze
3
3
  end
@@ -1,6 +1,4 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
4
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
3
  require 'machinist/version'
6
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: machinist_redux
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Yandell
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-05-19 00:00:00.000000000 Z
13
+ date: 2018-05-29 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: Machinist makes it easy to create objects for use in tests. It generates
16
16
  data for the attributes you don't care about, and constructs any necessary associated
@@ -22,12 +22,15 @@ extensions: []
22
22
  extra_rdoc_files: []
23
23
  files:
24
24
  - ".codeclimate.yml"
25
+ - ".gem_release.yml"
25
26
  - ".gitignore"
26
27
  - ".rspec"
28
+ - ".rubocop"
27
29
  - ".rubocop.yml"
28
30
  - ".rubocop_todo.yml"
29
31
  - ".travis.yml"
30
32
  - Appraisals
33
+ - CHANGELOG.md
31
34
  - Gemfile
32
35
  - LICENSE.txt
33
36
  - README.md
@@ -38,6 +41,8 @@ files:
38
41
  - gemfiles/rails_5.0.gemfile.lock
39
42
  - gemfiles/rails_5.1.gemfile
40
43
  - gemfiles/rails_5.1.gemfile.lock
44
+ - gemfiles/rails_5.2.gemfile
45
+ - gemfiles/rails_5.2.gemfile.lock
41
46
  - lib/generators/machinist/install/USAGE
42
47
  - lib/generators/machinist/install/install_generator.rb
43
48
  - lib/generators/machinist/install/templates/blueprints.rb
@@ -80,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
85
  version: '0'
81
86
  requirements: []
82
87
  rubyforge_project:
83
- rubygems_version: 2.6.12
88
+ rubygems_version: 2.7.7
84
89
  signing_key:
85
90
  specification_version: 4
86
91
  summary: Fixtures aren't fun. Machinist was.