jp_zip_code 0.1.6 → 0.1.7

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
- SHA1:
3
- metadata.gz: eae594d75bd6fb4cd4cda0e410187b5a0886fef9
4
- data.tar.gz: 510ef70f2808657e43505735acd5d192291ce086
2
+ SHA256:
3
+ metadata.gz: d54f4d9595108776403b33c0e98021aad7e15589af3a9dc76eb1c5e41eacf096
4
+ data.tar.gz: eb3b393f941a49eb3695d31e1ece5a03e3579b52dda47f6c683f6aa0de10a8c2
5
5
  SHA512:
6
- metadata.gz: 915f24b970d5eb739c9294ab1a8ce137e1c42fd1020281017ad8090e765661895f7c35d0eb7b0c3d98ee7f0f77991e540542089fcc51f27931b92c32a81b08f0
7
- data.tar.gz: ac39ac7ec7075247c5e0b1a7517bfb3c5c1a9dfcebb6c1505fc72d87576d4fb361b5ef1253d4e010bd88637061275679ae28c3a084dc4550e1a75d2d341560bd
6
+ metadata.gz: f875facfad9359554c3d05335153929f8a90d6701fc6a218e94e91f243fcbacdc64a689a2c81a64721aee4f76b050bfd005d51ca03b032a5d4ff7209716fba61
7
+ data.tar.gz: 370f4ea00466151f78407790fbd398b5d6c608aa6fa157689cafea9b3046a6e1ed96737766f55c35b769e43a7a1acaa0f8b3c95766081013d34718b81bace449
data/.rubocop.yml CHANGED
@@ -1,47 +1 @@
1
- AllCops:
2
- TargetRubyVersion: 2.2
3
-
4
- # Use UTF-8 as the source file encoding.
5
- Encoding:
6
- Enabled: false
7
-
8
- # Limit lines to 80 characters.
9
- LineLength:
10
- Enabled: false
11
-
12
- # Avoid methods longer than 10 lines of code
13
- MethodLength:
14
- Enabled: false
15
-
16
- # Favor modifier if/unless usage when you have a single-line body.
17
- IfUnlessModifier:
18
- Enabled: false
19
-
20
- # Favor modifier while/until usage when you have a single-line body.
21
- WhileUntilModifier:
22
- Enabled: false
23
-
24
- # Preferred collection methods.
25
- CollectionMethods:
26
- Enabled: false
27
-
28
- # Avoid Perl-style regex back references.
29
- AvoidPerlBackrefs:
30
- Enabled: false
31
-
32
- # Don't interpolate global, instance and class variables directly in strings.
33
- VariableInterpolation:
34
- Enabled: false
35
-
36
- # Don't use semicolons to terminate expressions.
37
- Semicolon:
38
- AllowBeforeEndInOneLineMethods: false
39
-
40
- # Use only ascii symbols in comments.
41
- AsciiComments:
42
- Enabled: false
43
-
44
- # Not necessary comment
45
- Style/Documentation:
46
- Enabled: false
47
-
1
+ inherit_from: .rubocop_todo.yml
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,87 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2017-05-09 01:32:14 +0900 using RuboCop version 0.48.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 2
10
+ Metrics/AbcSize:
11
+ Max: 19
12
+
13
+ # Offense count: 4
14
+ # Configuration parameters: CountComments, ExcludedMethods.
15
+ Metrics/BlockLength:
16
+ Max: 58
17
+
18
+ # Offense count: 7
19
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
20
+ # URISchemes: http, https
21
+ Metrics/LineLength:
22
+ Max: 104
23
+
24
+ # Offense count: 6
25
+ # Configuration parameters: CountComments.
26
+ Metrics/MethodLength:
27
+ Max: 24
28
+
29
+ # Offense count: 1
30
+ # Cop supports --auto-correct.
31
+ # Configuration parameters: AutoCorrect.
32
+ Security/JSONLoad:
33
+ Exclude:
34
+ - 'lib/jp_zip_code.rb'
35
+
36
+ # Offense count: 1
37
+ # Cop supports --auto-correct.
38
+ Security/YAMLLoad:
39
+ Exclude:
40
+ - 'lib/jp_zip_code.rb'
41
+
42
+ # Offense count: 3
43
+ Style/Documentation:
44
+ Exclude:
45
+ - 'spec/**/*'
46
+ - 'test/**/*'
47
+ - 'lib/jp_zip_code.rb'
48
+ - 'lib/jp_zip_code/filer.rb'
49
+ - 'lib/jp_zip_code/updater.rb'
50
+
51
+ # Offense count: 1
52
+ # Cop supports --auto-correct.
53
+ Style/EmptyLineAfterMagicComment:
54
+ Exclude:
55
+ - 'jp_zip_code.gemspec'
56
+
57
+ # Offense count: 1
58
+ # Configuration parameters: MinBodyLength.
59
+ Style/GuardClause:
60
+ Exclude:
61
+ - 'lib/jp_zip_code.rb'
62
+
63
+ # Offense count: 1
64
+ # Cop supports --auto-correct.
65
+ # Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
66
+ # SupportedStyles: predicate, comparison
67
+ Style/NumericPredicate:
68
+ Exclude:
69
+ - 'spec/**/*'
70
+ - 'lib/jp_zip_code/updater.rb'
71
+
72
+ # Offense count: 2
73
+ # Cop supports --auto-correct.
74
+ # Configuration parameters: PreferredDelimiters.
75
+ Style/PercentLiteralDelimiters:
76
+ Exclude:
77
+ - 'lib/jp_zip_code.rb'
78
+
79
+ # Offense count: 10
80
+ # Cop supports --auto-correct.
81
+ # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
82
+ # SupportedStyles: single_quotes, double_quotes
83
+ Style/StringLiterals:
84
+ Exclude:
85
+ - 'Gemfile'
86
+ - 'spec/filer_spec.rb'
87
+ - 'spec/jp_zip_code_spec.rb'
data/.travis.yml CHANGED
@@ -2,10 +2,14 @@ language: ruby
2
2
  rvm:
