spring-commands-rubocop 0.1.0

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
+ SHA1:
3
+ metadata.gz: 3f5829882a87cb41b1b8ac97b5cee5d001052549
4
+ data.tar.gz: 4c2af58941f3b79abbb0ba0bdc232121ca804847
5
+ SHA512:
6
+ metadata.gz: 73b7484454a1037a486ce3b7dc4c8f4d5f84ff5417ed588b16bf87b005f69857e3a3b1199e84e7353fe5147caeff653ae3e3b88f5973a1641c7c5560ee6ed91d
7
+ data.tar.gz: bf85af6ffe3e50cd0afbfe09bf3cb112b6e76808a4be67edcd4fd5130e3116e7db7cbf32a9bcc21a50671d428cce542c5441c79b73f71e3a0591ee125f901862
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.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Alex Rodionov
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # spring-commands-rubocop
2
+
3
+ Implements `rubocop` command for [Spring](https://github.com/rails/spring).
4
+
5
+ ## Usage
6
+
7
+ Add to your Gemfile:
8
+
9
+ ``` ruby
10
+ gem 'spring-commands-rubocop', group: :development
11
+ ```
12
+
13
+ If you use spring binstubs, run `bundle exec spring binstub rubocop` to generate `bin/rubocop`.
14
+ Then run `spring stop` to pick up the changes.
15
+
16
+ ## Copyright
17
+
18
+ Copyright (c) 2015 Alex Rodionov. See LICENSE.txt for details.
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,15 @@
1
+ module Spring
2
+ module Commands
3
+ class RuboCop
4
+ def env(*)
5
+ 'development'
6
+ end
7
+
8
+ def exec_name
9
+ 'rubocop'
10
+ end
11
+ end
12
+
13
+ Spring.register_command 'rubocop', RuboCop.new
14
+ end
15
+ end
@@ -0,0 +1,3 @@
1
+ if defined?(Spring.register_command)
2
+ require "spring/commands/rubocop"
3
+ 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-rubocop'
6
+ spec.version = '0.1.0'
7
+ spec.author = 'Alex Rodionov'
8
+ spec.email = 'p0deje@gmail.com'
9
+ spec.description = 'RuboCop command for Spring'
10
+ spec.summary = 'RuboCop command for Spring'
11
+ spec.homepage = 'https://github.com/p0deje/spring-commands-rubocop'
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'
20
+ spec.add_development_dependency 'rake'
21
+ end
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: spring-commands-rubocop
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Alex Rodionov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-11-17 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
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: RuboCop command for Spring
42
+ email: p0deje@gmail.com
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files: []
46
+ files:
47
+ - ".gitignore"
48
+ - Gemfile
49
+ - LICENSE.txt
50
+ - README.md
51
+ - Rakefile
52
+ - lib/spring-commands-rubocop.rb
53
+ - lib/spring/commands/rubocop.rb
54
+ - spring-commands-rspec.gemspec
55
+ homepage: https://github.com/p0deje/spring-commands-rubocop
56
+ licenses:
57
+ - MIT
58
+ metadata: {}
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ requirements: []
74
+ rubyforge_project:
75
+ rubygems_version: 2.4.5.1
76
+ signing_key:
77
+ specification_version: 4
78
+ summary: RuboCop command for Spring
79
+ test_files: []