handsome_fencer-test 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 92aaf976d6355cf0faacc752a3d0a19b36d8aed25e08b4a6bd95f4d29631a57e
4
+ data.tar.gz: 5c17b77ef2bd153d8af07f4b82fcd1d3685b8af7955336fea121dbcceb25b7e9
5
+ SHA512:
6
+ metadata.gz: 2c1ccf9b062571a6ba05dd282f97f29c0ca378b6b5e4ebee5966735af4d6ec07af82fd2de5d201f45d6e4a79cde4850b907413bae74c859b1226e390ee694610
7
+ data.tar.gz: 63c703f2db6e48f7cc44b93a1968027733fa78b68c83db4ffd31b7392659599cf93484a84278bf0d3a59e6442aeb75e86732577d518639b9376cacd831ba311f
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.5.1
7
+ before_install: gem install bundler -v 1.17.1
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in handsome_fencer-test.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,89 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ handsome_fencer-test (0.1.0)
5
+ guard
6
+ guard-livereload
7
+ guard-minitest
8
+ launchy
9
+ minitest-given
10
+ rack-livereload
11
+ thor
12
+
13
+ GEM
14
+ remote: https://rubygems.org/
15
+ specs:
16
+ addressable (2.5.2)
17
+ public_suffix (>= 2.0.2, < 4.0)
18
+ coderay (1.1.2)
19
+ em-websocket (0.5.1)
20
+ eventmachine (>= 0.12.9)
21
+ http_parser.rb (~> 0.6.0)
22
+ eventmachine (1.2.7)
23
+ ffi (1.9.25)
24
+ formatador (0.2.5)
25
+ given_core (3.8.0)
26
+ sorcerer (>= 0.3.7)
27
+ guard (2.15.0)
28
+ formatador (>= 0.2.4)
29
+ listen (>= 2.7, < 4.0)
30
+ lumberjack (>= 1.0.12, < 2.0)
31
+ nenv (~> 0.1)
32
+ notiffany (~> 0.0)
33
+ pry (>= 0.9.12)
34
+ shellany (~> 0.0)
35
+ thor (>= 0.18.1)
36
+ guard-compat (1.2.1)
37
+ guard-livereload (2.5.2)
38
+ em-websocket (~> 0.5)
39
+ guard (~> 2.8)
40
+ guard-compat (~> 1.0)
41
+ multi_json (~> 1.8)
42
+ guard-minitest (2.4.6)
43
+ guard-compat (~> 1.2)
44
+ minitest (>= 3.0)
45
+ http_parser.rb (0.6.0)
46
+ launchy (2.4.3)
47
+ addressable (~> 2.3)
48
+ listen (3.1.5)
49
+ rb-fsevent (~> 0.9, >= 0.9.4)
50
+ rb-inotify (~> 0.9, >= 0.9.7)
51
+ ruby_dep (~> 1.2)
52
+ lumberjack (1.0.13)
53
+ method_source (0.9.2)
54
+ minitest (5.11.3)
55
+ minitest-given (3.8.0)
56
+ given_core (= 3.8.0)
57
+ minitest (> 4.3)
58
+ multi_json (1.13.1)
59
+ nenv (0.3.0)
60
+ notiffany (0.1.1)
61
+ nenv (~> 0.1)
62
+ shellany (~> 0.0)
63
+ pry (0.12.2)
64
+ coderay (~> 1.1.0)
65
+ method_source (~> 0.9.0)
66
+ public_suffix (3.0.3)
67
+ rack (2.0.6)
68
+ rack-livereload (0.3.17)
69
+ rack
70
+ rake (10.5.0)
71
+ rb-fsevent (0.10.3)
72
+ rb-inotify (0.9.10)
73
+ ffi (>= 0.5.0, < 2)
74
+ ruby_dep (1.5.0)
75
+ shellany (0.0.1)
76
+ sorcerer (1.0.2)
77
+ thor (0.20.3)
78
+
79
+ PLATFORMS
80
+ ruby
81
+
82
+ DEPENDENCIES
83
+ bundler (~> 1.17)
84
+ handsome_fencer-test!
85
+ minitest (~> 5.0)
86
+ rake (~> 10.0)
87
+
88
+ BUNDLED WITH
89
+ 1.17.1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 schadenfred
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,19 @@
1
+ # HandsomeFencer::Test
2
+
3
+ ## Installation
4
+
5
+ This gem is designed to set up your Rails app with a curated suite of gems and files. Add this line to your application's Gemfile:
6
+
7
+ ```ruby
8
+ group :development, :test do
9
+ gem 'handsome_fencer-test'
10
+ end
11
+ ```
12
+
13
+ To either generate or over-write your test_helper.rb and Guardfile, use:
14
+
15
+ ```sh
16
+
17
+ $ thor handsome_fencer:test:install
18
+
19
+ ```
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "handsome_fencer/test"
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,8 @@
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
@@ -0,0 +1,45 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "handsome_fencer/test/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "handsome_fencer-test"
8
+ spec.version = HandsomeFencer::Test::VERSION
9
+ spec.authors = ["schadenfred"]
10
+ spec.email = ["fred.schoeneman@gmail.com"]
11
+
12
+ spec.summary = %q{Opinionated Rails testing suite.}
13
+ spec.description = %q{Opinionated Rails testing suite. Specifies necessary
14
+ gems as dependencies and allows generation of test_helper.rb and Guardfile.}
15
+ spec.homepage = "https://github.com/schadenfred/handsome_fencer-test"
16
+ spec.license = "MIT"
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
21
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ end
23
+ spec.bindir = "exe"
24
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ["lib"]
26
+
27
+ # dependencies
28
+
29
+ spec.add_dependency "minitest-given"
30
+ spec.add_dependency "minitest-rails"
31
+ spec.add_dependency "shoulda"
32
+ spec.add_dependency "shoulda-matchers"
33
+ spec.add_dependency "minitest-matchers_vaccine"
34
+ spec.add_dependency "guard"
35
+ spec.add_dependency "launchy"
36
+ spec.add_dependency "guard-minitest"
37
+ spec.add_dependency "guard-livereload"
38
+ spec.add_dependency "rack-livereload"
39
+ spec.add_dependency "thor"
40
+
41
+ # development dependencies
42
+ spec.add_development_dependency "bundler", "~> 1.17"
43
+ spec.add_development_dependency "rake", "~> 10.0"
44
+ spec.add_development_dependency "minitest", "~> 5.0"
45
+ end
@@ -0,0 +1,8 @@
1
+ require "handsome_fencer/test/version"
2
+
3
+ module HandsomeFencer
4
+ module Test
5
+ class Error < StandardError; end
6
+ # Your code goes here...
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ module HandsomeFencer
2
+ module Test
3
+ VERSION = "0.1.1"
4
+ end
5
+ end
@@ -0,0 +1,66 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ ## Uncomment and set this to only include directories you want to watch
5
+ # directories %w(app lib config test spec feature)
6
+
7
+ ## Uncomment to clear the screen before every task
8
+ # clearing :on
9
+
10
+ ## Guard internally checks for changes in the Guardfile and exits.
11
+ ## If you want Guard to automatically start up again, run guard in a
12
+ ## shell loop, e.g.:
13
+ ##
14
+ ## $ while bundle exec guard; do echo "Restarting Guard..."; done
15
+ ##
16
+ ## Note: if you are using the `directories` clause above and you are not
17
+ ## watching the project directory ('.'), the you will want to move the Guardfile
18
+ ## to a watched dir and symlink it back, e.g.
19
+ #
20
+ # $ mkdir config
21
+ # $ mv Guardfile config/
22
+ # $ ln -s config/Guardfile .
23
+ #
24
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
25
+
26
+ guard 'livereload' do
27
+ watch(%r{app/views/.+\.(erb|haml|slim)$})
28
+ watch(%r{app/helpers/.+\.rb})
29
+ watch(%r{app/presenters/.+\.rb})
30
+ watch(%r{public/.+\.(css|js|html)})
31
+ watch(%r{config/locales/.+\.yml})
32
+ # Rails Assets Pipeline
33
+ watch(%r{(app|vendor)(/assets/\w+/(.+\.(scss|css|js|html|png|jpg))).*}) { |m| "/assets/#{m[3]}" }
34
+ end
35
+
36
+ guard :minitest, spring: "bin/rails test" do
37
+
38
+ watch(%r{^app/models/winery.rb$}) { "test/models/wine_test.rb" }
39
+ watch(%r{^app/models/wine.rb$}) { "test/models/winery_test.rb" }
40
+
41
+ watch(%r{^app/(.+)\.rb$}) { |m|
42
+ "test/#{m[1]}_test.rb" }
43
+ watch(%r{^app/policies/(.+)\.rb$}) { |m|
44
+ "test/policies/#{m[1]}_test.rb" }
45
+
46
+ watch(%r{^app/policies/application_policy\.rb$}) { |m|
47
+ "test/policies" }
48
+ watch(%r{^app/controllers/application_controller\.rb$}) {
49
+ 'test/controllers' }
50
+ watch(%r{^app/controllers/(.+)_controller\.rb$}) { |m|
51
+ "test/integration/#{m[1]}_test.rb" }
52
+ watch(%r{^app/views/(.+)_mailer/.+}) { |m|
53
+ "test/mailers/#{m[1]}_mailer_test.rb" }
54
+ watch(%r{^lib/(.+)\.rb$}) { |m| "test/lib/#{m[1]}_test.rb" }
55
+ watch(%r{^lib/tasks/(.+)\.rake$}) { |m| "test/lib/tasks/#{m[1]}_test.rb" }
56
+ watch(%r{^test/.+_test\.rb$})
57
+ watch(%r{^test/integration/.+_test\.rb$})
58
+ watch(%r{^test/policies/.+_test\.rb$})
59
+ watch(%r{^test/test_helper\.rb$}) { 'test' }
60
+ watch(%r{^test/factories/(.+).rb$}) { 'test' }
61
+
62
+ # concerns
63
+ watch(%r{^test/models/concerns/.+_test\.rb$})
64
+
65
+ watch(%r{^app/models/concerns/(.+)\.rb$}) { |m| "test/models/concerns/#{m[1]}_test.rb" }
66
+ end
File without changes
@@ -0,0 +1,16 @@
1
+ class HandsomeFencer
2
+
3
+ class Test < Thor
4
+ include Thor::Actions
5
+
6
+ def self.source_root
7
+ File.dirname(__FILE__)
8
+ end
9
+
10
+ desc "install", "Generates Guardfile and over-writes test_helper.rb"
11
+ def install
12
+ directory "templates/test_helper.rb.tt", "test/test_helper.rb"
13
+ directory "templates/Guardfile.tt", "Guardfile"
14
+ end
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,257 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: handsome_fencer-test
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - schadenfred
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-12-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: minitest-given
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: shoulda
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: shoulda-matchers
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-matchers_vaccine
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
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: launchy
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
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: guard-minitest
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
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: guard-livereload
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
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: rack-livereload
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: thor
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: bundler
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '1.17'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '1.17'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rake
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '10.0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '10.0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: minitest
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '5.0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '5.0'
209
+ description: |-
210
+ Opinionated Rails testing suite. Specifies necessary
211
+ gems as dependencies and allows generation of test_helper.rb and Guardfile.
212
+ email:
213
+ - fred.schoeneman@gmail.com
214
+ executables: []
215
+ extensions: []
216
+ extra_rdoc_files: []
217
+ files:
218
+ - ".gitignore"
219
+ - ".travis.yml"
220
+ - Gemfile
221
+ - Gemfile.lock
222
+ - LICENSE.txt
223
+ - README.md
224
+ - Rakefile
225
+ - bin/console
226
+ - bin/setup
227
+ - handsome_fencer-test.gemspec
228
+ - lib/handsome_fencer/test.rb
229
+ - lib/handsome_fencer/test/version.rb
230
+ - lib/tasks/templates/Guardfile.tt
231
+ - lib/tasks/templates/test_helper.rb.tt
232
+ - lib/tasks/test.thor
233
+ homepage: https://github.com/schadenfred/handsome_fencer-test
234
+ licenses:
235
+ - MIT
236
+ metadata: {}
237
+ post_install_message:
238
+ rdoc_options: []
239
+ require_paths:
240
+ - lib
241
+ required_ruby_version: !ruby/object:Gem::Requirement
242
+ requirements:
243
+ - - ">="
244
+ - !ruby/object:Gem::Version
245
+ version: '0'
246
+ required_rubygems_version: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ requirements: []
252
+ rubyforge_project:
253
+ rubygems_version: 2.7.7
254
+ signing_key:
255
+ specification_version: 4
256
+ summary: Opinionated Rails testing suite.
257
+ test_files: []