date_as_string 0.0.6 → 0.1.0
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 +4 -4
- data/CHANGELOG.md +2 -0
- data/Gemfile +0 -1
- data/LICENSE +21 -0
- data/Rakefile +8 -22
- data/date_as_string.gemspec +19 -17
- data/lib/date_as_string/version.rb +2 -2
- metadata +22 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b008321b99a8607f2912a7151bdc62796646b48da08a099984a6bd816a789176
|
4
|
+
data.tar.gz: 6068a8e7c6c20049821b1afa182bba7df6f163c82baf988463b6ea6f6f74a11c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bfb291d82ab1af58173542d5302a5e5f91feb2ef27b251651e5ea8c02641e94e6951940384aa759662cb49c8d7bf1f138d151d69e7086dd125ebfd9d8ee8e9a
|
7
|
+
data.tar.gz: c717c22517fa3188fa0ac3d4961958547a2a58fa4d6d88db977047cde187a229ec21fd324cfbb4b96f1aca0a0622e07aca55d383e12b75594fbd0619b744ce4a
|
data/CHANGELOG.md
ADDED
data/Gemfile
CHANGED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2011-2020 Annkissam
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/Rakefile
CHANGED
@@ -1,28 +1,14 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
class GemHelper
|
6
|
-
def release_gem
|
7
|
-
guard_clean
|
8
|
-
guard_already_tagged
|
9
|
-
built_gem_path = build_gem
|
10
|
-
tag_version {
|
11
|
-
git_push
|
12
|
-
}
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
3
|
+
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
4
|
+
require 'date_as_string/version'
|
16
5
|
|
17
|
-
|
18
|
-
|
19
|
-
#rake build # Build mesav-#.#.#.gem into the pkg directory
|
20
|
-
#rake install # Build and install mesav-#.#.#.gem into system gems
|
21
|
-
#rake release # Create tag v#.#.#, build, and push
|
6
|
+
require "bundler/gem_tasks"
|
7
|
+
require "rspec/core/rake_task"
|
22
8
|
|
23
|
-
#RSPEC
|
9
|
+
# RSPEC
|
24
10
|
require 'rspec/core/rake_task'
|
25
11
|
|
26
|
-
RSpec::Core::RakeTask.new(
|
12
|
+
RSpec::Core::RakeTask.new(:spec)
|
27
13
|
|
28
|
-
task :
|
14
|
+
task default: :spec
|
data/date_as_string.gemspec
CHANGED
@@ -1,22 +1,24 @@
|
|
1
|
-
#
|
2
|
-
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
require "date_as_string/version"
|
1
|
+
# frozen_string_literal: true
|
4
2
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
s.authors = ["Eric Sullivan"]
|
9
|
-
s.email = ["eric.sullivan@annkissam.com"]
|
10
|
-
s.homepage = "http://annkissam.com"
|
11
|
-
s.summary = %q{Convert from Date to String and vice versa by attaching _string suffix to an ActiveRecord field}
|
12
|
-
s.description = %q{Treat an ActiveRecord Date column as a String}
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require "date_as_string/version"
|
13
6
|
|
14
|
-
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = "date_as_string"
|
9
|
+
spec.version = DateAsString::VERSION::STRING
|
10
|
+
spec.authors = ["Eric Sullivan"]
|
11
|
+
spec.email = ["eric.sullivan@annkissam.com"]
|
12
|
+
spec.homepage = "https://github.com/annkissam/date_as_string"
|
13
|
+
spec.summary = %q{Convert from Date to String and vice versa by attaching _string suffix to an ActiveRecord field}
|
14
|
+
spec.description = %q{Treat an ActiveRecord Date column as a String}
|
15
|
+
spec.license = 'MIT'
|
15
16
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
spec.files = `git ls-files`.split("\n")
|
18
|
+
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
20
21
|
|
21
|
-
|
22
|
+
spec.add_development_dependency "rspec"
|
23
|
+
spec.add_development_dependency "rake"
|
22
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: date_as_string
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Sullivan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
description: Treat an ActiveRecord Date column as a String
|
28
42
|
email:
|
29
43
|
- eric.sullivan@annkissam.com
|
@@ -33,7 +47,9 @@ extra_rdoc_files: []
|
|
33
47
|
files:
|
34
48
|
- ".gitignore"
|
35
49
|
- ".rspec"
|
50
|
+
- CHANGELOG.md
|
36
51
|
- Gemfile
|
52
|
+
- LICENSE
|
37
53
|
- Rakefile
|
38
54
|
- date_as_string.gemspec
|
39
55
|
- lib/date_as_string.rb
|
@@ -41,8 +57,9 @@ files:
|
|
41
57
|
- lib/date_as_string/version.rb
|
42
58
|
- spec/date_as_string_spec.rb
|
43
59
|
- spec/spec_helper.rb
|
44
|
-
homepage:
|
45
|
-
licenses:
|
60
|
+
homepage: https://github.com/annkissam/date_as_string
|
61
|
+
licenses:
|
62
|
+
- MIT
|
46
63
|
metadata: {}
|
47
64
|
post_install_message:
|
48
65
|
rdoc_options: []
|
@@ -59,8 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
76
|
- !ruby/object:Gem::Version
|
60
77
|
version: '0'
|
61
78
|
requirements: []
|
62
|
-
|
63
|
-
rubygems_version: 2.7.6
|
79
|
+
rubygems_version: 3.0.3
|
64
80
|
signing_key:
|
65
81
|
specification_version: 4
|
66
82
|
summary: Convert from Date to String and vice versa by attaching _string suffix to
|