gemtoabox 0.1.1 → 0.1.2
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 +4 -4
- data/README.md +14 -16
- data/{bin → exe}/gemtoabox +4 -4
- data/gemtoabox.gemspec +16 -15
- data/lib/gemtoabox/version.rb +1 -1
- metadata +9 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71942f1690c9b97759b94fc07b6b6e7334b56e0d
|
4
|
+
data.tar.gz: 980663f86195d0b60217b9d18538ff2a2bfda7be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a453784aafa65c937abab94e49c83d0d36f85abdab0b1922293f2057672acd945cfcb5c9adcba9a640cd5166406d07114c18004ee8c53daa7effe7260e0afc4
|
7
|
+
data.tar.gz: c4a7771c1a03e4337fae2e84cba13db136673d9291f5d786736fc969aaf43ec4a569e6dd267086824e89a47b40991c1fc2e0075803c42ac348b069dc70d6904b
|
data/README.md
CHANGED
@@ -1,19 +1,23 @@
|
|
1
1
|
# Gemtoabox
|
2
2
|
|
3
3
|
This gem provides the ability to backup your project gems to the private rubygem hosting on remote or local machine.
|
4
|
-
All you need is to specify path to your project Gemfile.
|
5
|
-
|
6
|
-
###### Advantages
|
7
|
-
- Gems dependencies resolving operation performs on your machine, on your environment.
|
4
|
+
All you need is to specify path to your project Gemfile and all your gems will be copied to the `geminabox` rubygems hosting.
|
5
|
+
|
6
|
+
###### Advantages
|
7
|
+
- Gems dependencies resolving operation performs on your machine, on your environment.
|
8
8
|
That means you may be sure you save exact same gems versions you use on your project.
|
9
9
|
- Easy to use - just run executable bin file with your patamaters.
|
10
|
+
<<<<<<< HEAD
|
10
11
|
- Extremely easy to deploy your own rebygem server with [geminabox](https://hub.docker.com/r/spoonest/geminabox) docker image:
|
11
|
-
|
12
|
+
|
12
13
|
```bash
|
13
14
|
docker run -d --name geminabox -e RUBYGEMS_PROXY=true -e PRIVATE=true \
|
14
15
|
-v /local_path_where_to_store_gems:/webapps/geminabox/data -p 9292:9292 -P -h geminabox \
|
15
16
|
-e USERNAME=myuser -e PASSWORD=mypassword spoonest/geminabox:latest
|
16
17
|
```
|
18
|
+
=======
|
19
|
+
- Extremely easy to deploy your own rebygem server with [geminabox](https://hub.docker.com/r/spoonest/geminabox) docker image.
|
20
|
+
>>>>>>> 5c2455691135a628b5dfc5b040424253df0c3035
|
17
21
|
|
18
22
|
###### Disadvantages
|
19
23
|
- This gem doesn't have any tests so feel free to contribute.
|
@@ -21,9 +25,9 @@ docker run -d --name geminabox -e RUBYGEMS_PROXY=true -e PRIVATE=true \
|
|
21
25
|
|
22
26
|
## Requirements
|
23
27
|
|
24
|
-
- Bundler should be installed
|
28
|
+
- Bundler should be installed
|
25
29
|
- [geminabox](https://github.com/geminabox/geminabox) gem should be installed
|
26
|
-
|
30
|
+
|
27
31
|
## Installation
|
28
32
|
|
29
33
|
Add this line to your application's Gemfile:
|
@@ -38,19 +42,13 @@ Or install it yourself as:
|
|
38
42
|
|
39
43
|
## Usage
|
40
44
|
|
41
|
-
Get help:
|
45
|
+
Get help:
|
42
46
|
|
43
|
-
|
47
|
+
gemtoabox --help
|
44
48
|
|
45
49
|
Run upload process:
|
46
50
|
|
47
|
-
|
48
|
-
|
49
|
-
## Development
|
50
|
-
|
51
|
-
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
52
|
-
|
53
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
51
|
+
gemtoabox --gemfile /your_project/Gemfile --host http://<USER>:<PASSWORD>@<HOST>:<PORT>
|
54
52
|
|
55
53
|
## Contributing
|
56
54
|
|
data/{bin → exe}/gemtoabox
RENAMED
@@ -2,11 +2,11 @@
|
|
2
2
|
# encoding: UTF-8
|
3
3
|
|
4
4
|
# resolve bin path, ignoring symlinks
|
5
|
-
require
|
5
|
+
require 'pathname'
|
6
6
|
bin_file = Pathname.new(__FILE__).realpath
|
7
7
|
|
8
8
|
# add self to libpath
|
9
|
-
$:.unshift File.expand_path(
|
9
|
+
$:.unshift File.expand_path('../../lib', bin_file)
|
10
10
|
|
11
11
|
require "#{Pathname.new(__FILE__).parent.parent}/lib/gemtoabox"
|
12
12
|
include Gemtoabox
|
@@ -14,8 +14,8 @@ include Gemtoabox
|
|
14
14
|
# parse options
|
15
15
|
require 'trollop'
|
16
16
|
opts = Trollop::options do
|
17
|
-
opt :gemfile,
|
18
|
-
opt :host,
|
17
|
+
opt :gemfile, 'path to Gemfile', :type => :string
|
18
|
+
opt :host, 'Geminabox host in format http://<USER>:<PASSWORD>@<HOST>:<PORT>', :type => :string
|
19
19
|
opt :overwrite, 'Overwrite gems on versions conflicts'
|
20
20
|
end
|
21
21
|
|
data/gemtoabox.gemspec
CHANGED
@@ -4,24 +4,25 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'gemtoabox/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name
|
8
|
-
spec.version
|
9
|
-
spec.authors
|
10
|
-
spec.email
|
7
|
+
spec.name = 'gemtoabox'
|
8
|
+
spec.version = Gemtoabox::VERSION
|
9
|
+
spec.authors = ['Yury Karpovich']
|
10
|
+
spec.email = %w(spoonest@gmail.com yuri.karpovich@gmail.com)
|
11
11
|
|
12
|
-
spec.summary
|
13
|
-
spec.description
|
12
|
+
spec.summary = %q{Uploads gems from your Gemfile to your own private rubygems hosting}
|
13
|
+
spec.description = %q{This gem provides the ability to backup your project gems to the private rubygem hosting on remote or local machine.
|
14
14
|
All you need is to specify path to your project Gemfile. }
|
15
|
-
spec.homepage
|
15
|
+
spec.homepage = 'https://github.com/yuri-karpovich/gemtoabox'
|
16
|
+
spec.license = 'MIT'
|
16
17
|
|
17
18
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
-
spec.bindir =
|
19
|
-
spec.executables =
|
20
|
-
spec.require_paths = [
|
19
|
+
spec.bindir = 'exe'
|
20
|
+
spec.executables = ['gemtoabox']
|
21
|
+
spec.require_paths = ['lib']
|
21
22
|
|
22
|
-
spec.add_development_dependency
|
23
|
-
spec.add_development_dependency
|
24
|
-
spec.add_development_dependency
|
25
|
-
spec.add_dependency
|
26
|
-
spec.add_dependency
|
23
|
+
spec.add_development_dependency 'bundler', '~> 1.11'
|
24
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
25
|
+
spec.add_development_dependency 'rspec', '~> 3.2', '>= 3.2.0'
|
26
|
+
spec.add_dependency 'geminabox', '~> 0.13', '>= 0.13.0'
|
27
|
+
spec.add_dependency 'trollop', '~> 2.1', '>= 2.1.2'
|
27
28
|
end
|
data/lib/gemtoabox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemtoabox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Yury Karpovich
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -103,7 +103,9 @@ description: "This gem provides the ability to backup your project gems to the p
|
|
103
103
|
your project Gemfile. "
|
104
104
|
email:
|
105
105
|
- spoonest@gmail.com
|
106
|
-
|
106
|
+
- yuri.karpovich@gmail.com
|
107
|
+
executables:
|
108
|
+
- gemtoabox
|
107
109
|
extensions: []
|
108
110
|
extra_rdoc_files: []
|
109
111
|
files:
|
@@ -113,13 +115,14 @@ files:
|
|
113
115
|
- README.md
|
114
116
|
- Rakefile
|
115
117
|
- bin/console
|
116
|
-
- bin/gemtoabox
|
117
118
|
- bin/setup
|
119
|
+
- exe/gemtoabox
|
118
120
|
- gemtoabox.gemspec
|
119
121
|
- lib/gemtoabox.rb
|
120
122
|
- lib/gemtoabox/version.rb
|
121
123
|
homepage: https://github.com/yuri-karpovich/gemtoabox
|
122
|
-
licenses:
|
124
|
+
licenses:
|
125
|
+
- MIT
|
123
126
|
metadata: {}
|
124
127
|
post_install_message:
|
125
128
|
rdoc_options: []
|