dedup 0.1.0 → 0.1.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: 021b0183f99ad0cc33215d7162fc85eab71c399c1c13fd80db913c5fa80a2667
4
- data.tar.gz: a708b1ae9f1333b4efad03efedad3a292568f881ba13796619ee1b7df24f1967
3
+ metadata.gz: 91eb8e60b92d6a376dba3dbe54d31789ea0559aa9dddedd4fac0925b9d2d83b7
4
+ data.tar.gz: dd78dc9ac880f51d7628061f976bab522095e6b14fca4dc0421cf3cdb709076c
5
5
  SHA512:
6
- metadata.gz: 4db7a0a4be18afdd7458d06d330087f015fd05425bad1a4be0832029d6ef038066a2f0fc8128e99b5b923cdd555e2e5fb15d14b5f7cd89dc723292dca53da043
7
- data.tar.gz: 5f74f2056de6d70128ce87c4a124844d677dbbe7bddd550f6f0de7554d1a495b185419797f25c0a4af250b9ad99d3a775a744ef1ffad64ac6d7b4eb0acb7f41b
6
+ metadata.gz: 054a342aa3ed77c45ffbffc9f3123919cb341f03a75d8d04cb181e6cbd1597e82334eeb8a3f1008b0e6b4c4ac98059d29d25194b00e7da490328ec5091590e60
7
+ data.tar.gz: f6ecd33a43180033346416ce94a1ac4b18137d92e563b274ee7deab4ff0ede09a57b37eb2d381ec5d6318e0a39cc26c5363818ddc6975ee910b7f127935a8c3d
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dedup
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
 
6
6
  DEDUP_FROZEN_STRINGS = begin
7
7
  rand_string = rand.to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dedup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
@@ -15,22 +15,12 @@ description: If your app keeps lots of static data in memory, such as i18n data
15
15
  email:
16
16
  - jean.boussier@gmail.com
17
17
  executables: []
18
- extensions: []
18
+ extensions:
19
+ - ext/dedup/extconf.rb
19
20
  extra_rdoc_files: []
20
21
  files:
21
- - ".github/workflows/ci.yml"
22
- - ".gitignore"
23
- - ".travis.yml"
24
- - Gemfile
25
- - Gemfile.lock
26
22
  - LICENSE.txt
27
23
  - README.md
28
- - Rakefile
29
- - benchmark/deep_intern.rb
30
- - bin/console
31
- - bin/setup
32
- - dedup.gemspec
33
- - dev.yml
34
24
  - ext/dedup/dedup.c
35
25
  - ext/dedup/extconf.rb
36
26
  - lib/dedup.rb
@@ -57,7 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
47
  - !ruby/object:Gem::Version
58
48
  version: '0'
59
49
  requirements: []
60
- rubygems_version: 3.0.2
50
+ rubygems_version: 3.1.2
61
51
  signing_key:
62
52
  specification_version: 4
63
53
  summary: Fast object deduplication
