quantum_leap 0.7.1 → 0.7.2

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: 6573232468bb00173ef5a5a8fe561cf3c6ae83ea
4
- data.tar.gz: 0b018140dab2a5467d6bd9e568b5ae3983a3db7b
3
+ metadata.gz: 31cef19233ab441b0aa9d1fa0f98221eb51ccd1f
4
+ data.tar.gz: b02d15f85b0491e36ec1e4a847df134c2aebfd70
5
5
  SHA512:
6
- metadata.gz: c119021b8581adceffa56fcf3fa0e4189d04311225afe6994d0d8d943133bf09b3081451bbc165cab99bead20af020c2eaebae7187d1abac15d1cd3e500c7da7
7
- data.tar.gz: e178a8a69e594a46fa5c8883cc363543211b50f098c9bd1460c0df43d4d92ac543e66d314d9bf8306202b5d0a9e1eff63b15b897bc0ab0bedb2f9551254feb88
6
+ metadata.gz: 24cfb2fb0add0301291322d4d4e3b8b106482c22986797469637411aab73035c07d88a6575ac93ed15e653b6dabd56405bbcae67d013b747121263ecf2164a6a
7
+ data.tar.gz: 71318e7fa83095e156e267d6dddf1d9608c8b9f715de86d40d4ff28cd864a59c7a75f15d2c4285fd84dc065f9e492e6f1513e59cde5d095cf7098b8df2224b98
@@ -1,9 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.2
4
- - 1.9.3
5
- - jruby-19mode
6
- - rbx-19mode
7
- matrix:
8
- allow_failures:
9
- - rvm: jruby-19mode
3
+ - 2.3.3
4
+ sudo: false
@@ -1,5 +1,3 @@
1
- require 'quantum_leap'
2
-
3
1
  module QuantumLeap
4
2
  # Internal: The main module for methods that manipulate time, and provide
5
3
  # interfaces to the custom time.
@@ -1,3 +1,3 @@
1
1
  module QuantumLeap
2
- VERSION = '0.7.1'
2
+ VERSION = '0.7.2'
3
3
  end
@@ -12,10 +12,10 @@ Gem::Specification.new do |gem|
12
12
  gem.homepage = "https://mattreduce.github.io/quantum_leap/"
13
13
 
14
14
  gem.files = `git ls-files`.split($\)
15
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
16
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
15
+ gem.test_files = gem.files.grep(%r{^spec/})
17
16
  gem.require_paths = ["lib"]
18
17
  gem.version = QuantumLeap::VERSION
19
18
 
19
+ gem.add_development_dependency("minitest")
20
20
  gem.add_development_dependency("rake")
21
21
  end
@@ -13,11 +13,13 @@ describe Quantum do
13
13
  the_past = Time.new(1956, 9, 13, 15, 00)
14
14
 
15
15
  it 'changes the current time' do
16
+ Time.now.must_be_within_delta(the_present, 1)
16
17
  Quantum.leap(the_past)
17
18
  Time.now.must_be_within_delta(the_past, 1)
18
19
  end
19
20
 
20
21
  it 'changes the current date' do
22
+ Date.today.must_equal(the_present.to_date)
21
23
  Quantum.leap(the_past)
22
24
  Date.today.must_equal(the_past.to_date)
23
25
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quantum_leap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Conway
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-21 00:00:00.000000000 Z
11
+ date: 2016-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: minitest
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rake
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -33,7 +47,6 @@ extra_rdoc_files: []
33
47
  files:
34
48
  - ".gitignore"
35
49
  - ".travis.yml"
36
- - CONTRIBUTING.md
37
50
  - Gemfile
38
51
  - LICENSE
39
52
  - README.md
@@ -67,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
80
  version: '0'
68
81
  requirements: []
69
82
  rubyforge_project:
70
- rubygems_version: 2.2.2
83
+ rubygems_version: 2.5.1
71
84
  signing_key:
72
85
  specification_version: 4
73
86
  summary: Lets you change the current time in your tests
@@ -1,45 +0,0 @@
1
- # Contributing
2
-
3
- I would love for the community to help me make `quantum_leap` the time mocking
4
- gem we've collectively always wanted!
5
-
6
- Here's all the information you'll need:
7
-
8
- ## GitHub Issues
9
-
10
- Issues is an excellent feature! Leave any suggestions, feature requests and bug
11
- reports there. I will try to address all as time allows.
12
-
13
- If I haven't responded to your Issue within a reasonable timeframe, feel free
14
- to ping me at <mattonrails@shortmail.com> or on
15
- [Twitter](http://twitter.com/mattonrails).
16
-
17
- ## Trello Board
18
-
19
- Check out the [Trello
20
- board](https://trello.com/board/quantumleap/4fc55ee290d3e95063cfc925) to see
21
- what features and enhancements are planned for QuantumLeap and what is
22
- currently in process.
23
-
24
- Anyone can view, comment on, or vote for cards on this board. If you would like
25
- to be a member and collaborate on this board, let me know.
26
-
27
- ## Code
28
-
29
- This is a **Ruby 1.9** gem meant to support **MRI**, **Rubinius** and
30
- **JRuby**.
31
-
32
- Changes to `quantum_leap` should not break on any of the supported Ruby
33
- implementations. [Travis CI](http://travis-ci.org/#!/mattonrails/quantum_leap)
34
- indicates the current build status on all three rubies.
35
-
36
- QuantumLeap comes with a `MiniTest::Spec` test suite--the test framework built
37
- into Ruby 1.9, with a little extra sugar.
38
-
39
- 1. Fork this project
40
- 2. Consider working in a topic branch (git checkout -b lazers)
41
- 3. Write your patch or new functionality
42
- 4. Please provide test coverage
43
- 5. Push to the branch (git push origin lazers)
44
- 6. Create new Pull Request
45
-