date_as_string 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8bde9b4c771dda4f6270bb5270de295af06337e4352a55f425e4aaaa277ac21
4
- data.tar.gz: '087b9878efd66ca01a9e60a5aa74fd7d6dc057edb680c570f70eaefcf6508878'
3
+ metadata.gz: b008321b99a8607f2912a7151bdc62796646b48da08a099984a6bd816a789176
4
+ data.tar.gz: 6068a8e7c6c20049821b1afa182bba7df6f163c82baf988463b6ea6f6f74a11c
5
5
  SHA512:
6
- metadata.gz: 44c6573aee04ef19c850c36daabf1093ce2684fd266e48850fd51bab1f055acb214721960071c5b6932eb38467f8f7f42f4a692276254f0b094cd2a8eaafa13c
7
- data.tar.gz: b029b37c736ef35ecad4e3ffe4cf1ef67c12f7e37b21a025831198cbb7be137ab3281620f8651b645ab69a2fa601d99d4a71297ee12feb3309843ff13dd12b2f
6
+ metadata.gz: 9bfb291d82ab1af58173542d5302a5e5f91feb2ef27b251651e5ea8c02641e94e6951940384aa759662cb49c8d7bf1f138d151d69e7086dd125ebfd9d8ee8e9a
7
+ data.tar.gz: c717c22517fa3188fa0ac3d4961958547a2a58fa4d6d88db977047cde187a229ec21fd324cfbb4b96f1aca0a0622e07aca55d383e12b75594fbd0619b744ce4a
@@ -0,0 +1,2 @@
1
+ # v 0.1.0 (9/28/2019)
2
+ * Initial Public Release
data/Gemfile CHANGED
@@ -3,7 +3,6 @@ source "http://rubygems.org"
3
3
  # Specify your gem's dependencies in date_as_string.gemspec
4
4
  gemspec
5
5
 
6
-
7
6
  group :test do
8
7
  gem 'activesupport'
9
8
  gem 'byebug'
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
- require 'bundler/gem_tasks'
1
+ # frozen_string_literal: true
2
2
 
3
- #Override bundler to prevent releasing to RubyGems
4
- module Bundler
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
- #http://asciicasts.com/episodes/245-new-gem-with-bundler
18
- #$ rake -T
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('spec')
12
+ RSpec::Core::RakeTask.new(:spec)
27
13
 
28
- task :default => :spec
14
+ task default: :spec
@@ -1,22 +1,24 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "date_as_string/version"
1
+ # frozen_string_literal: true
4
2
 
5
- Gem::Specification.new do |s|
6
- s.name = "date_as_string"
7
- s.version = DateAsString::VERSION::STRING
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
- s.rubyforge_project = "date_as_string"
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
- s.files = `git ls-files`.split("\n")
17
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
- s.require_paths = ["lib"]
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
- s.add_development_dependency "rspec"
22
+ spec.add_development_dependency "rspec"
23
+ spec.add_development_dependency "rake"
22
24
  end
@@ -1,8 +1,8 @@
1
1
  module DateAsString
2
2
  module VERSION
3
3
  MAJOR = 0
4
- MINOR = 0
5
- TINY = 6
4
+ MINOR = 1
5
+ TINY = 0
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
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.6
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: 2018-12-06 00:00:00.000000000 Z
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: http://annkissam.com
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
- rubyforge_project: date_as_string
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