giff 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -13
- data/lib/giff/diff.rb +2 -4
- data/lib/giff/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9146a75c2f357955beeee13ae9c4c1e8ae2f5353af412fd56735b2e2129bd87
|
4
|
+
data.tar.gz: daa69f569a9aa35627d2dadc3b19a018eddd9ba79f26203e9149cbb420775e1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7528a300b3c99cecb6098b03b644b1867c0570569ee11d8b7f926cec6c7163872995139285e51cf6a0cdb41ff96118d76787662120d4feca355bd9dc15f5f6b6
|
7
|
+
data.tar.gz: 71547b3132c5f09b6e325fe9e230663cb5525f3c467d82a7aaf16cd6e25528e546d0bfb73dcc2af3d9dc5c40e691c817c25280f92afc0ee20dbb6487ad5214a5
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -8,23 +8,14 @@ Show the differences between two `.gem` files!
|
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
11
|
-
Add this line to your application's Gemfile:
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
gem 'giff'
|
15
|
-
```
|
16
|
-
|
17
|
-
And then execute:
|
18
|
-
|
19
|
-
$ bundle
|
20
|
-
|
21
|
-
Or install it yourself as:
|
22
|
-
|
23
11
|
$ gem install giff
|
24
12
|
|
25
13
|
## Usage
|
26
14
|
|
27
|
-
|
15
|
+
$ giff pkg/giff-0.1.0.gem pkg/giff-0.1.1.gem
|
16
|
+
README.md was modified
|
17
|
+
lib/giff/diff.rb was modified
|
18
|
+
lib/giff/version.rb was modified
|
28
19
|
|
29
20
|
## Development
|
30
21
|
|
data/lib/giff/diff.rb
CHANGED
@@ -9,8 +9,8 @@ module Giff
|
|
9
9
|
|
10
10
|
def describe
|
11
11
|
if files_changed?
|
12
|
-
data_a = @gem_a.data
|
13
|
-
data_b = @gem_b.data
|
12
|
+
data_a = @gem_a.data.contents
|
13
|
+
data_b = @gem_b.data.contents
|
14
14
|
keys = (data_a.keys + data_b.keys).sort.uniq
|
15
15
|
keys.each do |key|
|
16
16
|
if !data_a.key?(key)
|
@@ -19,8 +19,6 @@ module Giff
|
|
19
19
|
STDERR.puts "#{key} was added"
|
20
20
|
elsif data_a[key] != data_b[key]
|
21
21
|
STDERR.puts "#{key} was modified"
|
22
|
-
else
|
23
|
-
STDERR.puts "#{key} was unchanged"
|
24
22
|
end
|
25
23
|
end
|
26
24
|
elsif metadata_changed?
|
data/lib/giff/version.rb
CHANGED