panko_serializer 0.8.0 → 0.8.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: 00eff973f0a008e93332c9a83da475001203d49479126e90311577aa8a3f4fd5
4
- data.tar.gz: e94e6290b5103ddb0481110cf901d69da86b6831cc5ed59f95b94abf810dac29
3
+ metadata.gz: b1f46c78adb3128739cca219e9835e4411c2a9e9ac65f7cf18444c7bddd432a4
4
+ data.tar.gz: e30e2ba7abbb08270b00dc9d71ef1fb2b509b6d2778d9971b3d19283e5830369
5
5
  SHA512:
6
- metadata.gz: b87365560a2953a4f5b4027672b6f1721f89cc199345b82ed4ebb421263bfcb91f621651184e0d0c0f88c77f82d45acef61a061a0a863c21e7c2b066f57691be
7
- data.tar.gz: 58c278c92461ef9f6f10ebee1579ad8bd801f6b5395625c982fc8ca1a32ab8e5e59d91527b820ddb9f662eea45df85952f7acf6060a9c9ac216208fac2db4523
6
+ metadata.gz: b70dac493132900bf6f9b6490679f399a2dc0e38a54d25f3a50f5bcba9e04da137d7e9b4fc7d87a81747ed8625e486750dda4dca5086a8ce38750c85205e50c9
7
+ data.tar.gz: 9f1f330ff1c05694bade23bbaee954c4bfa281a27de8e2c872271b30fb2ea9a893074041af050249073d33ed074e038757c37973c555c053b9e84f86edf8b2ea
@@ -35,5 +35,5 @@ jobs:
35
35
  run: |
36
36
  git config --global user.email "action@github.com"
37
37
  git config --global user.name "GitHub Action"
38
- GIT_USER=panko-serializer CURRENT_BRANCH=master USE_SSH=true npm run publish-gh-pages
38
+ GIT_USER=yosiat CURRENT_BRANCH=master USE_SSH=true npm run publish-gh-pages
39
39
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Panko
2
2
 
