deb-s3 0.1.0 → 0.1.1
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.
- data/README.md +10 -1
- data/lib/deb/s3.rb +1 -1
- data/lib/deb/s3/package.rb +5 -5
- metadata +2 -2
data/README.md
CHANGED
@@ -23,9 +23,18 @@ With `deb-s3`, there is no need for this. `deb-s3` features:
|
|
23
23
|
|
24
24
|
## Getting Started
|
25
25
|
|
26
|
-
|
26
|
+
You can simply install it from rubygems:
|
27
27
|
|
28
28
|
```console
|
29
|
+
$ gem install deb-s3
|
30
|
+
```
|
31
|
+
|
32
|
+
Or to run the code directly, just check out the repo and run Bundler to ensure
|
33
|
+
all dependencies are installed:
|
34
|
+
|
35
|
+
```console
|
36
|
+
$ git clone https://github.com/krobertson/deb-s3.git
|
37
|
+
$ cd deb-s3
|
29
38
|
$ bundle install
|
30
39
|
```
|
31
40
|
|
data/lib/deb/s3.rb
CHANGED
data/lib/deb/s3/package.rb
CHANGED
@@ -146,12 +146,12 @@ class Deb::S3::Package
|
|
146
146
|
m = dep_re.match(dep)
|
147
147
|
if m
|
148
148
|
name, op, version = m.captures
|
149
|
-
# deb uses ">>" and "<<" for greater and less than respectively.
|
150
|
-
# fpm wants just ">" and "<"
|
151
|
-
op = "<" if op == "<<"
|
152
|
-
op = ">" if op == ">>"
|
153
149
|
# this is the proper form of dependency
|
154
|
-
|
150
|
+
if op && version && op != "" && version != ""
|
151
|
+
"#{name} (#{op} #{version})".strip
|
152
|
+
else
|
153
|
+
name.strip
|
154
|
+
end
|
155
155
|
else
|
156
156
|
# Assume normal form dependency, "name op version".
|
157
157
|
dep
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deb-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-03-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|