@@ -1,23 +0,0 @@
1
- name: CI
2
-
3
- on: [push, pull_request]
4
-
5
- jobs:
6
- build:
7
- runs-on: ubuntu-latest
8
- strategy:
9
- fail-fast: false
10
- matrix:
11
- ruby: [ ruby-head, 2.7, 2.6, 2.5 ]
12
- steps:
13
- - uses: actions/checkout@v2
14
- - name: Set up Ruby
15
- uses: ruby/setup-ruby@v1
16
- with:
17
- ruby-version: ${{ matrix.ruby }}
18
- - name: Install dependencies
19
- run: bundle install
20
- - name: Run test
21
- run: rake
22
- - name: Install gem
23
- run: rake install
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- *.bundle
10
- *.so
11
- .byebug_history
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.7.1
6
- before_install: gem install bundler -v 2.1.4
data/Gemfile DELETED
@@ -1,13 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in dedup.gemspec
4
- gemspec
5
-
6
- gem "rake", "~> 12.0"
7
- gem "rake-compiler"
8
- gem "minitest", "~> 5.0"
9
- gem "byebug"
10
- gem "rubocop-shopify", require: false
11
- gem "benchmark-ips"
12
- gem "stackprof"
13
- gem "bootsnap"
@@ -1,57 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- dedup (0.1.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- ast (2.4.1)
10
- benchmark-ips (2.8.2)
11
- bootsnap (1.4.8)
12
- msgpack (~> 1.0)
13
- byebug (11.1.3)
14
- minitest (5.14.2)
15
- msgpack (1.3.3)
16
- parallel (1.19.2)
17
- parser (2.7.1.4)
18
- ast (~> 2.4.1)
19
- rainbow (3.0.0)
20
- rake (12.3.3)
21
- rake-compiler (1.1.1)
22
- rake
23
- regexp_parser (1.7.1)
24
- rexml (3.2.4)
25
- rubocop (0.86.0)
26
- parallel (~> 1.10)
27
- parser (>= 2.7.0.1)
28
- rainbow (>= 2.2.2, < 4.0)
29
- regexp_parser (>= 1.7)
30
- rexml
31
- rubocop-ast (>= 0.0.3, < 1.0)
32
- ruby-progressbar (~> 1.7)
33
- unicode-display_width (>= 1.4.0, < 2.0)
34
- rubocop-ast (0.3.0)
35
- parser (>= 2.7.1.4)
36
- rubocop-shopify (1.0.4)
37
- rubocop (>= 0.85, < 0.87)
38
- ruby-progressbar (1.10.1)
39
- stackprof (0.2.15)
40
- unicode-display_width (1.7.0)
41
-
42
- PLATFORMS
43
- ruby
44
-
45
- DEPENDENCIES
46
- benchmark-ips
47
- bootsnap
48
- byebug
49
- dedup!
50
- minitest (~> 5.0)
51
- rake (~> 12.0)
52
- rake-compiler
53
- rubocop-shopify
54
- stackprof
55
-
56
- BUNDLED WITH
57
- 2.1.4
data/Rakefile DELETED
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
- require "bundler/gem_tasks"
3
- require "rake/testtask"
4
-
5
- Rake::TestTask.new(:test) do |t|
6
- t.libs << "test"
7
- t.libs << "lib"
8
- t.test_files = FileList["test/**/*_test.rb"]
9
- end
10
-
11
- if RUBY_ENGINE == 'ruby' && RUBY_VERSION >= '2.7'
12
- require "rake/extensiontask"
13
-
14
- Rake::ExtensionTask.new("dedup") do |ext|
15
- ext.ext_dir = 'ext/dedup'
16
- ext.lib_dir = "lib/dedup"
17
- end
18
-
19
- task default: %i(compile test)
20
- else
21
- task default: %i(test)
22
- end
@@ -1,26 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'tmpdir'
5
- require 'yaml'
6
- require 'bootsnap'
7
- require 'benchmark/ips'
8
- require 'bundler/setup'
9
- require 'dedup'
10
-
11
- Bootsnap.setup(
12
- cache_dir: Dir.mktmpdir,
13
- development_mode: false,
14
- compile_cache_yaml: true,
15
- autoload_paths_cache: false,
16
- )
17
-
18
- YAML_PATH = ARGV.fetch(0)
19
-
20
- Benchmark.ips do |x|
21
- x.time = 30
22
- x.report('baseline') { YAML.load_file(YAML_PATH) }
23
- x.report('ruby') { Dedup::Ruby.deep_intern!(YAML.load_file(YAML_PATH)) }
24
- x.report('native') { Dedup::Native.deep_intern!(YAML.load_file(YAML_PATH)) }
25
- x.compare!
26
- end
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "dedup"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'lib/dedup/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "dedup"
7
- spec.version = Dedup::VERSION
8
- spec.authors = ["Jean Boussier"]
9
- spec.email = ["jean.boussier@gmail.com"]
10
-
11
- spec.summary = %q{Fast object deduplication}
12
- spec.description = %q{If your app keeps lots of static data in memory, such as i18n data or large configurations, this can reduce memory retention.}
13
- spec.homepage = "https://github.com/Shopify/dedup"
14
- spec.license = "MIT"
15
- spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
16
-
17
- spec.metadata["allowed_push_host"] = "https://rubygems.org"
18
-
19
- spec.metadata["homepage_uri"] = spec.homepage
20
- spec.metadata["source_code_uri"] = spec.homepage
21
-
22
- # Specify which files should be added to the gem when it is released.
23
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
25
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
- end
27
-
28
- if RUBY_ENGINE == 'ruby' && RUBY_VERSION >= '2.7'
29
- spec.platform = Gem::Platform::RUBY
30
- spec.extensions = ['ext/dedup/extconf.rb']
31
- end
32
-
33
- spec.bindir = "exe"
34
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
- spec.require_paths = ["lib"]
36
- end
data/dev.yml DELETED
@@ -1,20 +0,0 @@
1
- name: dedup
2
-
3
- type: ruby
4
-
5
- up:
6
- - ruby: 2.7.1
7
- - bundler
8
-
9
- commands:
10
- console:
11
- desc: 'start a console'
12
- run: bin/console
13
- run:
14
- desc: 'start the application'
15
- run: bin/run
16
- test:
17
- syntax:
18
- argument: file
19
- optional: args...
20
- run: bin/testunit