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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5deb78cad7b19dfbdf5690d0c141a99281b9acb76d83afb1b3a3c4462d9be0d1
4
- data.tar.gz: 195cd80b52702c33e97533447022148a33d7c03e6c7525654d86bf71298a45c1
3
+ metadata.gz: a93ffd2546ada2c2794eb403f89339324d4086c3075fd0454b36bbb351c95506
4
+ data.tar.gz: 4ffafc1e201ad9e82abda0241d304d0832098270522dc76e92d364fb5f21c924
5
5
  SHA512:
6
- metadata.gz: 43e042004e010c603b3bb63c55ab9e00dd7ef52809ecf5c7da7abac83a5a82c9ec6f15de118c051f737ba1aaeb0990bb8111cf6c1f31ceabcfc60c2c78f3f520
7
- data.tar.gz: 2adf52ea2cd89a9d675aee0304b0cc5bdadae7ceabe3b5093d88830f20f70f4ecb61f720f34c5e5f97fad46a7bb9339ff0e3c4e076435e744d5d8cac97be2f5f
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 check_libyaml_version
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} error: libyaml version #{Psych::LIBYAML_VERSION} must be at least #{MINIMUM_LIBYAML_VERSION}. Try:
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
- check_libyaml_version
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ProcessSettings
4
- VERSION = '0.13.3.pre.1'
4
+ VERSION = '0.13.3'
5
5
  end
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.pre.1
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: 1.3.1
127
+ version: '0'
128
128
  requirements: []
129
129
  rubygems_version: 3.0.3
130
130
  signing_key: