extensible 0.1.1 → 0.1.2

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: c4850bef64d00b1c3f9b897d369cf3eae57e7beb
4
- data.tar.gz: 5cf3a0ee00ee52e1d0b14c75fd909ebbfdf000f5
3
+ metadata.gz: db542bc09942dcaaf53c54759f32bc43d173a0a6
4
+ data.tar.gz: 98df27e3e1266299957397afbc1487611695d56f
5
5
  SHA512:
6
- metadata.gz: f14106e0f1ec27f467ccb799fb210f83a7db3d5e7b6aae22734c5149a62596859191771525018edf392b3977baa7aebc274fbcdd67d5ba55f98a422333046507
7
- data.tar.gz: 3b3a2721e2df6dd5ed87d5698d228a87ef0d218613348e86e0cd4619e789a182ac2b42b6e8f81fbeabbcdc5eb9cfb341fe2c6c812f2213529fd59e544781b584
6
+ metadata.gz: f45a86fc771605b548370eb863ec7e83a1d31e37c7ff9109680324fdb5245bf035da8190e8aaf54b44f96ec04470096dc034d54900f6312603119dd0558214fd
7
+ data.tar.gz: 3eea66775d3aa85ad3b7ce0d13dcb888530dfbaf8b2693706f056c2e821a680f1c078502965f0fbff3b4a1864eb87abe4efc88df8dc55eb72a195dc88eaed501
File without changes
data/extensible.gemspec CHANGED
@@ -1,5 +1,6 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path("../lib".freeze, __FILE__)
2
+
3
+ lib = File.expand_path("../lib/".freeze, __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
 
5
6
  require "extensible/version".freeze
@@ -13,33 +14,31 @@ Gem::Specification.new do |spec|
13
14
  "lib/**/*.rb".freeze
14
15
  ]
15
16
  spec.name = "extensible".freeze
16
- spec.summary = "Ruby extensions made easy.".freeze
17
+ spec.summary = "Ruby extensions made easy".freeze
17
18
  spec.version = Extensible::VERSION
18
19
 
19
20
  spec.email = "deoliveira.gab@gmail.com".freeze
20
21
  spec.homepage = "https://github.com/gdeoliveira/extensible".freeze
21
22
  spec.license = "MIT".freeze
22
23
 
23
- spec.description = <<-EOS.freeze
24
- Use Extensible on your custom extensions in order to get a set of advantages over traditional extensions that override
25
- the Module#extended method directly.
26
- EOS
24
+ spec.description = "Use Extensible on your custom extensions in order to get a set of advantages over traditional " \
25
+ "extensions that override the Module#extended method directly.".freeze
27
26
  spec.rdoc_options = [
28
27
  "--main=README.md".freeze,
29
28
  "--title=Extensible".freeze,
30
- "LICENSE.txt".freeze,
29
+ "LICENSE.md".freeze,
31
30
  "README.md".freeze,
32
31
  "lib/".freeze
33
32
  ].freeze
34
33
 
35
- spec.add_development_dependency "bundler".freeze, "~> 1.13.1".freeze
36
- spec.add_development_dependency "codeclimate-test-reporter".freeze, "~> 0.6.0".freeze
37
- spec.add_development_dependency "guard-rspec".freeze, "~> 4.7.3".freeze
38
- spec.add_development_dependency "guard-rubocop".freeze, "~> 1.2.0".freeze
39
- spec.add_development_dependency "io-console".freeze, "~> 0.4.6".freeze
40
- spec.add_development_dependency "pry-byebug".freeze, "~> 3.4.0".freeze
41
- spec.add_development_dependency "rake".freeze, "~> 11.3.0".freeze
42
- spec.add_development_dependency "rdoc".freeze, "~> 4.2.2".freeze
43
- spec.add_development_dependency "ruby_gntp".freeze, "~> 0.3.4".freeze
44
- spec.add_development_dependency "simplecov".freeze, "~> 0.12.0".freeze
34
+ spec.add_development_dependency "bundler".freeze
35
+ spec.add_development_dependency "codeclimate-test-reporter".freeze
36
+ spec.add_development_dependency "guard-rspec".freeze
37
+ spec.add_development_dependency "guard-rubocop".freeze
38
+ spec.add_development_dependency "io-console".freeze
39
+ spec.add_development_dependency "pry-byebug".freeze
40
+ spec.add_development_dependency "rake".freeze
41
+ spec.add_development_dependency "rdoc".freeze
42
+ spec.add_development_dependency "ruby_gntp".freeze
43
+ spec.add_development_dependency "simplecov".freeze
45
44
  end
