pbbuilder 0.10.0 → 0.11.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: cc495285bd745ade01ad6dc96698eff9ffdabf2a60154f8714a39d6f69ad1524
4
- data.tar.gz: 30083b95fa612fbcb39df4b88bcb8af170e4d78a4b2ca407ab75bf30d767e990
3
+ metadata.gz: e416354a3a8e61bbcb6865eb0e4ec578322bac69d64e9762241e89e7a463befd
4
+ data.tar.gz: 7af6ad9be4a90a5e721a0653c94a444b23eee7fa5d3f7ed98f9a60d8b198ec0f
5
5
  SHA512:
6
- metadata.gz: 649b1beb020c09e1f5167b8882d7fd8e6578f29c45f51fb807a6ff4a749e6dd0be0a76111e7947aaccf967ab8f6364bb1878eb31fcf7bd65e78d871851416461
7
- data.tar.gz: ef254cdf2acd93e0dbdbf9d49c20653ec8f12b0700fe9853faf3eaa2ac1495bd3e8ff8a4ea3516e031acb88c0ebb859f4291fe6e82a8161aabd3ae5b6fb90d76
6
+ metadata.gz: 54cabdad6a9260fe0e5e76d09ff547c4d2c6aa119d955902aee3fc4933b9523696f90561b62b38de574abbf9b1c6d2a471415fedf264b11c2a92e98566f9f166
7
+ data.tar.gz: 8256d99c25e7c153bfeddc8fc89e8fef48d402384bc587f4783ffc7a3e5c3a9886c3d58e637368e051654d89afbaa403275a035943654db4aba8c7b191a048fe
@@ -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.10.0)
5
+ google-protobuf (>= 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.10.0)
5
+ google-protobuf (>= 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,7 +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
- ActionView::Template::Types.symbols << :pb
7
+ Mime::Type.register "application/vnd.google.protobuf", :pb, [], %w(pb)
8
8
  ActionView::Template.register_template_handler :pbbuilder, PbbuilderHandler
9
9
  end
10
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.10.0"
3
+ spec.version = "0.11.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.17.3"
13
+ spec.add_dependency "google-protobuf", ">= 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,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pbbuilder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.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-10-01 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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.17.3
19
+ version: 3.19.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 3.17.3
26
+ version: 3.19.2
27
27
  description:
28
28
  email:
29
29
  - bouke@cheddar.me
@@ -31,13 +31,22 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
+ - ".github/dependabot.yml"
34
35
  - ".github/workflows/test.yml"
35
36
  - ".gitignore"
37
+ - ".ruby-version"
38
+ - Appraisals
36
39
  - Gemfile
37
40
  - MIT-LICENSE
38
41
  - README.md
39
42
  - Rakefile
43
+ - bin/appraisal
40
44
  - bin/test
45
+ - gemfiles/.bundle/config
46
+ - gemfiles/rails_6_1.gemfile
47
+ - gemfiles/rails_6_1.gemfile.lock
48
+ - gemfiles/rails_7.gemfile
49
+ - gemfiles/rails_7.gemfile.lock
41
50
  - lib/pbbuilder.rb
42
51
  - lib/pbbuilder/handler.rb
43
52
  - lib/pbbuilder/protobuf_extension.rb
@@ -68,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
77
  - !ruby/object:Gem::Version
69
78
  version: '0'
70
79
  requirements: []
71
- rubygems_version: 3.2.22
80
+ rubygems_version: 3.3.3
72
81
  signing_key:
73
82
  specification_version: 4
74
83
  summary: Generate Protobuf messages via a Builder-style DSL