dapp 0.27.7 → 0.27.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 775c8870a637b90438433c269b8ff55099201dec
4
- data.tar.gz: 88d10fa66753c43196a16c384b365c40e1f15263
3
+ metadata.gz: faee0a2ead0c43c032671988a1c0e646d6b73812
4
+ data.tar.gz: 75941c6b128886df997474cad5312f32524da4e6
5
5
  SHA512:
6
- metadata.gz: 68bfd24ff3d765efa650f4947269c4afc5b2c45af7f4d9988224430c82434489137f6b9279e8560e99248271955e7b3ced846005d1938f2d02b14465df479367
7
- data.tar.gz: 8b7e097a6fc47f017a4cd967235d001bb402825ae9de294cdbb53b9cc3238fb2c9e6323fb67d5590b026ce11307988c90a333803e9f25aad7da8fa05dc9daa8c
6
+ metadata.gz: fd06444fb00c6ef7ea0428aac9ae7325891a84df4fff84ea836003b8856f910e6a747d90b03b8a277947c438ddf76019cbbf7321ece2de1681a7b5ccb72a916a
7
+ data.tar.gz: f0f786a8d48323086767f522839ddd1a43995eacee724044bb74f92efb0870f1d7028d2632d1bd743cb598ff2eb93bd7bc657fe8fafd08adbe1d06cb1c945a9e
@@ -59,6 +59,7 @@ module Dapp
59
59
  def run_dapp_command(run_method, options: {}, try_host_docker_login: false)
60
60
  dapp = ::Dapp::Dapp.new(options: options)
61
61
  ::Dapp::CLI.dapp_object = dapp
62
+ dapp.sentry_message("Manual usage: `#{options[:dapp_command]}` command") unless ENV['CI']
62
63
 
63
64
  log_dapp_running_time(dapp) do
64
65
  begin
@@ -75,6 +76,10 @@ module Dapp
75
76
  end
76
77
  end
77
78
 
79
+ def run_method
80
+ class_to_lowercase
81
+ end
82
+
78
83
  def log_dapp_running_time(dapp)
79
84
  return yield unless log_running_time
80
85
 
@@ -100,7 +105,7 @@ module Dapp
100
105
  self.class.print_error_with_help_and_die! self, "cannot use alias options --run-dir, --build-dir, --deploy-dir at the same time"
101
106
  end
102
107
 
103
- config.merge(build_dir: dirs.compact.first, **kwargs)
108
+ config.merge(build_dir: dirs.compact.first, dapp_command: run_method, **kwargs)
104
109
  end
105
110
  end
106
111
  end
@@ -9,6 +9,10 @@ module Dapp
9
9
 
10
10
  def sentry_exception(exception, **kwargs)
11
11
  return if not ensure_sentry_configured
12
+ (kwargs[:tags] ||= {})['error-code'] = begin
13
+ net_status = exception.net_status
14
+ [net_status[:context], net_status[:code]].compact.join('_')
15
+ end
12
16
  Raven.capture_exception(exception, _make_sentry_params(**kwargs))
13
17
  end
14
18
 
@@ -75,6 +79,7 @@ module Dapp
75
79
  "dapp-short-version" => ::Dapp::VERSION.split(".")[0..1].join("."),
76
80
  "dapp-version" => ::Dapp::VERSION,
77
81
  "dapp-build-cache-version" => ::Dapp::BUILD_CACHE_VERSION,
82
+ "dapp-command" => self.options[:dapp_command],
78
83
  }.tap {|tags|
79
84
  if git_own_repo_exist?
80
85
  tags["git-host"] = self.get_host_from_git_url(git_own_repo.remote_origin_url)
@@ -19,10 +19,6 @@ module Dapp::Dimg::CLI
19
19
  self.class.parse_options(self, argv)
20
20
  run_dapp_command(run_method, options: cli_options(dimgs_patterns: cli_arguments))
21
21
  end
22
-
23
- def run_method
24
- class_to_lowercase
25
- end
26
22
  end
27
23
  end
28
24
  end
@@ -122,7 +122,7 @@ module Dapp
122
122
  @registry ||= dapp.dimg_registry
123
123
  end
124
124
 
125
- def build_export_image!(image_name, scheme_name:)
125
+ def build_export_image!(image_name, scheme_name:)
126
126
  Image::Dimg.image_by_name(name: image_name, from: last_stage.image, dapp: dapp).tap do |export_image|
127
127
  export_image.add_service_change_label(:'dapp-tag-scheme' => scheme_name)
128
128
  export_image.add_service_change_label(:'dapp-dimg' => true)
data/lib/dapp/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Dapp
2
- VERSION = "0.27.7"
2
+ VERSION = "0.27.8"
3
3
  BUILD_CACHE_VERSION = 28
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.7
4
+ version: 0.27.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Stolyarov