enum_args 1.0.0 → 1.0.1

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: 1393bbccc5c1ca886541d24576b6e13eaf4f6c18
4
- data.tar.gz: 6ff1e31d0e480284d9bf544d46f78911a796565b
3
+ metadata.gz: d30df69cd412bd2fd7ab806e32739eb3283058fd
4
+ data.tar.gz: 54bf76bb749fdff1b1aa5bc5af29974ae4ad9228
5
5
  SHA512:
6
- metadata.gz: 13591dcd84062fa71ce0a817bce0f20139f6a2112caacb7e330364f4bd9768c8f34d91f70db6f32957f8acf5a875716c47d8f95178315ac04d1ec08754812ed6
7
- data.tar.gz: 2d7ab11cf78629b7bd40455c3ff2e0f1b661397ecf3d7714bafd1f288b845418ff3e021ccb75e5ba134cf7eb45f59298c19e4f95d294d1e7d84286ffb1b283fa
6
+ metadata.gz: d8f79beac8e7242382e529b1e6853c6f23516c075dd8629cde523e8d270d58a4351f9e401713383e7838482a499cc29cadafe46ad2c75c08b36a04c2d9b53297
7
+ data.tar.gz: 390433118a98e132fb0bf2ab34295060af0236d37aa21d9fcdfa0f2856d7c3b56a91be45916544c374e5e58729d7b3f012c0b8e95a5e95394d374b4c77af01aa
data/.travis.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.5
4
- before_install: gem install bundler -v 1.10.3
3
+ - 2.2.2
4
+ before_install: gem install bundler -v 1.10.4
data/enum_args.gemspec CHANGED
@@ -19,6 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
+ spec.required_ruby_version = '>= 2.1.0'
23
+
22
24
  spec.add_development_dependency "bundler", "~> 1.10"
23
25
  spec.add_development_dependency "rake", "~> 10.0"
24
26
  spec.add_development_dependency "rspec"
@@ -34,7 +34,7 @@ module EnumArgs
34
34
  # remove specific 'using' options from method call
35
35
  iterator_params = extract_iterator_params_from options
36
36
 
37
- m_args += options unless options.empty?
37
+ m_args << options unless options.empty?
38
38
  e = if iterator_params.empty?
39
39
  # no changes, use default enumerator
40
40
  enum
@@ -42,10 +42,6 @@ module EnumArgs
42
42
  build_enum(iterator_params)
43
43
  end
44
44
  e.send m, *m_args, &blk
45
- rescue TypeError => e
46
- # this happens when options is not empty and the method won't accept it
47
- raise e unless e.message == 'no implicit conversion of Hash into Array'
48
- raise ArgumentError, "#{m} does not accept parameter #{options}"
49
45
  end
50
46
 
51
47
  def extract_iterator_params_from(options)
@@ -1,3 +1,3 @@
1
1
  module EnumArgs
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enum_args
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Martinez Ruiz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-06-16 00:00:00.000000000 Z
11
+ date: 2015-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -87,7 +87,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - ">="
89
89
  - !ruby/object:Gem::Version
90
- version: '0'
90
+ version: 2.1.0
91
91
  required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - ">="