code_version 0.1.1 → 0.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28a4b0793d43ea3fcd93ffc73cf82c5563710274
4
- data.tar.gz: 5608683a0306966db3cb63b79b5f6b59f8a868c0
3
+ metadata.gz: 5080c884468a1e7990372416d0480b25970e4c37
4
+ data.tar.gz: 8ed2ef560e1116a0cd979cc20f933c321c498774
5
5
  SHA512:
6
- metadata.gz: f4d86b71ca3a9920a8e0d2b7ff76033ac12a61bec5f35b94f4ba327ca0bc90f15fbae1c4427f332125b9724fab482e7c90324507f188da71825a3b38e913ded0
7
- data.tar.gz: aa91111e53b6d7a77db7adb8e99ec537cd9ecd2a7ca3ec06445f20d5e47692664e1525b54e32717b508cf57868d0683ac9149098b5e55a79be2813ba9b00b1c0
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 ServerCodeVersion::Engine => "/code_version"
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["git commit number"] = line
8
+ info["Git Commit Number"] = line
9
9
  end
10
10
  else
11
- info = {"error" => "No file REVISION in Rails root directory"}
11
+ info = {"Error" => "No file REVISION in Rails root directory"}
12
12
  end
13
13
  render :json => info
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module CodeVersion
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.5'
3
3
  end
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.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-18 00:00:00.000000000 Z
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: '5.0'
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: '5.0'
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: http://kraiyanat.com
59
+ homepage: https://github.com/kraiyanat/code_version
54
60
  licenses:
55
61
  - MIT
56
62
  metadata: {}