ork-timestamps 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e3a4447ac54c2f34109af946b278af6cc9b3294
4
- data.tar.gz: d7c56f9257d2448b6c1224a5ea6a4b46e9aa8d04
3
+ metadata.gz: 0d63296b61d280de949c95c2b9346f150781a23f
4
+ data.tar.gz: 1ca96e797bcc7dcbab38b38792d0708d920af8d6
5
5
  SHA512:
6
- metadata.gz: 3bd8eaa13b7249165931dc86a74ca1b48f6b7861da149e5518e7e2623211939fe8cba59831dd9b05becb272f7c00314cfc111e0ae79a4091d17b73fba5a5df64
7
- data.tar.gz: 2b17dc71d99b051984caf22aadbd22d672f8e860aecaed3b55fc658673ea3aabfae8ac03af21bcf6a5c5cd58a7e7742b1075ac9ce3b372b9c2f68aa826444a3f
6
+ metadata.gz: 1a7817ad79c22d7313c845fe0be237288260c7f487971f1ee31b27bfdc2bdde8fec16f145b463c3c6338b21f066b1e3e52ee60cfa4a5c8b95cb4be8a28ed4a92
7
+ data.tar.gz: 1d85d753a954a7cd4721e911adefd32a562be9648d7ae1919332d71cade78acf6ed33604c29374dee2055429c97283edd76bc80792c64b671dd2eb8b66fa9eaa
data/README.md CHANGED
@@ -4,7 +4,7 @@ ork-timestamps
4
4
  [![Gem Version](https://badge.fury.io/rb/ork-timestamps.png)](http://badge.fury.io/rb/ork-timestamps)
5
5
  [![Build Status](https://secure.travis-ci.org/emancu/ork-timestamps.png)](http://travis-ci.org/emancu/ork-timestamps)
6
6
  [![Code Climate](https://codeclimate.com/github/emancu/ork-timestamps.png)](https://codeclimate.com/github/emancu/ork-timestamps)
7
- [![Coverage Status](https://coveralls.io/repos/emancu/ork/badge.png)](https://coveralls.io/r/emancu/ork-timestamps)
7
+ [![Coverage Status](https://coveralls.io/repos/emancu/ork-timestamps/badge.png)](https://coveralls.io/r/emancu/ork-timestamps)
8
8
  [![Dependency Status](https://gemnasium.com/emancu/ork-timestamps.png)](https://gemnasium.com/emancu/ork-timestamps)
9
9
 
10
10
 
@@ -1,11 +1,9 @@
1
- require_relative 'errors'
2
-
3
1
  module Ork
4
2
  module Timestamps
5
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
6
4
 
7
5
  def self.included(klass)
8
- raise NotAnOrkDocument unless klass.included_modules.include? Ork::Document
6
+ raise Ork::NotOrkObject unless klass.include? Ork::Document
9
7
 
10
8
  klass.class_eval do |base|
11
9
  attribute :created_at, accessors: :reader
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ork-timestamps'
3
- s.version = '0.0.1'
3
+ s.version = '0.0.2'
4
4
  s.date = Time.now.strftime('%Y-%m-%d')
5
5
  s.summary = 'A simple library to add timestamps to Ork::Documents stored in riak.'
6
6
  s.description = 'Add the clasic timestamps :created_at, :updated_at to the Ork::Documents'
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.test_files = Dir['test/*.*']
19
19
 
20
20
  s.add_runtime_dependency 'riak-client', '~> 1.4'
21
- s.add_runtime_dependency 'ork', '~> 0.1', '>= 0.1.3'
21
+ s.add_runtime_dependency 'ork', '~> 0.1', '>= 0.1.4'
22
22
  s.add_development_dependency 'protest', '~> 0'
23
23
  s.add_development_dependency 'coveralls', '~> 0'
24
24
  end
@@ -10,7 +10,7 @@ end
10
10
  Protest.describe 'Ork::Timestamps' do
11
11
  context 'include Ork::Timestamps' do
12
12
  test 'raise an error if it is not a Ork::Document' do
13
- assert_raise Ork::Timestamps::NotAnOrkDocument do
13
+ assert_raise Ork::NotOrkObject do
14
14
  class NotADocument
15
15
  include Ork::Timestamps
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ork-timestamps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emiliano Mancuso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-14 00:00:00.000000000 Z
11
+ date: 2014-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: riak-client
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '0.1'
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 0.1.3
36
+ version: 0.1.4
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0.1'
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 0.1.3
46
+ version: 0.1.4
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: protest
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -80,7 +80,6 @@ extensions: []
80
80
  extra_rdoc_files: []
81
81
  files:
82
82
  - README.md
83
- - lib/ork/errors.rb
84
83
  - lib/ork/timestamps.rb
85
84
  - ork-timestamps.gemspec
86
85
  - rakefile
@@ -1,7 +0,0 @@
1
- module Ork
2
- module Timestamps
3
-
4
- class NotAnOrkDocument < StandardError; end
5
- end
6
- end
7
-