configurability 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +2 -2
- data/README.md +4 -1
- data/lib/configurability.rb +2 -2
- data/rake/hg.rb +18 -0
- metadata +3 -3
- metadata.gz.sig +2 -2
data.tar.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
3�B���/�d2:��6��rqe�~z��s
|
2
|
+
�)��A1�fQl��a⾡���,���}u�#��x�-#s���X*�M���Q��p?��]�GJ��Q%�}��ޢ���&%~�P��Y����"�T���\OgC���-m����~<�5Ԓw
|
data/README.md
CHANGED
@@ -222,7 +222,10 @@ the project page:
|
|
222
222
|
|
223
223
|
> http://bitbucket.org/ged/configurability
|
224
224
|
|
225
|
-
or clone it with Mercurial from the same address.
|
225
|
+
or clone it with Mercurial from the same address. If you prefer Git, there is
|
226
|
+
also a mirror of the repo on Github:
|
227
|
+
|
228
|
+
> https://github.com/ged/configurability
|
226
229
|
|
227
230
|
|
228
231
|
## License
|
data/lib/configurability.rb
CHANGED
@@ -9,10 +9,10 @@ require 'yaml'
|
|
9
9
|
module Configurability
|
10
10
|
|
11
11
|
# Library version constant
|
12
|
-
VERSION = '1.0.
|
12
|
+
VERSION = '1.0.4'
|
13
13
|
|
14
14
|
# Version-control revision constant
|
15
|
-
REVISION = %q$Revision:
|
15
|
+
REVISION = %q$Revision: a8a6a67e2ede $
|
16
16
|
|
17
17
|
require 'configurability/logformatter'
|
18
18
|
require 'configurability/deferredconfig'
|
data/rake/hg.rb
CHANGED
@@ -83,6 +83,15 @@ unless defined?( HG_DOTDIR )
|
|
83
83
|
return paths
|
84
84
|
end
|
85
85
|
|
86
|
+
### Return the list of files which are not of status 'clean'
|
87
|
+
def get_uncommitted_files
|
88
|
+
list = read_command_output( 'hg', 'status', '-n', '--color', 'never' )
|
89
|
+
list = list.split( /\n/ )
|
90
|
+
|
91
|
+
trace "Changed files: %p" % [ list ]
|
92
|
+
return list
|
93
|
+
end
|
94
|
+
|
86
95
|
### Return the list of files which are of status 'unknown'
|
87
96
|
def get_unknown_files
|
88
97
|
list = read_command_output( 'hg', 'status', '-un', '--color', 'never' )
|
@@ -149,6 +158,15 @@ unless defined?( HG_DOTDIR )
|
|
149
158
|
|
150
159
|
desc "Prepare for a new release"
|
151
160
|
task :prep_release do
|
161
|
+
uncommitted_files = get_uncommitted_files()
|
162
|
+
unless uncommitted_files.empty?
|
163
|
+
log "Uncommitted files:\n",
|
164
|
+
*uncommitted_files.map {|fn| " #{fn}\n" }
|
165
|
+
ask_for_confirmation( "\nRelease anyway?", true ) do
|
166
|
+
log "Okay, releasing with uncommitted versions."
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
152
170
|
tags = get_tags()
|
153
171
|
rev = get_current_rev()
|
154
172
|
pkg_version_tag = "v#{PKG_VERSION}"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configurability
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 4
|
10
|
+
version: 1.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Granger
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
�
|
2
|
-
�
|
1
|
+
���O�w"�#���v�:=X$��������c��і�/h�&v
|
2
|
+
Ə6憺�w%d�kP�Ƈ��_�}:�1���PZ~�;��g��Ǵ�T̽��^��~<��2��G�Ghb~⏄R�^!��I���Z8��ݹ�ho���AS�N��zཬ��O1~��O��;g�=5AiG�B�R\�|e�ᦝOk�hA��g!�*�d�pp��FI?.����P��թ6��Z��uo��2�̏bx�=�$���X���2��ByT:"�S
|