test-model 0.1.1 → 0.2.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: 6d7a1592c77a2e9f5187a033ff102341174c48d2
4
- data.tar.gz: e49bdcfed5e5ad5a70be6b95a44c22e152bd48b5
3
+ metadata.gz: 4b904dba8c06881f0cdbf7497d53b67f356365a2
4
+ data.tar.gz: a074b846942c1a0a81f774ec4f8f486a5ee944b5
5
5
  SHA512:
6
- metadata.gz: e95f18eceeba899a12e3b6d6accefeda8274593de24081d9dbf34ee408f9486454c4531aac5528943b824f554006d149d132b74aa12a264453ea1c9d592edc0c
7
- data.tar.gz: 5d5f4f164f8bd297108efd483f955853dfbfba252ff61c8558131197f4bf5fa9161f576e659ade41725ef1326d7013b955b5f5e6b71dc609b709c40b86479734
6
+ metadata.gz: d992744c5bfa604217ad91e6f5318f5f8ebe4aba61fc228f265da31c311bd2af4d134930de61fa7215adfcbcb9070e4e6392cd1bd3551a6697777c26e9554317
7
+ data.tar.gz: 347b604afb36aaf594e64ef18f00e1313dc6e8f5793169cab2039a04899f76b730712c412b8f2a29d2c45e3bdd2055c75d1c379f55c1c25b95ae4a7616a5ffa0
data/README.md CHANGED
@@ -9,7 +9,7 @@ Please see [spec/model_spec.rb](spec/model_spec.rb) for examples.
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'model'
12
+ gem 'test-model'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -18,16 +18,16 @@ And then execute:
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install model
21
+ $ gem install test-model
22
+
23
+ To use this library:
22
24
 
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
25
+ ```ruby
26
+ require 'model'
27
+ ```
26
28
 
27
29
  ## Development
28
30
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
31
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
32
 
33
33
  ## Contributing
data/Rakefile CHANGED
@@ -1 +1,3 @@
1
1
  require "bundler/gem_tasks"
2
+
3
+ ENV['RUBYGEMS_HOST'] = nil
@@ -47,4 +47,9 @@ class Model
47
47
  send key
48
48
  end
49
49
 
50
+ def eql?(other)
51
+ keys.all? { |k| send(k) == other[k] }
52
+ end
53
+ alias_method :==, :eql?
54
+
50
55
  end
@@ -1,3 +1,3 @@
1
1
  class Model
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'model/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "test-model"
7
+ spec.name = "test-model"
8
8
  spec.version = Model::VERSION
9
9
  spec.authors = ["Bret Pettichord"]
10
10
  spec.email = ["bret@pettichord.com"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bret Pettichord
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-30 00:00:00.000000000 Z
11
+ date: 2015-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler