release_me 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/release_me/adapter.rb +8 -4
- data/lib/release_me/adapters/gem.yaml +1 -1
- data/lib/release_me/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c307f61761c704dae34b3f7499dca57c8fab07d
|
4
|
+
data.tar.gz: bfc0503f83d7350fa5e138090fc325b97c72c4bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b59d25ce5eca2542bea194760fae0d148d4b264a2755b03403b385d1142de31668154f61f2b3c90861e6c75e9587d8c0c5439fc4348381c509e0121540ac4601
|
7
|
+
data.tar.gz: 3f0374c8f1cde5b14d216db2291e5b76fe3f41b979a0937f40530205e0bb340e5d39b1563e32e912bbfa44764ee926eff6a4334445f6133a66112c1576256fe8
|
data/lib/release_me/adapter.rb
CHANGED
@@ -12,8 +12,8 @@ module ReleaseMe
|
|
12
12
|
config = local_config(path) || detect_adapter_config(path)
|
13
13
|
raise 'Cannot find config' if config.nil?
|
14
14
|
adapter = OpenStruct.new(config)
|
15
|
-
adapter
|
16
|
-
adapter
|
15
|
+
adapter.version_file = version_file(path, adapter.version_file_relative_path)
|
16
|
+
adapter.current_version = current_version(adapter, adapter.version_file)
|
17
17
|
adapter
|
18
18
|
end
|
19
19
|
|
@@ -31,8 +31,11 @@ module ReleaseMe
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
|
35
|
-
|
34
|
+
# @param project_path [String] - path to the directory in which you want to check
|
35
|
+
# @param version_path [String] - path to the version file or glob of version file
|
36
|
+
# @return [String] path to version file
|
37
|
+
def version_file(project_path, version_path)
|
38
|
+
Dir.glob(File.join(project_path, version_path)).first
|
36
39
|
end
|
37
40
|
|
38
41
|
private
|
@@ -62,6 +65,7 @@ module ReleaseMe
|
|
62
65
|
pattern = File.join(path, adapter_config['detection_pattern']) || ''
|
63
66
|
Dir.glob(pattern).count > 0
|
64
67
|
end
|
68
|
+
puts "Adapter type: #{type} detected"
|
65
69
|
config
|
66
70
|
end
|
67
71
|
|
data/lib/release_me/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: release_me
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Osman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
version: '0'
|
136
136
|
requirements: []
|
137
137
|
rubyforge_project:
|
138
|
-
rubygems_version: 2.6.
|
138
|
+
rubygems_version: 2.6.10
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: Release related scripts for any type of code
|