install_gem 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +31 -0
- data/bin/install_gem +24 -0
- data/lib/install_gem/version.rb +3 -0
- data/lib/install_gem.rb +5 -0
- metadata +77 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 14fbaa878c672ff6537cebb996c11dcada900705
|
4
|
+
data.tar.gz: cfd1a12f795bbdcac9fb665fd3e8a8e9a8bc4f90
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f62127463194fb0dda055d10df7392b33c3c0c4be608727de801080eb2cc8233d87fbd7c7477661caf04e724e88a280f77b731ab071afd5c3a0e06cf667aa216
|
7
|
+
data.tar.gz: 36090454e6f5625f0708ba549ae68b9510543491b3bd45298af8f55d60adb3fdd8203132eb0bf8a21cd3b6fe72b26c463536a60204ef02e278954e81f434971e
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# InstallGem
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'install_gem'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install install_gem
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
24
|
+
|
25
|
+
## Contributing
|
26
|
+
|
27
|
+
1. Fork it ( https://github.com/[my-github-username]/install_gem/fork )
|
28
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
+
5. Create a new Pull Request
|
data/bin/install_gem
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
path = ARGV[0]
|
4
|
+
Dir.chdir(path)
|
5
|
+
gem_name = File.basename(Dir["*.gemspec"].first).sub(/\.gemspec$/,'')
|
6
|
+
|
7
|
+
puts "Installing gem #{gem_name}"
|
8
|
+
puts "Gem source path is #{path}"
|
9
|
+
|
10
|
+
# rm old *.gem files
|
11
|
+
Dir["#{gem_name}-*.gem"].each do |file|
|
12
|
+
puts "Delete old *.gem file: #{file}"
|
13
|
+
File.delete(file)
|
14
|
+
end
|
15
|
+
|
16
|
+
[
|
17
|
+
"gem build #{gem_name}.gemspec",
|
18
|
+
"gem uninstall #{gem_name} -x -a -I",
|
19
|
+
"gem install #{gem_name}-*.gem"
|
20
|
+
].each do |cmd|
|
21
|
+
puts "running command: #{cmd}"
|
22
|
+
puts `#{cmd}`
|
23
|
+
end
|
24
|
+
|
data/lib/install_gem.rb
ADDED
metadata
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: install_gem
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- mqzhang
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-08-03 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ~>
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '1.6'
|
25
|
+
prerelease: false
|
26
|
+
type: :development
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ~>
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '10.0'
|
39
|
+
prerelease: false
|
40
|
+
type: :development
|
41
|
+
description: Used for GEM dev. It will uninstall the old version of the given gem, and install the new one.
|
42
|
+
email:
|
43
|
+
- zmingqian@qq.com
|
44
|
+
executables:
|
45
|
+
- install_gem
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- lib/install_gem.rb
|
50
|
+
- lib/install_gem/version.rb
|
51
|
+
- bin/install_gem
|
52
|
+
- README.md
|
53
|
+
homepage: https://github.com/mqzhang/install_gem
|
54
|
+
licenses:
|
55
|
+
- MIT
|
56
|
+
metadata: {}
|
57
|
+
post_install_message:
|
58
|
+
rdoc_options: []
|
59
|
+
require_paths:
|
60
|
+
- lib
|
61
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
requirements: []
|
72
|
+
rubyforge_project:
|
73
|
+
rubygems_version: 2.1.9
|
74
|
+
signing_key:
|
75
|
+
specification_version: 4
|
76
|
+
summary: A GEM to install local gem for testing.
|
77
|
+
test_files: []
|