3
3
  - 2.1.4
4
4
  before_install: gem install bundler -v 1.11.2
5
- script: bundle exec rspec
5
+ script:
6
+ - bundle exec rspec
7
+ - bundle exec rubocop
6
8
  addons:
7
9
  code_climate:
8
10
  repo_token: 5594e3f1541606356c57f9e1921f18506f63696bf118fbc3a5f57d630fe7affe
11
+ after_success:
12
+ - bundle exec codeclimate-test-reporter
9
13
  notifications:
10
14
  email: false
11
15
  slack:
data/Gemfile CHANGED
@@ -3,4 +3,7 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in jp_zip_code.gemspec
4
4
  gemspec
5
5
 
6
- gem "codeclimate-test-reporter", group: :test, require: nil
6
+ group :test do
7
+ gem 'codeclimate-test-reporter', '~> 1.0.0'
8
+ gem 'simplecov'
9
+ end
data/jp_zip_code.gemspec CHANGED
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'jp_zip_code/version'
@@ -20,7 +21,7 @@ Gem::Specification.new do |spec|
20
21
  spec.require_paths = ['lib']
21
22
 
22
23
  spec.add_dependency 'rubyzip'
23
- spec.add_dependency 'rash'
24
+ spec.add_dependency 'rash_alt'
24
25
  spec.add_development_dependency 'bundler', '~> 1.11'
25
26
  spec.add_development_dependency 'rake', '~> 10.0'
26
27
  spec.add_development_dependency 'rspec', '~> 3.0'
data/lib/jp_zip_code.rb CHANGED
@@ -12,7 +12,7 @@ module JpZipCode
12
12
  json_file = "#{File.dirname(__FILE__)}/../data/zip_code/#{zip_code[0, 4]}.json"
13
13
  if File.exist?(json_file)
14
14
  data = File.open(json_file) { |json| JSON.load(json) }
15
- Hashie::Rash.new(convert(data[zip_code])) if data[zip_code]
15
+ Hashie::Mash::Rash.new(convert(data[zip_code])) if data[zip_code]
16
16
  end
17
17
  end
18
18
 
@@ -1,3 +1,3 @@
1
1
  module JpZipCode
2
- VERSION = '0.1.6'.freeze
2
+ VERSION = '0.1.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jp_zip_code
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - kimromi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-27 00:00:00.000000000 Z
11
+ date: 2018-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rash
28
+ name: rash_alt
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -104,6 +104,7 @@ files:
104
104
  - ".gitignore"
105
105
  - ".rspec"
106
106
  - ".rubocop.yml"
107
+ - ".rubocop_todo.yml"
107
108
  - ".travis.yml"
108
109
  - Gemfile
109
110
  - LICENSE.txt
@@ -1749,7 +1750,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1749
1750
  version: '0'
1750
1751
  requirements: []
1751
1752
  rubyforge_project:
1752
- rubygems_version: 2.2.2
1753
+ rubygems_version: 2.7.3
1753
1754
  signing_key:
1754
1755
  specification_version: 4
1755
1756
  summary: convert from zip-code to japan address (include Roman address)