ruby_multiton 0.0.2.pre → 0.0.3.pre

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
  SHA1:
3
- metadata.gz: afff779cb9cfe9e4064c5ae34eb3b586eb4d9fd8
4
- data.tar.gz: a56bd90775c2936ac005e71096d2e18da0dc423d
3
+ metadata.gz: 6b785164fbce0ea7b29fc1228e327c61379795f4
4
+ data.tar.gz: 1fbafa36658fd49b846553243dc1324770f89897
5
5
  SHA512:
6
- metadata.gz: 2fe09106e68a4a800ca2b14a6fcb8bca4c81a66d8ae97c77987a7b909f8a23223d6d3f29d9187821dbfafd5e00243954b21d84672d37dccf60baa60d54cdda1a
7
- data.tar.gz: e065a49b34a460e8b7982becb9d5f39fc9752059f89b00c68088a774bc9f7edb0b95373a67828b5324d8ca2cb1bfb0eca7382f7028471eaf033fb3004672cf78
6
+ metadata.gz: 767c775588a2f18b96b6f28a83184cbd29c64b576769ebefadce48c7ad81cd8a81ba7e45c46d60dd5dac2547877f2432444818178294edeab71c330d33387343
7
+ data.tar.gz: 1aae10d1cfbee09970f057cf2a1da9f796bbd1d2d712cbffa4ce0398e302df7af0d9cfd2ff9b4eb240f23c31fea6c59298e25ba0b2843d3e5a00dd19e9d21464
data/LICENSE.md ADDED
@@ -0,0 +1,16 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Gabriel de Oliveira
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
6
+ documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
7
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8
+ persons to whom the Software is furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
11
+ Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
14
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
16
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -4,11 +4,12 @@ module Multiton
4
4
  module Mixin
5
5
  ##
6
6
  # call-seq:
7
- # _dump(level) => string
7
+ # _dump(_level) => string
8
8
  #
9
- # Serializes the instance as a string that can be reconstituted at a later point.
9
+ # Serializes the instance as a string that can be reconstituted at a later point. The parameter +_level+ is not
10
+ # used, but it is needed for marshalling to work correctly.
10
11
  #
11
- # Returns string.
12
+ # Returns a string representing the serialized multiton instance.
12
13
  def _dump(_level)
13
14
  self.class.instance_variable_get(:@__multiton_instances).key self
14
15
  end
@@ -1,5 +1,5 @@
1
1
  module Multiton
2
2
  ##
3
3
  # Current version of Multiton.
4
- VERSION = "0.0.2.pre".freeze
4
+ VERSION = "0.0.3.pre".freeze
5
5
  end
data/lib/multiton.rb CHANGED
@@ -141,9 +141,9 @@ module Multiton
141
141
 
142
142
  ##
143
143
  # call-seq:
144
- # initialize_copy(source) => self
144
+ # initialize_copy(_source) => self
145
145
  #
146
- # This is called (on the clone) when a multiton class (+source+) is cloned to properly initialize it. Instances will
146
+ # This is called (on the clone) when a multiton class (+_source+) is cloned to properly initialize it. Instances will
147
147
  # not be shared between the original and cloned classes.
148
148
  #
149
149
  # Returns +self+.
@@ -14,32 +14,33 @@ Gem::Specification.new do |spec|
14
14
  "lib/**/*.rb".freeze
15
15
  ]
16
16
  spec.name = "ruby_multiton".freeze
17
- spec.summary = "Ruby Multiton pattern implementation.".freeze
17
+ spec.summary = "Multiton pattern implementation for Ruby".freeze
18
18
  spec.version = Multiton::VERSION
19
19
 
20
20
  spec.email = "deoliveira.gab@gmail.com".freeze
21
21
  spec.homepage = "https://github.com/gdeoliveira/ruby_multiton".freeze
22
22
  spec.license = "MIT".freeze
23
23
 
