sigh 0.8.0 → 0.9.0

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: c44f958a867e93b5e83cbdaf49ef895b80fc09e4
4
- data.tar.gz: 4381cb9b3fb17c256257d4ad427b6c73b387507e
3
+ metadata.gz: 1fe05e0fecb91850a79e38ab7d46d71bc0f7a153
4
+ data.tar.gz: dd2aaa63967f0324d4035db0bdb002038fc54355
5
5
  SHA512:
6
- metadata.gz: 8d49dfa1d4a0948c5d96a33594ce449c944e5dec366313ce7962192f7ceaee64bd68b25f96427d71c7e2def81c298b30825ff97a73e235b6de5b8f22487873b0
7
- data.tar.gz: 7da07740425fc6028335f5df0468e415a6f689a49945d3b0e1c3225280de6f10369f23ca244c5656444d1dddf45d6c720b8aa6790b9253b740fec1e084ec259a
6
+ metadata.gz: 8fb0b91eef748413ebf30109d149516de0cac442b5cd96073d2c29d524920ef7dd9f3f240a2c63f94f66cee27a3538c7f0ca93ad9aaa5ffc6cfcc6c29c850547
7
+ data.tar.gz: 617abf3650a2b012226813c43773b14b75c6f9569bbcf3299697ae08afa79d46d8aff7cdeac13b761f0ece211d129645c256493d07d3e6bfc809959863e75836
data/lib/sigh/options.rb CHANGED
@@ -87,8 +87,12 @@ module Sigh
87
87
  description: "Filename to use for the generated provisioning profile (must include .mobileprovision)",
88
88
  verify_block: Proc.new do |value|
89
89
  raise "The output name must end with .mobileprovision".red unless value.end_with?".mobileprovision"
90
- end)
91
-
90
+ end),
91
+ FastlaneCore::ConfigItem.new(key: :skip_name_verify,
92
+ env_name: "SIGH_SKIP_NAME_VERIFY",
93
+ description: "Skips the extra verification of the name which is useful if you have thousands of profiles",
94
+ is_string: false,
95
+ default_value: false),
92
96
  ]
93
97
  end
94
98
  end
@@ -55,7 +55,7 @@ module Sigh
55
55
 
56
56
  # Fetches a profile matching the user's search requirements
57
57
  def fetch_profiles
58
- profile_type.find_by_bundle_id(Sigh.config[:app_identifier])
58
+ profile_type.find_by_bundle_id(Sigh.config[:app_identifier]).find_all { |a| a.valid? }
59
59
  end
60
60
 
61
61
  # Create a new profile and return it
@@ -64,9 +64,11 @@ module Sigh
64
64
  bundle_id = Sigh.config[:app_identifier]
65
65
  name = Sigh.config[:provisioning_name] || [bundle_id, profile_type.pretty_type].join(' ')
66
66
 
67
- if Spaceship.provisioning_profile.all.find { |p| p.name == name }
68
- Helper.log.error "The name '#{name}' is already taken, using another one."
69
- name += " #{Time.now.to_i}"
67
+ unless Sigh.config[:skip_name_verify]
68
+ if Spaceship.provisioning_profile.all.find { |p| p.name == name }
69
+ Helper.log.error "The name '#{name}' is already taken, using another one."
70
+ name += " #{Time.now.to_i}"
71
+ end
70
72
  end
71
73
 
72
74
  Helper.log.info "Creating new provisioning profile for '#{Sigh.config[:app_identifier]}' with name '#{name}'".yellow
data/lib/sigh/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sigh
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sigh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-16 00:00:00.000000000 Z
11
+ date: 2015-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - '>='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.11
47
+ version: 0.0.13
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.0.11
54
+ version: 0.0.13
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement