ken_all 0.1.11 → 0.1.12

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: c970231ae9041d100f7b05d06453332289204cc6
4
- data.tar.gz: 84aa0fa606165dff2bba7f9741e2b02542731b6b
3
+ metadata.gz: 78b40e0a21883bde575dcf61cd4edfc7583797f9
4
+ data.tar.gz: ccdd32f4cf32c20ec437ed871525e7db1f392d22
5
5
  SHA512:
6
- metadata.gz: 4b9746b245f1406388002f13030271a7d77240985534e314fc067726cd6013b0fcff8d2932883ead34114b9834a6ce23cd425711dd903cdd8ba6031f19fcbe0b
7
- data.tar.gz: a0f7836cb50a37ccfbc048a75999101222962c854478118b2fd005e702f09f949ae514bf87a41dd02ea426022bb2aff8c0cf445886b6eca1df6287866c6939af
6
+ metadata.gz: e8c483f9895a68313290a6d4865e8e6a179b486a9de5c768ca6e8a6f22a14385101243d33abf289688c0bb809b15cf401b0cd8b2a701927ee7c043989c34f1e9
7
+ data.tar.gz: df528bd9c30192e267b2125eff7ec095228ccf11f0e7f23f10fac8f652866d6c85a7b57096586e5b3521ed7862c122e7a6771d71235e4daf106c4a6683a54ef7
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  .DS_Store
2
2
  .bundle/
3
- Gemfile.lock
4
3
  log/*.log
5
4
  pkg/
6
5
  spec/dummy/db/*.sqlite3
@@ -8,3 +7,4 @@ spec/dummy/log/*.log
8
7
  spec/dummy/tmp/
9
8
  spec/dummy/.sass-cache
10
9
  .idea/
10
+ .tags
data/.travis.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1
4
3
  - 2.2
4
+ - 2.3
5
5
  before_script:
6
6
  - cd spec/dummy
7
7
  - bundle exec rake db:setup
data/Gemfile.lock ADDED
@@ -0,0 +1,127 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ken_all (0.1.12)
5
+ activerecord-import (~> 0.4)
6
+ curses (~> 1.0)
7
+ rails (>= 3.0.9)
8
+ rubyzip (~> 1.2)
9
+
10
+ GEM
11
+ remote: http://rubygems.org/
12
+ specs:
13
+ actionmailer (3.2.22.5)
14
+ actionpack (= 3.2.22.5)
15
+ mail (~> 2.5.4)
16
+ actionpack (3.2.22.5)
17
+ activemodel (= 3.2.22.5)
18
+ activesupport (= 3.2.22.5)
19
+ builder (~> 3.0.0)
20
+ erubis (~> 2.7.0)
21
+ journey (~> 1.0.4)
22
+ rack (~> 1.4.5)
23
+ rack-cache (~> 1.2)
24
+ rack-test (~> 0.6.1)
25
+ sprockets (~> 2.2.1)
26
+ activemodel (3.2.22.5)
27
+ activesupport (= 3.2.22.5)
28
+ builder (~> 3.0.0)
29
+ activerecord (3.2.22.5)
30
+ activemodel (= 3.2.22.5)
31
+ activesupport (= 3.2.22.5)
32
+ arel (~> 3.0.2)
33
+ tzinfo (~> 0.3.29)
34
+ activerecord-import (0.19.1)
35
+ activerecord (>= 3.2)
36
+ activeresource (3.2.22.5)
37
+ activemodel (= 3.2.22.5)
38
+ activesupport (= 3.2.22.5)
39
+ activesupport (3.2.22.5)
40
+ i18n (~> 0.6, >= 0.6.4)
41
+ multi_json (~> 1.0)
42
+ arel (3.0.3)
43
+ builder (3.0.4)
44
+ curses (1.2.3)
45
+ diff-lcs (1.3)
46
+ erubis (2.7.0)
47
+ hike (1.2.3)
48
+ i18n (0.8.6)
49
+ journey (1.0.4)
50
+ json (1.8.6)
51
+ mail (2.5.5)
52
+ mime-types (~> 1.16)
53
+ treetop (~> 1.4.8)
54
+ mime-types (1.25.1)
55
+ multi_json (1.12.1)
56
+ polyglot (0.3.5)
57
+ power_assert (1.0.2)
58
+ rack (1.4.7)
59
+ rack-cache (1.7.0)
60
+ rack (>= 0.4)
61
+ rack-ssl (1.3.4)
62
+ rack
63
+ rack-test (0.6.3)
64
+ rack (>= 1.0)
65
+ rails (3.2.22.5)
66
+ actionmailer (= 3.2.22.5)
67
+ actionpack (= 3.2.22.5)
68
+ activerecord (= 3.2.22.5)
69
+ activeresource (= 3.2.22.5)
70
+ activesupport (= 3.2.22.5)
71
+ bundler (~> 1.0)
72
+ railties (= 3.2.22.5)
73
+ railties (3.2.22.5)
74
+ actionpack (= 3.2.22.5)
75
+ activesupport (= 3.2.22.5)
76
+ rack-ssl (~> 1.3.2)
77
+ rake (>= 0.8.7)
78
+ rdoc (~> 3.4)
79
+ thor (>= 0.14.6, < 2.0)
80
+ rake (12.0.0)
81
+ rdoc (3.12.2)
82
+ json (~> 1.4)
83
+ rspec-core (3.6.0)
84
+ rspec-support (~> 3.6.0)
85
+ rspec-expectations (3.6.0)
86
+ diff-lcs (>= 1.2.0, < 2.0)
87
+ rspec-support (~> 3.6.0)
88
+ rspec-mocks (3.6.0)
89
+ diff-lcs (>= 1.2.0, < 2.0)
90
+ rspec-support (~> 3.6.0)
91
+ rspec-rails (3.6.1)
92
+ actionpack (>= 3.0)
93
+ activesupport (>= 3.0)
94
+ railties (>= 3.0)
95
+ rspec-core (~> 3.6.0)
96
+ rspec-expectations (~> 3.6.0)
97
+ rspec-mocks (~> 3.6.0)
98
+ rspec-support (~> 3.6.0)
99
+ rspec-support (3.6.0)
100
+ rubyzip (1.2.1)
101
+ sprockets (2.2.3)
102
+ hike (~> 1.2)
103
+ multi_json (~> 1.0)
104
+ rack (~> 1.0)
105
+ tilt (~> 1.1, != 1.3.0)
106
+ sqlite3 (1.3.13)
107
+ test-unit (3.2.5)
108
+ power_assert
109
+ thor (0.20.0)
110
+ tilt (1.4.1)
111
+ treetop (1.4.15)
112
+ polyglot
113
+ polyglot (>= 0.3.1)
114
+ tzinfo (0.3.53)
115
+
116
+ PLATFORMS
117
+ ruby
118
+
119
+ DEPENDENCIES
120
+ ken_all!
121
+ rails (~> 3.2)
122
+ rspec-rails
123
+ sqlite3
124
+ test-unit (~> 3.0)
125
+
126
+ BUNDLED WITH
127
+ 1.15.3
data/Rakefile CHANGED
@@ -20,8 +20,5 @@ RDoc::Task.new(:rdoc) do |rdoc|
20
20
  rdoc.rdoc_files.include('lib/**/*.rb')
21
21
  end
22
22
 
23
-
24
-
25
-
26
23
  Bundler::GemHelper.install_tasks
27
24
 
data/ken_all.gemspec CHANGED
@@ -22,10 +22,9 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.add_dependency "activerecord-import","~> 0.4"
24
24
  s.add_dependency "rails", ">= 3.0.9"
25
- s.add_dependency "rubyzip", '~> 1.0'
25
+ s.add_dependency "rubyzip", '~> 1.2'
26
26
  s.add_dependency "curses", '~> 1.0'
27
27
 
28
28
  s.add_development_dependency "sqlite3"
29
29
  s.add_development_dependency "rspec-rails"
30
- s.add_development_dependency "rr", "~> 1.1"
31
30
  end
@@ -1,3 +1,3 @@
1
1
  module KenAll
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
@@ -1,8 +1,6 @@
1
- #coding: utf-8
2
1
  require 'spec_helper'
3
2
  require 'rake'
4
3
 
5
-
6
4
  describe KenAll::Import do
7
5
  before(:all) do
8
6
  load "#{Rails.root}/Rakefile"
@@ -97,9 +95,9 @@ EOS
97
95
  end
98
96
 
99
97
  context 'スキーマ情報が古い場合' do
98
+ let(:column){ double('Column', sql_type: 'varchar(255)') }
100
99
  before do
101
- stub(column = Object.new).sql_type{'varchar(255)'}
102
- stub(KenAll::PostalCode.columns).select{[column]}
100
+ allow(KenAll::PostalCode.columns).to receive(:select) { [column] }
103
101
  end
104
102
  it '例外が発生すること' do
105
103
  expect {KenAll::Import.new}.to raise_error
data/spec/spec_helper.rb CHANGED
@@ -9,13 +9,6 @@ require 'rspec/autorun'
9
9
  Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
10
10
 
11
11
  RSpec.configure do |config|
12
- # ## Mock Framework
13
- #
14
- # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
15
- #
16
- # config.mock_with :mocha
17
- # config.mock_with :flexmock
18
- config.mock_with :rr
19
12
 
20
13
  # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
21
14
  config.fixture_path = "#{::Rails.root}/spec/fixtures"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ken_all
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yamamoto Kazuhisa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-01 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-import
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.0'
47
+ version: '1.2'
48
48
  type: :runtime
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: '1.0'
54
+ version: '1.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: curses
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -94,20 +94,6 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: rr
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '1.1'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '1.1'
111
97
  description: Japanese postal code tools.
112
98
  email:
113
99
  - ak.hisashi@gmail.com
@@ -119,6 +105,7 @@ files:
119
105
  - ".rspec"
120
106
  - ".travis.yml"
121
107
  - Gemfile
108
+ - Gemfile.lock
122
109
  - MIT-LICENSE
123
110
  - README.rdoc
124
111
  - Rakefile
@@ -202,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
189
  version: '0'
203
190
  requirements: []
204
191
  rubyforge_project:
205
- rubygems_version: 2.2.2
192
+ rubygems_version: 2.6.11
206
193
  signing_key:
207
194
  specification_version: 4
208
195
  summary: Japanese postal code tools.