pdk 1.11.0 → 1.11.1

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: 5ec16ddd2727410b30d9b0d41457e4c4973f14607af8fffd10cf3ce5f7a5027b
4
- data.tar.gz: 5288a7bfae1df2106fc9bd012ae71fd7e61473482404b0ccac0de6375399175e
3
+ metadata.gz: 46888ff531aa661b8dd817436aa36c538ad768a2ff5bdab0faac0297fa099ab7
4
+ data.tar.gz: 2a5965d847c138c5a23e0a09d12ba6535ece44f655d0cad81b5d936a29308a39
5
5
  SHA512:
6
- metadata.gz: b08bd2bf5c1e54de90c6b1b8f3b91a3569827ddc06a5277b0b2bc5387f9fd21526c23f7a63cc97e7c87eb3c64b859214a94a9c86c79ba9509b3349cd1da39545
7
- data.tar.gz: 7d101cca2234748f4edd69e7f5aafab5e99c9161efc08c36af3c8cd2aa4d613bdfbc0b7210ef6c47eee15bfab4332eebb1d2efba9cbe5bb9397454d4f4517057
6
+ metadata.gz: 63006870c08a97822390e2602f143c8c907126d13dd80b54ecfc69918f6d20dba91f98040a33430d7ecbed446f62dfc22112d5043f99944f787f947a2dfe90b0
7
+ data.tar.gz: 06f26931e79e3467770db297e5bd6c922457f4fa62030607c25db3dba98a185c8dd596a459dd590c9c3cb634af41229a3d109af7210a9f4225651e456f58b5eb
@@ -4,6 +4,19 @@ All changes to this repo will be documented in this file.
4
4
  See the [release notes](https://puppet.com/docs/pdk/latest/release_notes.html) for a high-level summary.
5
5
 
6
6
 
7
+ ## [v1.11.1](https://github.com/puppetlabs/pdk/tree/v1.11.1) (2019-07-01)
8
+ [Full Changelog](https://github.com/puppetlabs/pdk/compare/v1.11.0...v1.11.1)
9
+
10
+ **Closed issues:**
11
+
12
+ - PDK explicitly asking for consent to collect anonymous usage information [\#690](https://github.com/puppetlabs/pdk/issues/690)
13
+
14
+ **Merged pull requests:**
15
+
16
+ - \(PDK-1415\) Allow analytics opt-out prompt to be disabled via ENV [\#691](https://github.com/puppetlabs/pdk/pull/691) ([scotje](https://github.com/scotje))
17
+ - \(PDK-1414\) Detect common CI environments and set non-interactive [\#689](https://github.com/puppetlabs/pdk/pull/689) ([glennsarti](https://github.com/glennsarti))
18
+ - \(PDK-1409\) Bump PDK version to 1.11.1.pre [\#688](https://github.com/puppetlabs/pdk/pull/688) ([rodjek](https://github.com/rodjek))
19
+
7
20
  ## [v1.11.0](https://github.com/puppetlabs/pdk/tree/v1.11.0) (2019-06-27)
8
21
  [Full Changelog](https://github.com/puppetlabs/pdk/compare/v1.10.0...v1.11.0)
9
22
 
@@ -23,6 +36,7 @@ See the [release notes](https://puppet.com/docs/pdk/latest/release_notes.html) f
23
36
 
24
37
  **Merged pull requests:**
25
38
 
39
+ - \(PDK-1403\) Release 1.11.0 [\#687](https://github.com/puppetlabs/pdk/pull/687) ([rodjek](https://github.com/rodjek))
26
40
  - \(FIXUP\) Avoid attempting to append nokogiri pin to nil in package tests [\#686](https://github.com/puppetlabs/pdk/pull/686) ([scotje](https://github.com/scotje))
27
41
  - Revert "\(PDK-1366\) Update default operatingsystem versions" [\#685](https://github.com/puppetlabs/pdk/pull/685) ([rodjek](https://github.com/rodjek))
28
42
  - \(maint\) Clear Gemfile overrides before pdk update test [\#684](https://github.com/puppetlabs/pdk/pull/684) ([rodjek](https://github.com/rodjek))
@@ -945,4 +959,4 @@ See the [release notes](https://puppet.com/docs/pdk/latest/release_notes.html) f
945
959
 
946
960
 
947
961
 
948
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
962
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
@@ -51,7 +51,7 @@ module PDK::CLI
51
51
 
52
52
  def self.run(args)
53
53
  @args = args
54
- PDK::Config.analytics_config_interview! unless PDK::Config.analytics_config_exist?
54
+ PDK::Config.analytics_config_interview! unless ENV['PDK_DISABLE_ANALYTICS'] || PDK::Config.analytics_config_exist?
55
55
  @base_cmd.run(args)
56
56
  rescue PDK::CLI::ExitWithError => e
57
57
  PDK.logger.send(e.log_level, e.message)
@@ -48,9 +48,30 @@ module PDK
48
48
  end
49
49
  module_function :prompt_for_yes
50
50
 
51
+ # Uses environment variables to detect if the current process is running in common
52
+ # Continuous Integration (CI) environments
53
+ # @return [Boolean] Whether the PDK is in a CI based environment
54
+ def ci_environment?
55
+ [
56
+ 'CI', # Generic
57
+ 'CONTINUOUS_INTEGRATION', # Generic
58
+ 'APPVEYOR_BUILD_FOLDER', # AppVeyor CI
59
+ 'GITLAB_CI', # GitLab CI
60
+ 'JENKINS_URL', # Jenkins
61
+ 'BUILD_DEFINITIONNAME', # Azure Pipelines
62
+ 'TEAMCITY_VERSION', # Team City
63
+ 'BAMBOO_BUILDKEY', # Bamboo
64
+ 'GOCD_SERVER_URL', # Go CD
65
+ 'TRAVIS', # Travis CI
66
+ 'GITHUB_WORKFLOW', # GitHub Actions
67
+ ].any? { |name| ENV.key?(name) }
68
+ end
69
+ module_function :ci_environment?
70
+
51
71
  def interactive?
52
72
  return false if PDK.logger.debug?
53
73
  return !ENV['PDK_FRONTEND'].casecmp('noninteractive').zero? if ENV['PDK_FRONTEND']
74
+ return false if ci_environment?
54
75
  return false unless $stderr.isatty
55
76
 
56
77
  true
@@ -1,4 +1,4 @@
1
1
  module PDK
2
- VERSION = '1.11.0'.freeze
2
+ VERSION = '1.11.1'.freeze
3
3
  TEMPLATE_REF = VERSION
4
4
  end
@@ -6,11 +6,11 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: puppet development kit v1.10.0-82-gd468eda\n"
9
+ "Project-Id-Version: puppet development kit v1.11.0-5-gd7565ab\n"
10
10
  "\n"
11
11
  "Report-Msgid-Bugs-To: docs@puppet.com\n"
12
- "POT-Creation-Date: 2019-06-27 13:23+1000\n"
13
- "PO-Revision-Date: 2019-06-27 13:23+1000\n"
12
+ "POT-Creation-Date: 2019-07-01 15:57+1000\n"
13
+ "PO-Revision-Date: 2019-07-01 15:57+1000\n"
14
14
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
15
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
16
  "Language: \n"
@@ -495,43 +495,43 @@ msgstr ""
495
495
  msgid "Answer \"Y\" to continue or \"n\" to cancel."
496
496
  msgstr ""
497
497
 
498
- #: ../lib/pdk/cli/util.rb:65
498
+ #: ../lib/pdk/cli/util.rb:86
499
499
  msgid "This module is not PDK compatible. Run `pdk convert` to make it compatible with your version of PDK."
500
500
  msgstr ""
501
501
 
502
- #: ../lib/pdk/cli/util.rb:71
502
+ #: ../lib/pdk/cli/util.rb:92
503
503
  msgid "This module template is out of date. Run `pdk convert` to make it compatible with your version of PDK."
504
504
  msgstr ""
505
505
 
506
- #: ../lib/pdk/cli/util.rb:76
506
+ #: ../lib/pdk/cli/util.rb:97
507
507
  msgid "This module is compatible with a newer version of PDK. Upgrade your version of PDK to ensure compatibility."
508
508
  msgstr ""
509
509
 
510
- #: ../lib/pdk/cli/util.rb:80
510
+ #: ../lib/pdk/cli/util.rb:101
511
511
  msgid "This module is compatible with an older version of PDK. Run `pdk update` to update it to your version of PDK."
512
512
  msgstr ""
513
513
 
514
- #: ../lib/pdk/cli/util.rb:106
514
+ #: ../lib/pdk/cli/util.rb:127
515
515
  msgid "Using Ruby %{version}"
516
516
  msgstr ""
517
517
 
518
- #: ../lib/pdk/cli/util.rb:116
518
+ #: ../lib/pdk/cli/util.rb:137
519
519
  msgid "Using %{gem} %{version}"
520
520
  msgstr ""
521
521
 
522
- #: ../lib/pdk/cli/util.rb:146
522
+ #: ../lib/pdk/cli/util.rb:167
523
523
  msgid "You cannot specify a %{first} and %{second} at the same time"
524
524
  msgstr ""
525
525
 
526
- #: ../lib/pdk/cli/util.rb:158
526
+ #: ../lib/pdk/cli/util.rb:179
527
527
  msgid "You cannot specify a %{first} and %{second} at the same time."
528
528
  msgstr ""
529
529
 
530
- #: ../lib/pdk/cli/util.rb:194
530
+ #: ../lib/pdk/cli/util.rb:215
531
531
  msgid "--template-ref requires --template-url to also be specified."
532
532
  msgstr ""
533
533
 
534
- #: ../lib/pdk/cli/util.rb:198
534
+ #: ../lib/pdk/cli/util.rb:219
535
535
  msgid "--template-url may not be used to specify paths containing #'s."
536
536
  msgstr ""
537
537
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-27 00:00:00.000000000 Z
11
+ date: 2019-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler