edtf-rails 0.2.5 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b5a3632852f3cfddc82e23d9675a5ed941e7a040
4
+ data.tar.gz: 2045c35fd1378b2741d9b90d22f9003b71336fbb
5
+ SHA512:
6
+ metadata.gz: 44d2aac1f4ad83be3384f6472cd7fd764a3337c760e329389067bcc10a0fb49a82107ba3f9628fe91aa2ed36f22f5fbeba8e0fba05843661e40874e68b1bd6b9
7
+ data.tar.gz: ab827406e3df8c07f7c497c9d98303914604c679a86cbc69891760517a4b61eb9cf0f7e945a7464700cb6f36dbfebdabbfd81a4b41b699415c4b38d930d0819a
data/Appraisals ADDED
@@ -0,0 +1,7 @@
1
+ appraise "rails-3" do
2
+ gem "activerecord", "~> 3.2.0"
3
+ end
4
+
5
+ appraise "rails-4" do
6
+ gem "activerecord", "~> 4.0"
7
+ end
data/Gemfile CHANGED
@@ -1,17 +1,18 @@
1
1
  source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
- gem "activerecord", "~> 3.2.15"
4
- gem "edtf", "~> 1.0"
3
+ gem "activerecord", "~> 3.2.0"
4
+ gem "edtf", :git => "https://github.com/inukshuk/edtf-ruby.git"
5
5
 
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
  group :development do
9
- gem "rspec", "~> 2.8"
9
+ gem "rspec", "~> 2.99.0"
10
10
  gem "rdoc", "~> 3.12"
11
11
  gem "bundler", "~> 1.0"
12
- gem "jeweler", "~> 1.8.7"
12
+ gem "jeweler", "~> 1.8"
13
13
  gem "debugger"
14
14
  gem "sqlite3"
15
15
  gem "awesome_print"
16
+ gem "appraisal"
16
17
  # gem "rcov", ">= 0"
17
18
  end
