anticuado 0.1.3 → 0.1.4

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: 103a1513e6d917e01f8c7a9158fd60f7b5173244
4
- data.tar.gz: b5b11cc176a246173a98d94efa62e730a79c0dca
3
+ metadata.gz: bf22c75ac3b9177d7ccb64639def7bd0d2e13251
4
+ data.tar.gz: 12a4de280185f597e22043fa858405f6b05b6eec
5
5
  SHA512:
6
- metadata.gz: ccc11cceb0bc15d5e1518e82430554e9d7bd7abc37f9b82d9697d4564df8185395acaef573e122c04baf95f18215d652c9fa642d92b2a766ccaf476fa1ea4511
7
- data.tar.gz: e7a9356e011fe310149ccb328aa15f0e811f3aaa018c703247c4f667435ea1ef8d8b8e2ad92cf96e493b02b42127e34fac193a3800d20900fd1765831901b644
6
+ metadata.gz: 548749e1cf926c60fedbe60f7546819a4ab6b1b4afeb0288bdea3f6377c28b6424622ee78935f4276ecdaeb9afb8971d4d6470822991bd95428acbb7bf31676e
7
+ data.tar.gz: 126f15e8a7b0dd2858e3dd074414232808fc59af2fd1ac7d6c598a7ba0903041f849c20893528d5af6542a63b65add4a6811903bc8854f6b921645c9d5fbcea8
data/README.md CHANGED
@@ -12,6 +12,8 @@ This library collect __outdated__ libraries for each platforms. [Here](https://g
12
12
  - Bundler
13
13
  - Elixir
14
14
  - Hex
15
+ - JavaScript
16
+ - npm
15
17
 
16
18
  ## Installation
17
19
 
@@ -12,5 +12,11 @@ require "anticuado/ruby/bundler"
12
12
  require "anticuado/javascript/npm"
13
13
 
14
14
  module Anticuado
15
- # Your code goes here...
15
+ def self.current_dir
16
+ File.expand_path "."
17
+ end
18
+
19
+ def self.project_dir(project:)
20
+ File.expand_path(project, ".")
21
+ end
16
22
  end
@@ -7,8 +7,8 @@ module Anticuado
7
7
  return puts "have no mix command" if `which mix`.empty?
8
8
 
9
9
  if project
10
- current_dir = Dir.pwd
11
- Dir.chdir project
10
+ current_dir = Anticuado.current_dir
11
+ Dir.chdir Anticuado.project_dir(project: project)
12
12
  outdated_str = `mix hex.outdated`
13
13
  Dir.chdir current_dir
14
14
  else
@@ -12,8 +12,8 @@ module Anticuado
12
12
  return puts "have no gradle command" if !wrapper && `which gradle`.empty?
13
13
 
14
14
  if project
15
- current_dir = Dir.pwd
16
- Dir.chdir project
15
+ current_dir = Anticuado.current_dir
16
+ Dir.chdir Anticuado.project_dir(project: project)
17
17
  `#{gradle(wrapper)} dependencyUpdates -Drevision=#{revision} -DoutputFormatter=#{format} -DoutputDir=#{outdir}`
18
18
  Dir.chdir current_dir
19
19
  else
@@ -7,8 +7,8 @@ module Anticuado
7
7
  return puts "have no npm command" if `which npm`.empty?
8
8
 
9
9
  if project
10
- current_dir = Dir.pwd
11
- Dir.chdir project
10
+ current_dir = Anticuado.current_dir
11
+ Dir.chdir Anticuado.project_dir(project: project)
12
12
  outdated_str = `npm outdated`
13
13
  Dir.chdir current_dir
14
14
  else
@@ -5,11 +5,13 @@ module Anticuado
5
5
  return puts "have no bundle command" if `which bundle`.empty?
6
6
 
7
7
  if project
8
- current_dir = Dir.pwd
9
- Dir.chdir project
8
+ current_dir = Anticuado.current_dir
9
+ Dir.chdir Anticuado.project_dir(project: project)
10
+ `bundle install`
10
11
  outdated_str = `bundle outdated`
11
12
  Dir.chdir current_dir
12
13
  else
14
+ `bundle install`
13
15
  outdated_str = `bundle outdated`
14
16
  end
15
17
  outdated_str
@@ -1,3 +1,3 @@
1
1
  module Anticuado
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
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.3
4
+ version: 0.1.4
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-03 00:00:00.000000000 Z
11
+ date: 2016-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler