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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d3f0dbab9cfa5ce373715146b02ec6aa66618add3c01da78627feef9f3e82fa
4
- data.tar.gz: e59fde19927d7f30f7f36600477f181c0a89851f26daa16c415879d528702a0d
3
+ metadata.gz: 8294628072a93941691c8a546f16593a71e9c43271a096e02d0e8efb3bc03e0b
4
+ data.tar.gz: 8e0553642a46e29f618252fbcbaf0bd669cac338a787316eade4e76501614201
5
5
  SHA512:
6
- metadata.gz: e5b0d6eb382fbaeeca570a1ecf382e6eff23eefbee5b44a07852eab01ca178a80aee33b5ed4b2f756f2bb362d2865fba85f07678a181f3ad169adc4bf8a0cec6
7
- data.tar.gz: 19d91e0e42cefb7bb81d2d646c1d14b89e7c10a8d4af57037d07e40ed9005164bb8b55eaa2704e5f371dbbcaa7828f62b9f5d316acbd83c3a6201904859ec7cc
6
+ metadata.gz: cdc8e52dc5f1b29c5d80b7895ed26b8e61b26f83c2404c3a06459d86c143f9cba221660aa6040d7cafd5a9eedde609253be591927b7a2d181f80465948d17d92
7
+ data.tar.gz: 6682fb15e9de86daee02a21a6844397982386afaa0201c1bc8093d561ef5ed23dd9070ff1fcac5aacebba289b6d6b7e86296ad8f318b347a701422666eb7d835
@@ -23,7 +23,7 @@ jobs:
23
23
  uses: mindsers/changelog-reader-action@v1
24
24
  with:
25
25
  version: ${{ steps.tag_name.outputs.current_version }}
26
- path: ./CHANGELOG.md
26
+ path: ./CHANGELOG.md
27
27
  - name: Create Release
28
28
  id: create_release
29
29
  uses: actions/create-release@v1
@@ -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'
@@ -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.2.0)
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
@@ -10,11 +10,8 @@ RSpec::Core::RakeTask.new
10
10
  Coveralls::RakeTask.new
11
11
  Bundler::Audit::Task.new
12
12
 
13
- desc "db"
14
13
  namespace :db do
15
- desc "test"
16
14
  namespace :test do
17
- desc "prepare"
18
15
  task :prepare do
19
16
  system <<~EOS
20
17
  set -ex
@@ -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 :datetime, null: false
12
- name :text, limit: 1024, null: false
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 'hobo_fields'
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 :text, limit: 40, null: false
12
- message :text, limit: 1024, null: false
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 'hobo_fields'
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 :text, limit: 1024, null: false
11
+ name :string, limit: 255, null: false
12
+
12
13
  timestamps
13
14
  end
14
15
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'hobo_fields'
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 :text, limit: 255, null: false
12
- email :text, limit: 255, null: false
11
+ name :string, limit: 255, null: false
12
+ email :string, limit: 255, null: false
13
+
13
14
  timestamps
14
15
  end
15
16
 
@@ -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: "git@github.com:Invoca/git_lib", ref: "785505fd4d55eb6968a75cdb546365d935d8655b"
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", ">= 4.2"
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: "../"
@@ -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: "git@github.com:Invoca/git_lib", ref: "785505fd4d55eb6968a75cdb546365d935d8655b"
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", ">= 4.2"
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: "../"
@@ -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: "git@github.com:Invoca/git_lib", ref: "785505fd4d55eb6968a75cdb546365d935d8655b"
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", ">= 4.2"
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: "../"
@@ -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 'rails', '>= 4.2', '< 7'
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitModels
4
- VERSION = '1.2.0'
4
+ VERSION = '1.3.1'
5
5
  end
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.2.0
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-07-13 00:00:00.000000000 Z
11
+ date: 2020-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
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: '7'
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: '7'
26
+ version: '0.2'
33
27
  - !ruby/object:Gem::Dependency
34
- name: hobo_fields
28
+ name: git_lib
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '3.0'
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: '3.0'
40
+ version: '1.2'
47
41
  - !ruby/object:Gem::Dependency
48
- name: git_lib
42
+ name: rails
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
- - - "~>"
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
- version: '1.2'
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: '1.2'
57
+ version: '4.2'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '7'
61
61
  description:
62
62
  email:
63
63
  - development@invoca.com