Skip to content

Commit

Permalink
Merge pull request #16 from vrtdev/develop
Browse files Browse the repository at this point in the history
merge develop
  • Loading branch information
zipkid authored Apr 1, 2020
2 parents 39f9a56 + 464f665 commit f6b56ed
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
38 changes: 38 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,70 +5,108 @@ Version format based on http://semver.org/

## [Unreleased]

## [0.5.3] - 2020-04-01

### Changed

- Don't use .to_h as it is not available on jruby (puppetserver)

## [0.5.2] - 2020-03-11

### Changed

- Make return of parameters_by_path a hash with key : value and print it cleanly on cli

## [0.5.1] - 2019-04-29

### Changed

- Updated doc.
- Lower required Ruby version for smps gem.

## [0.5.0.pre]

### Changed

- Split in 2 separate gems: smps and smps-cli.

## [0.4.1] - 2018-09-25

### Changed

- Change dependency on thor to 0.19.* to work with available native debian packages

## [0.4.0] - 2018-09-18

### Added

- New cli executable based on thor

## [0.3.4] - 2017-12-20

### Changed

- Add http timeout to region get in helper script

## [0.3.3] - 2017-11-17

### Changed

- Add next_token handling for get_parameters_by_path

## [0.3.2] - 2017-11-16

### Changed

- Set \@decrypt param to true by default

## [0.3.1] - 2017-11-16

### Added

- Test script param for fetch by_path

## [0.3.0] - 2017-10-13

### Added

- parameters_by_path method

## [0.2.3] - 2017-10-06

### Changed

- Update gem dependency specification

## [0.2.2] - 2017-10-06

### Added

- Parameters for creating / writing SecureString

## [0.2.1] - 2017-10-05

### Changed

- Class structure improvement
- move optional requires into if block

## [0.2.0] - 2017-10-05

### Added

- smps cli query script

## [0.1.3] - 2017-10-05

### Added

- ...

### Changed

- ...

### Removed

- ...
5 changes: 4 additions & 1 deletion lib/smps/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ def parameters_by_path(options)

def parameters_result_hash(path, list)
path = "#{path}/" unless path.end_with?('/')
list.map { |p| [p.name.gsub(/#{Regexp.escape(path)}/, ''), p.value] }.to_h
# .to_h is not available in jruby (the puppetserver ruby version)
# list.map { |p| [p.name.gsub(/#{Regexp.escape(path)}/, ''), p.value] }.to_h
arr = list.map { |p| [p.name.gsub(/#{Regexp.escape(path)}/, ''), p.value] }
Hash[arr]
end

# Get a parameter list by path using the next_token (if provided)
Expand Down
2 changes: 1 addition & 1 deletion lib/smps/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

module SmPs
# Current version.
VERSION = '0.5.2'
VERSION = '0.5.3'
end

0 comments on commit f6b56ed

Please sign in to comment.