Skip to content

Commit dd2de20

Browse files
committed
Add plugin sources
1 parent 9ea6f32 commit dd2de20

16 files changed

Lines changed: 427 additions & 0 deletions

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--require spec_helper
2+
--color
3+
--format d

.rubocop.yml

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
# kind_of? is a good way to check a type
2+
Style/ClassCheck:
3+
EnforcedStyle: kind_of?
4+
5+
# It's better to be more explicit about the type
6+
Style/BracesAroundHashParameters:
7+
Enabled: false
8+
9+
# specs sometimes have useless assignments, which is fine
10+
Lint/UselessAssignment:
11+
Exclude:
12+
- '**/spec/**/*'
13+
14+
# We could potentially enable the 2 below:
15+
Style/IndentHash:
16+
Enabled: false
17+
18+
Style/AlignHash:
19+
Enabled: false
20+
21+
# HoundCI doesn't like this rule
22+
Style/DotPosition:
23+
Enabled: false
24+
25+
# We allow !! as it's an easy way to convert ot boolean
26+
Style/DoubleNegation:
27+
Enabled: false
28+
29+
# Sometimes we allow a rescue block that doesn't contain code
30+
Lint/HandleExceptions:
31+
Enabled: false
32+
33+
# Cop supports --auto-correct.
34+
Lint/UnusedBlockArgument:
35+
Enabled: false
36+
37+
# Needed for $verbose
38+
Style/GlobalVars:
39+
Enabled: false
40+
41+
# We want to allow class Fastlane::Class
42+
Style/ClassAndModuleChildren:
43+
Enabled: false
44+
45+
# $? Exit
46+
Style/SpecialGlobalVars:
47+
Enabled: false
48+
49+
Metrics/AbcSize:
50+
Max: 60
51+
Exclude:
52+
- '**/lib/*/options.rb'
53+
54+
# The %w might be confusing for new users
55+
Style/WordArray:
56+
MinSize: 19
57+
58+
# raise and fail are both okay
59+
Style/SignalException:
60+
Enabled: false
61+
62+
# Better too much 'return' than one missing
63+
Style/RedundantReturn:
64+
Enabled: false
65+
66+
# Having if in the same line might not always be good
67+
Style/IfUnlessModifier:
68+
Enabled: false
69+
70+
# and and or is okay
71+
Style/AndOr:
72+
Enabled: false
73+
74+
# Configuration parameters: CountComments.
75+
Metrics/ClassLength:
76+
Max: 320
77+
78+
Metrics/CyclomaticComplexity:
79+
Max: 17
80+
81+
# Configuration parameters: AllowURI, URISchemes.
82+
Metrics/LineLength:
83+
Max: 370
84+
85+
# Configuration parameters: CountKeywordArgs.
86+
Metrics/ParameterLists:
87+
Max: 17
88+
89+
Metrics/PerceivedComplexity:
90+
Max: 18
91+
92+
# Sometimes it's easier to read without guards
93+
Style/GuardClause:
94+
Enabled: false
95+
96+
# We allow both " and '
97+
Style/StringLiterals:
98+
Enabled: false
99+
100+
# something = if something_else
101+
# that's confusing
102+
Style/ConditionalAssignment:
103+
Enabled: false
104+
105+
# Better to have too much self than missing a self
106+
Style/RedundantSelf:
107+
Enabled: false
108+
109+
# e.g.
110+
# def self.is_supported?(platform)
111+
# we may never use `platform`
112+
Lint/UnusedMethodArgument:
113+
Enabled: false
114+
115+
# the let(:key) { ... }
116+
Lint/ParenthesesAsGroupedExpression:
117+
Exclude:
118+
- '**/spec/**/*'
119+
120+
# This would reject is_ in front of methods
121+
# We use `is_supported?` everywhere already
122+
Style/PredicateName:
123+
Enabled: false
124+
125+
# We allow the $
126+
Style/PerlBackrefs:
127+
Enabled: false
128+
129+
# Disable '+ should be surrounded with a single space' for xcodebuild_spec.rb
130+
Style/SpaceAroundOperators:
131+
Exclude:
132+
- '**/spec/actions_specs/xcodebuild_spec.rb'
133+
134+
Metrics/MethodLength:
135+
Exclude:
136+
- '**/lib/fastlane/actions/*.rb'
137+
- '**/bin/fastlane'
138+
- '**/lib/*/options.rb'
139+
Max: 60
140+
141+
AllCops:
142+
Include:
143+
- '**/fastlane/Fastfile'
144+
Exclude:
145+
- '**/lib/assets/custom_action_template.rb'
146+
- './vendor/**/*'
147+
148+
# We're not there yet
149+
Style/Documentation:
150+
Enabled: false
151+
152+
# Added after upgrade to 0.38.0
153+
Style/MutableConstant:
154+
Enabled: false
155+
156+
# length > 0 is good
157+
Style/ZeroLengthPredicate:
158+
Enabled: false
159+
160+
# Adds complexity
161+
Style/IfInsideElse:
162+
Enabled: false

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# os: osx # enable this if you need macOS support
2+
language: ruby
3+
rvm:
4+
- 2.2.4

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
gemspec
4+
5+
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
6+
eval(File.read(plugins_path), binding) if File.exist?(plugins_path)

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Jérémy TOUDIC <jeremy.toudic@aufeminin.com>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Rakefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require 'bundler/gem_tasks'
2+
3+
require 'rspec/core/rake_task'
4+
RSpec::Core::RakeTask.new
5+
6+
require 'rubocop/rake_task'
7+
RuboCop::RakeTask.new(:rubocop)
8+
9+
task default: [:spec, :rubocop]

circle.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
test:
2+
override:
3+
- bundle exec rake
4+
machine:
5+
ruby:
6+
version: 2.2.4
7+
# Enable xcode below if you need macOS
8+
# xcode:
9+
# version: "7.3"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding: utf-8
2+
lib = File.expand_path("../lib", __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require 'fastlane/plugin/commit_android_version_bump/version'
5+
6+
Gem::Specification.new do |spec|
7+
spec.name = 'fastlane-plugin-commit_android_version_bump'
8+
spec.version = Fastlane::CommitAndroidVersionBump::VERSION
9+
spec.author = %q{jems}
10+
spec.email = %q{jeremy.toudic@gmail.com}
11+
12+
spec.summary = %q{This Android plugins allow you to commit every modification done in your build.gradle file during the execution of a lane. In fast, it do the same as the commit_version_bump action, but for Android}
13+
spec.homepage = "https://github.com/Jems22/fastlane-plugin-commit_android_version_bump"
14+
spec.license = "MIT"
15+
16+
spec.files = Dir["lib/**/*"] + %w(README.md LICENSE)
17+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18+
spec.require_paths = ['lib']
19+
20+
# spec.add_dependency 'your-dependency', '~> 1.0.0'
21+
22+
spec.add_development_dependency 'pry'
23+
spec.add_development_dependency 'bundler'
24+
spec.add_development_dependency 'rspec'
25+
spec.add_development_dependency 'rake'
26+
spec.add_development_dependency 'rubocop'
27+
spec.add_development_dependency 'fastlane', '>= 1.99.0'
28+
end

fastlane/Fastfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
lane :test do
2+
commit_android_version_bump
3+
end

fastlane/Pluginfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Autogenerated by fastlane

0 commit comments

Comments
 (0)