anticuado 0.2.5 → 0.2.6

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
  SHA1:
3
- metadata.gz: 69c670cc3fd5482db3af2366713bcc4147e38eef
4
- data.tar.gz: 038d5fff7ce3822add7cf0d7af0d2e64f680dfdd
3
+ metadata.gz: af15c69e8f06d19a699bfda457d69377aeaa8d52
4
+ data.tar.gz: 8351592378a80a69b1363e12485226f5d593e41b
5
5
  SHA512:
6
- metadata.gz: 6d3798b249500edd11c4b388c4cd60fb240bbe7ed751ecfcfd233859b0f8a521d8a5d92854859e258c1757c245f520bf913fb91d4fb50f4013dcae4bb9682681
7
- data.tar.gz: 60138b9362d363bcee1f997ac60f8beca106641005f7b81f48dae32a657ff2bb75f602b5d75256e38abf581b2391f1751f6903bb95e5a2ce0c46cea6273843a0
6
+ metadata.gz: d47e0d648a5171a779ebec106e748ecafdcf416d031689b9353db91d29ee64229f8ee36ef9b09b4453d1e9f1fead900c2b2b4c63d31f96b3917fbe7ea461a179
7
+ data.tar.gz: 0fae991a3614afddb0702aaf72b37747f41588006046c781872916ec0276baa4823640a8ac757619321c603475e70bef222c21483c8be03ce24d928355f46c4e
data/lib/anticuado.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "anticuado/version"
2
+ require "anticuado/base"
2
3
 
3
4
  require "anticuado/ios/carthage"
4
5
  require "anticuado/ios/cocoapods"
@@ -0,0 +1,11 @@
1
+ module Anticuado
2
+ class Base
3
+ def self.outdated(_project)
4
+ raise NotImplementedError
5
+ end
6
+
7
+ def self.format(_outdated)
8
+ raise NotImplementedError
9
+ end
10
+ end
11
+ end
@@ -1,6 +1,6 @@
1
1
  module Anticuado
2
2
  module Elixir
3
- module Hex
3
+ class Hex < Anticuado::Base
4
4
  # @param [String] project Path to project directory.
5
5
  # @return [String] The result of command `mix hex.outdated`.
6
6
  def self.outdated(project = nil)
@@ -48,6 +48,6 @@ module Anticuado
48
48
  acc
49
49
  end
50
50
  end
51
- end # module Hex
51
+ end # class Hex
52
52
  end # module Elixir
53
53
  end # module Anticuado
@@ -1,6 +1,6 @@
1
1
  module Anticuado
2
2
  module IOS
3
- module Carthage
3
+ class Carthage < Anticuado::Base
4
4
  # @param [String] project Path to project directory.
5
5
  # @return [String] The result of command `carthage outdated`.
6
6
  def self.outdated(project = nil)
@@ -32,6 +32,6 @@ module Anticuado
32
32
  }
33
33
  end
34
34
  end
35
- end # module Carthage
35
+ end # class Carthage
36
36
  end # module IOS
37
37
  end # module Anticuado
@@ -1,6 +1,6 @@
1
1
  module Anticuado
2
2
  module IOS
3
- module CocoaPods
3
+ class CocoaPods < Anticuado::Base
4
4
  # @param [String] project Path to project directory.
5
5
  # @return [String] The result of command `pod outdated`.
6
6
  def self.outdated(project = nil)
@@ -34,6 +34,6 @@ module Anticuado
34
34
  end
35
35
  }.compact
36
36
  end
37
- end # module CocoaPods
37
+ end # class CocoaPods
38
38
  end # module IOS
39
39
  end # module Anticuado
@@ -2,7 +2,7 @@ require "json"
2
2
 
3
3
  module Anticuado
4
4
  module Java
5
- module Gradle
5
+ class Gradle < Anticuado::Base
6
6
  # require: https://github.com/ben-manes/gradle-versions-plugin
7
7
  # @param [String] revision "release", "milestone" or "integration". Default is "release".
8
8
  # @param [Bool] wrapper Use gradle wrapper or use gradle directory.
@@ -54,6 +54,6 @@ module Anticuado
54
54
  return "./gradlew" if wrapper
55
55
  "gradle"
56
56
  end
57
- end # module Gradle
57
+ end # class Gradle
58
58
  end # module Android
59
59
  end # module Anticuado
@@ -1,6 +1,6 @@
1
1
  module Anticuado
2
2
  module JavaScript
3
- module Npm
3
+ class Npm < Anticuado::Base
4
4
  # @param [String] project Path to project directory.
5
5
  # @return [String] The result of command `npm outdated`.
6
6
  def self.outdated(project = nil)
@@ -37,6 +37,6 @@ module Anticuado
37
37
  }
38
38
  end
39
39
  end
40
- end # module Npm
40
+ end # class Npm
41
41
  end # module JavaScript
42
42
  end # module Anticuado
@@ -1,6 +1,6 @@
1
1
  module Anticuado
2
2
  module JavaScript
3
- module Yarn
3
+ class Yarn < Anticuado::Base
4
4
  # @param [String] project Path to project directory.
5
5
  # @return [String] The result of command `yarn outdated`.
6
6
  def self.outdated(project = nil)
@@ -37,6 +37,6 @@ module Anticuado
37
37
  }
38
38
  end
39
39
  end
40
- end # module Yarn
40
+ end # class Yarn
41
41
  end # module JavaScript
42
42
  end # module Anticuado
@@ -1,6 +1,6 @@
1
1
  module Anticuado
2
2
  module Ruby
3
- module Bundler
3
+ class Bundler < Anticuado::Base
4
4
  def self.outdated(project = nil)
5
5
  return puts "have no bundle command" if `which bundle`.empty?
6
6
 
@@ -38,6 +38,6 @@ module Anticuado
38
38
  end
39
39
  }.compact
40
40
  end
41
- end # module Bundler
41
+ end # class Bundler
42
42
  end # module Ruby
43
43
  end # module Anticuado
@@ -1,3 +1,3 @@
1
1
  module Anticuado
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anticuado
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-12 00:00:00.000000000 Z
11
+ date: 2016-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -70,6 +70,7 @@ files:
70
70
  - bin/console
71
71
  - bin/setup
72
72
  - lib/anticuado.rb
73
+ - lib/anticuado/base.rb
73
74
  - lib/anticuado/elixir/hex.rb
74
75
  - lib/anticuado/ios/carthage.rb
75
76
  - lib/anticuado/ios/cocoapods.rb