home_run 0.9.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/CHANGELOG +3 -0
  2. data/LICENSE +19 -0
  3. data/README.rdoc +314 -0
  4. data/Rakefile +136 -0
  5. data/bench/cpu_bench.rb +279 -0
  6. data/bench/dt_garbage_bench.rb +11 -0
  7. data/bench/dt_mem_bench.rb +14 -0
  8. data/bench/garbage_bench.rb +11 -0
  9. data/bench/mem_bench.rb +14 -0
  10. data/bin/home_run +91 -0
  11. data/default.mspec +12 -0
  12. data/ext/1.8/date_ext.so +0 -0
  13. data/ext/1.9/date_ext.so +0 -0
  14. data/ext/date.rb +7 -0
  15. data/ext/date/format.rb +842 -0
  16. data/ext/date_ext.c +4548 -0
  17. data/ext/date_parser.c +367 -0
  18. data/ext/date_parser.rl +134 -0
  19. data/ext/datetime.c +2804 -0
  20. data/ext/extconf.rb +6 -0
  21. data/spec/date/accessor_spec.rb +176 -0
  22. data/spec/date/add_month_spec.rb +26 -0
  23. data/spec/date/add_spec.rb +23 -0
  24. data/spec/date/boat_spec.rb +38 -0
  25. data/spec/date/civil_spec.rb +147 -0
  26. data/spec/date/commercial_spec.rb +153 -0
  27. data/spec/date/constants_spec.rb +44 -0
  28. data/spec/date/conversions_spec.rb +246 -0
  29. data/spec/date/day_spec.rb +73 -0
  30. data/spec/date/downto_spec.rb +17 -0
  31. data/spec/date/eql_spec.rb +16 -0
  32. data/spec/date/format_spec.rb +52 -0
  33. data/spec/date/gregorian_spec.rb +52 -0
  34. data/spec/date/hash_spec.rb +11 -0
  35. data/spec/date/julian_spec.rb +129 -0
  36. data/spec/date/leap_spec.rb +19 -0
  37. data/spec/date/minus_month_spec.rb +25 -0
  38. data/spec/date/minus_spec.rb +51 -0
  39. data/spec/date/next_prev_spec.rb +108 -0
  40. data/spec/date/ordinal_spec.rb +83 -0
  41. data/spec/date/parse_spec.rb +442 -0
  42. data/spec/date/parsing_spec.rb +77 -0
  43. data/spec/date/relationship_spec.rb +28 -0
  44. data/spec/date/step_spec.rb +109 -0
  45. data/spec/date/strftime_spec.rb +223 -0
  46. data/spec/date/strptime_spec.rb +201 -0
  47. data/spec/date/succ_spec.rb +20 -0
  48. data/spec/date/today_spec.rb +15 -0
  49. data/spec/date/upto_spec.rb +17 -0
  50. data/spec/datetime/accessor_spec.rb +218 -0
  51. data/spec/datetime/add_month_spec.rb +26 -0
  52. data/spec/datetime/add_spec.rb +36 -0
  53. data/spec/datetime/boat_spec.rb +43 -0
  54. data/spec/datetime/constructor_spec.rb +142 -0
  55. data/spec/datetime/conversions_spec.rb +54 -0
  56. data/spec/datetime/day_spec.rb +73 -0
  57. data/spec/datetime/downto_spec.rb +39 -0
  58. data/spec/datetime/eql_spec.rb +17 -0
  59. data/spec/datetime/format_spec.rb +59 -0
  60. data/spec/datetime/hash_spec.rb +11 -0
  61. data/spec/datetime/leap_spec.rb +19 -0
  62. data/spec/datetime/minus_month_spec.rb +25 -0
  63. data/spec/datetime/minus_spec.rb +77 -0
  64. data/spec/datetime/next_prev_spec.rb +138 -0
  65. data/spec/datetime/now_spec.rb +18 -0
  66. data/spec/datetime/parse_spec.rb +390 -0
  67. data/spec/datetime/parsing_spec.rb +77 -0
  68. data/spec/datetime/relationship_spec.rb +28 -0
  69. data/spec/datetime/step_spec.rb +155 -0
  70. data/spec/datetime/strftime_spec.rb +118 -0
  71. data/spec/datetime/strptime_spec.rb +117 -0
  72. data/spec/datetime/succ_spec.rb +24 -0
  73. data/spec/datetime/upto_spec.rb +39 -0
  74. data/spec/spec_helper.rb +59 -0
  75. metadata +154 -0
