anticuado 0.1.4 → 0.2.0

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
  SHA1:
3
- metadata.gz: bf22c75ac3b9177d7ccb64639def7bd0d2e13251
4
- data.tar.gz: 12a4de280185f597e22043fa858405f6b05b6eec
3
+ metadata.gz: 6fba246b50b22915ca61b6ae8cedbb630791bef2
4
+ data.tar.gz: b733a88861a93a73179fb0717fc17f57abefa3fb
5
5
  SHA512:
6
- metadata.gz: 548749e1cf926c60fedbe60f7546819a4ab6b1b4afeb0288bdea3f6377c28b6424622ee78935f4276ecdaeb9afb8971d4d6470822991bd95428acbb7bf31676e
7
- data.tar.gz: 126f15e8a7b0dd2858e3dd074414232808fc59af2fd1ac7d6c598a7ba0903041f849c20893528d5af6542a63b65add4a6811903bc8854f6b921645c9d5fbcea8
6
+ metadata.gz: b929635f9391f9f0e9dc344b5f2c078dc5c6b161a90ad92b2ad53749fe340f45289185221154efcd02d730502e83ff2addf912e3f5d769d239a81010c3a4b6cd
7
+ data.tar.gz: 2c3d9cb7e4beb38a6a05a58e900490545ca47babf45bcb4c20001e3d5dc35d582a956309aa5dfbce1a8af836d1d1b4f43251b6ed589c6d45662cb414a0d2a4db
data/README.md CHANGED
@@ -37,13 +37,13 @@ This library's results are like the following format:
37
37
 
38
38
  ```ruby
39
39
  [
40
- {
40
+ {
41
41
  library_name: "AFNetworking",
42
42
  current_version: "2.5.0",
43
43
  available_version: "3.1.0",
44
44
  latest_version: "3.1.0"
45
45
  },
46
- {
46
+ {
47
47
  library_name: "OHHTTPStubs",
48
48
  current_version: "4.1.0",
49
49
  available_version: "5.0.0",
@@ -60,7 +60,7 @@ This library's results are like the following format:
60
60
  ```ruby
61
61
  require "anticuado"
62
62
 
63
- outdated = ::Anticuado::IOS::CocoaPods.outdated project: "path/to/project"
63
+ outdated = ::Anticuado::IOS::CocoaPods.outdated "path/to/project"
64
64
  ::Anticuado::IOS::CocoaPods.format outdated
65
65
  ```
66
66
 
@@ -71,7 +71,7 @@ outdated = ::Anticuado::IOS::CocoaPods.outdated project: "path/to/project"
71
71
  ```ruby
72
72
  require "anticuado"
73
73
 
74
- outdated = ::Anticuado::IOS::Carthage.outdated project: "path/to/project"
74
+ outdated = ::Anticuado::IOS::Carthage.outdated "path/to/project"
75
75
  ::Anticuado::IOS::Carthage.format outdated
76
76
  ```
77
77
 
@@ -87,7 +87,7 @@ https://github.com/ben-manes/gradle-versions-plugin
87
87
  ```ruby
88
88
  require "anticuado"
89
89
 
90
- ::Anticuado::Java::Gradle.outdated project: "path/to/project"
90
+ ::Anticuado::Java::Gradle.outdated "path/to/project"
91
91
  outdated = ::Anticuado::Java::Gradle.parse_json "build/dependencyUpdates"
92
92
  ::Anticuado::Java::Gradle.format outdated
93
93
  ```
@@ -100,7 +100,7 @@ outdated = ::Anticuado::Java::Gradle.parse_json "build/dependencyUpdates"
100
100
  ```ruby
101
101
  require "anticuado"
102
102
 
103
- outdated = ::Anticuado::Elixir::Hex.outdated project: "path/to/project"
103
+ outdated = ::Anticuado::Elixir::Hex.outdated "path/to/project"
104
104
  ::Anticuado::Elixir::Hex.format outdated
105
105
  ```
106
106
 
@@ -112,7 +112,7 @@ outdated = ::Anticuado::Elixir::Hex.outdated project: "path/to/project"
112
112
  ```ruby
113
113
  require "anticuado"
114
114
 
115
- outdated = ::Anticuado::Ruby::Bundler.outdated project: "path/to/project"
115
+ outdated = ::Anticuado::Ruby::Bundler.outdated "path/to/project"
116
116
  ::Anticuado::Ruby::Bundler.format outdated
