delorean 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +1 -1
  2. data/lib/delorean.rb +8 -0
  3. metadata +28 -97
data/README.md CHANGED
@@ -46,7 +46,7 @@ Time-travelling can be extremely useful when you're testing your application.
46
46
 
47
47
  For example, in RSpec you may find convenient to include Delorean's DSL in your `spec_helper.rb`:
48
48
 
49
- Spec::Runner.configure do |config|
49
+ RSpec.configure do |config|
50
50
  config.include Delorean
51
51
  ...
52
52
 
@@ -68,4 +68,12 @@ if RUBY_VERSION >= "1.9.3"
68
68
  Date.civil(t.year, t.mon, t.mday)
69
69
  end
70
70
  end
71
+
72
+ class << DateTime
73
+ alias_method :now_without_delorean, :now
74
+
75
+ def now(sg=Date::ITALY)
76
+ Time.now.to_datetime
77
+ end
78
+ end
71
79
  end
metadata CHANGED
@@ -1,129 +1,60 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: delorean
3
- version: !ruby/object:Gem::Version
4
- hash: 17
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.0
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 1
9
- - 1
10
- version: 1.1.1
11
6
  platform: ruby
12
- authors:
13
- - "Luismi Cavall\xC3\xA9"
7
+ authors:
8
+ - Luismi Cavallé
14
9
  - Sergio Gil
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2011-11-11 00:00:00 +01:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
13
+ date: 2011-12-17 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
23
16
  name: chronic
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &70109337304820 !ruby/object:Gem::Requirement
26
18
  none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 0
33
- version: "0"
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
34
23
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: rspec
38
- prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 27
45
- segments:
46
- - 1
47
- - 3
48
- - 0
49
- version: 1.3.0
50
- type: :development
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: activesupport
54
24
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
58
- - - ~>
59
- - !ruby/object:Gem::Version
60
- hash: 3
61
- segments:
62
- - 2
63
- - 3
64
- - 0
65
- version: 2.3.0
66
- type: :development
67
- version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: rake
70
- prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- hash: 3
77
- segments:
78
- - 0
79
- version: "0"
80
- type: :development
81
- version_requirements: *id004
25
+ version_requirements: *70109337304820
82
26
  description:
83
27
  email: ballsbreaking@bebanjo.com
84
28
  executables: []
85
-
86
29
  extensions: []
87
-
88
- extra_rdoc_files:
30
+ extra_rdoc_files:
89
31
  - README.md
90
- files:
32
+ files:
91
33
  - lib/delorean.rb
92
34
  - README.md
93
35
  - MIT-LICENSE
94
- has_rdoc: true
95
36
  homepage: http://github.com/bebanjo/delorean
96
37
  licenses: []
97
-
98
38
  post_install_message:
99
39
  rdoc_options: []
100
-
101
- require_paths:
40
+ require_paths:
102
41
  - lib
103
- required_ruby_version: !ruby/object:Gem::Requirement
42
+ required_ruby_version: !ruby/object:Gem::Requirement
104
43
  none: false
105
- requirements:
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- hash: 3
109
- segments:
110
- - 0
111
- version: "0"
112
- required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
49
  none: false
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- hash: 3
118
- segments:
119
- - 0
120
- version: "0"
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
121
54
  requirements: []
122
-
123
55
  rubyforge_project:
124
- rubygems_version: 1.6.2
56
+ rubygems_version: 1.8.7
125
57
  signing_key:
126
58
  specification_version: 3
127
59
  summary: Delorean lets you travel in time with Ruby by mocking Time.now
128
60
  test_files: []
129
-