data/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # Edtf-Rails
2
+ ----
3
+ An ActiveRecord extension to deal with Extended DateTime Format attributes
4
+
5
+ ## Description
6
+ Edtf-Rails let ActiveRecord use the [Extended Date Time Format](http://www.loc.gov/standards/datetime) and is based on the gem [edtf-ruby](https://github.com/inukshuk/edtf-ruby) which is an EDTF implementation for Ruby.
7
+
8
+ ## Installation
9
+ gem install edtf-rails
10
+
11
+ ## Usage
12
+ In your model specify which attributes must be treated as EDTF:
13
+
14
+ edtf :attributes => [:date_of_birth, :date_of_death]
15
+
16
+ They needs to be of type string in the database.
17
+
18
+ ## Test
19
+ To test backward compatibility with older version of ActiveRecord (till 3.2) [appraisal](https://github.com/thoughtbot/appraisal) was used
20
+
21
+ appraisal rails-4 rake
22
+ appraisal rails-3 rake
23
+
24
+ ## Contributing
25
+
26
+ Comments and feedback are welcome
27
+
28
+ ----
29
+ Copyright (c) 2014 masciugo. See LICENSE.txt for
30
+ further details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.3.0
data/edtf-rails.gemspec CHANGED
@@ -5,32 +5,30 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "edtf-rails"
8
- s.version = "0.2.5"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["masciugo"]
12
- s.date = "2013-11-18"
12
+ s.date = "2014-06-11"
13
13
  s.description = "An ActiveRecord extension to deal with Extended DateTime Format attributes"
14
14
  s.email = "masciugo@gmail.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
- "README.rdoc"
17
+ "README.md"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
21
  ".rspec",
22
- ".ruby-version",
22
+ "Appraisals",
23
23
  "Gemfile",
24
- "Gemfile.lock",
25
24
  "LICENSE.txt",
26
- "README.rdoc",
25
+ "README.md",
27
26
  "Rakefile",
28
27
  "VERSION",
29
28
  "edtf-rails.gemspec",
30
29
  "lib/edtf-rails.rb",
30
+ "lib/edtf-rails/constants.rb",
31
31
  "lib/edtf-rails/edtf-rails.rb",
32
- "lib/edtf-rails/getters_and_setters.rb",
33
- "lib/edtf-rails/utils.rb",
34
32
  "local_history",
35
33
  "spec/edtf-rails_spec.rb",
36
34
  "spec/spec_helper.rb",
@@ -40,43 +38,46 @@ Gem::Specification.new do |s|
40
38
  s.homepage = "http://github.com/masciugo/edtf-rails"
41
39
  s.licenses = ["MIT"]
42
40
  s.require_paths = ["lib"]
43
- s.rubygems_version = "1.8.23"
41
+ s.rubygems_version = "2.0.14"
44
42
  s.summary = "An ActiveRecord extension to deal with Extended DateTime Format attributes"
45
43
 
46
44
  if s.respond_to? :specification_version then
47
- s.specification_version = 3
45
+ s.specification_version = 4
48
46
 
49
47
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
- s.add_runtime_dependency(%q<activerecord>, ["~> 3.2.15"])
51
- s.add_runtime_dependency(%q<edtf>, ["~> 1.0"])
52
- s.add_development_dependency(%q<rspec>, ["~> 2.8"])
48
+ s.add_runtime_dependency(%q<activerecord>, ["~> 3.2.0"])
49
+ s.add_runtime_dependency(%q<edtf>, [">= 0"])
50
+ s.add_development_dependency(%q<rspec>, ["~> 2.99.0"])
53
51
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
54
52
  s.add_development_dependency(%q<bundler>, ["~> 1.0"])
55
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
53
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8"])
56
54
  s.add_development_dependency(%q<debugger>, [">= 0"])
57
55
  s.add_development_dependency(%q<sqlite3>, [">= 0"])
58
56
  s.add_development_dependency(%q<awesome_print>, [">= 0"])
57
+ s.add_development_dependency(%q<appraisal>, [">= 0"])
59
58
  else
60
- s.add_dependency(%q<activerecord>, ["~> 3.2.15"])
61
- s.add_dependency(%q<edtf>, ["~> 1.0"])
62
- s.add_dependency(%q<rspec>, ["~> 2.8"])
59
+ s.add_dependency(%q<activerecord>, ["~> 3.2.0"])
60
+ s.add_dependency(%q<edtf>, [">= 0"])
61
+ s.add_dependency(%q<rspec>, ["~> 2.99.0"])
63
62
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
64
63
  s.add_dependency(%q<bundler>, ["~> 1.0"])
65
- s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
64
+ s.add_dependency(%q<jeweler>, ["~> 1.8"])
66
65
  s.add_dependency(%q<debugger>, [">= 0"])
67
66
  s.add_dependency(%q<sqlite3>, [">= 0"])
68
67
  s.add_dependency(%q<awesome_print>, [">= 0"])
68
+ s.add_dependency(%q<appraisal>, [">= 0"])
69
69
  end
70
70
  else
71
- s.add_dependency(%q<activerecord>, ["~> 3.2.15"])
72
- s.add_dependency(%q<edtf>, ["~> 1.0"])
73
- s.add_dependency(%q<rspec>, ["~> 2.8"])
71
+ s.add_dependency(%q<activerecord>, ["~> 3.2.0"])
72
+ s.add_dependency(%q<edtf>, [">= 0"])
73
+ s.add_dependency(%q<rspec>, ["~> 2.99.0"])
74
74
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
75
75
  s.add_dependency(%q<bundler>, ["~> 1.0"])
76
- s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
76
+ s.add_dependency(%q<jeweler>, ["~> 1.8"])
77
77
  s.add_dependency(%q<debugger>, [">= 0"])
78
78
  s.add_dependency(%q<sqlite3>, [">= 0"])
79
79
  s.add_dependency(%q<awesome_print>, [">= 0"])
80
+ s.add_dependency(%q<appraisal>, [">= 0"])
80
81
  end
81
82
  end
82
83
 
@@ -0,0 +1,7 @@
1
+ module EdtfRails
2
+
3
+ EDTF_STRING_FORMAT = /\A(\d{4})$|^(\d{4}-(0[1-9]|1[012]))$|^(\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]))\z/
4
+
5
+ USE_ATTRIBUTE_ACCESSIBLE = Gem::Specification.find_by_name('activerecord').version < Gem::Version.new('4')
6
+
7
+ end
@@ -1,7 +1,5 @@
1
1
  module EdtfRails
