lb-persistence 0.0.2 → 0.0.3

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: b5a269983d4572e8eb90616b02effb62b69f0cad6c83d2d1f35f4af51649d789
4
- data.tar.gz: 4120b33c2c642b5591e9e7613ffa0e660103791889dec5608da55f87189963f7
3
+ metadata.gz: 0da5a5b0b10bc0013d2a17d3b8e66054dfcd580b4eed33b5ac6036fead78173a
4
+ data.tar.gz: d3e3d177f693f756fc422b6c09294424111c1fa55080c70fd5a0796e6a75afb9
5
5
  SHA512:
6
- metadata.gz: b473119ea79d7e5132835e4f917af81c92291141e93114f0fb55e44eb38da6f503da69fdbf876cac6c037b8e7d5eaf7487c5419088167481ce87ffb9cd2ed705
7
- data.tar.gz: 3d080b654874ca035aa7555967ad6eae3f5acafa089267f314fae5a2efe6a9c4694f02b65b414ff07fe623bac4e51d7d2c22e298d3174b4284d3b8415851a1b2
6
+ metadata.gz: 52ad5a8a0eca92325705b3a618661583e387ab5b439fec46753fdac83bfaba0c4d7e159ac0c729c0f94f2fd2794d5992728291673eb7abaea0ad36012e5036fb
7
+ data.tar.gz: 9c0e54821029ca1b33e6207a520daf8c2146680cee0f1a491432d17963ef72b5f577ba88d1cc195dfef2c93fe4af2df44055186720dc2506f3213ada73094f1e
@@ -71,8 +71,6 @@ module LB
71
71
  @uri ||= settings.database_uri
72
72
  end
73
73
 
74
- private
75
-
76
74
  # Create ROM container for given config
77
75
  #
78
76
  # @param [ROM::Configuration] config
@@ -85,28 +83,30 @@ module LB
85
83
  ROM.container(config)
86
84
  end
87
85
 
88
- # Setup rom for given URI
86
+ # Create ROM configuration for given connection or URI
89
87
  #
90
- # @param [String]
88
+ # @param [Sequel::Database | String]
91
89
  #
92
- # @return [ROM::Conatainer]
90
+ # @return [ROM::Configuration]
93
91
  #
94
92
  # @api private
95
93
  #
96
- def rom_setup(uri)
97
- container_from(configure_for(uri))
94
+ def configuration_for(connection)
95
+ ROM::Configuration.new(:sql, connection)
98
96
  end
99
97
 
100
- # Create ROM configuration for given connection or URI
98
+ private
99
+
100
+ # Setup rom for given URI
101
101
  #
102
- # @param [Sequel::Database | String]
102
+ # @param [String]
103
103
  #
104
- # @return [ROM::Configuration]
104
+ # @return [ROM::Conatainer]
105
105
  #
106
106
  # @api private
107
107
  #
108
- def configuration_for(connection)
109
- ROM::Configuration.new(:sql, connection)
108
+ def rom_setup(uri)
109
+ container_from(configure_for(uri))
110
110
  end
111
111
 
112
112
  # Configure ROM
@@ -3,6 +3,6 @@
3
3
  module LB
4
4
  class Persistence
5
5
  # Version
6
- VERSION = '0.0.2'
6
+ VERSION = '0.0.3'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lb-persistence
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firas Zaidan