fastlane-plugin-datadog 0.1.0 → 0.2.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
  SHA256:
3
- metadata.gz: f40be0373d045d8fdfeb9010b0470db07a45df54b99c6a8fc01ed110ea25b24d
4
- data.tar.gz: 23e42adefd2742f19c153c4debc1675757b27eaea4efc3dab6fbedc79c62257f
3
+ metadata.gz: cfc108d55eb1484b1c6664ca7318b862582fe3da70bb3a406808d7525d46b6b9
4
+ data.tar.gz: 22d8dac92a6bb2e14c379e3e40deff5956556171ca5422b39638cf63c4d28f50
5
5
  SHA512:
6
- metadata.gz: 345fb6b2783ffda60046dde521523660342aa94005ee7f22060781f7a32ea8caa5396b71b1181d8c6671df13c9dc15de418f0e334e0b571cf2d811528e54707a
7
- data.tar.gz: 2fc90a6f72b7a9609de9470026beb5bad54adcd8d6a6eaa8b70a9f0972581c46a8c491ae3b264fe3c1bb03de063d25f2ebf6637db8d46e9d3c5b18a99cbf964c
6
+ metadata.gz: 0ec6713fb90cb3ccd06dc35da266a52da80086436b820c6daabb8e86a886aee79d997b23e216dfd60779a535afffa9d99cb38dfdd31c4bdadfe924960002fa6a
7
+ data.tar.gz: 0f02ba3333a97f1c208e3961f256bf5177b770bdd674d57f524a72e5ef8d0b4c53a557f41d3029f1a0c9791746484dfd2c5f1a92f70d77d9ff71e4aa461c7f74
data/README.md CHANGED
@@ -23,7 +23,7 @@ This action is a wrapper around `datadog-ci` npm package, you can look at [`data
23
23
 
24
24
  Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
25
25
 
26
- You can use `DATADOG_API_KEY` environment variable instead of `api_key` parameter in `Fastfile`.
26
+ You can use `DATADOG_API_KEY` environment variable instead of `api_key` parameter in `Fastfile` as well as the `DATADOG_SITE` instead of the `site` parameter.
27
27
 
28
28
  ```ruby
29
29
  # upload symbols from...
@@ -42,6 +42,15 @@ lane :upload_dsym_with_download_dsyms do
42
42
  download_dsyms
43
43
  upload_symbols_to_datadog(api_key: "datadog-api-key")
44
44
  end
45
+
46
+ # Upload to EU site
47
+ lane :upload_dsym_with_download_dsyms do
48
+ download_dsyms
49
+ upload_symbols_to_datadog(
50
+ api_key: "datadog-api-key",
51
+ site: 'datadoghq.eu'
52
+ )
53
+ end
45
54
  ```
46
55
 
47
56
  ## Run tests for this plugin
@@ -5,6 +5,7 @@ module Fastlane
5
5
  class UploadSymbolsToDatadogAction < Action
6
6
  def self.run(params)
7
7
  ENV['DATADOG_API_KEY'] = params[:api_key]
8
+ ENV['DATADOG_SITE'] = params[:site]
8
9
  dsym_paths = params[:dsym_paths] # get array of paths
9
10
  if dsym_paths.instance_of?(String) # if a string is passed, put it in an array
10
11
  dsym_paths = [dsym_paths]
@@ -48,20 +49,32 @@ module Fastlane
48
49
 
49
50
  def self.available_options
50
51
  [
51
- FastlaneCore::ConfigItem.new(key: :api_key,
52
- env_name: 'DATADOG_API_KEY',
53
- description: "Datadog API Key for upload_symbols_to_datadog",
54
- verify_block: proc do |value|
55
- UI.user_error!("No API key for upload_symbols_to_datadog given, pass using `api_key: 'api_key'`") unless value && !value.empty?
56
- end),
57
- FastlaneCore::ConfigItem.new(key: :dsym_paths,
58
- default_value: Actions.lane_context[SharedValues::DSYM_PATHS],
59
- description: "An array of the folders and/or the zip files which contains the dSYM files",
60
- type: Array),
61
- FastlaneCore::ConfigItem.new(key: :dry_run,
62
- description: "No upload to Datadog",
63
- default_value: false,
64
- is_string: false)
52
+ FastlaneCore::ConfigItem.new(
53
+ key: :api_key,
54
+ env_name: 'DATADOG_API_KEY',
55
+ description: "Datadog API Key for upload_symbols_to_datadog",
56
+ verify_block: proc do |value|
57
+ UI.user_error!("No API key for upload_symbols_to_datadog given, pass using `api_key: 'api_key'`") unless value && !value.empty?
58
+ end
59
+ ),
60
+ FastlaneCore::ConfigItem.new(
61
+ key: :site,
62
+ env_name: 'DATADOG_SITE',
63
+ optional: true,
64
+ description: "Datadog site region. `datadoghq.com` by default, use `datadoghq.eu` for the EU"
65
+ ),
66
+ FastlaneCore::ConfigItem.new(
67
+ key: :dsym_paths,
68
+ default_value: Actions.lane_context[SharedValues::DSYM_PATHS],
69
+ description: "An array of the folders and/or the zip files which contains the dSYM files",
70
+ type: Array
71
+ ),
72
+ FastlaneCore::ConfigItem.new(
73
+ key: :dry_run,
74
+ description: "No upload to Datadog",
75
+ default_value: false,
76
+ is_string: false
77
+ )
65
78
  ]
66
79
  end
67
80
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Datadog
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-datadog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datadog, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-23 00:00:00.000000000 Z
11
+ date: 2021-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-rake
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: rubocop-require_tools
127
141
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +150,20 @@ dependencies:
136
150
  - - ">="
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop-rspec
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
139
167
  - !ruby/object:Gem::Dependency
140
168
  name: simplecov
141
169
  requirement: !ruby/object:Gem::Requirement
@@ -180,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
208
  - !ruby/object:Gem::Version
181
209
  version: '0'
182
210
  requirements: []
183
- rubygems_version: 3.1.2
211
+ rubygems_version: 3.1.4
184
212
  signing_key:
185
213
  specification_version: 4
186
214
  summary: Datadog actions for iOS development