app-release 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.md +21 -0
  3. data/README.md +49 -0
  4. data/bin/app_release +19 -0
  5. metadata +75 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 66d901ceef4c1692f197234e9da00fc7f539f16f99464030ad12b93a9661e7ac
4
+ data.tar.gz: b13743f3fffc8a1eff94ae5d538f9741ad240ac676f311eba547a1445455406e
5
+ SHA512:
6
+ metadata.gz: 9047b8f943ad3b084d7b7f6d803ae177a08665298046e410d8700110bb74f1e4023197d7d5f9a15c3dd16ee39934c7a0d6eb5dcd243ee03e99c0a96a76f7741f
7
+ data.tar.gz: 24996ee9a97a2f855e8b8cc6955e4c6e9bb59a70fcef7e94f5054e25165174c342917589fd6dd95fa60e5f71e4494e2edaa4cc47bf8d71a1a4fd539059906cb5
@@ -0,0 +1,21 @@
1
+ # MIT LICENSE
2
+
3
+ Copyright (c) 2020 Anton Sokolov <anton@sokolov.digital>
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
13
+ all 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
21
+ THE SOFTWARE.
@@ -0,0 +1,49 @@
1
+ # App Release for Rails
2
+
3
+ A simple tool for updating the version of a Rails application.
4
+
5
+ This library was implemented to simplify project versioning. With this tool can store, quickly create and push tags.
6
+
7
+ ## Installation
8
+
9
+ ```ruby
10
+ gem 'app-release', require: false
11
+ ```
12
+
13
+ ## Using
14
+
15
+ ### Create a version file
16
+
17
+ ```shell
18
+ bundle exec app_release --init
19
+ ```
20
+
21
+ ### Version upgrade
22
+
23
+ ```shell
24
+ # Original version: 2.4.6
25
+
26
+ bundle exec app_release --patch # => 2.4.7
27
+
28
+ bundle exec app_release --minor # => 2.5.0
29
+
30
+ bundle exec app_release --major # => 3.0.0
31
+ ```
32
+
33
+ ### Version upgrade and git tag creation
34
+
35
+ ```shell
36
+ bundle exec app_release --minor --create-git-tag
37
+ ```
38
+
39
+ If need to create a tag in a specific directory, then need to use the following command:
40
+
41
+ ```shell
42
+ bundle exec app_release --minor --create-git-tag-for dev
43
+ ```
44
+
45
+ If need to push after creation, then:
46
+
47
+ ```shell
48
+ bundle exec app_release --minor --create-git-tag-for dev --git-push
49
+ ```
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ unless File.exist?('./Gemfile')
4
+ abort 'Please run app_release from the root of the project'
5
+ end
6
+
7
+ require 'rubygems'
8
+
9
+ begin
10
+ require 'bundler'
11
+ Bundler.setup
12
+ rescue StandardError
13
+ end
14
+
15
+ $LOAD_PATH << "#{__dir__}/../lib"
16
+
17
+ require 'app_release/parser'
18
+
19
+ AppRelease::Parser.parse(ARGV)
metadata ADDED
@@ -0,0 +1,75 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: app-release
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Anton Sokolov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-07-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: colorize
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.8.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.8.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: '0.88'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: '0.88'
41
+ description: A simple tool for updating the version of a Rails application
42
+ email:
43
+ - anton@sokolov.digital
44
+ executables:
45
+ - app_release
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - LICENSE.md
50
+ - README.md
51
+ - bin/app_release
52
+ homepage: https://github.com/afuno/app-release
53
+ licenses:
54
+ - MIT
55
+ metadata: {}
56
+ post_install_message:
57
+ rdoc_options: []
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ requirements: []
71
+ rubygems_version: 3.1.2
72
+ signing_key:
73
+ specification_version: 4
74
+ summary: A simple tool for updating the version of a Rails application
75
+ test_files: []