2
2
 
3
- EDTF_STRING_FORMAT = /^(\d{4})$|^(\d{4}-(0[1-9]|1[012]))$|^(\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]))$/
4
-
5
3
  def edtf options = {}
6
4
 
7
5
  admitted_keys = [:attributes]
@@ -14,7 +12,7 @@ module EdtfRails
14
12
 
15
13
  edtf_attributes.each do |d|
16
14
 
17
- attr_accessible d.to_sym
15
+ attr_accessible(d.to_sym) if USE_ATTRIBUTE_ACCESSIBLE
18
16
 
19
17
  # getters
20
18
  define_method(d) do
@@ -25,7 +23,7 @@ module EdtfRails
25
23
  # virtual attributes dob_y, dob_m....
26
24
  [:y, :m, :d].each do |xx|
27
25
  attr_accessor "#{d}_#{xx}"
28
- attr_accessible "#{d}_#{xx}".to_sym
26
+ attr_accessible("#{d}_#{xx}".to_sym) if USE_ATTRIBUTE_ACCESSIBLE
29
27
  end
30
28
 
31
29
  # setters
@@ -71,11 +69,6 @@ module EdtfRails
71
69
  end
72
70
  end
73
71
 
74
-
75
- # Include instance methods and class methods
76
- # include EdtfRails::GettersAndSetters
77
- # include EdtfRails::Utils
78
-
79
72
  end
80
73
 
81
74
  private
data/lib/edtf-rails.rb CHANGED
@@ -1,8 +1,5 @@
1
1
  require "edtf"
2
- # require File.join(File.expand_path(File.dirname(__FILE__)), 'edtf-rails/constants')
3
- # require File.join(File.expand_path(File.dirname(__FILE__)), 'edtf-rails/exceptions')
4
- # require File.join(File.expand_path(File.dirname(__FILE__)), 'edtf-rails/getters_and_setters')
5
- # require File.join(File.expand_path(File.dirname(__FILE__)), 'edtf-rails/utils')
2
+ require File.join(File.expand_path(File.dirname(__FILE__)), 'edtf-rails/constants')
6
3
  require File.join(File.expand_path(File.dirname(__FILE__)), 'edtf-rails/edtf-rails')
7
4
 
8
5
  ActiveRecord::Base.send :extend, EdtfRails
@@ -12,7 +12,7 @@ module EdtfRailsTest
12
12
 
13
13
  edtf edtf_attributes_opts
14
14
 
15
- # attr_accessible :name, :dob, :dod
15
+ attr_accessible(:name) if EdtfRails::USE_ATTRIBUTE_ACCESSIBLE
16
16
 
17
17
  def inspect
18
18
  "#{name }"
metadata CHANGED
@@ -1,68 +1,60 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edtf-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
5
- prerelease:
4
+ version: 0.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - masciugo
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-11-18 00:00:00.000000000 Z
11
+ date: 2014-06-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activerecord
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: 3.2.15
19
+ version: 3.2.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: 3.2.15
26
+ version: 3.2.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: edtf
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
- version: '1.0'
33
+ version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
- version: '1.0'
40
+ version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
53
- version: '2.8'
47
+ version: 2.99.0
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
61
- version: '2.8'
54
+ version: 2.99.0
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rdoc
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: bundler
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
@@ -94,65 +83,71 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: jeweler
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ~>
100
88
  - !ruby/object:Gem::Version
