quantum_leap 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -7
- data/lib/quantum_leap/accelerator.rb +0 -2
- data/lib/quantum_leap/version.rb +1 -1
- data/quantum_leap.gemspec +2 -2
- data/spec/quantum_spec.rb +2 -0
- metadata +17 -4
- data/CONTRIBUTING.md +0 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31cef19233ab441b0aa9d1fa0f98221eb51ccd1f
|
4
|
+
data.tar.gz: b02d15f85b0491e36ec1e4a847df134c2aebfd70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24cfb2fb0add0301291322d4d4e3b8b106482c22986797469637411aab73035c07d88a6575ac93ed15e653b6dabd56405bbcae67d013b747121263ecf2164a6a
|
7
|
+
data.tar.gz: 71318e7fa83095e156e267d6dddf1d9608c8b9f715de86d40d4ff28cd864a59c7a75f15d2c4285fd84dc065f9e492e6f1513e59cde5d095cf7098b8df2224b98
|
data/.travis.yml
CHANGED
data/lib/quantum_leap/version.rb
CHANGED
data/quantum_leap.gemspec
CHANGED
@@ -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.
|
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
|
data/spec/quantum_spec.rb
CHANGED
@@ -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.
|
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:
|
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.
|
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
|
data/CONTRIBUTING.md
DELETED
@@ -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
|
-
|