117
117
  ```
118
118
 
@@ -127,4 +127,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERN
127
127
  ## License
128
128
 
129
129
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
130
-
@@ -16,7 +16,7 @@ module Anticuado
16
16
  File.expand_path "."
17
17
  end
18
18
 
19
- def self.project_dir(project:)
19
+ def self.project_dir(project)
20
20
  File.expand_path(project, ".")
21
21
  end
22
22
  end
@@ -3,12 +3,12 @@ module Anticuado
3
3
  module Hex
4
4
  # @param [String] project Path to project directory.
5
5
  # @return [String] The result of command `mix hex.outdated`.
6
- def self.outdated(project: nil)
6
+ def self.outdated(project = nil)
7
7
  return puts "have no mix command" if `which mix`.empty?
8
8
 
9
9
  if project
10
10
  current_dir = Anticuado.current_dir
11
- Dir.chdir Anticuado.project_dir(project: project)
11
+ Dir.chdir Anticuado.project_dir(project)
12
12
  outdated_str = `mix hex.outdated`
13
13
  Dir.chdir current_dir
14
14
  else
@@ -3,7 +3,7 @@ module Anticuado
3
3
  module Carthage
4
4
  # @param [String] project Path to project directory.
5
5
  # @return [String] The result of command `carthage outdated`.
6
- def self.outdated(project: nil)
6
+ def self.outdated(project = nil)
7
7
  return puts "have no carthage command" if `which carthage`.empty?
8
8
 
9
9
  if project
@@ -3,7 +3,7 @@ module Anticuado
3
3
  module CocoaPods
4
4
  # @param [String] project Path to project directory.
5
5
  # @return [String] The result of command `pod outdated`.
6
- def self.outdated(project: nil)
6
+ def self.outdated(project = nil)
7
7
  return puts "have no pod command" if `which pod`.empty?
8
8
 
9
9
  if project
@@ -8,12 +8,12 @@ module Anticuado
8
8
  # @param [String] revision "release", "milestone" or "integration". Default is "release".
9
9
  # @param [String] format "plain", "json" or "xml". Default is "json".
10
10
  # @param [String] outdir Path to output the result. Default is "build/dependencyUpdates".
11
- def self.outdated(wrapper: false, project: nil, revision: "release", format: "json", outdir: "build/dependencyUpdates")
11
+ def self.outdated(wrapper = false, project = nil, revision = "release", format = "json", outdir = "build/dependencyUpdates")
12
12
  return puts "have no gradle command" if !wrapper && `which gradle`.empty?
13
13
 
14
14
  if project
15
15
  current_dir = Anticuado.current_dir
16
- Dir.chdir Anticuado.project_dir(project: project)
16
+ Dir.chdir Anticuado.project_dir(project)
17
17
  `#{gradle(wrapper)} dependencyUpdates -Drevision=#{revision} -DoutputFormatter=#{format} -DoutputDir=#{outdir}`
18
18
  Dir.chdir current_dir
19
19
  else
@@ -3,12 +3,12 @@ module Anticuado
3
3
  module Npm
4
4
  # @param [String] project Path to project directory.
5
5
  # @return [String] The result of command `npm outdated`.
6
- def self.outdated(project: nil)
6
+ def self.outdated(project = nil)
7
7
  return puts "have no npm command" if `which npm`.empty?
8
8
 
9
9
  if project
10
10
  current_dir = Anticuado.current_dir
11
- Dir.chdir Anticuado.project_dir(project: project)
11
+ Dir.chdir Anticuado.project_dir(project)
12
12
  outdated_str = `npm outdated`
13
13
  Dir.chdir current_dir
14
14
  else
@@ -1,12 +1,12 @@
1
1
  module Anticuado
2
2
  module Ruby
3
3
  module Bundler
4
- def self.outdated(project: nil)
4
+ def self.outdated(project = nil)
5
5
  return puts "have no bundle command" if `which bundle`.empty?
6
6
 
7
7
  if project
8
8
  current_dir = Anticuado.current_dir
9
- Dir.chdir Anticuado.project_dir(project: project)
9
+ Dir.chdir Anticuado.project_dir(project)
10
10
  `bundle install`
11
11
  outdated_str = `bundle outdated`
12
12
  Dir.chdir current_dir
@@ -1,3 +1,3 @@
1
1
  module Anticuado
2
- VERSION = "0.1.4"
2
+ VERSION = "0.2.0"
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.1.4
4
+ version: 0.2.0
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-05 00:00:00.000000000 Z
11
+ date: 2016-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -102,4 +102,3 @@ signing_key:
102
102
  specification_version: 4
103
103
  summary: Collect and arrange some outdated libraries for several platforms
104
104
  test_files: []
105
- has_rdoc: