spring-commands-rails_server 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.rspec +1 -0
- data/.rubocop.yml +82 -0
- data/.shippable.yml +2 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +71 -0
- data/LICENSE.txt +20 -0
- data/README.md +19 -0
- data/Rakefile +28 -0
- data/VERSION +1 -0
- data/lib/spring-commands-server.rb +1 -0
- data/lib/spring/commands/rails_server.rb +27 -0
- data/spring-commands-rails_server.gemspec +59 -0
- metadata +100 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9268f0e6f146f5fd64659aec1d4747df2b7a4f02
|
4
|
+
data.tar.gz: 52f8ed9c335d0de88ce8799d8293c52936fe0c22
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 611ab554b78b15c2a1ea6d32b52158719c981386eeafc034ff0966f6869394a583a09a6015a66453c4f2f499560dbaa213df0812ce3a5a82b7693a8eee7588d8
|
7
|
+
data.tar.gz: 7f1094389aeb853ab6d344da0b5c4bb383d9e120c2c3c1a684143467f2bfa459429c32b2029539a6b686ac2ab03a2245b5ba55f26188492ffb12391442dc95d4
|
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
AllCops:
|
2
|
+
DisplayCopNames: true
|
3
|
+
DisplayStyleGuide: true
|
4
|
+
Exclude:
|
5
|
+
- spring-commands-rails_server.gemspec
|
6
|
+
|
7
|
+
# https://github.com/AtomLinter/linter-rubocop/issues/2
|
8
|
+
Style/FileName:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
Metrics/CyclomaticComplexity:
|
12
|
+
Max: 10
|
13
|
+
|
14
|
+
Metrics/LineLength:
|
15
|
+
Max: 160
|
16
|
+
|
17
|
+
Metrics/MethodLength:
|
18
|
+
Max: 50
|
19
|
+
|
20
|
+
Metrics/AbcSize:
|
21
|
+
Max: 25
|
22
|
+
|
23
|
+
Metrics/ClassLength:
|
24
|
+
Max: 250
|
25
|
+
|
26
|
+
# .find_each is not the same as .each
|
27
|
+
Rails/FindEach:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Style/AccessModifierIndentation:
|
31
|
+
EnforcedStyle: outdent
|
32
|
+
|
33
|
+
Style/AlignParameters:
|
34
|
+
EnforcedStyle: with_fixed_indentation
|
35
|
+
|
36
|
+
Style/ClassAndModuleChildren:
|
37
|
+
EnforcedStyle: compact
|
38
|
+
|
39
|
+
Style/ConditionalAssignment:
|
40
|
+
Enabled: false
|
41
|
+
|
42
|
+
Style/Documentation:
|
43
|
+
Enabled: false
|
44
|
+
|
45
|
+
Style/EmptyLines:
|
46
|
+
Enabled: false
|
47
|
+
|
48
|
+
# Will report offences for many places that are much more readable without using a guard clause
|
49
|
+
Style/GuardClause:
|
50
|
+
Enabled: false
|
51
|
+
|
52
|
+
Style/MultilineMethodCallIndentation:
|
53
|
+
EnforcedStyle: indented
|
54
|
+
|
55
|
+
Style/MultilineOperationIndentation:
|
56
|
+
EnforcedStyle: indented
|
57
|
+
|
58
|
+
Style/StringLiterals:
|
59
|
+
EnforcedStyle: double_quotes
|
60
|
+
|
61
|
+
Style/StringLiteralsInInterpolation:
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
Style/NilComparison:
|
65
|
+
Enabled: false
|
66
|
+
|
67
|
+
Style/SignalException:
|
68
|
+
EnforcedStyle: only_raise
|
69
|
+
|
70
|
+
Style/MultilineOperationIndentation:
|
71
|
+
EnforcedStyle: indented
|
72
|
+
|
73
|
+
Style/SpaceInsideHashLiteralBraces:
|
74
|
+
EnforcedStyle: no_space
|
75
|
+
|
76
|
+
Style/TrivialAccessors:
|
77
|
+
ExactNameMatch: true
|
78
|
+
Enabled: true
|
79
|
+
|
80
|
+
# Disabled on purpose: https://github.com/bbatsov/rubocop/issues/1758
|
81
|
+
Style/ClosingParenthesisIndentation:
|
82
|
+
Enabled: false
|
data/.shippable.yml
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "bundler", "~> 1.0"
|
10
|
+
gem "jeweler", "~> 2.0.1"
|
11
|
+
gem "rubocop", ">= 0.39.0"
|
12
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.4.0)
|
5
|
+
ast (2.2.0)
|
6
|
+
builder (3.2.2)
|
7
|
+
descendants_tracker (0.0.4)
|
8
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
9
|
+
faraday (0.9.2)
|
10
|
+
multipart-post (>= 1.2, < 3)
|
11
|
+
git (1.2.9.1)
|
12
|
+
github_api (0.13.1)
|
13
|
+
addressable (~> 2.4.0)
|
14
|
+
descendants_tracker (~> 0.0.4)
|
15
|
+
faraday (~> 0.8, < 0.10)
|
16
|
+
hashie (>= 3.4)
|
17
|
+
multi_json (>= 1.7.5, < 2.0)
|
18
|
+
oauth2
|
19
|
+
hashie (3.4.3)
|
20
|
+
highline (1.7.8)
|
21
|
+
jeweler (2.0.1)
|
22
|
+
builder
|
23
|
+
bundler (>= 1.0)
|
24
|
+
git (>= 1.2.5)
|
25
|
+
github_api
|
26
|
+
highline (>= 1.6.15)
|
27
|
+
nokogiri (>= 1.5.10)
|
28
|
+
rake
|
29
|
+
rdoc
|
30
|
+
json (1.8.3)
|
31
|
+
jwt (1.5.2)
|
32
|
+
mini_portile2 (2.0.0)
|
33
|
+
multi_json (1.11.2)
|
34
|
+
multi_xml (0.5.5)
|
35
|
+
multipart-post (2.0.0)
|
36
|
+
nokogiri (1.6.7.2)
|
37
|
+
mini_portile2 (~> 2.0.0.rc2)
|
38
|
+
oauth2 (1.0.0)
|
39
|
+
faraday (>= 0.8, < 0.10)
|
40
|
+
jwt (~> 1.0)
|
41
|
+
multi_json (~> 1.3)
|
42
|
+
multi_xml (~> 0.5)
|
43
|
+
rack (~> 1.2)
|
44
|
+
parser (2.3.0.7)
|
45
|
+
ast (~> 2.2)
|
46
|
+
powerpack (0.1.1)
|
47
|
+
rack (1.6.4)
|
48
|
+
rainbow (2.1.0)
|
49
|
+
rake (11.1.2)
|
50
|
+
rdoc (3.12.2)
|
51
|
+
json (~> 1.4)
|
52
|
+
rubocop (0.39.0)
|
53
|
+
parser (>= 2.3.0.7, < 3.0)
|
54
|
+
powerpack (~> 0.1)
|
55
|
+
rainbow (>= 1.99.1, < 3.0)
|
56
|
+
ruby-progressbar (~> 1.7)
|
57
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
58
|
+
ruby-progressbar (1.7.5)
|
59
|
+
thread_safe (0.3.5)
|
60
|
+
unicode-display_width (1.0.3)
|
61
|
+
|
62
|
+
PLATFORMS
|
63
|
+
ruby
|
64
|
+
|
65
|
+
DEPENDENCIES
|
66
|
+
bundler (~> 1.0)
|
67
|
+
jeweler (~> 2.0.1)
|
68
|
+
rubocop (>= 0.39.0)
|
69
|
+
|
70
|
+
BUNDLED WITH
|
71
|
+
1.11.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2016 kaspernj
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# spring-commands-rails_server
|
2
|
+
|
3
|
+
The Rails server command for Spring
|
4
|
+
|
5
|
+
## Contributing to spring-commands-rails_server
|
6
|
+
|
7
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
+
* Fork the project.
|
10
|
+
* Start a feature/bugfix branch.
|
11
|
+
* Commit and push until you are happy with your contribution.
|
12
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
+
|
15
|
+
## Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2016 kaspernj. See LICENSE.txt for
|
18
|
+
further details.
|
19
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require "rubygems"
|
4
|
+
require "bundler"
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require "rake"
|
13
|
+
|
14
|
+
require "jeweler"
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
|
17
|
+
gem.name = "spring-commands-rails_server"
|
18
|
+
gem.homepage = "http://github.com/kaspernj/spring-commands-rails_server"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %(The Rails server command for Spring)
|
21
|
+
gem.description = %(The Rails server command for Spring)
|
22
|
+
gem.email = "kaspernj@gmail.com"
|
23
|
+
gem.authors = ["kaspernj"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
task default: :spec
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.0
|
@@ -0,0 +1 @@
|
|
1
|
+
require "spring/commands/rails_server" if defined?(Spring.register_command)
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Spring; end
|
2
|
+
module Spring::Commands; end
|
3
|
+
|
4
|
+
class Spring::Commands::RailsServer
|
5
|
+
def env(*)
|
6
|
+
"development"
|
7
|
+
end
|
8
|
+
|
9
|
+
def command_name
|
10
|
+
"rails"
|
11
|
+
end
|
12
|
+
|
13
|
+
def exec_name
|
14
|
+
"rails"
|
15
|
+
end
|
16
|
+
|
17
|
+
def gem_name
|
18
|
+
"rails"
|
19
|
+
end
|
20
|
+
|
21
|
+
def call
|
22
|
+
ARGV.unshift("server")
|
23
|
+
load Dir.glob(::Rails.root.join("{bin,script}/rails")).first
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
Spring.register_command "rails_server", Spring::Commands::RailsServer.new
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: spring-commands-rails_server 0.0.0 ruby lib
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "spring-commands-rails_server"
|
9
|
+
s.version = "0.0.0"
|
10
|
+
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib"]
|
13
|
+
s.authors = ["kaspernj"]
|
14
|
+
s.date = "2016-04-24"
|
15
|
+
s.description = "The Rails server command for Spring"
|
16
|
+
s.email = "kaspernj@gmail.com"
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE.txt",
|
19
|
+
"README.md"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".document",
|
23
|
+
".rspec",
|
24
|
+
".rubocop.yml",
|
25
|
+
".shippable.yml",
|
26
|
+
"Gemfile",
|
27
|
+
"Gemfile.lock",
|
28
|
+
"LICENSE.txt",
|
29
|
+
"README.md",
|
30
|
+
"Rakefile",
|
31
|
+
"VERSION",
|
32
|
+
"lib/spring-commands-server.rb",
|
33
|
+
"lib/spring/commands/rails_server.rb",
|
34
|
+
"spring-commands-rails_server.gemspec"
|
35
|
+
]
|
36
|
+
s.homepage = "http://github.com/kaspernj/spring-commands-rails_server"
|
37
|
+
s.licenses = ["MIT"]
|
38
|
+
s.rubygems_version = "2.4.0"
|
39
|
+
s.summary = "The Rails server command for Spring"
|
40
|
+
|
41
|
+
if s.respond_to? :specification_version then
|
42
|
+
s.specification_version = 4
|
43
|
+
|
44
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
45
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
46
|
+
s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
|
47
|
+
s.add_development_dependency(%q<rubocop>, [">= 0.39.0"])
|
48
|
+
else
|
49
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
50
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
51
|
+
s.add_dependency(%q<rubocop>, [">= 0.39.0"])
|
52
|
+
end
|
53
|
+
else
|
54
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
55
|
+
s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
|
56
|
+
s.add_dependency(%q<rubocop>, [">= 0.39.0"])
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
metadata
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: spring-commands-rails_server
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- kaspernj
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-04-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :development
|
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: jeweler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.0.1
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.0.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.39.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.39.0
|
55
|
+
description: The Rails server command for Spring
|
56
|
+
email: kaspernj@gmail.com
|
57
|
+
executables: []
|
58
|
+
extensions: []
|
59
|
+
extra_rdoc_files:
|
60
|
+
- LICENSE.txt
|
61
|
+
- README.md
|
62
|
+
files:
|
63
|
+
- ".document"
|
64
|
+
- ".rspec"
|
65
|
+
- ".rubocop.yml"
|
66
|
+
- ".shippable.yml"
|
67
|
+
- Gemfile
|
68
|
+
- Gemfile.lock
|
69
|
+
- LICENSE.txt
|
70
|
+
- README.md
|
71
|
+
- Rakefile
|
72
|
+
- VERSION
|
73
|
+
- lib/spring-commands-server.rb
|
74
|
+
- lib/spring/commands/rails_server.rb
|
75
|
+
- spring-commands-rails_server.gemspec
|
76
|
+
homepage: http://github.com/kaspernj/spring-commands-rails_server
|
77
|
+
licenses:
|
78
|
+
- MIT
|
79
|
+
metadata: {}
|
80
|
+
post_install_message:
|
81
|
+
rdoc_options: []
|
82
|
+
require_paths:
|
83
|
+
- lib
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
requirements: []
|
95
|
+
rubyforge_project:
|
96
|
+
rubygems_version: 2.4.0
|
97
|
+
signing_key:
|
98
|
+
specification_version: 4
|
99
|
+
summary: The Rails server command for Spring
|
100
|
+
test_files: []
|