gitver 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/README.md +3 -3
- data/Rakefile +1 -1
- data/bin/gitver +20 -1
- metadata +5 -7
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NDZhNDU4ZGE4MzM4MDhmZjYzYmVhYzhiNmJmZTEwZDIxZWQxZDFkNw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MmFlZThmN2Y1OWU3MjIwMWJhNGJkMTM5ZjlhYjJlYTJiNDMwMWQ1Yg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MmFmMmVkZWY1OWI0YzdhNGY3ZDU3YTg5YjZkOTVjZGM0OWJkZjU1MjFmMGJi
|
10
|
+
Nzk3YWQ1YTRhNGM2NDAyZWYxMTIwZjJiOTY5MjdjOGRhZjZlZjVkYTNkMmU4
|
11
|
+
NDJmMDg1ZDNmMTIyNTA3Y2QwZTc3ZDk2MmY4NDI2Y2RjYjgxNzk=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YzU0ZGU1ZDgwMmU3Mjk5YTcwNTBhNGMyNmFmMGIxY2E0NzIxOWU3YWY4MTdi
|
14
|
+
YjQ0ODU3ZWJkMWIzYjRkNTZhMGNhNjQyZDcxM2VjN2M3YTg4MGFlYTc2MGVh
|
15
|
+
NDJlODMzNTJjNmJkY2Y4MzExOGEwNDJhOTc2ZjcxM2Q0MDgzMzk=
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
GitVer - Ruby Gem Auto Versioning
|
2
|
+
=================================
|
3
3
|
|
4
4
|
Usage
|
5
5
|
-----
|
@@ -13,7 +13,7 @@ to make a ruby gem I do the following.
|
|
13
13
|
```
|
14
14
|
git clone https://github.com/floomby/gemness.git
|
15
15
|
cd gemness
|
16
|
-
|
16
|
+
gitver install
|
17
17
|
```
|
18
18
|
* Then edit the Rakefile to suit you needs
|
19
19
|
* Code your gem
|
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'rubygems/package_task'
|
|
3
3
|
|
4
4
|
spec = Gem::Specification.new do |gem|
|
5
5
|
gem.name = File.basename(`git rev-parse --show-toplevel`).chop
|
6
|
-
gem.version = `
|
6
|
+
gem.version = `gitver version`
|
7
7
|
|
8
8
|
gem.author = `git config --get user.name`
|
9
9
|
gem.email = `git config --get user.email`
|
data/bin/gitver
CHANGED
@@ -2,10 +2,29 @@
|
|
2
2
|
|
3
3
|
# Simple gem auto versioning with git
|
4
4
|
|
5
|
+
require 'net/http'
|
6
|
+
|
5
7
|
class GitVer
|
6
8
|
|
7
9
|
def self.install
|
8
|
-
|
10
|
+
File.open 'Rakefile', 'w' do |f|
|
11
|
+
uri = URI.parse 'https://raw.githubusercontent.com/floomby/gitver/master/templates/Rakefile'
|
12
|
+
http = Net::HTTP.new uri.host, uri.port
|
13
|
+
http.use_ssl = true
|
14
|
+
|
15
|
+
req = Net::HTTP::Get.new uri.request_uri
|
16
|
+
|
17
|
+
f.write (http.request req).body
|
18
|
+
end
|
19
|
+
begin
|
20
|
+
(File.readlines '.gitignore').each do |line|
|
21
|
+
if line.match /^\W*\/pkg\W*$/
|
22
|
+
return
|
23
|
+
end
|
24
|
+
end
|
25
|
+
rescue
|
26
|
+
end
|
27
|
+
File.open('.gitignore', 'a'){ |f| f.write '/pkg' }
|
9
28
|
end
|
10
29
|
|
11
30
|
# get the last release
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- ! 'floomby
|
@@ -11,7 +10,7 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date: 2014-
|
13
|
+
date: 2014-06-19 00:00:00.000000000 Z
|
15
14
|
dependencies: []
|
16
15
|
description: Does versioning, releasing and testing of rubygems with git
|
17
16
|
email: ! 'floomby@nmt.edu
|
@@ -28,26 +27,25 @@ files:
|
|
28
27
|
- bin/gitver
|
29
28
|
homepage: https://github.com/floomby/gitver.git
|
30
29
|
licenses: []
|
30
|
+
metadata: {}
|
31
31
|
post_install_message:
|
32
32
|
rdoc_options: []
|
33
33
|
require_paths:
|
34
34
|
- lib
|
35
35
|
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
-
none: false
|
37
36
|
requirements:
|
38
37
|
- - ! '>='
|
39
38
|
- !ruby/object:Gem::Version
|
40
39
|
version: '0'
|
41
40
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
41
|
requirements:
|
44
42
|
- - ! '>='
|
45
43
|
- !ruby/object:Gem::Version
|
46
44
|
version: '0'
|
47
45
|
requirements: []
|
48
46
|
rubyforge_project:
|
49
|
-
rubygems_version:
|
47
|
+
rubygems_version: 2.2.2
|
50
48
|
signing_key:
|
51
|
-
specification_version:
|
49
|
+
specification_version: 4
|
52
50
|
summary: Ruby gem integration with git
|
53
51
|
test_files: []
|