process_settings 0.13.3.pre.1 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/combine_process_settings +4 -6
- data/lib/process_settings/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a93ffd2546ada2c2794eb403f89339324d4086c3075fd0454b36bbb351c95506
|
4
|
+
data.tar.gz: 4ffafc1e201ad9e82abda0241d304d0832098270522dc76e92d364fb5f21c924
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f8491c6fdc5e5161a7a14f57c0a8f5a040bc471119336f33d26677413a056b96244f737a87f98b555a91febada1f67a74feb3daabb669f308a0a24db275e4d3
|
7
|
+
data.tar.gz: f92777b0129ba9bf468b533afc99a7180cf9ace6e47109ea280b0ef92ad77e4882bbf0a8d5fe94d9e6d47b070fa4e98a978139c2355d3c958af4ad886f71880a
|
@@ -77,11 +77,11 @@ end
|
|
77
77
|
|
78
78
|
MINIMUM_LIBYAML_VERSION = '0.2.5' # So that null (nil) values don't have trailing spaces.
|
79
79
|
|
80
|
-
def
|
80
|
+
def warn_if_old_libyaml_version
|
81
81
|
if Gem::Version.new(Psych::LIBYAML_VERSION) < Gem::Version.new(MINIMUM_LIBYAML_VERSION)
|
82
82
|
warn <<~EOS
|
83
83
|
|
84
|
-
#{PROGRAM_NAME}
|
84
|
+
#{PROGRAM_NAME} warning: libyaml version #{Psych::LIBYAML_VERSION} is out of date; it should be at least #{MINIMUM_LIBYAML_VERSION}. On a Mac, try:
|
85
85
|
|
86
86
|
brew update && brew upgrade libyaml
|
87
87
|
|
@@ -89,8 +89,6 @@ def check_libyaml_version
|
|
89
89
|
|
90
90
|
gem install psych -- --enable-bundled-libyaml
|
91
91
|
EOS
|
92
|
-
|
93
|
-
exit(1)
|
94
92
|
end
|
95
93
|
end
|
96
94
|
|
@@ -101,14 +99,14 @@ end
|
|
101
99
|
|
102
100
|
options = parse_options(ARGV.dup)
|
103
101
|
|
104
|
-
|
102
|
+
warn_if_old_libyaml_version
|
105
103
|
|
106
104
|
combined_settings = read_and_combine_settings(Pathname.new(options.root_folder) + SETTINGS_FOLDER)
|
107
105
|
|
108
106
|
version_number = options.version || default_version_number(options.initial_filename)
|
109
107
|
combined_settings << end_marker(version_number)
|
110
108
|
|
111
|
-
yaml = combined_settings.to_yaml
|
109
|
+
yaml = combined_settings.to_yaml.gsub(/: $/, ':') # libyaml before 0.2.5 wrote trailing space for nil
|
112
110
|
yaml_with_warning_comment = add_warning_comment(yaml, options.root_folder, PROGRAM_NAME, SETTINGS_FOLDER)
|
113
111
|
|
114
112
|
output_filename = options.output_filename
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: process_settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.3
|
4
|
+
version: 0.13.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Invoca
|
@@ -122,9 +122,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
|
-
- - "
|
125
|
+
- - ">="
|
126
126
|
- !ruby/object:Gem::Version
|
127
|
-
version:
|
127
|
+
version: '0'
|
128
128
|
requirements: []
|
129
129
|
rubygems_version: 3.0.3
|
130
130
|
signing_key:
|