code_version 0.1.1 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/controllers/code_version/code_versions_controller.rb +2 -2
- data/lib/code_version/version.rb +1 -1
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5080c884468a1e7990372416d0480b25970e4c37
|
4
|
+
data.tar.gz: 8ed2ef560e1116a0cd979cc20f933c321c498774
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a6f64f96fb534fd57e60eafcd15e377fa88a40b88126afa539b8372e8de3fd336d96e577cf32608ede0d961a03584bfed6c50b4a4f7cd541b2268453fff4448
|
7
|
+
data.tar.gz: fb484c22007c6a1ddf505a52a5111577c918de1945f8a965e6a209e87f648ad87f08a7798fca2ceb60665476541e4b6465800b4396570ee79b1e7236911526a8
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ Url example: http://your_domain/code_version/show
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem 'code_version'
|
12
|
+
gem 'code_version', '~> 0.1.1'
|
13
13
|
```
|
14
14
|
|
15
15
|
And then execute:
|
@@ -21,7 +21,7 @@ And mount rails engine routes to your application routes by putting
|
|
21
21
|
```ruby
|
22
22
|
Rails.application.routes.draw do
|
23
23
|
...
|
24
|
-
mount
|
24
|
+
mount CodeVersion::Engine => "/code_version"
|
25
25
|
...
|
26
26
|
end
|
27
27
|
```
|
@@ -5,10 +5,10 @@ module CodeVersion
|
|
5
5
|
info = {}
|
6
6
|
if File.exists? file_path
|
7
7
|
File.open(file_path).each_line do |line|
|
8
|
-
info["
|
8
|
+
info["Git Commit Number"] = line
|
9
9
|
end
|
10
10
|
else
|
11
|
-
info = {"
|
11
|
+
info = {"Error" => "No file REVISION in Rails root directory"}
|
12
12
|
end
|
13
13
|
render :json => info
|
14
14
|
end
|
data/lib/code_version/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: code_version
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kraiyanat Tee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.0'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '6.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '4.0'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
32
|
+
version: '6.0'
|
27
33
|
description: The mountable rails engine that provide api call to get the git commit
|
28
34
|
number on server (at rails root directory)
|
29
35
|
email:
|
@@ -50,7 +56,7 @@ files:
|
|
50
56
|
- lib/code_version/engine.rb
|
51
57
|
- lib/code_version/version.rb
|
52
58
|
- lib/tasks/code_version_tasks.rake
|
53
|
-
homepage:
|
59
|
+
homepage: https://github.com/kraiyanat/code_version
|
54
60
|
licenses:
|
55
61
|
- MIT
|
56
62
|
metadata: {}
|