spring-commands-thor 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/LICENSE.txt +13 -0
- data/README.md +21 -0
- data/Rakefile +1 -0
- data/lib/spring-commands-thor.rb +3 -0
- data/lib/spring/commands/thor.rb +23 -0
- data/spring-commands-thor.gemspec +24 -0
- metadata +94 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 350d0f4c8be9fd42dccf75ac1917c3b1282addac
|
4
|
+
data.tar.gz: 83c3a0789a93dd9c7a4550cedeeb697d5a8ed112
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5eec52c6c972e85164728dbbb31beb1fbc5dd587a70cc50a582609186c6c1db5d1f496e1e257c57ec4295713a7e84a7b1384ba59aa9a54a72365bb075608828e
|
7
|
+
data.tar.gz: 566de10c30184d7c4b1229fbcf0c6c441851fbec41ba4235f61620f88f4b548f48b739ba855469ae6980b2a69019c6b4543f2b1cc53172bf2c67c1cd151e5c13
|
data/.gitignore
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
Copyright 2016 Chanaka Sandaruwan
|
2
|
+
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
6
|
+
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
data/README.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# spring-commands-thor
|
2
|
+
|
3
|
+
This gem implements the `thor` command for [Spring](https://github.com/rails/spring).
|
4
|
+
So this gem helps to make the [Thor](https://github.com/erikhuda/thor) console commands run faster.
|
5
|
+
|
6
|
+
## Usage
|
7
|
+
|
8
|
+
* Just add it to your Gemfile:
|
9
|
+
``` ruby
|
10
|
+
gem 'spring-commands-thor', group: :development
|
11
|
+
```
|
12
|
+
|
13
|
+
* Run `bundle install`
|
14
|
+
|
15
|
+
* That's it. Now you can prepend `spring` to your thor commands like below.
|
16
|
+
```
|
17
|
+
spring thor my_rails_app:my_command
|
18
|
+
```
|
19
|
+
|
20
|
+
If you're using spring binstubs, run `bin/spring binstub thor` to generate `bin/thor`.
|
21
|
+
Then run `spring stop` to pick up the changes.
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Spring
|
2
|
+
module Commands
|
3
|
+
class Thor
|
4
|
+
def env(*)
|
5
|
+
"development"
|
6
|
+
end
|
7
|
+
|
8
|
+
def exec_name
|
9
|
+
"thor"
|
10
|
+
end
|
11
|
+
|
12
|
+
def gem_name
|
13
|
+
"thor"
|
14
|
+
end
|
15
|
+
|
16
|
+
def call
|
17
|
+
load Gem.bin_path(gem_name, exec_name)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
Spring.register_command "thor", Thor.new
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "spring-commands-thor"
|
7
|
+
spec.version = "1.0.1"
|
8
|
+
spec.authors = ["Chanaka Sandaruwan"]
|
9
|
+
spec.email = ["chanakasan@gmail.com"]
|
10
|
+
spec.description = %q{This gem implements the thor command for Spring. So this gem helps to make the Thor console commands run faster.}
|
11
|
+
spec.summary = %q{thor command for spring}
|
12
|
+
spec.homepage = "https://github.com/chanakasan/spring-commands-thor"
|
13
|
+
spec.license = "Apache License, Version 2.0"
|
14
|
+
|
15
|
+
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_dependency "spring", ">= 0.9.1"
|
21
|
+
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
23
|
+
spec.add_development_dependency "rake", "~> 0"
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: spring-commands-thor
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Chanaka Sandaruwan
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-10 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: 0.9.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.9.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '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'
|
55
|
+
description: This gem implements the thor command for Spring. So this gem helps to
|
56
|
+
make the Thor console commands run faster.
|
57
|
+
email:
|
58
|
+
- chanakasan@gmail.com
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- ".gitignore"
|
64
|
+
- LICENSE.txt
|
65
|
+
- README.md
|
66
|
+
- Rakefile
|
67
|
+
- lib/spring-commands-thor.rb
|
68
|
+
- lib/spring/commands/thor.rb
|
69
|
+
- spring-commands-thor.gemspec
|
70
|
+
homepage: https://github.com/chanakasan/spring-commands-thor
|
71
|
+
licenses:
|
72
|
+
- Apache License, Version 2.0
|
73
|
+
metadata: {}
|
74
|
+
post_install_message:
|
75
|
+
rdoc_options: []
|
76
|
+
require_paths:
|
77
|
+
- lib
|
78
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
requirements: []
|
89
|
+
rubyforge_project:
|
90
|
+
rubygems_version: 2.2.3
|
91
|
+
signing_key:
|
92
|
+
specification_version: 4
|
93
|
+
summary: thor command for spring
|
94
|
+
test_files: []
|