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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3af27b6c7126319da9cf983b79b0b9b559fce9eb993c4a86c6becf6e17681761
4
- data.tar.gz: 7f6905aa2a194ab992eff2583863606be74f767c2f4f88a79053739284d84db6
3
+ metadata.gz: fde178c537b4b8bb60e1ff214f8e2c15fa62d8102efcbb3921fc3c97aef03bd2
4
+ data.tar.gz: c66d479123015aab395979c6b5da3d1048b5ec9af7c4e034d9a084a98a535102
5
5
  SHA512:
6
- metadata.gz: 77d4167fcb510af51af34c8160a4922165a5c8293daddef0146c52f8e96b8f92281fa17e5f1ffe662b6390d735f8c439ad822d7eee2c00331b2744b756589424
7
- data.tar.gz: 1ad452e41a54e135b14b00badce55ccab5524d784ccd241c7905a03bd36d48da4b281e04689430ca8a2106307eef31ac08d7b2041f87afa00f834611f1b78f45
6
+ metadata.gz: 48c6b78e0599054e9d16498f0f60fa25a9d9ae5d7d53a0acedb3a2e9729682c53e61655ad14b301597f838ae04e7422ecd55391f3165cf76172a1f24394b77ef
7
+ data.tar.gz: 0b121d2e6ac3c8f5f5151619df959073df0f6a74974e0ae5a71d5b3b7db9dae5e1d1f50452bbc541dca094aa07d2929e78c794d0c52463cdb44c57de6edf6ba7
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # AutoGemUpdater
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/auto_gem_updater`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- ## Usage
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
- TODO: Write usage instructions here
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
- ## Development
51
+ Once the gem is installed it will add to some rake tasks that will allow you to update your gems.
28
52
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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
 
@@ -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.
@@ -1,3 +1,3 @@
1
1
  module AutoGemUpdater
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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-18 00:00:00.000000000 Z
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: {}