git_models 1.2.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gem_release.yml +1 -1
- data/CHANGELOG.md +6 -0
- data/Gemfile +0 -1
- data/Gemfile.lock +4 -12
- data/Rakefile +0 -3
- data/app/models/concerns/branch.rb +3 -4
- data/app/models/concerns/commit.rb +4 -3
- data/app/models/concerns/repository.rb +3 -2
- data/app/models/concerns/user.rb +4 -3
- data/gemfiles/rails_4.gemfile +2 -4
- data/gemfiles/rails_5.gemfile +2 -4
- data/gemfiles/rails_6.gemfile +2 -4
- data/git_models.gemspec +2 -2
- data/lib/git_models/version.rb +1 -1
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8294628072a93941691c8a546f16593a71e9c43271a096e02d0e8efb3bc03e0b
|
4
|
+
data.tar.gz: 8e0553642a46e29f618252fbcbaf0bd669cac338a787316eade4e76501614201
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdc8e52dc5f1b29c5d80b7895ed26b8e61b26f83c2404c3a06459d86c143f9cba221660aa6040d7cafd5a9eedde609253be591927b7a2d181f80465948d17d92
|
7
|
+
data.tar.gz: 6682fb15e9de86daee02a21a6844397982386afaa0201c1bc8093d561ef5ed23dd9070ff1fcac5aacebba289b6d6b7e86296ad8f318b347a701422666eb7d835
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,11 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
5
5
|
Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [1.3.1] - Unreleased
|
8
|
+
### Changed
|
9
|
+
- Replace `hobo_fields` with `declare_schema`.
|
10
|
+
- Update :text/:string in schemas.
|
11
|
+
|
7
12
|
## [1.2.0] - 2020-07-13
|
8
13
|
### Added
|
9
14
|
- Add support for Rails 5 and 6.
|
@@ -21,5 +26,6 @@ Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0
|
|
21
26
|
- Get rubocop running again.
|
22
27
|
- Clean up Rakefile.
|
23
28
|
|
29
|
+
[1.3.1]: https://github.com/Invoca/git_models/compare/v1.2.0...v1.3.1
|
24
30
|
[1.2.0]: https://github.com/Invoca/git_models/compare/v1.1.1...v1.2.0
|
25
31
|
[1.1.1]: https://github.com/Invoca/git_models/compare/v1.1.0...v1.1.1
|
data/Gemfile
CHANGED
@@ -11,7 +11,6 @@ gem 'climate_control'
|
|
11
11
|
gem 'coveralls', require: false
|
12
12
|
gem 'database_cleaner'
|
13
13
|
gem 'git_lib', '~> 1.2', git: 'https://github.com/Invoca/git_lib.git', ref: 'a4a4b46ba00d85df4ca907c960ddf92a85a8c169'
|
14
|
-
gem 'hobo_fields', '~> 3.0', git: 'https://github.com/Invoca/hobo_fields.git', ref: 'e9623e9c3aa98a4822ef61d1f1e87d0ff8001ffc'
|
15
14
|
gem 'pry'
|
16
15
|
gem 'rails', '>= 4.2'
|
17
16
|
gem 'rake'
|
data/Gemfile.lock
CHANGED
@@ -6,20 +6,12 @@ GIT
|
|
6
6
|
git_lib (1.2.0)
|
7
7
|
activesupport (>= 4.2, < 7)
|
8
8
|
|
9
|
-
GIT
|
10
|
-
remote: https://github.com/Invoca/hobo_fields.git
|
11
|
-
revision: e9623e9c3aa98a4822ef61d1f1e87d0ff8001ffc
|
12
|
-
ref: e9623e9c3aa98a4822ef61d1f1e87d0ff8001ffc
|
13
|
-
specs:
|
14
|
-
hobo_fields (3.0.0)
|
15
|
-
invoca-utils (~> 0.4)
|
16
|
-
|
17
9
|
PATH
|
18
10
|
remote: .
|
19
11
|
specs:
|
20
|
-
git_models (1.
|
12
|
+
git_models (1.3.1)
|
13
|
+
declare_schema (~> 0.2)
|
21
14
|
git_lib (~> 1.2)
|
22
|
-
hobo_fields (~> 3.0)
|
23
15
|
rails (>= 4.2, < 7)
|
24
16
|
|
25
17
|
GEM
|
@@ -87,6 +79,8 @@ GEM
|
|
87
79
|
tins (~> 1.6)
|
88
80
|
crass (1.0.6)
|
89
81
|
database_cleaner (1.8.5)
|
82
|
+
declare_schema (0.2.0)
|
83
|
+
rails (>= 4.2)
|
90
84
|
diff-lcs (1.3)
|
91
85
|
docile (1.3.2)
|
92
86
|
erubi (1.9.0)
|
@@ -94,7 +88,6 @@ GEM
|
|
94
88
|
activesupport (>= 4.2.0)
|
95
89
|
i18n (1.8.3)
|
96
90
|
concurrent-ruby (~> 1.0)
|
97
|
-
invoca-utils (0.4.1)
|
98
91
|
json (2.3.0)
|
99
92
|
loofah (2.6.0)
|
100
93
|
crass (~> 1.0.2)
|
@@ -220,7 +213,6 @@ DEPENDENCIES
|
|
220
213
|
database_cleaner
|
221
214
|
git_lib (~> 1.2)!
|
222
215
|
git_models!
|
223
|
-
hobo_fields (~> 3.0)!
|
224
216
|
pry
|
225
217
|
rails (>= 4.2)
|
226
218
|
rake
|
data/Rakefile
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'hobo_fields'
|
4
|
-
|
5
3
|
module GitModels
|
6
4
|
module Branch
|
7
5
|
extend ActiveSupport::Concern
|
8
6
|
|
9
7
|
included do
|
10
8
|
fields do
|
11
|
-
git_updated_at
|
12
|
-
name
|
9
|
+
git_updated_at :datetime, null: false
|
10
|
+
name :string, limit: 1024, null: false
|
11
|
+
|
13
12
|
timestamps
|
14
13
|
end
|
15
14
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'declare_schema'
|
4
4
|
|
5
5
|
module GitModels
|
6
6
|
module Commit
|
@@ -8,8 +8,9 @@ module GitModels
|
|
8
8
|
|
9
9
|
included do
|
10
10
|
fields do
|
11
|
-
sha
|
12
|
-
message :text,
|
11
|
+
sha :string, limit: 255, null: false
|
12
|
+
message :text, null: false
|
13
|
+
|
13
14
|
timestamps
|
14
15
|
end
|
15
16
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'declare_schema'
|
4
4
|
|
5
5
|
module GitModels
|
6
6
|
module Repository
|
@@ -8,7 +8,8 @@ module GitModels
|
|
8
8
|
|
9
9
|
included do
|
10
10
|
fields do
|
11
|
-
name
|
11
|
+
name :string, limit: 255, null: false
|
12
|
+
|
12
13
|
timestamps
|
13
14
|
end
|
14
15
|
|
data/app/models/concerns/user.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'declare_schema'
|
4
4
|
|
5
5
|
module GitModels
|
6
6
|
module User
|
@@ -8,8 +8,9 @@ module GitModels
|
|
8
8
|
|
9
9
|
included do
|
10
10
|
fields do
|
11
|
-
name
|
12
|
-
email
|
11
|
+
name :string, limit: 255, null: false
|
12
|
+
email :string, limit: 255, null: false
|
13
|
+
|
13
14
|
timestamps
|
14
15
|
end
|
15
16
|
|
data/gemfiles/rails_4.gemfile
CHANGED
@@ -8,10 +8,9 @@ gem "bundler-audit", require: false
|
|
8
8
|
gem "climate_control"
|
9
9
|
gem "coveralls", require: false
|
10
10
|
gem "database_cleaner"
|
11
|
-
gem "git_lib", "~> 1.2", git: "
|
12
|
-
gem "hobo_fields", "~> 3.0", git: "git@github.com:Invoca/hobo_fields", ref: "e9623e9c3aa98a4822ef61d1f1e87d0ff8001ffc"
|
11
|
+
gem "git_lib", "~> 1.2", git: "https://github.com/Invoca/git_lib.git", ref: "a4a4b46ba00d85df4ca907c960ddf92a85a8c169"
|
13
12
|
gem "pry"
|
14
|
-
gem "rails", "
|
13
|
+
gem "rails", "~> 4.2"
|
15
14
|
gem "rake"
|
16
15
|
gem "rspec", "~> 3.5"
|
17
16
|
gem "rspec-core"
|
@@ -21,6 +20,5 @@ gem "rubocop", "~> 0.45.0", require: false
|
|
21
20
|
gem "rubocop-rspec", require: false
|
22
21
|
gem "sqlite3", "~> 1.3.6"
|
23
22
|
gem "tzinfo-data"
|
24
|
-
gem "activesupport", "~> 4.2"
|
25
23
|
|
26
24
|
gemspec path: "../"
|
data/gemfiles/rails_5.gemfile
CHANGED
@@ -8,10 +8,9 @@ gem "bundler-audit", require: false
|
|
8
8
|
gem "climate_control"
|
9
9
|
gem "coveralls", require: false
|
10
10
|
gem "database_cleaner"
|
11
|
-
gem "git_lib", "~> 1.2", git: "
|
12
|
-
gem "hobo_fields", "~> 3.0", git: "git@github.com:Invoca/hobo_fields", ref: "e9623e9c3aa98a4822ef61d1f1e87d0ff8001ffc"
|
11
|
+
gem "git_lib", "~> 1.2", git: "https://github.com/Invoca/git_lib.git", ref: "a4a4b46ba00d85df4ca907c960ddf92a85a8c169"
|
13
12
|
gem "pry"
|
14
|
-
gem "rails", "
|
13
|
+
gem "rails", "~> 5.2"
|
15
14
|
gem "rake"
|
16
15
|
gem "rspec", "~> 3.5"
|
17
16
|
gem "rspec-core"
|
@@ -21,6 +20,5 @@ gem "rubocop", "~> 0.45.0", require: false
|
|
21
20
|
gem "rubocop-rspec", require: false
|
22
21
|
gem "sqlite3", "~> 1.3.6"
|
23
22
|
gem "tzinfo-data"
|
24
|
-
gem "activesupport", "~> 5.2"
|
25
23
|
|
26
24
|
gemspec path: "../"
|
data/gemfiles/rails_6.gemfile
CHANGED
@@ -8,10 +8,9 @@ gem "bundler-audit", require: false
|
|
8
8
|
gem "climate_control"
|
9
9
|
gem "coveralls", require: false
|
10
10
|
gem "database_cleaner"
|
11
|
-
gem "git_lib", "~> 1.2", git: "
|
12
|
-
gem "hobo_fields", "~> 3.0", git: "git@github.com:Invoca/hobo_fields", ref: "e9623e9c3aa98a4822ef61d1f1e87d0ff8001ffc"
|
11
|
+
gem "git_lib", "~> 1.2", git: "https://github.com/Invoca/git_lib.git", ref: "a4a4b46ba00d85df4ca907c960ddf92a85a8c169"
|
13
12
|
gem "pry"
|
14
|
-
gem "rails", "
|
13
|
+
gem "rails", "~> 6.0"
|
15
14
|
gem "rake"
|
16
15
|
gem "rspec", "~> 3.5"
|
17
16
|
gem "rspec-core"
|
@@ -21,6 +20,5 @@ gem "rubocop", "~> 0.45.0", require: false
|
|
21
20
|
gem "rubocop-rspec", require: false
|
22
21
|
gem "sqlite3", "~> 1.4"
|
23
22
|
gem "tzinfo-data"
|
24
|
-
gem "activesupport", "~> 6.0"
|
25
23
|
|
26
24
|
gemspec path: "../"
|
data/git_models.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
22
22
|
spec.require_paths = ['app', 'lib']
|
23
23
|
|
24
|
-
spec.add_dependency '
|
25
|
-
spec.add_dependency 'hobo_fields', '~> 3.0'
|
24
|
+
spec.add_dependency 'declare_schema', '~> 0.2'
|
26
25
|
spec.add_dependency 'git_lib', '~> 1.2'
|
26
|
+
spec.add_dependency 'rails', '>= 4.2', '< 7'
|
27
27
|
end
|
data/lib/git_models/version.rb
CHANGED
metadata
CHANGED
@@ -1,63 +1,63 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Invoca Development
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: declare_schema
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '4.2'
|
20
|
-
- - "<"
|
17
|
+
- - "~>"
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
19
|
+
version: '0.2'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '4.2'
|
30
|
-
- - "<"
|
24
|
+
- - "~>"
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
26
|
+
version: '0.2'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
28
|
+
name: git_lib
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
31
|
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
33
|
+
version: '1.2'
|
40
34
|
type: :runtime
|
41
35
|
prerelease: false
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
43
37
|
requirements:
|
44
38
|
- - "~>"
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
40
|
+
version: '1.2'
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
42
|
+
name: rails
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
|
-
- - "
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
47
|
+
version: '4.2'
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '7'
|
54
51
|
type: :runtime
|
55
52
|
prerelease: false
|
56
53
|
version_requirements: !ruby/object:Gem::Requirement
|
57
54
|
requirements:
|
58
|
-
- - "
|
55
|
+
- - ">="
|
59
56
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
57
|
+
version: '4.2'
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '7'
|
61
61
|
description:
|
62
62
|
email:
|
63
63
|
- development@invoca.com
|