gemdiff 1.3.4 → 2.0.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
- SHA1:
3
- metadata.gz: e597625aa1f1ad264d02134811e33aa8211441c0
4
- data.tar.gz: 378db4ee21e44dfd3c72196ba91f642374d5b12b
2
+ SHA256:
3
+ metadata.gz: 40ed230b52671207da68fa0cfa8f904069cf2309d35f7cf2502a51c295ef3003
4
+ data.tar.gz: 5c5a8ced44d44797833e52fbdd9dfe7c48ea5d4556d98732e855bd34b20c6126
5
5
  SHA512:
6
- metadata.gz: 8f44ad7966b397d5d48b8d60cfe51411237652cb0287807965db14e1394cf79870af9b308bd792c09a0952c9704b03b909a102c78d6edffdbdebc4f7da56a76c
7
- data.tar.gz: 1f7971478f6349e7e45f5a91804e009e01136e2208186d687c2326486b20f9c3f310ff92e176e4ee4c8d49eb88553c794adbabd6fcc0f559949bcd1e9513c838
6
+ metadata.gz: ea169ff1b726eab6b408c433248a308461d2e5a6f2f096de5728dee3189bda0746af77df671ae84e775e0c21883c9ed0b6e1e40351776670e49747dc5ce0c01f
7
+ data.tar.gz: 934cc37c02fe1fdb4386351ced9c0cabf88db484803ad91fece0e89e29296764a7c1fb0c341da743a13ac0e8ff1d4c9cb6914064ec5ea34cd53bad01abc2af56
data/README.md CHANGED
@@ -55,18 +55,18 @@ sqlite3: 1.3.12 > 1.3.11
55
55
  https://github.com/sparklemotion/sqlite3-ruby/compare/v1.3.11...v1.3.12
56
56
  ```
57
57
 
58
- ### `gemdiff outdated`
58
+ `list` is the default task, so `gemdiff` with no arguments is the same as `gemdiff list`.
59
+
60
+ ### `gemdiff each`
59
61
 
60
62
  Runs `bundle outdated --strict` in the current directory. For each outdated gem,
61
63
  you can open the compare view for that gem, skip it, or exit.
62
64
  Enter `y` to review. Enter `A` to open all compare views (beware!).
63
65
  Enter `s` to list all the compare URLs to stdout (same as the `list` command).
64
66
 
65
- `outdated` is the default task, so `gemdiff` with no arguments is the same as `gemdiff outdated`.
66
-
67
67
  ```sh
68
68
  $ cd /your/ruby/project/using/bundler
69
- $ gemdiff
69
+ $ gemdiff each
70
70
  Checking for outdated gems in your bundle...
71
71
  Fetching gem metadata from https://rubygems.org/.......
72
72
  Fetching version metadata from https://rubygems.org/..
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  $LOAD_PATH.unshift File.dirname(__FILE__) + "/../lib"
4
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "English"
2
4
  require "gemdiff/version"
3
5
  require "gemdiff/colorize"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Gemdiff
2
4
  class BundleInspector
3
5
  def list
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "thor"
2
4
 
3
5
  module Gemdiff
@@ -5,7 +7,7 @@ module Gemdiff
5
7
  include Thor::Actions
6
8
  include Colorize
7
9
 
8
- default_task :outdated
10
+ default_task :list
9
11
 
10
12
  CHECKING_FOR_OUTDATED = "Checking for outdated gems in your bundle..."
11
13
  NOTHING_TO_UPDATE = "Nothing to update."
@@ -57,8 +59,8 @@ DESC
57
59
  outdated_gem.compare
58
60
  end
59
61
 
60
- desc "outdated", "Compare each outdated gem in the bundle. You will be prompted to open each compare view."
61
- def outdated
62
+ desc "each", "Compare each outdated gem in the bundle. You will be prompted to open each compare view."
63
+ def each
62
64
  puts CHECKING_FOR_OUTDATED
63
65
  inspector = BundleInspector.new
64
66
  puts inspector.outdated
@@ -67,11 +69,12 @@ DESC
67
69
  puts outdated_gem.compare_message
68
70
  response = open_all || ask("Open? (y to open, x to exit, A to open all, s to show all to stdout, else skip)")
69
71
  open_all = response if %(A s).include?(response)
70
- outdated_gem.compare if %w(y A).include?(response)
72
+ outdated_gem.compare if %w[y A].include?(response)
71
73
  puts outdated_gem.compare_url if response == "s"
72
74
  return if response == "x"
73
75
  end
74
76
  end
77
+ map outdated: :each
75
78
 
76
79
  desc "list", "List compare URLs for all outdated gems in the bundle."
77
80
  def list
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Gemdiff
2
4
  module Colorize
3
5
  COLORS =
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Gemdiff
2
4
  class GemUpdater
3
5
  attr_accessor :name
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "launchy"
2
4
  require "uri"
3
5
 
@@ -5,7 +7,7 @@ module Gemdiff
5
7
  class OutdatedGem
6
8
  # gems that tag releases with tag names like 1.2.3
7
9
  # keep it alphabetical
8
- LIST_NO_V = %w(
10
+ LIST_NO_V = %w[
9
11
  atomic
10
12
  autoprefixer-rails
11
13
  babosa
@@ -27,7 +29,7 @@ module Gemdiff
27
29
  slack-notifier
28
30
  signet
29
31
  twilio-ruby
30
- )
32
+ ]
31
33
 
32
34
  attr_accessor :name, :old_version, :new_version
33
35
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "octokit"
2
4
  require "yaml"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Gemdiff
2
- VERSION = "1.3.4"
4
+ VERSION = "2.0.0"
3
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemdiff
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tee Parham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-24 00:00:00.000000000 Z
11
+ date: 2018-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubyforge_project:
151
- rubygems_version: 2.6.14
151
+ rubygems_version: 2.7.6
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Find source repositories for ruby gems. Open, compare, and update outdated