pbbuilder 0.8.0 → 0.12.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e22f13cb28a04d0b767c619b7c63c91e86a246d524abc200e5062d92cadb977e
4
- data.tar.gz: b323e88b227263bfbd4ebc8b0e50f05208afe24527a2069e1110a6a605e453cb
3
+ metadata.gz: 539297324fde33e45611d422bac031542f19c6f1e58954b6c5e6d3c5f389a31b
4
+ data.tar.gz: a9ff9febe9a09a9991eba21ed6c7d7a92e084e931dd336ab2eadc616819ef592
5
5
  SHA512:
6
- metadata.gz: c245be23b0283a134b1dc28b1ab29d96bd9ca0023456f9e984ff3406b164f057147ab9e366bdcf150236fe494417ef182480cc1d89a53880c684403efb60bb95
7
- data.tar.gz: e4c4bbd500f921b0b2a71a7fc0e23ec99ea005a872f7f0d66a72f04cca712de54ef3e4898023bf22880eedb9afe990d9fac54dfce62ae164fd4c0b267bfc03bb
6
+ metadata.gz: e29e8b2663bd02012c93f10722897b53561939e9329d812a593271c334d2c7430f3fa3f31581debb9485aab63193dae92c3953a7bd11bddc6312b2efe91f961e
7
+ data.tar.gz: 94d42951a9a0a6befadd02a25610a8cc9e9c297776ed6fc6383f01c5646cd3d0a0aacb34e6835f1a862395dea3b65cfd255d2c9c8c3ae78261e7e65a27aa0d22
@@ -0,0 +1,12 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+
8
+ - package-ecosystem: "github-actions"
9
+ # Checks for workflow files stored in the default location of `.github/workflows`
10
+ directory: "/"
11
+ schedule:
12
+ interval: "weekly"
@@ -6,7 +6,7 @@ jobs:
6
6
  runs-on: ubuntu-latest
7
7
  strategy:
8
8
  matrix:
9
- ruby: ["2.7", "3.0.1"]
9
+ ruby: ["2.7.5", "3.0.1", "3.1.0"]
10
10
  name: tests for ruby-${{ matrix.ruby }}
11
11
  steps:
12
12
  - name: Checkout code
@@ -18,5 +18,8 @@ jobs:
18
18
  bundler-cache: true
19
19
  ruby-version: ${{ matrix.ruby }}
20
20
 
21
+ - name: Setup Appraisal
22
+ run: bundle exec appraisal install
23
+
21
24
  - name: Run tests
22
- run: bin/test
25
+ run: bundle exec appraisal rake
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.0
data/Appraisals ADDED
@@ -0,0 +1,7 @@
1
+ appraise "rails-6-1" do
2
+ gem "rails", "~> 6.1.0"
3
+ end
4
+
5
+ appraise "rails-7" do
6
+ gem "rails", "~> 7.0.0"
7
+ end
data/Gemfile CHANGED
@@ -5,3 +5,4 @@ gemspec
5
5
 
6
6
  gem "rake"
7
7
  gem "rails"
8
+ gem "appraisal"
data/Rakefile CHANGED
@@ -1,13 +1,11 @@
1
- require "bundler/setup"
2
-
3
- require "bundler/gem_tasks"
4
-
5
1
  require "rake/testtask"
2
+ require "appraisal"
6
3
 
7
4
  Rake::TestTask.new(:test) do |t|
8
5
  t.libs << "test"
9
6
  t.pattern = "test/**/*_test.rb"
10
7
  t.verbose = false
8
+ t.warning = false
11
9
  end
12
10
 
13
11
  task default: :test
data/bin/appraisal ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'bundler/setup'
5
+ require 'appraisal'
6
+ require 'appraisal/cli'
7
+
8
+ begin
9
+ Appraisal::CLI.start(ARGV)
10
+ rescue Appraisal::AppraisalsNotFound => e
11
+ puts e.message
12
+ exit 127
13
+ end
data/bin/test CHANGED
@@ -1,5 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
- $: << File.expand_path("../test", __dir__)
3
2
 