@@ -0,0 +1,59 @@
1
+ unless ENV['MSPEC_RUNNER']
2
+ begin
3
+ require "pp"
4
+ require 'mspec/version'
5
+ require 'mspec/helpers'
6
+ require 'mspec/guards'
7
+ require 'mspec/runner/shared'
8
+ require 'mspec/matchers/be_ancestor_of'
9
+ require 'mspec/matchers/output'
10
+ require 'mspec/matchers/output_to_fd'
11
+ require 'mspec/matchers/complain'
12
+ require 'mspec/matchers/equal_element'
13
+ require 'mspec/matchers/equal_utf16'
14
+ require 'mspec/matchers/match_yaml'
15
+ require 'mspec/matchers/have_class_variable'
16
+ require 'mspec/matchers/have_constant'
17
+ require 'mspec/matchers/have_instance_method'
18
+ require 'mspec/matchers/have_instance_variable'
19
+ require 'mspec/matchers/have_method'
20
+ require 'mspec/matchers/have_private_instance_method'
21
+ require 'mspec/matchers/have_protected_instance_method'
22
+ require 'mspec/matchers/have_public_instance_method'
23
+
24
+ # Code to setup HOME directory correctly on Windows
25
+ # This duplicates Ruby 1.9 semantics for defining HOME
26
+ platform_is :windows do
27
+ if ENV['HOME']
28
+ ENV['HOME'] = ENV['HOME'].tr '\\', '/'
29
+ elsif ENV['HOMEDIR'] && ENV['HOMEDRIVE']
30
+ ENV['HOME'] = File.join(ENV['HOMEDRIVE'], ENV['HOMEDIR'])
31
+ elsif ENV['HOMEDIR']
32
+ ENV['HOME'] = ENV['HOMEDIR']
33
+ elsif ENV['HOMEDRIVE']
34
+ ENV['HOME'] = ENV['HOMEDRIVE']
35
+ elsif ENV['USERPROFILE']
36
+ ENV['HOME'] = ENV['USERPROFILE']
37
+ else
38
+ puts "No suitable HOME environment found. This means that all of"
39
+ puts "HOME, HOMEDIR, HOMEDRIVE, and USERPROFILE are not set"
40
+ exit 1
41
+ end
42
+ end
43
+
44
+ TOLERANCE = 0.00003 unless Object.const_defined?(:TOLERANCE)
45
+ rescue LoadError
46
+ puts "Please install the MSpec gem to run the specs."
47
+ exit 1
48
+ end
49
+ end
50
+
51
+ CODE_LOADING_DIR = File.expand_path "../fixtures/code", __FILE__
52
+
53
+ minimum_version = "1.5.17"
54
+ unless MSpec::VERSION >= minimum_version
55
+ puts "Please install MSpec version >= #{minimum_version} to run the specs"
56
+ exit 1
57
+ end
58
+
59
+ $VERBOSE = nil unless ENV['OUTPUT_WARNINGS']
metadata ADDED
@@ -0,0 +1,154 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: home_run
3
+ version: !ruby/object:Gem::Version
4
+ hash: 59
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 9
9
+ - 0
10
+ version: 0.9.0
11
+ platform: x86-mingw32
12
+ authors:
13
+ - Jeremy Evans
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-08-20 00:00:00 -07:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: |
23
+ home_run is an implementation of ruby's Date/DateTime classes in C,
24
+ with much better performance (20-200x) than the version in the
25
+ standard library, while being almost completely compatible.
26
+
27
+ email: code@jeremyevans.net
28
+ executables:
29
+ - home_run
30
+ extensions: []
31
+
32
+ extra_rdoc_files:
33
+ - README.rdoc
34
+ - CHANGELOG
35
+ - LICENSE
36
+ files:
37
+ - LICENSE
38
+ - CHANGELOG
39
+ - README.rdoc
40
+ - Rakefile
41
+ - default.mspec
42
+ - bin/home_run
43
+ - ext/date/format.rb
44
+ - ext/date_ext.c
45
+ - ext/extconf.rb
46
+ - ext/date.rb
47
+ - ext/date_parser.c
48
+ - ext/date_parser.rl
49
+ - ext/datetime.c
50
+ - spec/date/strptime_spec.rb
51
+ - spec/date/next_prev_spec.rb
52
+ - spec/date/downto_spec.rb
53
+ - spec/date/leap_spec.rb
54
+ - spec/date/minus_spec.rb
55
+ - spec/date/minus_month_spec.rb
56
+ - spec/date/format_spec.rb
57
+ - spec/date/add_month_spec.rb
58
+ - spec/date/add_spec.rb
59
+ - spec/date/eql_spec.rb
60
+ - spec/date/relationship_spec.rb
61
+ - spec/date/gregorian_spec.rb
62
+ - spec/date/parse_spec.rb
63
+ - spec/date/day_spec.rb
64
+ - spec/date/julian_spec.rb
65
+ - spec/date/parsing_spec.rb
66
+ - spec/date/accessor_spec.rb
67
+ - spec/date/upto_spec.rb
68
+ - spec/date/step_spec.rb
69
+ - spec/date/commercial_spec.rb
70
+ - spec/date/boat_spec.rb
71
+ - spec/date/succ_spec.rb
72
+ - spec/date/conversions_spec.rb
73
+ - spec/date/civil_spec.rb
74
+ - spec/date/hash_spec.rb
75
+ - spec/date/constants_spec.rb
76
+ - spec/date/today_spec.rb
77
+ - spec/date/ordinal_spec.rb
78
+ - spec/date/strftime_spec.rb
79
+ - spec/datetime/strptime_spec.rb
80
+ - spec/datetime/next_prev_spec.rb
81
+ - spec/datetime/downto_spec.rb
82
+ - spec/datetime/leap_spec.rb
83
+ - spec/datetime/minus_spec.rb
84
+ - spec/datetime/minus_month_spec.rb
85
+ - spec/datetime/format_spec.rb
86
+ - spec/datetime/add_month_spec.rb
87
+ - spec/datetime/add_spec.rb
88
+ - spec/datetime/eql_spec.rb
89
+ - spec/datetime/relationship_spec.rb
90
+ - spec/datetime/constructor_spec.rb
91
+ - spec/datetime/now_spec.rb
92
+ - spec/datetime/parse_spec.rb
93
+ - spec/datetime/day_spec.rb
94
+ - spec/datetime/parsing_spec.rb
95
+ - spec/datetime/accessor_spec.rb
96
+ - spec/datetime/upto_spec.rb
97
+ - spec/datetime/step_spec.rb
98
+ - spec/datetime/boat_spec.rb
99
+ - spec/datetime/succ_spec.rb
100
+ - spec/datetime/conversions_spec.rb
101
+ - spec/datetime/hash_spec.rb
102
+ - spec/datetime/strftime_spec.rb
103
+ - spec/spec_helper.rb
104
+ - bench/dt_mem_bench.rb
105
+ - bench/garbage_bench.rb
106
+ - bench/cpu_bench.rb
107
+ - bench/dt_garbage_bench.rb
108
+ - bench/mem_bench.rb
109
+ - ext/1.8/date_ext.so
110
+ - ext/1.9/date_ext.so
111
+ has_rdoc: true
112
+ homepage: http://github.com/jeremyevans/home_run
113
+ licenses: []
114
+
115
+ post_install_message:
116
+ rdoc_options:
117
+ - --quiet
118
+ - --line-numbers
119
+ - --inline-source
120
+ - --title
121
+ - "home_run: Fast Date/DateTime classes for ruby"
122
+ - --main
123
+ - README.rdoc
124
+ require_paths:
125
+ - ext
126
+ required_ruby_version: !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ hash: 59
132
+ segments:
133
+ - 1
134
+ - 8
135
+ - 6
136
+ version: 1.8.6
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ hash: 3
143
+ segments:
144
+ - 0
145
+ version: "0"
146
+ requirements: []
147
+
148
+ rubyforge_project:
149
+ rubygems_version: 1.3.7
150
+ signing_key:
151
+ specification_version: 3
152
+ summary: Fast Date/DateTime classes for ruby
153
+ test_files: []
154
+