fastlane-plugin-schedule 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
  SHA1:
3
- metadata.gz: 46eab984a76c53674a6227b7bdbff55ede751a77
4
- data.tar.gz: 964cf7333948faf4c8e2fd24d9a9ed4724ba7ed6
3
+ metadata.gz: ccfa3663f3d4cc1aeb547c5955ced7e8fd07a6e9
4
+ data.tar.gz: 6545bd38c218905f90923be231de7e43a589a266
5
5
  SHA512:
6
- metadata.gz: 29ff1ed23d88e32ae1d9459d11697fcbecd451e5802673f022218901e75bd33713a1a46c9b686d05d4f09bab0cfa36af412528691a2215e3899a75dc300277f4
7
- data.tar.gz: f6b242375959e67503cbef6607b1776fa4bc1d5c409ac798f5f410c2a946f2e9087d763d186aea131ccec496d2bbea21808548802db68f97a7216ccbb62c9e57
6
+ metadata.gz: d13c59fdb0bb65eaf21b087fae7e1d5838276cc6d774978ee8a133c2e3e5c1fdf145599bee19607256f644d6653a770238a049003699910fcdbd9cff88711b8d
7
+ data.tar.gz: 873fcf65d3cb85a68afd73f9125ad1e2bafe691274b8427494a754fd882a00cbea2ff51d4840591a59de2a61c8898659ff09bf5d27bfce91e38694bdd544fcfa
@@ -7,6 +7,10 @@ module Fastlane
7
7
  module Actions
8
8
  class GetLaneAction < Action
9
9
  def self.run(params)
10
+ default_timezone = ENV['TZ']
11
+ if !params[:timezone].nil?
12
+ ENV['TZ'] = params[:timezone]
13
+ end
10
14
  schedule = YAML.load_file('./fastlane/schedule.yml')
11
15
  time = Time.now
12
16
  wday = time.wday
@@ -19,6 +23,7 @@ module Fastlane
19
23
  if action.nil?
20
24
  return everyday_action
21
25
  end
26
+ ENV['TZ'] = default_timezone
22
27
  action['lane']
23
28
  end
24
29
 
@@ -56,11 +61,11 @@ module Fastlane
56
61
 
57
62
  def self.available_options
58
63
  [
59
- # FastlaneCore::ConfigItem.new(key: :your_option,
60
- # env_name: "SCHEDULE_YOUR_OPTION",
61
- # description: "A description of your option",
62
- # optional: false,
63
- # type: String)
64
+ FastlaneCore::ConfigItem.new(key: :timezone,
65
+ env_name: "TZ",
66
+ description: "timezone",
67
+ optional: true,
68
+ type: String)
64
69
  ]
65
70
  end
66
71
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Schedule
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-schedule
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
  - marumemomo