psenv 0.3.0 → 0.4.0

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
  SHA1:
3
- metadata.gz: 22c36df5755de3776968d07be71a0d52516dd735
4
- data.tar.gz: 640960bf9362a799a8fb9949e254ce1e8ba0170b
3
+ metadata.gz: f82834718e3a59e38d86c25d4ba17208643e4118
4
+ data.tar.gz: 6c754f5229c5553d0f0c7291f596f6176cda3e64
5
5
  SHA512:
6
- metadata.gz: b5af830d42d9d7439de2fc669d1f4e1cf6cb71179f423bae3045e97c9a2a686fd14c9bb1d3170302be0ff49093938d76080e2766957b5afaa93c910036273ca5
7
- data.tar.gz: 59cf8d38ed1633b8bd617597a2c510af40b0e67c06dac909137ea51507925f38e71cf635b01646872251152124e4a6ff03ca5284e22d08d04fb3be10a6545fa7
6
+ metadata.gz: 35cea595dc1a361fd9da7a5aac37f94d7adc6ba87d473669758754a08905ac9f1f4f281beb9d8a849b91f2fc75c961e669aecd7c1ed5ee5b2edc59c4c86d5e49
7
+ data.tar.gz: ad835dfb3c870d1d10027f36c7dfd3ee173cf393543b2deb6d488cb780c377ef3257342dcab94bcfcbbd09abdfa38271f3c56a999ad4a3f300e29e46d03cf23c
data/.gitignore CHANGED
@@ -9,3 +9,5 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+
13
+ Gemfile.lock
@@ -2,12 +2,20 @@ sudo: false
2
2
  cache: bundler
3
3
  language: ruby
4
4
  rvm:
5
- - 2.4.2
5
+ - 2.5
6
+ - 2.4
7
+ - 2.3
6
8
  before_install: gem install bundler -v 1.16.1
7
9
 
10
+ stages:
11
+ - analyze
12
+ - test
13
+ - deploy
14
+
8
15
  jobs:
9
16
  include:
10
- - stage: analyze
11
- script: bundle exec rubocop
12
17
  - stage: test
13
18
  script: bundle exec rspec
19
+ - stage: analyze
20
+ script: bundle exec rubocop
21
+ rvm: 2.5
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  require "bundler/gem_helper"
2
2
  require "rspec/core/rake_task"
3
+ require "rubocop/rake_task"
3
4
 
4
5
  namespace "psenv" do
5
6
  Bundler::GemHelper.install_tasks name: "psenv"
@@ -20,5 +21,6 @@ task install: ["psenv:install", "psenv-rails:install"]
20
21
  task release: ["psenv:release", "psenv-rails:release"]
21
22
 
22
23
  RSpec::Core::RakeTask.new(:spec)
24
+ RuboCop::RakeTask.new(:rubocop)
23
25
 
24
- task default: :spec
26
+ task default: %i[rubocop spec]
@@ -38,9 +38,16 @@ module Psenv
38
38
  end
39
39
 
40
40
  def parameters
41
- ssm.
42
- get_parameters_by_path(path: @path, with_decryption: true).
43
- parameters
41
+ parameters = []
42
+ response = ssm.get_parameters_by_path(path: @path, with_decryption: true)
43
+ parameters << response.parameters
44
+
45
+ while response.next_page?
46
+ response = response.next_page
47
+ parameters << response.parameters
48
+ end
49
+
50
+ parameters.flatten
44
51
  rescue StandardError => error
45
52
  raise RetrieveError, error
46
53
  end
@@ -1,3 +1,3 @@
1
1
  module Psenv
2
- VERSION = "0.3.0".freeze
2
+ VERSION = "0.4.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: psenv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Tomaka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-10 00:00:00.000000000 Z
11
+ date: 2018-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -120,7 +120,6 @@ files:
120
120
  - ".rubocop.yml"
121
121
  - ".travis.yml"
122
122
  - Gemfile
123
- - Gemfile.lock
124
123
  - LICENSE.txt
125
124
  - README.md
126
125
  - Rakefile