101
- version: 1.8.7
89
+ version: '1.8'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ~>
108
95
  - !ruby/object:Gem::Version
109
- version: 1.8.7
96
+ version: '1.8'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: debugger
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - '>='
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - '>='
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: sqlite3
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ! '>='
115
+ - - '>='
132
116
  - !ruby/object:Gem::Version
133
117
  version: '0'
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ! '>='
122
+ - - '>='
140
123
  - !ruby/object:Gem::Version
141
124
  version: '0'
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: awesome_print
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
- - - ! '>='
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: appraisal
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '>='
148
144
  - !ruby/object:Gem::Version
149
145
  version: '0'
150
146
  type: :development
151
147
  prerelease: false
152
148
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
149
  requirements:
155
- - - ! '>='
150
+ - - '>='
156
151
  - !ruby/object:Gem::Version
157
152
  version: '0'
158
153
  description: An ActiveRecord extension to deal with Extended DateTime Format attributes
@@ -161,22 +156,20 @@ executables: []
161
156
  extensions: []
162
157
  extra_rdoc_files:
163
158
  - LICENSE.txt
164
- - README.rdoc
159
+ - README.md
165
160
  files:
166
161
  - .document
167
162
  - .rspec
168
- - .ruby-version
163
+ - Appraisals
169
164
  - Gemfile
170
- - Gemfile.lock
171
165
  - LICENSE.txt
172
- - README.rdoc
166
+ - README.md
173
167
  - Rakefile
174
168
  - VERSION
175
169
  - edtf-rails.gemspec
176
170
  - lib/edtf-rails.rb
171
+ - lib/edtf-rails/constants.rb
177
172
  - lib/edtf-rails/edtf-rails.rb
178
- - lib/edtf-rails/getters_and_setters.rb
179
- - lib/edtf-rails/utils.rb
180
173
  - local_history
181
174
  - spec/edtf-rails_spec.rb
182
175
  - spec/spec_helper.rb
@@ -185,29 +178,25 @@ files:
185
178
  homepage: http://github.com/masciugo/edtf-rails
186
179
  licenses:
187
180
  - MIT
181
+ metadata: {}
188
182
  post_install_message:
189
183
  rdoc_options: []
190
184
  require_paths:
191
185
  - lib
192
186
  required_ruby_version: !ruby/object:Gem::Requirement
193
- none: false
194
187
  requirements:
195
- - - ! '>='
188
+ - - '>='
196
189
  - !ruby/object:Gem::Version
197
190
  version: '0'
198
- segments:
199
- - 0
200
- hash: 726884819160711910
201
191
  required_rubygems_version: !ruby/object:Gem::Requirement
202
- none: false
203
192
  requirements:
204
- - - ! '>='
193
+ - - '>='
205
194
  - !ruby/object:Gem::Version
206
195
  version: '0'
207
196
  requirements: []
208
197
  rubyforge_project:
209
- rubygems_version: 1.8.23
198
+ rubygems_version: 2.0.14
210
199
  signing_key:
211
- specification_version: 3
200
+ specification_version: 4
212
201
  summary: An ActiveRecord extension to deal with Extended DateTime Format attributes
