vundle_migrator 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97f213f9b84a1cf537eb2d86dcd464dcf68ff4ea
4
- data.tar.gz: 8fa19ccbf28008ab3a60fa85f351718733138358
3
+ metadata.gz: 883e30eeb202d7b85a8d31c3f28bd7f19d9ab787
4
+ data.tar.gz: a693da7cc6303eb2f3f108f2aed9c7e0cf979aea
5
5
  SHA512:
6
- metadata.gz: 79cad8a81638031235fb972a9fee632b63291dfcea59ac9f4f43855561f0e86aa859ae7f67509f49eb1968f10ec75be02a757de82dda424541b67e74d4dab744
7
- data.tar.gz: 4ecf60a5a42e2fc50b51ff5a7202a9918266f7f5aa86d3e51152a8a485d780ad9d21bcf25522d6a7c295d0c91e968b006538c67b12668d997d91fdb537eac8b0
6
+ metadata.gz: d68de13b6285e7aae20955d8cf149c697d46bf1fd07c366f2965abfa0dd8ab4e732ebc4bc762a62533fc21a9d31252c202086847363abc64ef456d7d8b89b6fb
7
+ data.tar.gz: 935d7f65a911cf0c15d8b404710ba5bdf3301a65c4e2e4d58830ccb20d570acf85957dc24ff6e559728e45fd3063acbc0a5e04021a7f3a65c8c7ade2034dadb3
data/.gitignore CHANGED
@@ -8,3 +8,5 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  .dockerignore
11
+
12
+ *.gem
data/Dockerfile CHANGED
@@ -2,16 +2,24 @@ FROM ruby:2.3.1
2
2
 
3
3
  RUN apt-get update && apt-get install -y vim
4
4
 
5
+ # setup the vim directory
5
6
  RUN mkdir -p /root/.vim/bundle
7
+ ADD fixtures/vimrc /root/.vimrc
6
8
  RUN git clone https://github.com/scrooloose/nerdtree.git /root/.vim/bundle/nerdtree
7
9
  RUN git clone https://github.com/tpope/vim-commentary.git /root/.vim/bundle/vim-commentary
8
10
  RUN git clone https://github.com/tpope/vim-unimpaired.git /root/.vim/bundle/vim-unimpaired
9
11
  RUN git clone https://github.com/VundleVim/Vundle.vim.git /root/.vim/bundle/Vundle.vim
10
12
 
13
+ # create an alias for running vundle_migrator
11
14
  RUN echo 'alias vundle_migrator="/usr/src/app/bin/vundle_migrator -l /root/.vimrc"' >> /root/.bashrc
12
15
 
16
+ # set up the working directory
13
17
  WORKDIR /usr/src/app
14
18
  ADD . /usr/src/app
15
- ADD fixtures/vimrc /root/.vimrc
16
19
 
17
- RUN bundle install --local
20
+ # build the gem
21
+ RUN gem build vundle_migrator.gemspec
22
+
23
+ # install the gem
24
+ ARG GEM_VERSION
25
+ RUN gem install "vundle_migrator-$GEM_VERSION.gem"
data/Gemfile CHANGED
@@ -5,8 +5,3 @@ ruby '2.3.1'
5
5
  # Specify your gem's dependencies in vundle_migrator.gemspec
6
6
  gemspec
7
7
 
8
- gem 'bundler'
9
- gem 'fakefs'
10
- gem 'minitest'
11
- gem 'rake'
12
- gem 'slop'
data/Rakefile CHANGED
@@ -9,3 +9,20 @@ Rake::TestTask.new(:test) do |t|
9
9
  end
10
10
 
11
11
  task :default => :test
12
+
13
+ desc "Build the docker image"
14
+ task :docker_build do
15
+ gem_version=`cat lib/vundle_migrator/version.rb`.match(/\d\.\d\.\d/)[0]
16
+ puts %x[docker build --build-arg GEM_VERSION=#{gem_version} -t vundle_migrator .]
17
+ end
18
+ task :docker_build_image => :docker_build
19
+
20
+ desc "Run the vundle_migrator binary in docker"
21
+ task :docker_run do
22
+ puts %x[docker run -it --rm vundle_migrator bin/vundle_migrator -l /root/.vimrc]
23
+ end
24
+
25
+ desc "Run the vundle_migrator binary with the dry_run flag in docker"
26
+ task :docker_dry_run do
27
+ puts %x[docker run -it --rm vundle_migrator bin/vundle_migrator -l /root/.vimrc -r]
28
+ end
@@ -1,3 +1,3 @@
1
1
  module VundleMigrator
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -22,4 +22,5 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "minitest", "~> 5.8"
23
23
  spec.add_development_dependency "rake", "~> 11.1"
24
24
  spec.add_development_dependency "slop", "~> 4.3"
25
+ spec.add_runtime_dependency "slop", "~> 4.3"
25
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vundle_migrator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Yoder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-18 00:00:00.000000000 Z
11
+ date: 2016-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '4.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: slop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '4.3'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '4.3'
83
97
  description:
84
98
  email:
85
99
  - trayoda@gmail.com
@@ -101,7 +115,7 @@ files:
101
115
  - lib/vundle_migrator.rb
102
116
  - lib/vundle_migrator/version.rb
103
117
  - vendor/cache/fakefs-0.8.1.gem
104
- - vendor/cache/minitest-5.8.4.gem
118
+ - vendor/cache/minitest-5.9.0.gem
105
119
  - vendor/cache/rake-11.1.2.gem
106
120
  - vendor/cache/slop-4.3.0.gem
107
121
  - vundle_migrator.gemspec
Binary file