lsv-plus 1.0.0 → 1.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67b0dced0cbb671ce675eec190846010d2f54112
4
- data.tar.gz: df55a6632071da0acd5cd8246585d8df817b2233
3
+ metadata.gz: 69b3a27a69ebde28bfabe0588dc5c5f26688082a
4
+ data.tar.gz: 214fce2bb0bf41faa17d60b3eb9e23b2db5e35b0
5
5
  SHA512:
6
- metadata.gz: fcf542e1fc21da168312cc9d29738c7e2c9cd7b4edc93bea047146e0cdce830262c16bd78d6695a8a7991be30744ac37e67e7c8f7a4a76f8995df83358cdcdc6
7
- data.tar.gz: f075b7d881fdc12bdd9e459b32bcd1fea36e637a8859c8bcf1f1d9728cc6cf513a7ed817c6a671d766a5b8e7a9816369e3ec9d0a945e2a5579139a55e3ec71c6
6
+ metadata.gz: 46ea524d0634c0ebe5aa6fdc5bf6a601ac2b3b9f73ed29a0f88c989c1a1be879c1c41a29aae5858b567977ba1b6e5c679cf448335b00c711d317d5d57a79afe2
7
+ data.tar.gz: e102129986881f542781548755a6319e3e86fbb6505d1342cdf1da69355550b33f4cdd9149d78ace1974a3e9cced06ff1120d1786dcbb6def2a11e2bb97a5ca9
data/Gemfile.lock CHANGED
@@ -23,7 +23,7 @@ GEM
23
23
  json (1.8.3)
24
24
  mime-types (2.99)
25
25
  netrc (0.11.0)
26
- rake (10.4.2)
26
+ rake (10.5.0)
27
27
  rest-client (1.8.0)
28
28
  http-cookie (>= 1.0.2, < 2.0)
29
29
  mime-types (>= 1.16, < 3.0)
@@ -37,7 +37,7 @@ GEM
37
37
  rspec-expectations (3.4.0)
38
38
  diff-lcs (>= 1.2.0, < 2.0)
39
39
  rspec-support (~> 3.4.0)
40
- rspec-mocks (3.4.0)
40
+ rspec-mocks (3.4.1)
41
41
  diff-lcs (>= 1.2.0, < 2.0)
42
42
  rspec-support (~> 3.4.0)
43
43
  rspec-support (3.4.1)
@@ -61,11 +61,11 @@ PLATFORMS
61
61
  ruby
62
62
 
63
63
  DEPENDENCIES
64
- coveralls (>= 0.8.10)
64
+ coveralls (~> 0.8)
65
65
  lsv-plus!
66
66
  rake (~> 10.4)
67
- rspec (~> 3.4.0)
68
- rspec_junit_formatter (>= 0.2.2)
67
+ rspec (~> 3.4)
68
+ rspec_junit_formatter (~> 0.2)
69
69
 
70
70
  BUNDLED WITH
71
71
  1.10.6
@@ -53,5 +53,12 @@ module LSVplus
53
53
  raise InvalidAmount, "Must not be higher than #{MAX_AMOUNT}"
54
54
  end
55
55
  end
56
+
57
+ def ==(other)
58
+ ATTRIBUTES.each do |attribute|
59
+ return false unless send(attribute) == other.send(attribute)
60
+ end
61
+ true
62
+ end
56
63
  end
57
64
  end
@@ -1,3 +1,3 @@
1
1
  module LSVplus
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
data/spec/record_spec.rb CHANGED
@@ -59,4 +59,8 @@ RSpec.describe LSVplus::Record do
59
59
  end
60
60
  end
61
61
  end
62
+
63
+ describe '#==' do
64
+ specify { expect(LSVplus::Record.new(attributes)).to eq(LSVplus::Record.new(attributes)) }
65
+ end
62
66
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lsv-plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raffael Schmid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-06 00:00:00.000000000 Z
11
+ date: 2016-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -131,4 +131,3 @@ test_files:
131
131
  - spec/record_spec.rb
132
132
  - spec/spec_helper.rb
133
133
  - spec/total_record_formatter_spec.rb
134
- has_rdoc: