microscope 0.5.8 → 0.5.9

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: 4d0dca4213a2ae5d3f283756406aed55a4d28e55
4
- data.tar.gz: 10c15290f3784a35e3273954fa5451cf91dd5ea5
3
+ metadata.gz: f5c15a13db4226f85ae4256a01386c7054343e9d
4
+ data.tar.gz: 1be103a979a7d29d1e84e192e2edd45c56bf150b
5
5
  SHA512:
6
- metadata.gz: f567999f9639db99ed40340ce3f46260e81733f7fcdf753a09f8d133e7c8cd25dcee76c1be31c7ecf29d40a3e40e414c695f78dcaeb8121eb7564e92e140edd5
7
- data.tar.gz: f4f8caa7fd050625cdaf7b1505808fa045c3df34e79017083a488829ecee460c44ef18c319f56b42f2268067db199fc630ef47cac9b72876487a3bc7149384e3
6
+ metadata.gz: fa444471fcd5c5f4d845a7daeeba91c9f3f1cc8f51b0694bf5badfce6e6d8cc8a0aa8970bd8bbd9bfa8f947fa5f29948d01a3142d000e788deaec28f6aacf198
7
+ data.tar.gz: 11339212101082f71e99742c9da6d1c0aa5133ec2a0d3f7abdecd9d8304c8e6c96ba83d5e52f649115b3280545fa39a2a54faedebfa3c04b8783d6d687ab5999
@@ -31,6 +31,7 @@ module Microscope
31
31
  define_method "not_#{cropped_field}?" do
32
32
  !#{cropped_field}?
33
33
  end
34
+ alias_method 'un#{cropped_field}?', 'not_#{cropped_field}?'
34
35
 
35
36
  define_method "#{infinitive_verb}!" do
36
37
  send("#{field.name}=", #{@now})
@@ -31,6 +31,7 @@ module Microscope
31
31
  define_method "not_#{cropped_field}?" do
32
32
  !#{cropped_field}?
33
33
  end
34
+ alias_method 'un#{cropped_field}?', 'not_#{cropped_field}?'
34
35
 
35
36
  define_method "#{infinitive_verb}!" do
36
37
  send("#{field.name}=", #{@now})
@@ -1,3 +1,3 @@
1
1
  module Microscope
2
- VERSION = '0.5.8'
2
+ VERSION = '0.5.9'
3
3
  end
@@ -64,6 +64,7 @@ describe Microscope::InstanceMethod::DateInstanceMethod do
64
64
  context 'with negative result' do
65
65
  let(:event) { Event.create(started_on: 2.months.ago) }
66
66
  it { expect(event).to_not be_not_started }
67
+ it { expect(event).to respond_to(:unstarted?) }
67
68
  end
68
69
 
69
70
  context 'with positive result' do
@@ -53,6 +53,7 @@ describe Microscope::InstanceMethod::DatetimeInstanceMethod do
53
53
  context 'with negative result' do
54
54
  let(:event) { Event.create(started_at: 2.months.ago) }
55
55
  it { expect(event).to_not be_not_started }
56
+ it { expect(event).to respond_to(:unstarted?) }
56
57
  end
57
58
 
58
59
  context 'with positive result' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: microscope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Prévost
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-27 00:00:00.000000000 Z
12
+ date: 2014-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  version: '0'
203
203
  requirements: []
204
204
  rubyforge_project:
205
- rubygems_version: 2.1.0
205
+ rubygems_version: 2.2.0
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: Microscope adds useful scopes targeting ActiveRecord boolean and datetime