3
- ![Build Status](https://github.com/panko-serializer/panko_serializer/workflows/Panko%20Serializer%20CI/badge.svg?branch=master)
3
+ ![Build Status](https://github.com/yosiat/panko_serializer/workflows/Panko%20Serializer%20CI/badge.svg?branch=master)
4
4
 
5
5
  Panko is library which is inspired by ActiveModelSerializers 0.9 for serializing ActiveRecord/Ruby objects to JSON strings, fast.
6
6
 
@@ -18,7 +18,6 @@ Support
18
18
 
19
19
  - [Documentation](https://panko.dev/docs)
20
20
  - [Getting Started](https://panko.dev/docs/getting-started.html)
21
- - Join our [slack community](https://pankoserializer.herokuapp.com/)
22
21
 
23
22
  License
24
23
  -------
data/benchmarks/allocs.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./benchmarking_support"
4
- require_relative "./app"
5
- require_relative "./setup"
3
+ require_relative "benchmarking_support"
4
+ require_relative "app"
5
+ require_relative "setup"
6
6
 
7
7
  require "memory_profiler"
8
8
 
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./benchmarking_support"
4
- require_relative "./app"
5
- require_relative "./setup"
3
+ require_relative "benchmarking_support"
4
+ require_relative "app"
5
+ require_relative "setup"
6
6
 
7
7
  # disable logging for benchmarks
8
8
  ActiveModelSerializers.logger = ActiveSupport::TaggedLogging.new(ActiveSupport::Logger.new("/dev/null"))
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./benchmarking_support"
4
- require_relative "./app"
3
+ require_relative "benchmarking_support"
4
+ require_relative "app"
5
5
 
6
6
  Benchmark.run("ObjectWriter_OneProperty_PushValue") do
7
7
  writer = Panko::ObjectWriter.new
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./benchmarking_support"
4
- require_relative "./app"
5
- require_relative "./setup"
3
+ require_relative "benchmarking_support"
4
+ require_relative "app"
5
+ require_relative "setup"
6
6
 
7
7
  class AuthorFastSerializer < Panko::Serializer
8
8
  attributes :id, :name
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./benchmarking_support"
4
- require_relative "./app"
5
- require_relative "./setup"
3
+ require_relative "benchmarking_support"
4
+ require_relative "app"
5
+ require_relative "setup"
6
6
 
7
7
  class AuthorFastSerializer < Panko::Serializer
8
8
  attributes :id, :name
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./benchmarking_support"
4
- require_relative "./app"
3
+ require_relative "benchmarking_support"
4
+ require_relative "app"
5
5
 
6
6
  class AuthorFastSerializer < Panko::Serializer
7
7
  attributes :id, :name
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./benchmarking_support"
3
+ require_relative "benchmarking_support"
4
4
  require "active_support"
5
5
 
6
6
  require "panko_serializer"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./benchmarking_support"
4
- require_relative "./app"
3
+ require_relative "benchmarking_support"
4
+ require_relative "app"
5
5
 
6
6
  class NotSerializer
7
7
  end
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./benchmarking_support"
4
- require_relative "./app"
5
- require_relative "./setup"
3
+ require_relative "benchmarking_support"
4
+ require_relative "app"
5
+ require_relative "setup"
6
6
 
7
7
  class PostWithAliasModel < ActiveRecord::Base
8
8
  self.table_name = "posts"
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./benchmarking_support"
4
- require_relative "./app"
5
- require_relative "./setup"
3
+ require_relative "benchmarking_support"
4
+ require_relative "app"
5
+ require_relative "setup"
6
6
 
7
7
  require "memory_profiler"
8
8
 
data/benchmarks/sanity.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./benchmarking_support"
4
- require_relative "./app"
5
- require_relative "./setup"
3
+ require_relative "benchmarking_support"
4
+ require_relative "app"
5
+ require_relative "setup"
6
6
 
7
7
  class PostWithAliasModel < ActiveRecord::Base
8
8
  self.table_name = "posts"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./support"
3
+ require_relative "support"
4
4
 
5
5
  def ar_type_convert(type_klass, from, to)
6
6
  converter = type_klass.new
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./support"
3
+ require_relative "support"
4
4
 
5
5
  def panko_type_convert(type_klass, from, to)
6
6
  converter = type_klass.new
@@ -21,7 +21,7 @@ def check_if_exists(module_name)
21
21
  nil
22
22
  end
23
23
  return true if mod
24
- return false unless mod
24
+ false unless mod
25
25
  end
26
26
 
27
27
  Time.zone = "UTC"
data/docs/core/Footer.js CHANGED
@@ -48,13 +48,12 @@ class Footer extends React.Component {
48
48
  </div>
49
49
  <div>
50
50
  <h5>More</h5>
51
- <a href="https://github.com/panko-serializer/panko_serializer">GitHub</a>
52
- <a href="https://pankoserializer.herokuapp.com/">Slack</a>
51
+ <a href="https://github.com/yosiat/panko_serializer">GitHub</a>
53
52
  <a
54
53
  className="github-button"
55
54
  href={this.props.config.repoUrl}
56
55
  data-icon="octicon-star"
57
- data-count-href="/panko-serializer/panko_serializer/stargazers"
56
+ data-count-href="/yosiat/panko_serializer/stargazers"
58
57
  data-show-count="true"
59
58
  data-count-aria-label="# stargazers on GitHub"
60
59
  aria-label="Star this project on GitHub">
@@ -110,7 +110,7 @@ end
110
110
  UserSerializer.serialize(User.first)
111
111
  ```
112
112
 
113
- > See discussion in: https://github.com/panko-serializer/panko_serializer/issues/16
113
+ > See discussion in: https://github.com/yosiat/panko_serializer/issues/16
114
114
 
115
115
  ## Aliases
116
116
 
data/docs/siteConfig.js CHANGED
@@ -26,15 +26,15 @@ const siteConfig = {
26
26
  tagline: 'High Performance JSON Serialization for ActiveRecord & Ruby Objects',
27
27
  url: 'https://panko.dev',
28
28
  baseUrl: '/',
29
- repoPath: 'panko-serializer/panko_serializer',
29
+ repoPath: 'yosiat/panko_serializer',
30
30
  // For github.io type URLs, you would set the url and baseUrl like:
31
31
  // url: 'https://facebook.github.io',
32
32
  // baseUrl: '/test-site/',
33
33
  customDocsPath: require('path').basename(__dirname) + '/docs',
34
34
 
35
- repoUrl: 'https://github.com/panko-serializer/panko_serializer',
35
+ repoUrl: 'https://github.com/yosiat/panko_serializer',
36
36
  projectName: 'panko_serializer',
37
- organizationName: 'panko-serializer',
37
+ organizationName: 'yosiat',
38
38
  cname: 'panko.dev',
39
39
 
40
40
  headerLinks: [
data/lib/panko/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Panko
4
- VERSION = "0.8.0"
4
+ VERSION = "0.8.1"
5
5
  end
@@ -15,10 +15,10 @@ Gem::Specification.new do |spec|
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.metadata = {
18
- "bug_tracker_uri" => "https://github.com/panko-serializer/panko_serializer/issues",
19
- "source_code_uri" => "https://github.com/panko-serializer/panko_serializer",
20
- "documentation_uri" => "https://panko-serializer.github.io/panko_serializer/",
21
- "changelog_uri" => "https://github.com/panko-serializer/panko_serializer/releases"
18
+ "bug_tracker_uri" => "https://github.com/yosiat/panko_serializer/issues",
19
+ "source_code_uri" => "https://github.com/yosiat/panko_serializer",
20
+ "documentation_uri" => "https://panko.dev",
21
+ "changelog_uri" => "https://github.com/yosiat/panko_serializer/releases"
22
22
  }
23
23
 
24
24
  spec.required_ruby_version = ">= 2.5.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panko_serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yosi Attias
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-10 00:00:00.000000000 Z
11
+ date: 2023-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj
@@ -150,10 +150,10 @@ homepage: https://panko.dev
150
150
  licenses:
151
151
  - MIT
152
152
  metadata:
153
- bug_tracker_uri: https://github.com/panko-serializer/panko_serializer/issues
154
- source_code_uri: https://github.com/panko-serializer/panko_serializer
155
- documentation_uri: https://panko-serializer.github.io/panko_serializer/
156
- changelog_uri: https://github.com/panko-serializer/panko_serializer/releases
153
+ bug_tracker_uri: https://github.com/yosiat/panko_serializer/issues
154
+ source_code_uri: https://github.com/yosiat/panko_serializer
155
+ documentation_uri: https://panko.dev
156
+ changelog_uri: https://github.com/yosiat/panko_serializer/releases
157
157
  post_install_message:
158
158
  rdoc_options: []
159
159
  require_paths:
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  - !ruby/object:Gem::Version
170
170
  version: '0'
171
171
  requirements: []
172
- rubygems_version: 3.4.6
172
+ rubygems_version: 3.4.19
173
173
  signing_key:
174
174
  specification_version: 4
175
175
  summary: High Performance JSON Serialization for ActiveRecord & Ruby Objects