pumper 0.0.1 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +22 -0
- data/README.md +74 -0
- data/bin/pumper +8 -7
- data/lib/command/repository.rb +1 -1
- data/lib/pumper/version.rb +1 -1
- data/pumper.gemspec +1 -1
- metadata +7 -7
- data/Gemfile.lock.stash +0 -53
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69929f85b7b5138d6690a442d88f0f7b0aabf63f
|
4
|
+
data.tar.gz: ee3711908b8207d18225a3a39142bbdd6236afa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9c44a677c0e52ef129651c2e5ed36536b2d67ba7c41e887faae8d23d64a5926f0c199ca05be38bf118928997b3836b710b00550a9f4d189b9f92039a1194644
|
7
|
+
data.tar.gz: ea0ca03f026b3ed476ca7d4831c4fda13f171d97193a3be1a3fa514c71f15776b4c3b21c6b85fcfd8da5ad1cff959628631f2c6ed5e50e0fcb3ba54f1f9f0775
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 ssnikolay
|
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
CHANGED
@@ -1,2 +1,76 @@
|
|
1
1
|
[![Build Status](https://travis-ci.org/ssnikolay/pumper.svg?branch=master)](https://travis-ci.org/ssnikolay/pumper)
|
2
2
|
|
3
|
+
Pumper
|
4
|
+
======
|
5
|
+
|
6
|
+
**Pumper**
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
Add it to your .gemspec:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
spec.add_development_dependency 'pumper'
|
14
|
+
```
|
15
|
+
|
16
|
+
Run the following command to install it:
|
17
|
+
|
18
|
+
```sh
|
19
|
+
$ bundle install
|
20
|
+
```
|
21
|
+
|
22
|
+
Or install without gemspec:
|
23
|
+
|
24
|
+
```sh
|
25
|
+
$ gem install pumper
|
26
|
+
```
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
|
30
|
+
Basic **Pumper** use:
|
31
|
+
|
32
|
+
+ your_gem
|
33
|
+
- your_gem.gemspec
|
34
|
+
- ...
|
35
|
+
+ rails_project
|
36
|
+
- app
|
37
|
+
- Gemfile
|
38
|
+
- ...
|
39
|
+
|
40
|
+
```sh
|
41
|
+
$ pwd
|
42
|
+
=> /Users/admin/Projects/your_gem
|
43
|
+
$ pumper -p rails_project
|
44
|
+
=>
|
45
|
+
rm -rf pkg && bundle exec rake build
|
46
|
+
your_gem 0.0.1 built to pkg/your_gem-0.0.1.gem.
|
47
|
+
gem uninstall your_gem --all -x
|
48
|
+
gem install ./pkg/your_gem-0.0.1.gem && cd /Users/admin/Projects/rails_project && bundle install
|
49
|
+
Successfully installed your_gem-0.0.1
|
50
|
+
1 gem installed
|
51
|
+
Success bump current gem
|
52
|
+
```
|
53
|
+
|
54
|
+
### Options
|
55
|
+
|
56
|
+
Option | Description
|
57
|
+
------------------------- |:-----------------------------------------------------------
|
58
|
+
`--project` | Path to ruby project where need update current gem
|
59
|
+
`--absolute_path` | If project path is absolute
|
60
|
+
`--gemspec` | Path to .gemspec (default search in current folder *.gemspec)
|
61
|
+
`--gemset` | Gemset name (if you use RVM)
|
62
|
+
`--vendor` | If project gems stored in the vendor/cache
|
63
|
+
|
64
|
+
Example:
|
65
|
+
|
66
|
+
```sh
|
67
|
+
$ pumper --project rails_project --gemset ruby-2.1.0@rails_project --vendor
|
68
|
+
=>
|
69
|
+
rm -rf pkg && bundle exec rake build
|
70
|
+
your_gem 0.0.1 built to pkg/your_gem-0.0.1.gem.
|
71
|
+
rvm ruby-2.1.0@my-app exec gem uninstall your_gem --all -x
|
72
|
+
Successfully uninstalled your_gem-0.0.1
|
73
|
+
cp pkg/* /Users/admin/Project/rails_project/vendor/cache && cd /Users/admin/Project/rails_project && rvm ruby-2.1.0@rails_project exec bundle install --local
|
74
|
+
Installing your_gem 0.0.1
|
75
|
+
Success bump current gem
|
76
|
+
```
|
data/bin/pumper
CHANGED
@@ -7,24 +7,25 @@ options = Hash.new
|
|
7
7
|
opts = OptionParser.new do |opts|
|
8
8
|
opts.banner = %q[Bumper]
|
9
9
|
|
10
|
-
opts.on('-p', '--project PROJECT_PATH', '
|
10
|
+
opts.on('-p', '--project PROJECT_PATH', 'Path to ruby project where need update current gem') do |project|
|
11
11
|
options[:project] = project
|
12
12
|
end
|
13
13
|
|
14
|
+
opts.on('-a', '--absolute_path', 'If project path is absolute') do
|
15
|
+
options[:absolute_path] = true
|
16
|
+
end
|
17
|
+
|
14
18
|
# Default find in current folder file *.gemspec
|
15
|
-
opts.on('-s', '--gemspec GEMSPEC_PATH', '
|
19
|
+
opts.on('-s', '--gemspec GEMSPEC_PATH', 'Path to .gemspec (default search in current folder *.gemspec)') do |gemspec|
|
16
20
|
options[:gemspec] = gemspec
|
17
21
|
end
|
18
22
|
|
19
|
-
opts.on('-g', '--gemset GEMSET', '
|
23
|
+
opts.on('-g', '--gemset GEMSET', 'Gemset name (if you use rvm)') do |gemset|
|
20
24
|
options[:gemset] = gemset
|
21
25
|
end
|
22
26
|
|
23
|
-
opts.on('-a', '--absolute_path', 'If project absolute path') do
|
24
|
-
options[:absolute_path] = true
|
25
|
-
end
|
26
27
|
|
27
|
-
opts.on('-e', '--vendor', 'If
|
28
|
+
opts.on('-e', '--vendor', 'If project gems stored in the vendor/cache') do
|
28
29
|
options[:vendor] = true
|
29
30
|
end
|
30
31
|
end
|
data/lib/command/repository.rb
CHANGED
data/lib/pumper/version.rb
CHANGED
data/pumper.gemspec
CHANGED
@@ -22,5 +22,5 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_development_dependency 'rspec', '~> 3.1'
|
23
23
|
s.add_development_dependency 'rspec-its', '~> 1.1'
|
24
24
|
s.add_development_dependency 'pry'
|
25
|
-
s.add_development_dependency 'activesupport'
|
25
|
+
s.add_development_dependency 'activesupport'
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pumper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikolay Sverchkov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: activesupport
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
description: Gem for move another gems to dependent projects
|
70
70
|
email:
|
71
71
|
- ssnikolay@gmail.com
|
@@ -78,8 +78,8 @@ files:
|
|
78
78
|
- ".rspec"
|
79
79
|
- ".travis.yml"
|
80
80
|
- Gemfile
|
81
|
-
- Gemfile.lock.stash
|
82
81
|
- LICENSE
|
82
|
+
- MIT-LICENSE
|
83
83
|
- README.md
|
84
84
|
- Rakefile
|
85
85
|
- bin/pumper
|
data/Gemfile.lock.stash
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
pumper (0.0.1)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
activesupport (4.2.0)
|
10
|
-
i18n (~> 0.7)
|
11
|
-
json (~> 1.7, >= 1.7.7)
|
12
|
-
minitest (~> 5.1)
|
13
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
14
|
-
tzinfo (~> 1.1)
|
15
|
-
coderay (1.1.0)
|
16
|
-
diff-lcs (1.2.5)
|
17
|
-
i18n (0.7.0)
|
18
|
-
json (1.8.1)
|
19
|
-
method_source (0.8.2)
|
20
|
-
minitest (5.5.0)
|
21
|
-
pry (0.10.1)
|
22
|
-
coderay (~> 1.1.0)
|
23
|
-
method_source (~> 0.8.1)
|
24
|
-
slop (~> 3.4)
|
25
|
-
rspec (3.1.0)
|
26
|
-
rspec-core (~> 3.1.0)
|
27
|
-
rspec-expectations (~> 3.1.0)
|
28
|
-
rspec-mocks (~> 3.1.0)
|
29
|
-
rspec-core (3.1.7)
|
30
|
-
rspec-support (~> 3.1.0)
|
31
|
-
rspec-expectations (3.1.2)
|
32
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
33
|
-
rspec-support (~> 3.1.0)
|
34
|
-
rspec-its (1.1.0)
|
35
|
-
rspec-core (>= 3.0.0)
|
36
|
-
rspec-expectations (>= 3.0.0)
|
37
|
-
rspec-mocks (3.1.3)
|
38
|
-
rspec-support (~> 3.1.0)
|
39
|
-
rspec-support (3.1.2)
|
40
|
-
slop (3.6.0)
|
41
|
-
thread_safe (0.3.4)
|
42
|
-
tzinfo (1.2.2)
|
43
|
-
thread_safe (~> 0.1)
|
44
|
-
|
45
|
-
PLATFORMS
|
46
|
-
ruby
|
47
|
-
|
48
|
-
DEPENDENCIES
|
49
|
-
activesupport (~> 4.2)
|
50
|
-
pry
|
51
|
-
pumper!
|
52
|
-
rspec (~> 3.1)
|
53
|
-
rspec-its (~> 1.1)
|