@@ -8,6 +8,8 @@ module Extensible
8
8
  private
9
9
 
10
10
  def extended(submodule)
11
+ raise_type_error_if_submodule_is_not_a_module(submodule)
12
+
11
13
  super
12
14
 
13
15
  unless Utils.own_const_defined?(submodule, :ExtensionKernel)
@@ -19,6 +21,12 @@ module Extensible
19
21
  self
20
22
  end
21
23
 
24
+ def raise_type_error_if_submodule_is_not_a_module(submodule)
25
+ return if submodule.class == Module
26
+ raise TypeError, "expected to extend object of type `Module` with module `#{name}`, got `#{submodule.class}` " \
27
+ "instead"
28
+ end
29
+
22
30
  self
23
31
  end
24
32
  end
@@ -1,5 +1,5 @@
1
1
  module Extensible
2
2
  ##
3
3
  # Current version of Extensible.
4
- VERSION = "0.1.1".freeze
4
+ VERSION = "0.1.2".freeze
5
5
  end
metadata CHANGED
@@ -1,164 +1,163 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extensible
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
  - Gabriel de Oliveira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-25 00:00:00.000000000 Z
11
+ date: 2017-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.13.1
19
+ version: '0'
20
20
  type: :development
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: 1.13.1
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: codeclimate-test-reporter
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.6.0
33
+ version: '0'
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.6.0
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: guard-rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 4.7.3
47
+ version: '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: 4.7.3
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: guard-rubocop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2.0
61
+ version: '0'
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: 1.2.0
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: io-console
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 0.4.6
75
+ version: '0'
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.4.6
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pry-byebug
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 3.4.0
89
+ version: '0'
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: 3.4.0
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: 11.3.0
103
+ version: '0'
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: 11.3.0
110
+ version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rdoc
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: 4.2.2
117
+ version: '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: 4.2.2
124
+ version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: ruby_gntp
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: 0.3.4
131
+ version: '0'
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.3.4
138
+ version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: simplecov
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 0.12.0
145
+ version: '0'
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.12.0
153
- description: |
154
- Use Extensible on your custom extensions in order to get a set of advantages over traditional extensions that override
155
- the Module#extended method directly.
152
+ version: '0'
153
+ description: Use Extensible on your custom extensions in order to get a set of advantages
154
+ over traditional extensions that override the Module#extended method directly.
156
155
  email: deoliveira.gab@gmail.com
157
156
  executables: []
158
157
  extensions: []
159
158
  extra_rdoc_files: []
160
159
  files:
161
- - LICENSE.txt
160
+ - LICENSE.md
162
161
  - README.md
163
162
  - extensible.gemspec
164
163
  - lib/extensible.rb
@@ -174,7 +173,7 @@ post_install_message:
174
173
  rdoc_options:
175
174
  - "--main=README.md"
176
175
  - "--title=Extensible"
177
- - LICENSE.txt
176
+ - LICENSE.md
178
177
  - README.md
179
178
  - lib/
180
179
  require_paths:
@@ -191,8 +190,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
190
  version: '0'
192
191
  requirements: []
193
192
  rubyforge_project:
194
- rubygems_version: 2.6.6
193
+ rubygems_version: 2.6.11
195
194
  signing_key:
196
195
  specification_version: 4
197
- summary: Ruby extensions made easy.
196
+ summary: Ruby extensions made easy
198
197
  test_files: []