ares.rb 0.2.0 → 0.3.0

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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +21 -0
  3. data/ares.gemspec +2 -1
  4. data/lib/ares.rb +3 -4
  5. data/lib/ares/version.rb +1 -1
  6. metadata +17 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f41042921987c9163929035bfdfa9593cca85c9f
4
- data.tar.gz: 6cc85f6c34334268ec3ac26cdd0810b8e204fb67
3
+ metadata.gz: 5f63b8df34b8310ba2ef1abf50ef52eeb482ef70
4
+ data.tar.gz: a148150c8295ce9c06b2eeb6a148ebfbbead479a
5
5
  SHA512:
6
- metadata.gz: e477eee41910c2a724ad9647d1a3e23b66dd163992f8c2a50a3eb0da608df088af9abcd2d8ddc2b3f2801379e49b69db32670347b34b9a26c00ff3e1ef39b149
7
- data.tar.gz: e017f3462ad6ce5a7a82ed0aa791e59964946c57cb23ba49ecda8380f381964a8bd3d534984b8d001018c578527c5368346eb52987784b153ce606e3c3f67933
6
+ metadata.gz: 68469c5c283ed21ae31cb75647160f13e3f34e08c15b16da6fa2e866cd966d7dd02c0c8f80bcea74cb509dbaf4efd8404c22bcde08905b4d3575288421df2237
7
+ data.tar.gz: 65730dbe0985777b75ed186fc25d1f766dde6924b9d1a987e42b3dbcb623db8f17baac53a4086daf95afbb1a67ee74f1eaa186e8b3150add94f8feadfc002505
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Účetnictví on-line
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 all
13
+ 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 THE
21
+ SOFTWARE.
@@ -16,13 +16,14 @@ Gem::Specification.new do |spec|
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
17
  spec.require_paths = ['lib']
18
18
 
19
+ spec.add_dependency 'ico-validator', '~> 0.4'
20
+
19
21
  spec.add_development_dependency 'bundler', '~> 1.7'
20
22
  spec.add_development_dependency 'rake', '~> 10.0'
21
23
  spec.add_development_dependency 'rspec'
22
24
  spec.add_development_dependency 'webmock'
23
25
  spec.add_development_dependency 'vcr'
24
26
  spec.add_development_dependency 'rails'
25
- spec.add_development_dependency 'ico-validator'
26
27
 
27
28
  spec.add_runtime_dependency 'httparty'
28
29
  spec.add_runtime_dependency 'nokogiri'
@@ -28,10 +28,9 @@ module Ares
28
28
  private
29
29
 
30
30
  def validate_ico_format(ico)
31
- return unless ico.present?
32
- validator = ::IcoValidator.new(attributes: [:_])
33
- return if validator.send(:valid_ico?, ico)
34
- fail ArgumentError, "ICO '#{ico}' is invalid"
31
+ unless IcoValidation.valid_ico?(ico)
32
+ fail ArgumentError, "ICO '#{ico}' is invalid"
33
+ end
35
34
  end
36
35
  end
37
36
  end
@@ -1,3 +1,3 @@
1
1
  module Ares
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ares.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Svoboda
@@ -9,8 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-26 00:00:00.000000000 Z
12
+ date: 2015-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: ico-validator
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '0.4'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '0.4'
14
28
  - !ruby/object:Gem::Dependency
15
29
  name: bundler
16
30
  requirement: !ruby/object:Gem::Requirement
@@ -95,20 +109,6 @@ dependencies:
95
109
  - - ">="
96
110
  - !ruby/object:Gem::Version
97
111
  version: '0'
98
- - !ruby/object:Gem::Dependency
99
- name: ico-validator
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- version: '0'
105
- type: :development
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: '0'
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: httparty
114
114
  requirement: !ruby/object:Gem::Requirement
@@ -151,6 +151,7 @@ files:
151
151
  - ".ruby-version"
152
152
  - ".travis.yml"
153
153
  - Gemfile
154
+ - LICENSE
154
155
  - README.md
155
156
  - Rakefile
156
157
  - TODO.md