24
- spec.description = "Ruby Multiton pattern implementation.".freeze
24
+ spec.description = "Multiton provides a transparent, thread safe and highly compatible implementation of the " \
25
+ "multiton (and singleton) patterns in pure Ruby.".freeze
25
26
  spec.rdoc_options = [
26
27
  "--main=README.md".freeze,
27
28
  "--title=Multiton".freeze,
28
- "LICENSE.txt".freeze,
29
+ "LICENSE.md".freeze,
29
30
  "README.md".freeze,
30
31
  "lib/".freeze
31
32
  ].freeze
32
33
 
33
- spec.add_runtime_dependency "extensible".freeze
34
+ spec.add_runtime_dependency "extensible".freeze, "~> 0.1".freeze
34
35
 
35
- spec.add_development_dependency "bundler".freeze
36
- spec.add_development_dependency "codeclimate-test-reporter".freeze
37
- spec.add_development_dependency "guard-rspec".freeze
38
- spec.add_development_dependency "guard-rubocop".freeze
39
- spec.add_development_dependency "io-console".freeze
40
- spec.add_development_dependency "pry-byebug".freeze
41
- spec.add_development_dependency "rake".freeze
42
- spec.add_development_dependency "rdoc".freeze
43
- spec.add_development_dependency "ruby_gntp".freeze
44
- spec.add_development_dependency "simplecov".freeze
36
+ spec.add_development_dependency "bundler".freeze, "~> 1.14".freeze
37
+ spec.add_development_dependency "codeclimate-test-reporter".freeze, "~> 1.0".freeze
38
+ spec.add_development_dependency "guard-rspec".freeze, "~> 4.7".freeze
39
+ spec.add_development_dependency "guard-rubocop".freeze, "~> 1.2".freeze
40
+ spec.add_development_dependency "io-console".freeze, "~> 0.4".freeze
41
+ spec.add_development_dependency "pry-byebug".freeze, "~> 3.4".freeze
42
+ spec.add_development_dependency "rake".freeze, "~> 12.0".freeze
43
+ spec.add_development_dependency "rdoc".freeze, "~> 5.1".freeze
44
+ spec.add_development_dependency "ruby_gntp".freeze, "~> 0.3".freeze
45
+ spec.add_development_dependency "simplecov".freeze, "~> 0.13".freeze
45
46
  end
metadata CHANGED
@@ -1,176 +1,177 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_multiton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.pre
4
+ version: 0.0.3.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel de Oliveira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-15 00:00:00.000000000 Z
11
+ date: 2017-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: extensible
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '0.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '0.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '1.14'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '1.14'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: codeclimate-test-reporter
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '1.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '1.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: guard-rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '4.7'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '4.7'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard-rubocop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '1.2'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '1.2'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: io-console
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '0.4'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: '0.4'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pry-byebug
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '3.4'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '3.4'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: '12.0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: '12.0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rdoc
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: '5.1'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0'
138
+ version: '5.1'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: ruby_gntp
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ">="
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '0'
145
+ version: '0.3'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ">="
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '0'
152
+ version: '0.3'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: simplecov
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ">="
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '0'
159
+ version: '0.13'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ">="
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '0'
167
- description: Ruby Multiton pattern implementation.
166
+ version: '0.13'
167
+ description: Multiton provides a transparent, thread safe and highly compatible implementation
168
+ of the multiton (and singleton) patterns in pure Ruby.
168
169
  email: deoliveira.gab@gmail.com
169
170
  executables: []
170
171
  extensions: []
171
172
  extra_rdoc_files: []
172
173
  files:
173
- - LICENSE.txt
174
+ - LICENSE.md
174
175
  - README.md
175
176
  - lib/multiton.rb
176
177
  - lib/multiton/instance_box.rb
@@ -187,7 +188,7 @@ post_install_message:
187
188
  rdoc_options:
188
189
  - "--main=README.md"
189
190
  - "--title=Multiton"
190
- - LICENSE.txt
191
+ - LICENSE.md
191
192
  - README.md
192
193
  - lib/
193
194
  require_paths:
@@ -207,5 +208,5 @@ rubyforge_project:
207
208
  rubygems_version: 2.6.11
208
209
  signing_key:
209
210
  specification_version: 4
210
- summary: Ruby Multiton pattern implementation.
211
+ summary: Multiton pattern implementation for Ruby
211
212
  test_files: []
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2017 Gabriel de Oliveira
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.