spring-commands-standard 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4c9e6f5ed86082e67c8c090fd6327a94adf5976dad05e0de3d758a9a12cb1ed8
4
+ data.tar.gz: 79f5c2e18af11c5839cf666ad075cebbb6932d89f45d47c9e18ff5a26bd038f4
5
+ SHA512:
6
+ metadata.gz: 34b02c33a0968b05630cd550b5d2370e0dcf6d3de326eb55cb6e2de79d46b980f5ed909cb2017f9b2640cf33db85e6dba3b090f2049070cae79241dffc4d4b23
7
+ data.tar.gz: 81420a4f2da745d9ac25c25f8599c8e3ddb8c5f78a3bcf04d27f61e44a4f24380c85bd8136e255056ec52ea1e9bb7a07304a170c562fd453129d7acec78cabd1
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ pkg/
2
+ tmp/
3
+ .bundle/
4
+ vendor/bundle/
5
+ Gemfile.lock
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Louis-Alban KIM
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # spring-commands-standard
2
+
3
+ Add support of [standard](https://github.com/testdouble/standard) for [spring](https://github.com/rails/spring).
4
+
5
+ ## Usage
6
+
7
+ Add to your Gemfile:
8
+
9
+ ```ruby
10
+ gem 'spring-commands-standard', group: :development
11
+ ```
12
+
13
+ Create the `bin/standardrb` binstub:
14
+
15
+ ```ruby
16
+ bundle exec spring binstub standardrb
17
+ bundle exec spring stop
18
+ ```
19
+
20
+ Check that it is working:
21
+
22
+ ```ruby
23
+ $ bin/standardrb
24
+ Running via Spring preloader in process 26568
25
+ ...
26
+ ```
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,3 @@
1
+ if defined?(Spring.register_command)
2
+ require "spring/commands/standard"
3
+ end
@@ -0,0 +1,19 @@
1
+ module Spring
2
+ module Commands
3
+ class Standard
4
+ def env(*)
5
+ "development"
6
+ end
7
+
8
+ def exec_name
9
+ "standardrb"
10
+ end
11
+
12
+ def gem_name
13
+ "standard"
14
+ end
15
+ end
16
+
17
+ Spring.register_command "standardrb", Standard.new
18
+ end
19
+ end
@@ -0,0 +1,21 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+
4
+ Gem::Specification.new do |spec|
5
+ spec.name = 'spring-commands-standard'
6
+ spec.version = '0.0.1'
7
+ spec.author = 'Louis-Alban KIM'
8
+ spec.email = 'louis@lakim.fr'
9
+ spec.description = 'Standard command for Spring'
10
+ spec.summary = 'Standard command for Spring'
11
+ spec.homepage = 'https://github.com/lakim/spring-commands-standard'
12
+ spec.license = 'MIT'
13
+
14
+ spec.files = `git ls-files`.split($/)
15
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
16
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
+ spec.require_paths = ['lib']
18
+
19
+ spec.add_dependency 'spring', '>= 1.0', '< 3.0'
20
+ spec.add_development_dependency 'rake'
21
+ end
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spring-commands-standard
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Louis-Alban KIM
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-04-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: spring
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: rake
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ description: Standard command for Spring
48
+ email: louis@lakim.fr
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files: []
52
+ files:
53
+ - ".gitignore"
54
+ - Gemfile
55
+ - LICENSE
56
+ - README.md
57
+ - Rakefile
58
+ - lib/spring-commands-standard.rb
59
+ - lib/spring/commands/standard.rb
60
+ - spring-commands-standard.gemspec
61
+ homepage: https://github.com/lakim/spring-commands-standard
62
+ licenses:
63
+ - MIT
64
+ metadata: {}
65
+ post_install_message:
66
+ rdoc_options: []
67
+ require_paths:
68
+ - lib
69
+ required_ruby_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ requirements: []
80
+ rubygems_version: 3.0.3
81
+ signing_key:
82
+ specification_version: 4
83
+ summary: Standard command for Spring
84
+ test_files: []