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 +4 -4
- data/README.md +7 -8
- data/lib/anticuado.rb +1 -1
- data/lib/anticuado/elixir/hex.rb +2 -2
- data/lib/anticuado/ios/carthage.rb +1 -1
- data/lib/anticuado/ios/cocoapods.rb +1 -1
- data/lib/anticuado/java/gradle.rb +2 -2
- data/lib/anticuado/javascript/npm.rb +2 -2
- data/lib/anticuado/ruby/bundler.rb +2 -2
- data/lib/anticuado/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fba246b50b22915ca61b6ae8cedbb630791bef2
|
4
|
+
data.tar.gz: b733a88861a93a73179fb0717fc17f57abefa3fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
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
|
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
|
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
|
-
|
data/lib/anticuado.rb
CHANGED
data/lib/anticuado/elixir/hex.rb
CHANGED
@@ -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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
9
|
+
Dir.chdir Anticuado.project_dir(project)
|
10
10
|
`bundle install`
|
11
11
|
outdated_str = `bundle outdated`
|
12
12
|
Dir.chdir current_dir
|
data/lib/anticuado/version.rb
CHANGED
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.
|
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-
|
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:
|