gisdatigo 0.3.2 → 0.4.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
  SHA256:
3
- metadata.gz: 6ea6dcbce569c281e7447ace426ff1eca6b76cdf85a8c1fd4ee3e1a96b802c03
4
- data.tar.gz: 8eacd03bf2ebd6f0660da955cf5c85a0fa5a0cb26e34c66e4c362bd136dbfc75
3
+ metadata.gz: 2d7daae6b57780970b370bc3703f8ecdc7b4de9d30d3d04ba324fdb656248f84
4
+ data.tar.gz: 8e95fe52745434c33c95fc9fc71e3d4ed07163b08f30931c28bcfb2c4fcab18f
5
5
  SHA512:
6
- metadata.gz: 7023ad8cc0f564646ebdae454500f2cf5b5c76d031ce69c49ef0ec308b58497d4f6a925ee0e118b968f66732a5c726f099a2f8312de85dc80d31c3353e6c8c39
7
- data.tar.gz: d312e7526244453d7a7e087d76d9b8f1850e6bd37f605788f81bd0cc9fa9bb4d7361f903e297f95eff00a8bb53176e7d9eb3bd21460138121443b95a02853c94
6
+ metadata.gz: 229b916308b401513a8709b088b91d88b6a0551c97fd35c6076bd0a0477c3626cef60f1d67200d6c8d9f61df7e63c29290b8e8c6260bcd27a4df8367f018befb
7
+ data.tar.gz: 050bbd601bbfba6ae3fb831f1a876354bbed47cf9c9e39b004638481da8847b8820064d7fcdb207e7f5843c6c3beebaf29277268b75ebdea8079ee805b2ab9a7
data/CHANGELOG CHANGED
@@ -4,6 +4,10 @@ Very opinionated automation for most of the gem update process for Rails applica
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ ## v0.4.0 - 24/05/2022
8
+
9
+ * Add CLI
10
+
7
11
  ## v0.3.2 - 07/06/2020
8
12
 
9
13
  * Fix release mistakes (sorry)
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Gisdatigo
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/gisdatigo.svg)](https://badge.fury.io/rb/gisdatigo)
4
+
3
5
  Very opinionated automation for most of the gem update process for Rails applications managed with bundler. By updating them, running the tests and then committing them.
4
6
 
5
7
  ## Installation
@@ -7,7 +9,7 @@ Very opinionated automation for most of the gem update process for Rails applica
7
9
  Add this line to your application's Gemfile:
8
10
 
9
11
  ```ruby
10
- gem 'gisdatigo', '~> 0.0.1'
12
+ gem 'gisdatigo'
11
13
  ```
12
14
 
13
15
  And then execute:
@@ -23,7 +25,7 @@ Why I still consider this gem unstable (0.x.y)? Despite I've been using it for s
23
25
  ## Usage
24
26
 
25
27
  ```
26
- rake gistadigo:run
28
+ rake gisdatigo:run
27
29
  ```
28
30
 
29
31
  ## Development
data/bin/gisdatigo ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'cli'
6
+
7
+ CLI.run ARGV
data/lib/cli.rb ADDED
@@ -0,0 +1,27 @@
1
+ require 'optparse'
2
+ require "gisdatigo"
3
+ require "gisdatigo/version"
4
+
5
+ module CLI
6
+ def CLI.run(args)
7
+ options = CLI.parse_options(args)
8
+
9
+ Gisdatigo.configure_with('.gisdatigo') if File.exists?('.gisdatigo')
10
+
11
+ Gisdatigo::Runner.run
12
+ end
13
+
14
+ def CLI.parse_options(args)
15
+ OptionParser.new do |parser|
16
+ parser.on_tail('-h', '--help', 'Show this message') do
17
+ Kernel.puts parser
18
+ Kernel.exit
19
+ end
20
+
21
+ parser.on_tail('-V', '--version', 'Print version and exit') do
22
+ Kernel.puts Gisdatigo::VERSION
23
+ Kernel.exit
24
+ end
25
+ end.parse(args)
26
+ end
27
+ end
@@ -1,3 +1,3 @@
1
1
  module Gisdatigo
2
- VERSION = "0.3.2"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gisdatigo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Reggiani Manzo
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-07 00:00:00.000000000 Z
11
+ date: 2022-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -156,6 +156,7 @@ email:
156
156
  - rr.manzo@gmail.com
157
157
  executables:
158
158
  - console
159
+ - gisdatigo
159
160
  - setup
160
161
  extensions: []
161
162
  extra_rdoc_files: []
@@ -172,8 +173,10 @@ files:
172
173
  - README.md
173
174
  - Rakefile
174
175
  - bin/console
176
+ - bin/gisdatigo
175
177
  - bin/setup
176
178
  - gisdatigo.gemspec
179
+ - lib/cli.rb
177
180
  - lib/gisdatigo.rb
178
181
  - lib/gisdatigo/bundler_manager.rb
179
182
  - lib/gisdatigo/git_manager.rb
@@ -190,7 +193,7 @@ homepage: http://github.com/rafamanzo/gisdatigo
190
193
  licenses:
191
194
  - LGPLv3
192
195
  metadata: {}
193
- post_install_message:
196
+ post_install_message:
194
197
  rdoc_options: []
195
198
  require_paths:
196
199
  - lib
@@ -205,8 +208,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
208
  - !ruby/object:Gem::Version
206
209
  version: '0'
207
210
  requirements: []
208
- rubygems_version: 3.1.2
209
- signing_key:
211
+ rubygems_version: 3.3.7
212
+ signing_key:
210
213
  specification_version: 4
211
214
  summary: Automates most of the gem update process for Rails applications managed with
212
215
  bundler.