213
202
  test_files: []
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 1.9.3-p448
data/Gemfile.lock DELETED
@@ -1,93 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activemodel (3.2.15)
5
- activesupport (= 3.2.15)
6
- builder (~> 3.0.0)
7
- activerecord (3.2.15)
8
- activemodel (= 3.2.15)
9
- activesupport (= 3.2.15)
10
- arel (~> 3.0.2)
11
- tzinfo (~> 0.3.29)
12
- activesupport (3.2.15)
13
- i18n (~> 0.6, >= 0.6.4)
14
- multi_json (~> 1.0)
15
- addressable (2.3.5)
16
- arel (3.0.2)
17
- awesome_print (1.2.0)
18
- builder (3.0.4)
19
- columnize (0.3.6)
20
- debugger (1.6.2)
21
- columnize (>= 0.3.1)
22
- debugger-linecache (~> 1.2.0)
23
- debugger-ruby_core_source (~> 1.2.3)
24
- debugger-linecache (1.2.0)
25
- debugger-ruby_core_source (1.2.3)
26
- diff-lcs (1.2.4)
27
- edtf (1.0.0)
28
- activesupport (~> 3.0)
29
- faraday (0.8.8)
30
- multipart-post (~> 1.2.0)
31
- git (1.2.6)
32
- github_api (0.10.1)
33
- addressable
34
- faraday (~> 0.8.1)
35
- hashie (>= 1.2)
36
- multi_json (~> 1.4)
37
- nokogiri (~> 1.5.2)
38
- oauth2
39
- hashie (2.0.5)
40
- highline (1.6.20)
41
- httpauth (0.2.0)
42
- i18n (0.6.5)
43
- jeweler (1.8.8)
44
- builder
45
- bundler (~> 1.0)
46
- git (>= 1.2.5)
47
- github_api (= 0.10.1)
48
- highline (>= 1.6.15)
49
- nokogiri (= 1.5.10)
50
- rake
51
- rdoc
52
- json (1.8.1)
53
- jwt (0.1.8)
54
- multi_json (>= 1.5)
55
- multi_json (1.8.2)
56
- multi_xml (0.5.5)
57
- multipart-post (1.2.0)
58
- nokogiri (1.5.10)
59
- oauth2 (0.9.2)
60
- faraday (~> 0.8)
61
- httpauth (~> 0.2)
62
- jwt (~> 0.1.4)
63
- multi_json (~> 1.0)
64
- multi_xml (~> 0.5)
65
- rack (~> 1.2)
66
- rack (1.5.2)
67
- rake (10.1.0)
68
- rdoc (3.12.2)
69
- json (~> 1.4)
70
- rspec (2.14.1)
71
- rspec-core (~> 2.14.0)
72
- rspec-expectations (~> 2.14.0)
73
- rspec-mocks (~> 2.14.0)
74
- rspec-core (2.14.6)
75
- rspec-expectations (2.14.3)
76
- diff-lcs (>= 1.1.3, < 2.0)
77
- rspec-mocks (2.14.4)
78
- sqlite3 (1.3.8)
79
- tzinfo (0.3.38)
80
-
81
- PLATFORMS
82
- ruby
83
-
84
- DEPENDENCIES
85
- activerecord (~> 3.2.15)
86
- awesome_print
87
- bundler (~> 1.0)
88
- debugger
89
- edtf (~> 1.0)
90
- jeweler (~> 1.8.7)
91
- rdoc (~> 3.12)
92
- rspec (~> 2.8)
93
- sqlite3
data/README.rdoc DELETED
@@ -1,19 +0,0 @@
1
- = edtf-rails
2
-
3
- Description goes here.
4
-
5
- == Contributing to edtf-rails
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
- * Fork the project.
10
- * Start a feature/bugfix branch.
11
- * Commit and push until you are happy with your contribution.
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2013 masciugo. See LICENSE.txt for
18
- further details.
19
-
@@ -1,14 +0,0 @@
1
- module EdtfRails
2
- module GettersAndSetters
3
- extend ActiveSupport::Concern
4
-
5
- module ClassMethods
6
- # def try_edtf(date)
7
- # if date
8
- # EDTF.parse(date.to_s) || date
9
- # end
10
- # end
11
-
12
- end
13
- end
14
- end
@@ -1,10 +0,0 @@
1
- module EdtfRails
2
- module Utils
3
- extend ActiveSupport::Concern
4
-
5
- module ClassMethods
6
-
7
-
8
- end
9
- end
10
- end