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 +4 -4
- data/bin/xpm +5 -0
- data/lib/xpm/version.rb +2 -2
- data/lib/xpm/xp.rb +7 -3
- data/xpm.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7993c4e8bd74dd1c9155d06a17ea6fa511e3e7d
|
4
|
+
data.tar.gz: 301cef692dafcb8e78a704185238aa22edc6d0c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a01a49630295209a6e27c84d9371ed795b633ec696a9f9c3e0b0f278a456e2cc47df446a9b07558ce53b32f07a9a11d5a3d051ed49f0698e8f181831af5d6de
|
7
|
+
data.tar.gz: e3afb5f13cc89b6b60b3e7f978c21d25d9fe56c5cd916d170fb16633b9250892ce88f21c1d335671fd107fee95ac970ce15ab08fef2d9c2c68c750d2f19f307f
|
data/bin/xpm
CHANGED
data/lib/xpm/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = "0.0.
|
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
|
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
|
-
|
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 =
|
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.
|
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-
|
11
|
+
date: 2014-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|