@@ -1,133 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- psenv (0.3.0)
5
- aws-sdk-ssm (~> 1)
6
- psenv-rails (0.3.0)
7
- psenv (= 0.3.0)
8
- railties (>= 3.2, < 5.3)
9
-
10
- GEM
11
- remote: https://rubygems.org/
12
- specs:
13
- actionpack (5.2.0)
14
- actionview (= 5.2.0)
15
- activesupport (= 5.2.0)
16
- rack (~> 2.0)
17
- rack-test (>= 0.6.3)
18
- rails-dom-testing (~> 2.0)
19
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
20
- actionview (5.2.0)
21
- activesupport (= 5.2.0)
22
- builder (~> 3.1)
23
- erubi (~> 1.4)
24
- rails-dom-testing (~> 2.0)
25
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
26
- activesupport (5.2.0)
27
- concurrent-ruby (~> 1.0, >= 1.0.2)
28
- i18n (>= 0.7, < 2)
29
- minitest (~> 5.1)
30
- tzinfo (~> 1.1)
31
- addressable (2.5.2)
32
- public_suffix (>= 2.0.2, < 4.0)
33
- ast (2.4.0)
34
- aws-partitions (1.79.0)
35
- aws-sdk-core (3.19.0)
36
- aws-partitions (~> 1.0)
37
- aws-sigv4 (~> 1.0)
38
- jmespath (~> 1.0)
39
- aws-sdk-ssm (1.10.0)
40
- aws-sdk-core (~> 3)
41
- aws-sigv4 (~> 1.0)
42
- aws-sigv4 (1.0.2)
43
- builder (3.2.3)
44
- coderay (1.1.2)
45
- concurrent-ruby (1.0.5)
46
- crack (0.4.3)
47
- safe_yaml (~> 1.0.0)
48
- crass (1.0.4)
49
- diff-lcs (1.3)
50
- erubi (1.7.1)
51
- hashdiff (0.3.7)
52
- i18n (1.0.0)
53
- concurrent-ruby (~> 1.0)
54
- jmespath (1.4.0)
55
- loofah (2.2.2)
56
- crass (~> 1.0.2)
57
- nokogiri (>= 1.5.9)
58
- method_source (0.9.0)
59
- mini_portile2 (2.3.0)
60
- minitest (5.11.3)
61
- nokogiri (1.8.2)
62
- mini_portile2 (~> 2.3.0)
63
- parallel (1.12.1)
64
- parser (2.5.0.5)
65
- ast (~> 2.4.0)
66
- powerpack (0.1.1)
67
- pry (0.11.3)
68
- coderay (~> 1.1.0)
69
- method_source (~> 0.9.0)
70
- public_suffix (3.0.2)
71
- rack (2.0.4)
72
- rack-test (1.0.0)
73
- rack (>= 1.0, < 3)
74
- rails-dom-testing (2.0.3)
75
- activesupport (>= 4.2.0)
76
- nokogiri (>= 1.6)
77
- rails-html-sanitizer (1.0.4)
78
- loofah (~> 2.2, >= 2.2.2)
79
- railties (5.2.0)
80
- actionpack (= 5.2.0)
81
- activesupport (= 5.2.0)
82
- method_source
83
- rake (>= 0.8.7)
84
- thor (>= 0.18.1, < 2.0)
85
- rainbow (3.0.0)
86
- rake (10.5.0)
87
- rspec (3.7.0)
88
- rspec-core (~> 3.7.0)
89
- rspec-expectations (~> 3.7.0)
90
- rspec-mocks (~> 3.7.0)
91
- rspec-core (3.7.1)
92
- rspec-support (~> 3.7.0)
93
- rspec-expectations (3.7.0)
94
- diff-lcs (>= 1.2.0, < 2.0)
95
- rspec-support (~> 3.7.0)
96
- rspec-mocks (3.7.0)
97
- diff-lcs (>= 1.2.0, < 2.0)
98
- rspec-support (~> 3.7.0)
99
- rspec-support (3.7.1)
100
- rubocop (0.54.0)
101
- parallel (~> 1.10)
102
- parser (>= 2.5)
103
- powerpack (~> 0.1)
104
- rainbow (>= 2.2.2, < 4.0)
105
- ruby-progressbar (~> 1.7)
106
- unicode-display_width (~> 1.0, >= 1.0.1)
107
- ruby-progressbar (1.9.0)
108
- safe_yaml (1.0.4)
109
- thor (0.20.0)
110
- thread_safe (0.3.6)
111
- tzinfo (1.2.5)
112
- thread_safe (~> 0.1)
113
- unicode-display_width (1.3.0)
114
- webmock (3.3.0)
115
- addressable (>= 2.3.6)
116
- crack (>= 0.3.2)
117
- hashdiff
118
-
119
- PLATFORMS
120
- ruby
121
-
122
- DEPENDENCIES
123
- bundler (~> 1.16)
124
- pry
125
- psenv!
126
- psenv-rails!
127
- rake (~> 10.0)
128
- rspec (~> 3.0)
129
- rubocop (= 0.54)
130
- webmock (~> 3.3)
131
-
132
- BUNDLED WITH
133
- 1.16.1