fastlane-plugin-flutter_version 0.1.5 → 0.1.6

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
  SHA256:
3
- metadata.gz: 9a8152dd63a14c16935f1dcab4976acc00f9e94a03ac9f983782efdaae852b9a
4
- data.tar.gz: 832475f6b0e814c62925348e2fc301009b324acf97a8346d1c36f217bf4473e9
3
+ metadata.gz: 30b35f422287cba08f605ff1797746112440473a2b1bd4b5f2291650f4da88ce
4
+ data.tar.gz: fbdd639da5100bf39b10962cf95e5c563afd2ac6bf10735ce0fd0b684d5f6cd1
5
5
  SHA512:
6
- metadata.gz: 5931656b6fc3788496373d4ea0c1bf1d91cba210e81735dab23c974443fc3ee523b620d4392c74ebff2891d8487f68372b9046c1b6e9a8031b1aa26d65a3ea39
7
- data.tar.gz: c2890144785b6669c8fca5e9bc28e0e404d482cefda634cf7090bda1c6d49bed2cdc68f7ad59282d973f3f4deef79d4305b681381e0ce0c704a952e148e17800
6
+ metadata.gz: fa59720457e20214d8ac09109a9e59d9244a9ac13f6837e50d1115eccf4edeb48b2f27d74f547c3b2b8a3372e71f4846be036f55b8a032dc891a37ce1b81010f
7
+ data.tar.gz: dc95e05ee1a161684bd95b5c76ea0e622fc9e9519e9fe4d621af1e12f7f703f1d6126f4e3b46e89c987f9997ab13213c2cfa68613f1ac067426ed4536e501ae6
@@ -1,10 +1,10 @@
1
- require 'fastlane/plugin/flutter_version/version'
1
+ require "fastlane/plugin/flutter_version/version"
2
2
 
3
3
  module Fastlane
4
4
  module FlutterVersion
5
5
  # Return all .rb files inside the "actions" and "helper" directory
6
6
  def self.all_classes
7
- Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))]
7
+ Dir[File.expand_path("**/{actions,helper}/*.rb", File.dirname(__FILE__))]
8
8
  end
9
9
  end
10
10
  end
@@ -1,25 +1,27 @@
1
- require 'fastlane/action'
2
- require 'yaml'
3
- require_relative '../helper/flutter_version_helper'
1
+ require "fastlane/action"
2
+ require "yaml"
3
+ require_relative "../helper/flutter_version_helper"
4
4
 
5
5
  module Fastlane
6
6
  module Actions
7
7
  class FlutterVersionAction < Action
8
8
  def self.run(params)
9
- UI.message("The flutter_version plugin is working!")
10
9
  pubspec_location = params[:pubspec_location]
11
10
  pubspec = YAML.load_file(pubspec_location)
12
11
  version = pubspec["version"]
13
12
  UI.message("The full version is: ".concat(version))
14
13
  if not version.include? "+"
15
- raise "Verson code indicator (+) not foud in pubspec.yml"
14
+ raise "Verson code indicator (+) not found in pubspec.yml"
16
15
  end
17
16
  version_sections = version.split("+")
18
17
  version_name = version_sections[0]
19
18
  version_code = version_sections[1]
20
19
  UI.message("The version name: ".concat(version_name))
21
20
  UI.message("The version code: ".concat(version_code))
22
- return version_code
21
+ return {
22
+ "verison_code" => version_code,
23
+ "version_name" => version_name,
24
+ }
23
25
  end
24
26
 
25
27
  def self.description
@@ -32,7 +34,7 @@ module Fastlane
32
34
 
33
35
  def self.return_value
34
36
  [
35
- ['VERSION_CODE', 'The version code']
37
+ ["VERSION_CODE", "The version code"],
36
38
  ]
37
39
  end
38
40
 
@@ -48,7 +50,7 @@ module Fastlane
48
50
  description: "The location of pubspec.yml",
49
51
  optional: true,
50
52
  type: String,
51
- default_value:"../pubspec.yaml"
53
+ default_value: "../pubspec.yaml",
52
54
  ),
53
55
  ]
54
56
  end
@@ -1,4 +1,4 @@
1
- require 'fastlane_core/ui/ui'
1
+ require "fastlane_core/ui/ui"
2
2
 
3
3
  module Fastlane
4
4
  UI = FastlaneCore::UI unless Fastlane.const_defined?("UI")
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module FlutterVersion
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-flutter_version
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - tianhaoz95
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-04 00:00:00.000000000 Z
11
+ date: 2020-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.49.1
89
+ version: 0.80.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 0.49.1
96
+ version: 0.80.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop-require_tools
99
99
  requirement: !ruby/object:Gem::Requirement