redisant 0.1.1 → 0.1.2

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: 0ef5e633c7cc819756750fb6fce38da764f25e913bd39e5bca34bedae5f31e37
4
- data.tar.gz: 1e7d37f5d263c26dce475a54745d2303d6b2daeedf66891b085bc3bb62153eb9
3
+ metadata.gz: 547b06e9a1198cc7d6b5d7da0a73c881d992909f7492ce80c6c012ce56a90460
4
+ data.tar.gz: 0efbaeae29ddaafce6660cc37273ccf8bb2a3d56d353559208c8fd16d45ec93c
5
5
  SHA512:
6
- metadata.gz: 6d38c528b7e52bbaa58efe37f8e75e3e82bcb2c9de95b01586ba6c6c5d78220fce83a63779002a0cbd4da0661b1b65ff2d9d2b45f32a626206669f48f7f3c2c1
7
- data.tar.gz: 53cab79b3f5f133d61ce75746c4f640cd94b45633dff94d6bded7a2b946d0f9c82a3175b9e9053c7065923ad1f5f7d7e8ab0ba563549b920ed8bb2174e667cc6
6
+ metadata.gz: 6b6f192be325981f36107cc4918e185be524e2672a1dd988ac43975a76102c4788ebb6e884ea0bde497d28fc1079950d0a2aab615108b13ffeaab1d74dd0892f
7
+ data.tar.gz: f93501540fe72bf11abe82251d85ba210de936cee69467e7bf3c7c894dcf06bbbad0fb901789ed9d0be9924a75366ea826a0685f8bfc53b94be112e5857ee496
data/README.md CHANGED
@@ -1,12 +1,10 @@
1
1
  # Redisant
2
-
3
2
  ORM-like object storage for Redis. Makes it easy to store, find and query objects, and link them via associations.
4
3
 
5
4
  NOTE: running the rspec tests requires that redis is running. All data in the database will be deleted.
6
5
 
7
6
 
8
7
  ## Installation
9
-
10
8
  Add this line to your application's Gemfile:
11
9
 
12
10
  ```ruby
@@ -15,32 +13,39 @@ gem 'redisant'
15
13
 
16
14
  And then execute:
17
15
 
18
- $ bundle
19
-
16
+ ```shell
17
+ % bundle
18
+ ```
20
19
  Or install it yourself as:
21
20
 
22
- $ gem install redisant
21
+ ```shell
22
+ % gem install redisant
23
+ ```
23
24
 
24
25
  ## Usage
26
+ You need a Redis database use this gem. An easy way to do this is via Docker:
25
27
 
26
- You need a Redis sever running to use this gem. An easy way to do this is via Docker:
27
-
28
- > docker run -d -p 6379:6379 redis
29
-
30
- TODO: Write usage instructions here
28
+ ```shell
29
+ % docker run -d -p 6379:6379 redis
30
+ ```
31
31
 
32
32
  ## Development
33
-
34
33
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
35
34
 
36
35
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
37
36
 
38
- ## Contributing
37
+ ## Testing
38
+ To run the include RSpec tests, you need a Redis database for testing. ALL DATA WILL BE DELETED during testing, so be sure not to use a database with any data you want to keep. By default, the tests will try to connect to Redis on port 6387 (rather than the default 6379).
39
39
 
40
- Bug reports and pull requests are welcome on GitHub at https://github.com/emiltin/redisant. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
40
+ The easiest way to run a Redis database for testing is using Docker, mapping port 6379 of Redis to 6387 on the outside:
41
41
 
42
+ ```shell
43
+ % docker run docker run -p 6387:6379 redis
44
+ ``
42
45
 
43
- ## License
46
+ ## Contributing
47
+ Bug reports and pull requests are welcome on GitHub at https://github.com/emiltin/redisant. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
44
48
 
49
+ ## License
45
50
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
46
51
 
@@ -1,3 +1,3 @@
1
1
  module Redisant
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/redisant.rb CHANGED
@@ -1,7 +1,6 @@
1
- require "redisant/version"
2
-
3
1
  require 'redis'
4
2
 
3
+ require_relative "redisant/version"
5
4
  require_relative 'redisant/connection'
6
5
  require_relative 'redisant/errors.rb'
7
6
  require_relative 'redisant/inflector'
data/redisant.gemspec CHANGED
@@ -11,17 +11,17 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{ORM-like Redis storage.}
13
13
  spec.description = %q{Schema-less ORM-like Redis store.}
14
- spec.homepage = "http://github.com/emiltin/redisant"
14
+ spec.homepage = "https://github.com/emiltin/redisant"
15
15
  spec.license = "MIT"
16
+ spec.required_ruby_version = '>= 2.0.0'
16
17
 
17
18
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
19
  spec.bindir = "exe"
19
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
21
  spec.require_paths = ["lib"]
21
22
 
22
- spec.add_development_dependency "bundler", '~> 2.2.26'#, '>= 2.2.26'
23
+ spec.add_development_dependency "bundler", '~> 2.2.26', '>= 2.2.26'
23
24
  spec.add_development_dependency "rake", '~> 13.0.6', '>= 13.0.6'
24
25
  spec.add_development_dependency "rspec", '~> 3.10.0', '>= 3.10.0'
25
26
  spec.add_development_dependency "redis", '~> 4.4.0', '>= 4.4.0'
26
-
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redisant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Tin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-26 00:00:00.000000000 Z
11
+ date: 2021-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.2.26
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 2.2.26
20
23
  type: :development
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
29
  version: 2.2.26
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 2.2.26
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rake
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -119,7 +125,7 @@ files:
119
125
  - lib/redisant/set.rb
120
126
  - lib/redisant/version.rb
121
127
  - redisant.gemspec
122
- homepage: http://github.com/emiltin/redisant
128
+ homepage: https://github.com/emiltin/redisant
123
129
  licenses:
124
130
  - MIT
125
131
  metadata: {}
@@ -131,14 +137,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
137
  requirements:
132
138
  - - ">="
133
139
  - !ruby/object:Gem::Version
134
- version: '0'
140
+ version: 2.0.0
135
141
  required_rubygems_version: !ruby/object:Gem::Requirement
136
142
  requirements:
137
143
  - - ">="
138
144
  - !ruby/object:Gem::Version
139
145
  version: '0'
140
146
  requirements: []
141
- rubygems_version: 3.2.26
147
+ rubygems_version: 3.2.15
142
148
  signing_key:
143
149
  specification_version: 4
144
150
  summary: ORM-like Redis storage.