4
- require "bundler/setup"
5
- require "rails/plugin/test"
3
+ require 'rubygems'
4
+ require 'bundler/setup'
5
+ require 'appraisal'
6
+ require 'appraisal/cli'
7
+
8
+ begin
9
+ cmd = ["rake"] + ARGV
10
+ Appraisal::AppraisalFile.each do |appraisal|
11
+ Appraisal::Command.new(cmd, :gemfile => appraisal.gemfile_path).run
12
+ end
13
+ rescue Appraisal::AppraisalsNotFound => e
14
+ puts e.message
15
+ exit 127
16
+ end
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_RETRY: "1"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake"
6
+ gem "rails", "~> 6.1.0"
7
+ gem "appraisal"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,152 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ pbbuilder (0.11.0)
5
+ google-protobuf (~> 3.19, >= 3.19.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (6.1.4.4)
11
+ actionpack (= 6.1.4.4)
12
+ activesupport (= 6.1.4.4)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (6.1.4.4)
16
+ actionpack (= 6.1.4.4)
17
+ activejob (= 6.1.4.4)
18
+ activerecord (= 6.1.4.4)
19
+ activestorage (= 6.1.4.4)
20
+ activesupport (= 6.1.4.4)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.1.4.4)
23
+ actionpack (= 6.1.4.4)
24
+ actionview (= 6.1.4.4)
25
+ activejob (= 6.1.4.4)
26
+ activesupport (= 6.1.4.4)
27
+ mail (~> 2.5, >= 2.5.4)
28
+ rails-dom-testing (~> 2.0)
29
+ actionpack (6.1.4.4)
30
+ actionview (= 6.1.4.4)
31
+ activesupport (= 6.1.4.4)
32
+ rack (~> 2.0, >= 2.0.9)
33
+ rack-test (>= 0.6.3)
34
+ rails-dom-testing (~> 2.0)
35
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
+ actiontext (6.1.4.4)
37
+ actionpack (= 6.1.4.4)
38
+ activerecord (= 6.1.4.4)
39
+ activestorage (= 6.1.4.4)
40
+ activesupport (= 6.1.4.4)
41
+ nokogiri (>= 1.8.5)
42
+ actionview (6.1.4.4)
43
+ activesupport (= 6.1.4.4)
44
+ builder (~> 3.1)
45
+ erubi (~> 1.4)
46
+ rails-dom-testing (~> 2.0)
47
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
+ activejob (6.1.4.4)
49
+ activesupport (= 6.1.4.4)
50
+ globalid (>= 0.3.6)
51
+ activemodel (6.1.4.4)
52
+ activesupport (= 6.1.4.4)
53
+ activerecord (6.1.4.4)
54
+ activemodel (= 6.1.4.4)
55
+ activesupport (= 6.1.4.4)
56
+ activestorage (6.1.4.4)
57
+ actionpack (= 6.1.4.4)
58
+ activejob (= 6.1.4.4)
59
+ activerecord (= 6.1.4.4)
60
+ activesupport (= 6.1.4.4)
61
+ marcel (~> 1.0.0)
62
+ mini_mime (>= 1.1.0)
63
+ activesupport (6.1.4.4)
64
+ concurrent-ruby (~> 1.0, >= 1.0.2)
65
+ i18n (>= 1.6, < 2)
66
+ minitest (>= 5.1)
67
+ tzinfo (~> 2.0)
68
+ zeitwerk (~> 2.3)
69
+ appraisal (2.4.1)
70
+ bundler
71
+ rake
72
+ thor (>= 0.14.0)
73
+ builder (3.2.4)
74
+ concurrent-ruby (1.1.9)
75
+ crass (1.0.6)
76
+ erubi (1.10.0)
77
+ globalid (1.0.0)
78
+ activesupport (>= 5.0)
79
+ google-protobuf (3.19.2)
80
+ i18n (1.8.11)
81
+ concurrent-ruby (~> 1.0)
82
+ loofah (2.13.0)
83
+ crass (~> 1.0.2)
84
+ nokogiri (>= 1.5.9)
85
+ mail (2.7.1)
86
+ mini_mime (>= 0.1.1)
87
+ marcel (1.0.2)
88
+ method_source (1.0.0)
89
+ mini_mime (1.1.2)
90
+ mini_portile2 (2.7.1)
91
+ minitest (5.15.0)
92
+ nio4r (2.5.8)
93
+ nokogiri (1.13.0)
94
+ mini_portile2 (~> 2.7.0)
95
+ racc (~> 1.4)
96
+ racc (1.6.0)
97
+ rack (2.2.3)
98
+ rack-test (1.1.0)
99
+ rack (>= 1.0, < 3)
100
+ rails (6.1.4.4)
101
+ actioncable (= 6.1.4.4)
102
+ actionmailbox (= 6.1.4.4)
103
+ actionmailer (= 6.1.4.4)
104
+ actionpack (= 6.1.4.4)
105
+ actiontext (= 6.1.4.4)
106
+ actionview (= 6.1.4.4)
107
+ activejob (= 6.1.4.4)
108
+ activemodel (= 6.1.4.4)
109
+ activerecord (= 6.1.4.4)
110
+ activestorage (= 6.1.4.4)
111
+ activesupport (= 6.1.4.4)
112
+ bundler (>= 1.15.0)
113
+ railties (= 6.1.4.4)
114
+ sprockets-rails (>= 2.0.0)
115
+ rails-dom-testing (2.0.3)
116
+ activesupport (>= 4.2.0)
117
+ nokogiri (>= 1.6)
118
+ rails-html-sanitizer (1.4.2)
119
+ loofah (~> 2.3)
120
+ railties (6.1.4.4)
121
+ actionpack (= 6.1.4.4)
122
+ activesupport (= 6.1.4.4)
123
+ method_source
124
+ rake (>= 0.13)
125
+ thor (~> 1.0)
126
+ rake (13.0.6)
127
+ sprockets (4.0.2)
128
+ concurrent-ruby (~> 1.0)
129
+ rack (> 1, < 3)
130
+ sprockets-rails (3.4.2)
131
+ actionpack (>= 5.2)
132
+ activesupport (>= 5.2)
133
+ sprockets (>= 3.0.0)
134
+ thor (1.2.1)
135
+ tzinfo (2.0.4)
136
+ concurrent-ruby (~> 1.0)
137
+ websocket-driver (0.7.5)
138
+ websocket-extensions (>= 0.1.0)
139
+ websocket-extensions (0.1.5)
140
+ zeitwerk (2.5.3)
141
+
142
+ PLATFORMS
143
+ ruby
144
+
145
+ DEPENDENCIES
146
+ appraisal
147
+ pbbuilder!
148
+ rails (~> 6.1.0)
149
+ rake
150
+
151
+ BUNDLED WITH
152
+ 2.3.4
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake"
6
+ gem "rails", "~> 7.0.0"
7
+ gem "appraisal"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,170 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ pbbuilder (0.11.0)
5
+ google-protobuf (~> 3.19, >= 3.19.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (7.0.1)
11
+ actionpack (= 7.0.1)
12
+ activesupport (= 7.0.1)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (7.0.1)
16
+ actionpack (= 7.0.1)
17
+ activejob (= 7.0.1)
18
+ activerecord (= 7.0.1)
19
+ activestorage (= 7.0.1)
20
+ activesupport (= 7.0.1)
21
+ mail (>= 2.7.1)
22
+ net-imap
23
+ net-pop
24
+ net-smtp
25
+ actionmailer (7.0.1)
26
+ actionpack (= 7.0.1)
27
+ actionview (= 7.0.1)
28
+ activejob (= 7.0.1)
29
+ activesupport (= 7.0.1)
30
+ mail (~> 2.5, >= 2.5.4)
31
+ net-imap
32
+ net-pop
33
+ net-smtp
34
+ rails-dom-testing (~> 2.0)
35
+ actionpack (7.0.1)
36
+ actionview (= 7.0.1)
37
+ activesupport (= 7.0.1)
38
+ rack (~> 2.0, >= 2.2.0)
39
+ rack-test (>= 0.6.3)
40
+ rails-dom-testing (~> 2.0)
41
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
42
+ actiontext (7.0.1)
43
+ actionpack (= 7.0.1)
44
+ activerecord (= 7.0.1)
45
+ activestorage (= 7.0.1)
46
+ activesupport (= 7.0.1)
47
+ globalid (>= 0.6.0)
48
+ nokogiri (>= 1.8.5)
49
+ actionview (7.0.1)
50
+ activesupport (= 7.0.1)
51
+ builder (~> 3.1)
52
+ erubi (~> 1.4)
53
+ rails-dom-testing (~> 2.0)
54
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
55
+ activejob (7.0.1)
56
+ activesupport (= 7.0.1)
57
+ globalid (>= 0.3.6)
58
+ activemodel (7.0.1)
59
+ activesupport (= 7.0.1)
60
+ activerecord (7.0.1)
61
+ activemodel (= 7.0.1)
62
+ activesupport (= 7.0.1)
63
+ activestorage (7.0.1)
64
+ actionpack (= 7.0.1)
65
+ activejob (= 7.0.1)
66
+ activerecord (= 7.0.1)
67
+ activesupport (= 7.0.1)
68
+ marcel (~> 1.0)
69
+ mini_mime (>= 1.1.0)
70
+ activesupport (7.0.1)
71
+ concurrent-ruby (~> 1.0, >= 1.0.2)
72
+ i18n (>= 1.6, < 2)
73
+ minitest (>= 5.1)
74
+ tzinfo (~> 2.0)
75
+ appraisal (2.4.1)
76
+ bundler
77
+ rake
78
+ thor (>= 0.14.0)
79
+ builder (3.2.4)
80
+ concurrent-ruby (1.1.9)
81
+ crass (1.0.6)
82
+ digest (3.1.0)
83
+ erubi (1.10.0)
84
+ globalid (1.0.0)
85
+ activesupport (>= 5.0)
86
+ google-protobuf (3.19.2)
87
+ i18n (1.8.11)
88
+ concurrent-ruby (~> 1.0)
89
+ io-wait (0.2.1)
90
+ loofah (2.13.0)
91
+ crass (~> 1.0.2)
92
+ nokogiri (>= 1.5.9)
93
+ mail (2.7.1)
94
+ mini_mime (>= 0.1.1)
95
+ marcel (1.0.2)
96
+ method_source (1.0.0)
97
+ mini_mime (1.1.2)
98
+ mini_portile2 (2.7.1)
99
+ minitest (5.15.0)
100
+ net-imap (0.2.3)
101
+ digest
102
+ net-protocol
103
+ strscan
104
+ net-pop (0.1.1)
105
+ digest
106
+ net-protocol
107
+ timeout
108
+ net-protocol (0.1.2)
109
+ io-wait
110
+ timeout
111
+ net-smtp (0.3.1)
112
+ digest
113
+ net-protocol
114
+ timeout
115
+ nio4r (2.5.8)
116
+ nokogiri (1.13.0)
117
+ mini_portile2 (~> 2.7.0)
118
+ racc (~> 1.4)
119
+ racc (1.6.0)
120
+ rack (2.2.3)
121
+ rack-test (1.1.0)
122
+ rack (>= 1.0, < 3)
123
+ rails (7.0.1)
124
+ actioncable (= 7.0.1)
125
+ actionmailbox (= 7.0.1)
126
+ actionmailer (= 7.0.1)
127
+ actionpack (= 7.0.1)
128
+ actiontext (= 7.0.1)
129
+ actionview (= 7.0.1)
130
+ activejob (= 7.0.1)
131
+ activemodel (= 7.0.1)
132
+ activerecord (= 7.0.1)
133
+ activestorage (= 7.0.1)
134
+ activesupport (= 7.0.1)
135
+ bundler (>= 1.15.0)
136
+ railties (= 7.0.1)
137
+ rails-dom-testing (2.0.3)
138
+ activesupport (>= 4.2.0)
139
+ nokogiri (>= 1.6)
140
+ rails-html-sanitizer (1.4.2)
141
+ loofah (~> 2.3)
142
+ railties (7.0.1)
143
+ actionpack (= 7.0.1)
144
+ activesupport (= 7.0.1)
145
+ method_source
146
+ rake (>= 12.2)
147
+ thor (~> 1.0)
148
+ zeitwerk (~> 2.5)
149
+ rake (13.0.6)
150
+ strscan (3.0.1)
151
+ thor (1.2.1)
152
+ timeout (0.2.0)
153
+ tzinfo (2.0.4)
154
+ concurrent-ruby (~> 1.0)
155
+ websocket-driver (0.7.5)
156
+ websocket-extensions (>= 0.1.0)
157
+ websocket-extensions (0.1.5)
158
+ zeitwerk (2.5.3)
159
+
160
+ PLATFORMS
161
+ ruby
162
+
163
+ DEPENDENCIES
164
+ appraisal
165
+ pbbuilder!
166
+ rails (~> 7.0.0)
167
+ rake
168
+
169
+ BUNDLED WITH
170
+ 2.3.4
@@ -4,6 +4,7 @@ class Pbbuilder
4
4
  class Railtie < ::Rails::Railtie
5
5
  initializer :register_handler do
6
6
  ActiveSupport.on_load :action_view do
7
+ Mime::Type.register "application/vnd.google.protobuf", :pb, [], %w(pb)
7
8
  ActionView::Template.register_template_handler :pbbuilder, PbbuilderHandler
8
9
  end
9
10
  end
data/pbbuilder.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "pbbuilder"
3
- spec.version = "0.8.0"
3
+ spec.version = "0.12.0"
4
4
  spec.authors = ["Bouke van der Bijl"]
5
5
  spec.email = ["bouke@cheddar.me"]
6
6
  spec.homepage = "https://github.com/cheddar-me/pbbuilder"
@@ -10,5 +10,5 @@ Gem::Specification.new do |spec|
10
10
  spec.files = `git ls-files`.split("\n")
11
11
  spec.test_files = `git ls-files -- test/*`.split("\n")
12
12
 
13
- spec.add_dependency "google-protobuf", "~> 3.15.5"
13
+ spec.add_dependency "google-protobuf", "~> 3.19", ">= 3.19.2"
14
14
  end
data/test/test_helper.rb CHANGED
@@ -42,4 +42,5 @@ class Racer < Struct.new(:id, :name, :friends, :best_friend)
42
42
  include ActiveModel::Conversion
43
43
  end
44
44
 
45
+ Mime::Type.register "application/vnd.google.protobuf", :pb, [], %w(pb)
45
46
  ActionView::Template.register_template_handler :pbbuilder, PbbuilderHandler
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pbbuilder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bouke van der Bijl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-19 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -16,14 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.15.5
19
+ version: '3.19'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 3.19.2
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: 3.15.5
29
+ version: '3.19'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.19.2
27
33
  description:
28
34
  email:
29
35
  - bouke@cheddar.me
@@ -31,13 +37,22 @@ executables: []
31
37
  extensions: []
32
38
  extra_rdoc_files: []
33
39
  files:
40
+ - ".github/dependabot.yml"
34
41
  - ".github/workflows/test.yml"
35
42
  - ".gitignore"
43
+ - ".ruby-version"
44
+ - Appraisals
36
45
  - Gemfile
37
46
  - MIT-LICENSE
38
47
  - README.md
39
48
  - Rakefile
49
+ - bin/appraisal
40
50
  - bin/test
51
+ - gemfiles/.bundle/config
52
+ - gemfiles/rails_6_1.gemfile
53
+ - gemfiles/rails_6_1.gemfile.lock
54
+ - gemfiles/rails_7.gemfile
55
+ - gemfiles/rails_7.gemfile.lock
41
56
  - lib/pbbuilder.rb
42
57
  - lib/pbbuilder/handler.rb
43
58
  - lib/pbbuilder/protobuf_extension.rb
@@ -68,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
83
  - !ruby/object:Gem::Version
69
84
  version: '0'
70
85
  requirements: []
71
- rubygems_version: 3.2.3
86
+ rubygems_version: 3.3.3
72
87
  signing_key:
73
88
  specification_version: 4
74
89
  summary: Generate Protobuf messages via a Builder-style DSL