xpm 0.0.2 → 0.0.3

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: 894827905da4f0f030ea5d4d91a51bdb835ba666
4
- data.tar.gz: 46b5b0c7172f6705a1ba809058d1e0e1341022a2
3
+ metadata.gz: a7993c4e8bd74dd1c9155d06a17ea6fa511e3e7d
4
+ data.tar.gz: 301cef692dafcb8e78a704185238aa22edc6d0c4
5
5
  SHA512:
6
- metadata.gz: a3dbbb6367e3838255c97e945116cfb2b54d28463a0d83ae39dcdaf41469028ef46c840e4d697790beb89ecac72cdb32aed8815c23de2d615b3d3b0fe75bb373
7
- data.tar.gz: c1eb3617b4fa78699610d1d436a8c8c390d8bc8278443c279dfabed6909426b199d5a5232d66223d547a75a4b5eb78ada7f2fbc47a17bd52746ec6f052d6bbd9
6
+ metadata.gz: 5a01a49630295209a6e27c84d9371ed795b633ec696a9f9c3e0b0f278a456e2cc47df446a9b07558ce53b32f07a9a11d5a3d051ed49f0698e8f181831af5d6de
7
+ data.tar.gz: e3afb5f13cc89b6b60b3e7f978c21d25d9fe56c5cd916d170fb16633b9250892ce88f21c1d335671fd107fee95ac970ce15ab08fef2d9c2c68c750d2f19f307f
data/bin/xpm CHANGED
@@ -18,6 +18,11 @@ class XpmCli < Thor
18
18
  xp.install(package)
19
19
  end
20
20
 
21
+ desc "version", "gives the current version"
22
+ def version
23
+ puts XPM::VERSION
24
+ end
25
+
21
26
  end
22
27
 
23
28
  XpmCli.start(ARGV)
data/lib/xpm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
- module Xpm
2
- VERSION = "0.0.2"
1
+ module XPM
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/xpm/xp.rb CHANGED
@@ -71,13 +71,17 @@ module XPM
71
71
  desc = File.read(File.join(bower, "bower.json"))
72
72
  desc = JSON.parse(desc)
73
73
  mname = File.basename(bower)
74
- destination_directory = File.join("exports", mname, ".")
75
74
  exports = desc["exports"]
76
- @logger.debug exports
75
+ @logger.debug "exporting files for #{mname}"
77
76
  exports.each do |export|
78
77
  source_file = File.join(bower, export)
78
+ destination_file = File.join("exports", mname, export)
79
+ destination_directory = File.dirname(destination_file)
79
80
  FileUtils.mkdir_p destination_directory
80
- FileUtils.cp source_file, destination_directory
81
+ if (!File.exist?(destination_file))
82
+ @logger.debug "exporting #{export}"
83
+ FileUtils.cp source_file, destination_file
84
+ end
81
85
  end unless exports.nil?
82
86
  end
83
87
 
data/xpm.gemspec CHANGED
@@ -5,7 +5,7 @@ require 'xpm/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "xpm"
8
- spec.version = Xpm::VERSION
8
+ spec.version = XPM::VERSION
9
9
  spec.authors = ["msimonin"]
10
10
  spec.email = ["matthieu.simonin@inria.fr"]
11
11
  spec.summary = "xpm is a command line tool to control capi5k"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - msimonin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-25 00:00:00.000000000 Z
11
+ date: 2014-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor