acts_as_lockable_by 0.1.2 → 0.1.3

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: 3976883f5be56291cff8cba6cb37aba57df6fefc8c1f5a0d74bbbd2b0b359f1b
4
- data.tar.gz: fad1c05df1f2f440177d5e9ec00f4713f96c11e50cdeaa0b4cfb37a813af3112
3
+ metadata.gz: 5622688689360a50f59ef247125ee222593268fda8456ec13835136ceafef0a3
4
+ data.tar.gz: b3d2223d3048488e6fae18178f03d412b66ad1897c9ce59117fc6743f90e6e5d
5
5
  SHA512:
6
- metadata.gz: 78a174973d5cbae20549a4402754488ac95f010f13b3cdf978ba100046aa7244c4e41ba48a9bbb7cc7628cb3375ab2c628ba06ecba09dabb0b9228db4b8738cb
7
- data.tar.gz: 96858980e66076a9c880399d6dc977e006679ec09efe3a756c92d837c732192e5cda36274a580a952f52a79f8c75b5d1049106070d378c7aa3bb39403d3271bd
6
+ metadata.gz: b4e44462d4cdf161583dab0f8dc9a2f25f1073bef8c638ed9c0c73ba3df3ff628794132bb4143d3d408bd5e86c03a07c82a4f6538d6bd388ca56adebbfa9480d
7
+ data.tar.gz: 55d818fde456cd76cdd549a5708ac7f32d987c0730a2e18f8513c6f92e5efa78ee1b3ab625cf627b431f8b9572a457d72216a9a819c2301e45b9edae05abbf49
data/README.md CHANGED
@@ -97,7 +97,7 @@ post.lock('Tarek Elsamni') # true
97
97
  post.locked? # true
98
98
  ```
99
99
 
100
- Renew a lock before it expires
100
+ Renew a lock before its ttl expires
101
101
 
102
102
  ```ruby
103
103
  post.lock('Tarek Elsamni') # true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActsAsLockableBy
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_lockable_by
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tarek N. Elsamni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-06 00:00:00.000000000 Z
11
+ date: 2018-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -146,20 +146,8 @@ executables:
146
146
  extensions: []
147
147
  extra_rdoc_files: []
148
148
  files:
149
- - ".env.test"
150
- - ".gitignore"
151
- - ".rspec"
152
- - ".rubocop.yml"
153
- - ".ruby-gemset"
154
- - ".ruby-version"
155
- - ".travis.yml"
156
- - CODE_OF_CONDUCT.md
157
- - Gemfile
158
- - Gemfile.lock
159
149
  - LICENSE
160
150
  - README.md
161
- - Rakefile
162
- - acts_as_lockable_by.gemspec
163
151
  - bin/console
164
152
  - bin/setup
165
153
  - lib/acts_as_lockable_by.rb
@@ -169,6 +157,7 @@ homepage: https://github.com/tareksamni/acts_as_lockable_by
169
157
  licenses:
170
158
  - MIT
171
159
  metadata:
160
+ allowed_push_host: https://rubygems.org
172
161
  homepage_uri: https://github.com/tareksamni/acts_as_lockable_by
173
162
  source_code_uri: https://github.com/tareksamni/acts_as_lockable_by
174
163
  changelog_uri: https://github.com/tareksamni/acts_as_lockable_by/commits/master
data/.env.test DELETED
@@ -1 +0,0 @@
1
- REDIS_URL=redis://localhost:6379
data/.gitignore DELETED
@@ -1,14 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
12
-
13
- # byebug history
14
- .byebug_history
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,8 +0,0 @@
1
- Style/Documentation:
2
- Enabled: false
3
-
4
- Style/BlockComments:
5
- Enabled: false
6
-
7
- Metrics/BlockLength:
8
- Enabled: false
data/.ruby-gemset DELETED
@@ -1 +0,0 @@
1
- acts_as_lockable
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.5.1
data/.travis.yml DELETED
@@ -1,18 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.5.1
6
- before_install: gem install bundler -v 1.17.1
7
- script:
8
- - bundle exec rubocop
9
- - bundle exec rspec
10
- services:
11
- - redis-server
12
- deploy:
13
- provider: rubygems
14
- api_key: $RUBYGEMS_API_KEY
15
- gem: acts_as_lockable_by
16
- on:
17
- tags: true
18
- repo: tareksamni/acts_as_lockable_by
data/CODE_OF_CONDUCT.md DELETED
@@ -1,88 +0,0 @@
1
- <!-- START doctoc generated TOC please keep comment here to allow auto update -->
2
- <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3
- **Table of Contents**
4
-
5
- - [Contributor Covenant Code of Conduct](#contributor-covenant-code-of-conduct)
6
- - [Our Pledge](#our-pledge)
7
- - [Our Standards](#our-standards)
8
- - [Our Responsibilities](#our-responsibilities)
9
- - [Scope](#scope)
10
- - [Enforcement](#enforcement)
11
- - [Attribution](#attribution)
12
-
13
- <!-- END doctoc generated TOC please keep comment here to allow auto update -->
14
-
15
- # Contributor Covenant Code of Conduct
16
-
17
- ## Our Pledge
18
-
19
- In the interest of fostering an open and welcoming environment, we as
20
- contributors and maintainers pledge to making participation in our project and
21
- our community a harassment-free experience for everyone, regardless of age, body
22
- size, disability, ethnicity, gender identity and expression, level of experience,
23
- nationality, personal appearance, race, religion, or sexual identity and
24
- orientation.
25
-
26
- ## Our Standards
27
-
28
- Examples of behavior that contributes to creating a positive environment
29
- include:
30
-
31
- * Using welcoming and inclusive language
32
- * Being respectful of differing viewpoints and experiences
33
- * Gracefully accepting constructive criticism
34
- * Focusing on what is best for the community
35
- * Showing empathy towards other community members
36
-
37
- Examples of unacceptable behavior by participants include:
38
-
39
- * The use of sexualized language or imagery and unwelcome sexual attention or
40
- advances
41
- * Trolling, insulting/derogatory comments, and personal or political attacks
42
- * Public or private harassment
43
- * Publishing others' private information, such as a physical or electronic
44
- address, without explicit permission
45
- * Other conduct which could reasonably be considered inappropriate in a
46
- professional setting
47
-
48
- ## Our Responsibilities
49
-
50
- Project maintainers are responsible for clarifying the standards of acceptable
51
- behavior and are expected to take appropriate and fair corrective action in
52
- response to any instances of unacceptable behavior.
53
-
54
- Project maintainers have the right and responsibility to remove, edit, or
55
- reject comments, commits, code, wiki edits, issues, and other contributions
56
- that are not aligned to this Code of Conduct, or to ban temporarily or
57
- permanently any contributor for other behaviors that they deem inappropriate,
58
- threatening, offensive, or harmful.
59
-
60
- ## Scope
61
-
62
- This Code of Conduct applies both within project spaces and in public spaces
63
- when an individual is representing the project or its community. Examples of
64
- representing a project or community include using an official project e-mail
65
- address, posting via an official social media account, or acting as an appointed
66
- representative at an online or offline event. Representation of a project may be
67
- further defined and clarified by project maintainers.
68
-
69
- ## Enforcement
70
-
71
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
72
- reported by contacting the project team at tarek.samni@gmail.com. All
73
- complaints will be reviewed and investigated and will result in a response that
74
- is deemed necessary and appropriate to the circumstances. The project team is
75
- obligated to maintain confidentiality with regard to the reporter of an incident.
76
- Further details of specific enforcement policies may be posted separately.
77
-
78
- Project maintainers who do not follow or enforce the Code of Conduct in good
79
- faith may face temporary or permanent repercussions as determined by other
80
- members of the project's leadership.
81
-
82
- ## Attribution
83
-
84
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
85
- available at [http://contributor-covenant.org/version/1/4][version]
86
-
87
- [homepage]: http://contributor-covenant.org
88
- [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile DELETED
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
-
7
- gemspec
data/Gemfile.lock DELETED
@@ -1,96 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- acts_as_lockable_by (0.1.2)
5
- activesupport (~> 5.0)
6
- redis (~> 4)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- activesupport (5.2.1)
12
- concurrent-ruby (~> 1.0, >= 1.0.2)
13
- i18n (>= 0.7, < 2)
14
- minitest (~> 5.1)
15
- tzinfo (~> 1.1)
16
- ast (2.4.0)
17
- awesome_print (1.8.0)
18
- byebug (10.0.2)
19
- coderay (1.1.2)
20
- concurrent-ruby (1.1.2)
21
- diff-lcs (1.3)
22
- eventmachine (1.2.7)
23
- htmlentities (4.3.4)
24
- i18n (1.1.1)
25
- concurrent-ruby (~> 1.0)
26
- jaro_winkler (1.5.1)
27
- kramdown (1.17.0)
28
- mini_portile2 (2.3.0)
29
- minitest (5.11.3)
30
- nokogiri (1.8.5)
31
- mini_portile2 (~> 2.3.0)
32
- parallel (1.12.1)
33
- parser (2.5.3.0)
34
- ast (~> 2.4.0)
35
- powerpack (0.1.2)
36
- rainbow (3.0.0)
37
- rake (10.5.0)
38
- redis (4.0.3)
39
- reverse_markdown (1.1.0)
40
- nokogiri
41
- rspec (3.8.0)
42
- rspec-core (~> 3.8.0)
43
- rspec-expectations (~> 3.8.0)
44
- rspec-mocks (~> 3.8.0)
45
- rspec-core (3.8.0)
46
- rspec-support (~> 3.8.0)
47
- rspec-expectations (3.8.2)
48
- diff-lcs (>= 1.2.0, < 2.0)
49
- rspec-support (~> 3.8.0)
50
- rspec-mocks (3.8.0)
51
- diff-lcs (>= 1.2.0, < 2.0)
52
- rspec-support (~> 3.8.0)
53
- rspec-support (3.8.0)
54
- rubocop (0.60.0)
55
- jaro_winkler (~> 1.5.1)
56
- parallel (~> 1.10)
57
- parser (>= 2.5, != 2.5.1.1)
58
- powerpack (~> 0.1)
59
- rainbow (>= 2.2.2, < 4.0)
60
- ruby-progressbar (~> 1.7)
61
- unicode-display_width (~> 1.4.0)
62
- ruby-progressbar (1.10.0)
63
- solargraph (0.28.4)
64
- coderay (~> 1.1)
65
- eventmachine (~> 1.2, >= 1.2.5)
66
- htmlentities (~> 4.3, >= 4.3.4)
67
- kramdown (~> 1.16)
68
- parser (~> 2.4)
69
- reverse_markdown (~> 1.0, >= 1.0.5)
70
- rubocop (~> 0.52)
71
- thor (~> 0.19, >= 0.19.4)
72
- tilt (~> 2.0)
73
- yard (~> 0.9)
74
- thor (0.20.0)
75
- thread_safe (0.3.6)
76
- tilt (2.0.8)
77
- tzinfo (1.2.5)
78
- thread_safe (~> 0.1)
79
- unicode-display_width (1.4.0)
80
- yard (0.9.16)
81
-
82
- PLATFORMS
83
- ruby
84
-
85
- DEPENDENCIES
86
- acts_as_lockable_by!
87
- awesome_print (~> 1.8)
88
- bundler (~> 1.17)
89
- byebug (~> 10.0)
90
- rake (~> 10.0)
91
- rspec (~> 3.0)
92
- rubocop (~> 0.52)
93
- solargraph (~> 0.28)
94
-
95
- BUNDLED WITH
96
- 1.17.1
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task default: :spec
@@ -1,48 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- lib = File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'acts_as_lockable_by/version'
6
-
7
- Gem::Specification.new do |spec|
8
- spec.name = 'acts_as_lockable_by'
9
- spec.version = ActsAsLockableBy::VERSION
10
- spec.authors = ['Tarek N. Elsamni']
11
- spec.email = ['tarek.samni@gmail.com']
12
-
13
- spec.summary = 'Atomically lock resources from concurrent access'
14
- # rubocop:disable Metrics/LineLength
15
- spec.description = 'A ruby gem to atomically lock resources to prevent concurrent/multiple lockers from accessing or editing the resource'
16
- # rubocop:enable Metrics/LineLength
17
- spec.homepage = 'https://github.com/tareksamni/acts_as_lockable_by'
18
- spec.license = 'MIT'
19
-
20
- if spec.respond_to?(:metadata)
21
- spec.metadata['homepage_uri'] = spec.homepage
22
- spec.metadata['source_code_uri'] = 'https://github.com/tareksamni/acts_as_lockable_by'
23
- spec.metadata['changelog_uri'] = 'https://github.com/tareksamni/acts_as_lockable_by/commits/master'
24
- else
25
- raise 'RubyGems 2.0 or newer is required to protect against ' \
26
- 'public gem pushes.'
27
- end
28
-
29
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
30
- `git ls-files -z`.split("\x0").reject do |f|
31
- f.match(%r{^(test|spec|features)/})
32
- end
33
- end
34
- spec.bindir = 'bin'
35
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
36
- spec.require_paths = ['lib']
37
-
38
- spec.add_runtime_dependency 'activesupport', ['~> 5.0']
39
- spec.add_runtime_dependency 'redis', '~> 4'
40
-
41
- spec.add_development_dependency 'awesome_print', '~> 1.8'
42
- spec.add_development_dependency 'bundler', '~> 1.17'
43
- spec.add_development_dependency 'byebug', '~> 10.0'
44
- spec.add_development_dependency 'rake', '~> 10.0'
45
- spec.add_development_dependency 'rspec', '~> 3.0'
46
- spec.add_development_dependency 'rubocop', '~> 0.52'
47
- spec.add_development_dependency 'solargraph', '~> 0.28'
48
- end