activerecord-bitemporal 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,2 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
2
8
  task :default => :spec
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
 
2
3
  lib = File.expand_path("../lib", __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
@@ -5,29 +6,30 @@ require "activerecord-bitemporal/version"
5
6
 
6
7
  Gem::Specification.new do |spec|
7
8
  spec.name = "activerecord-bitemporal"
8
- spec.version = Activerecord::Bitemporal::VERSION
9
- spec.authors = ["SmartHR, Inc."]
10
- spec.email = ["info@smarthr.co.jp"]
9
+ spec.version = ActiveRecord::Bitemporal::VERSION
10
+ spec.authors = ["mserizawa"]
11
+ spec.email = ["serizawa@smarthr.co.jp"]
11
12
 
12
- spec.summary = %q{Bitemporal modeling support for ActiveRecord}
13
+ spec.summary = "BiTemporal Data Model for ActiveRecord"
14
+ spec.description = %q{Enable ActiveRecord models to be handled as BiTemporal Data Model.}
13
15
  spec.homepage = "https://github.com/kufu/activerecord-bitemporal"
16
+ spec.license = "Apache 2.0"
14
17
 
15
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
16
- # to allow pushing to a single host or delete this section to allow pushing to any host.
17
- if spec.respond_to?(:metadata)
18
- spec.metadata["homepage_uri"] = spec.homepage
19
- spec.metadata["source_code_uri"] = spec.homepage
20
- else
21
- raise "RubyGems 2.0 or newer is required to protect against " \
22
- "public gem pushes."
23
- end
24
-
25
- # Specify which files should be added to the gem when it is released.
26
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
28
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
+ f.match(%r{^(test|spec|features)/})
29
20
  end
30
21
  spec.bindir = "exe"
31
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
23
  spec.require_paths = ["lib"]
24
+
25
+ spec.add_dependency "activerecord", ">= 5.2"
26
+
27
+ spec.add_development_dependency "bundler"
28
+ spec.add_development_dependency "rake", "~> 13.0"
29
+ spec.add_development_dependency "rspec", "~> 3.0"
30
+ spec.add_development_dependency "pg"
31
+ spec.add_development_dependency "pry"
32
+ spec.add_development_dependency "pry-byebug"
33
+ spec.add_development_dependency "database_cleaner"
34
+ spec.add_development_dependency "timecop"
33
35
  end
data/bin/console CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require "bundler/setup"
4
5
  require "activerecord-bitemporal"
@@ -0,0 +1,11 @@
1
+ version: '2.1'
2
+ services:
3
+ db:
4
+ image: postgres:latest
5
+ ports:
6
+ - "5432:5432"
7
+ environment:
8
+ POSTGRES_USER: postgres
9
+ POSTGRES_PASSWORD: postgres
10
+ tmpfs:
11
+ - /var/lib/postgresql/data
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "rails", "~> 5.2.0"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "rails", "~> 6.0.2"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "rails", "~> 6.1.0"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "rails", "~> 7.0.1"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "rails", git: "https://github.com/rails/rails.git", branch: "main"
7
+
8
+ gemspec path: "../"