auto_gem_updater 0.2.0 → 0.2.1
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 +4 -4
- data/README.md +34 -8
- data/auto_gem_updater.gemspec +1 -0
- data/lib/auto_gem_updater/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fde178c537b4b8bb60e1ff214f8e2c15fa62d8102efcbb3921fc3c97aef03bd2
|
4
|
+
data.tar.gz: c66d479123015aab395979c6b5da3d1048b5ec9af7c4e034d9a084a98a535102
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48c6b78e0599054e9d16498f0f60fa25a9d9ae5d7d53a0acedb3a2e9729682c53e61655ad14b301597f838ae04e7422ecd55391f3165cf76172a1f24394b77ef
|
7
|
+
data.tar.gz: 0b121d2e6ac3c8f5f5151619df959073df0f6a74974e0ae5a71d5b3b7db9dae5e1d1f50452bbc541dca094aa07d2929e78c794d0c52463cdb44c57de6edf6ba7
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# AutoGemUpdater
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Auto Gem Updater helps you to keep your gems, up to date.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -20,15 +18,43 @@ Or install it yourself as:
|
|
20
18
|
|
21
19
|
$ gem install auto_gem_updater
|
22
20
|
|
23
|
-
##
|
21
|
+
## Configuration
|
22
|
+
|
23
|
+
Configuration options are: `pre_checks, outdated_options, ignore_gems`
|
24
|
+
|
25
|
+
To config these options add a file to your `config/initializers` and call it `auto_gem_updater.rb`
|
26
|
+
This file should look like:
|
27
|
+
```ruby
|
28
|
+
AutoGemUpdater.configure do |config|
|
29
|
+
config.pre_checks = ['bundle exec rspec']
|
30
|
+
end
|
31
|
+
```
|
32
|
+
each of the options above can be configured inside the above block (e.g `config.pre_checks = ['bundle exec rspec']`)
|
33
|
+
|
34
|
+
#### pre_checks
|
35
|
+
`pre_checks` is expected to be an array of all the checks you want performed before an update to a gem is commit. The default is an empty array.
|
24
36
|
|
25
|
-
|
37
|
+
For example `['bundle exec rspec', 'bundle exec rake routes',...]`
|
38
|
+
|
39
|
+
#### outdated_options
|
40
|
+
`outdated_options` is expected to be an array of options that you want to be passed to `bundle outdated` any of the options form the [docs](https://bundler.io/man/bundle-outdated.1.html) are supported. The default is `['strict']`.
|
41
|
+
|
42
|
+
For example `['strict', 'minor']`
|
43
|
+
|
44
|
+
#### ignore_gems
|
45
|
+
`ignore_gems` is expected to be an array of gems that you do not want the auto gem updater to attempt to update. The default is an empty array.
|
46
|
+
|
47
|
+
For example `['nokogiri', 'rails',...]`
|
48
|
+
|
49
|
+
## Usage
|
26
50
|
|
27
|
-
|
51
|
+
Once the gem is installed it will add to some rake tasks that will allow you to update your gems.
|
28
52
|
|
29
|
-
|
53
|
+
#### Update
|
54
|
+
`rake auto_gem_updater:update` is the main rake task. It will first create a branch, called `auto_gem_updates_ + todays date`. It will then loop over all the gems that it finds out of date according to the outdated_options each time running all the pre_checks specified in the initializer and only if they succeed add the updated gem version to git (otherwise it resets to before trying to update the gem).
|
30
55
|
|
31
|
-
|
56
|
+
#### Outdated
|
57
|
+
`rake auto_gem_updater:outdated` will list out all the gems that the update command will attempt to update.
|
32
58
|
|
33
59
|
## Contributing
|
34
60
|
|
data/auto_gem_updater.gemspec
CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{Auto Update Gems}
|
13
13
|
spec.license = "MIT"
|
14
|
+
spec.homepage = "https://github.com/hvenables/auto_gem_updater"
|
14
15
|
|
15
16
|
# Specify which files should be added to the gem when it is released.
|
16
17
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auto_gem_updater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harry Venables
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -78,7 +78,7 @@ files:
|
|
78
78
|
- lib/auto_gem_updater/tasks/auto_gem_updater.rake
|
79
79
|
- lib/auto_gem_updater/updater.rb
|
80
80
|
- lib/auto_gem_updater/version.rb
|
81
|
-
homepage:
|
81
|
+
homepage: https://github.com/hvenables/auto_gem_updater
|
82
82
|
licenses:
|
83
83
|
- MIT
|
84
84
|
metadata: {}
|