enumark 1.0.0 → 1.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: fa3a4cc7fa496b1863e6de8c004144d85d983e1b8886f252c909c1031b215f66
4
- data.tar.gz: a462ef2d2b0ee84b4330e6daa2b528bbf1e643181715ff8bfb0030c2fabc6207
3
+ metadata.gz: e3887e4765d58b0f634bcfff37be0d33a666b1fb0b7b8d7528a24070552092c6
4
+ data.tar.gz: 42856dea821e7f2692cd1cec49cc11a7c6a5f70b30c33d0a6b8d9865b042cf34
5
5
  SHA512:
6
- metadata.gz: 0712afefeb2f3950b7763cb4d2246e39034a393bf8beb75bc88e10c22f6d45122fcf19f38cda647f4f3ec441705648b46d88fc729f3162cc2cfc50bb66bbd1a3
7
- data.tar.gz: 482ce353a24835363a27a64b15e0d74e08e352ab57cc5e19b0008f3bfa0dabbeeed195b669f006d212bc76fcd8a604d8e16bb077d9e1fb85fcf012eb52ba348c
6
+ metadata.gz: 915ff888a7805f299600adbf9a80d6d5174b43422a61e5874650ae692e65760767d67a33fe367f6fbd5adef08d67b32d8f31dc63925c4f96c209b355deed545b
7
+ data.tar.gz: b5059abedec7387c0be9ba0c253e93fc8f4dad504ab847e0fc4c398a5997464600d795476522ed416f46416edb6f831ee6dee6f740b53ae5da4eb579106de99f
data/.gitignore CHANGED
@@ -7,4 +7,3 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  *.gem
10
- Gemfile.lock
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 2.6.3
data/Gemfile.lock ADDED
@@ -0,0 +1,27 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ enumark (1.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ coderay (1.1.3)
10
+ method_source (1.0.0)
11
+ minitest (5.16.3)
12
+ pry (0.14.1)
13
+ coderay (~> 1.1)
14
+ method_source (~> 1.0)
15
+ rake (13.0.6)
16
+
17
+ PLATFORMS
18
+ ruby
19
+
20
+ DEPENDENCIES
21
+ enumark!
22
+ minitest (~> 5.0)
23
+ pry
24
+ rake (~> 13.0)
25
+
26
+ BUNDLED WITH
27
+ 1.17.2
data/README.md CHANGED
@@ -55,6 +55,12 @@ enum.each_category do |cate|
55
55
  end
56
56
  ```
57
57
 
58
+ Sort category by capacity
59
+
60
+ ```ruby
61
+ enum.each_category.map{ |cate| [cate.items.count, cate.name] }.sort
62
+ ```
63
+
58
64
  Explore trends of your dump files:
59
65
 
60
66
  ```ruby
data/enumark.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = "Enumerate chrome bookmark dump file"
12
12
  spec.homepage = "https://github.com/turnon/enumark"
13
13
  spec.license = "MIT"
14
- spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
14
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.6.3")
15
15
 
16
16
  # Specify which files should be added to the gem when it is released.
17
17
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Enumark
4
- VERSION = "1.0.0"
4
+ VERSION = "1.1.1"
5
5
  end
data/lib/enumark.rb CHANGED
@@ -6,6 +6,7 @@ require 'enumark/category'
6
6
  require 'enumark/grouping'
7
7
  require 'enumark/dir'
8
8
  require 'enumark/config'
9
+ require 'pathname'
9
10
 
10
11
  class Enumark
11
12
  include Enumerable
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enumark
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ken
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-20 00:00:00.000000000 Z
11
+ date: 2022-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -32,9 +32,10 @@ extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
34
  - ".gitignore"
35
- - ".ruby-version"
35
+ - ".tool-versions"
36
36
  - CODE_OF_CONDUCT.md
37
37
  - Gemfile
38
+ - Gemfile.lock
38
39
  - LICENSE.txt
39
40
  - README.md
40
41
  - Rakefile
@@ -60,14 +61,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
60
61
  requirements:
61
62
  - - ">="
62
63
  - !ruby/object:Gem::Version
63
- version: 3.1.0
64
+ version: 2.6.3
64
65
  required_rubygems_version: !ruby/object:Gem::Requirement
65
66
  requirements:
66
67
  - - ">="
67
68
  - !ruby/object:Gem::Version
68
69
  version: '0'
69
70
  requirements: []
70
- rubygems_version: 3.3.7
71
+ rubygems_version: 3.0.3
71
72
  signing_key:
72
73
  specification_version: 4
73
74
  summary: Enumerate chrome bookmark dump file
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 3.1.1