ops 0.5.2 → 0.6.0

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: c18209a7c479501db16892a8de4ebea055a8e145
4
- data.tar.gz: df7004989198d44467fa440a16fce98fb08e98f7
3
+ metadata.gz: 8daa2b628574116f1cef9721d321e4c2c66c8d00
4
+ data.tar.gz: 4d906e810c2cb4d806e6c3215aa7ccb21028caf9
5
5
  SHA512:
6
- metadata.gz: 123b4151ddc1ef4effc61ac9057742bd85630fe7ea4d0c98fda3cb60b834fe447469e4447ba906bca0f48742c05fef4086f28b659ff91fe5f3eb32fec2097163
7
- data.tar.gz: 8c385865967d357251cc4635edaab09b7380b3d36906714bddb738bfc4313de8ff205a26db6c7d9aca4a8caadb2804d37603fc957b1e42f2e3f3c0b36fb606f8
6
+ metadata.gz: a2914913d0019c4bfb48e964face365bef2eb63168ad80e1bfe6d54d34044a74bd2a66351fb4d22e8a6de691059d02b267416719f23fe75738dc2ecd8cacf82a
7
+ data.tar.gz: 1577b01fef00026e13d7e1772dfa17f3c6e84402ef4f3794ab2c8862dea0a4d7cad0994975f8fb6a1213d36ab56282945314f850f5487070e4bea8bcb7434dce
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ops (0.5.2)
4
+ ops (0.6.0)
5
5
  sinatra (>= 1.2.0)
6
6
  sinatra-respond_to (>= 0.7.0)
7
7
 
@@ -87,10 +87,10 @@ GEM
87
87
  multi_json (~> 1.0)
88
88
  simplecov-html (~> 0.7.1)
89
89
  simplecov-html (0.7.1)
90
- sinatra (1.4.5)
91
- rack (~> 1.4)
90
+ sinatra (1.4.7)
91
+ rack (~> 1.5)
92
92
  rack-protection (~> 1.4)
93
- tilt (~> 1.3, >= 1.3.4)
93
+ tilt (>= 1.3, < 3)
94
94
  sinatra-respond_to (0.9.0)
95
95
  sinatra (~> 1.3)
96
96
  slop (3.5.0)
@@ -124,3 +124,6 @@ DEPENDENCIES
124
124
  rake
125
125
  rspec
126
126
  simplecov
127
+
128
+ BUNDLED WITH
129
+ 1.11.2
data/README.md CHANGED
@@ -40,6 +40,7 @@ Installation
40
40
  Ops.setup do |config|
41
41
  config.file_root = Rails.root
42
42
  config.environment = Rails.env
43
+ config.repo_name = 'my_repository_name'
43
44
  config.config_service_adapter = something_that_responds_to_call # optional
44
45
  end
45
46
  ```
@@ -25,8 +25,12 @@ module Ops
25
25
  github_link 'commit', commit
26
26
  end
27
27
 
28
+ def repo_name
29
+ Ops.config[:repo_name] || app_name
30
+ end
31
+
28
32
  def github_link(resource, subresource)
29
- "<a href='#{GITHUB_ORG_LINK}/#{app_name}/#{resource}/#{subresource}'>#{subresource}</a>" unless subresource =~ /^Unknown/
33
+ "<a href='#{GITHUB_ORG_LINK}/#{repo_name}/#{resource}/#{subresource}'>#{subresource}</a>" unless subresource =~ /^Unknown/
30
34
  end
31
35
 
32
36
  def print_detail(object, indent = 0)
data/lib/ops/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ops
2
- VERSION = '0.5.2'
2
+ VERSION = '0.6.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Pelz-Sherman
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-04-06 00:00:00.000000000 Z
14
+ date: 2016-03-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: sinatra
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 2.2.2
136
+ rubygems_version: 2.4.5.1
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: Provide ops info endpoints.