kandata 0.3.0 → 0.3.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: 9841a7b354143f7fbdd512e7e1c84ee3cfe97622
4
- data.tar.gz: 8f4a1bab20ab17cde5580e27ca0376edd6e53d42
3
+ metadata.gz: 30b8666ee135d3a4682c7a08fef4952cf20265aa
4
+ data.tar.gz: 676fb9ebcedb65d24a7f15abdf77677cb9963c13
5
5
  SHA512:
6
- metadata.gz: bb5391ce2ee2ac7112ce5320ebf7df616bee2d6baad69636c43342b50840148a465670796816713c7f1304bfc1e53170e6300d344852e75554e3ef5c0d086c2f
7
- data.tar.gz: 5b29c796225cc9d6cf73b0fc70c77b5efc305c4c6a93ae2787dfe00d6be119b481b4440abf25148f76751e8496e5cef0a24ca210e55fdb276ce3ad4c991094ed
6
+ metadata.gz: 259b0a3a6ffe3fb59354fd7319956834775a18429136153d98783a7f729e232f38bb2655a783e76860116d25a3584a18065ea32381e16db4e32bd0e90efc7407
7
+ data.tar.gz: 48a037a6f03cf4c1c63d8a2274374470619c592c2f1c834c0edeae13107f4c286acb74386f50d4c8d1c5e6a8820fd4cf7d3ee4d276c07513bc2ba4275ca6d36e
@@ -0,0 +1,96 @@
1
+ # This configuration was automatically generated from a CircleCI 1.0 config.
2
+ # It should include any build commands you had along with commands that CircleCI
3
+ # inferred from your project structure. We strongly recommend you read all the
4
+ # comments in this file to understand the structure of CircleCI 2.0, as the idiom
5
+ # for configuration has changed substantially in 2.0 to allow arbitrary jobs rather
6
+ # than the prescribed lifecycle of 1.0. In general, we recommend using this generated
7
+ # configuration as a reference rather than using it in production, though in most
8
+ # cases it should duplicate the execution of your original 1.0 config.
9
+ version: 2
10
+ jobs:
11
+ build:
12
+ working_directory: ~/eLicenseSystems/kandata
13
+ parallelism: 1
14
+ shell: /bin/bash --login
15
+ # CircleCI 2.0 does not support environment variables that refer to each other the same way as 1.0 did.
16
+ # If any of these refer to each other, rewrite them so that they don't or see https://circleci.com/docs/2.0/env-vars/#interpolating-environment-variables-to-set-other-environment-variables .
17
+ environment:
18
+ CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
19
+ CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
20
+ # In CircleCI 1.0 we used a pre-configured image with a large number of languages and other packages.
21
+ # In CircleCI 2.0 you can now specify your own image, or use one of our pre-configured images.
22
+ # The following configuration line tells CircleCI to use the specified docker image as the runtime environment for you job.
23
+ # We have selected a pre-built image that mirrors the build environment we use on
24
+ # the 1.0 platform, but we recommend you choose an image more tailored to the needs
25
+ # of each job. For more information on choosing an image (or alternatively using a
26
+ # VM instead of a container) see https://circleci.com/docs/2.0/executor-types/
27
+ # To see the list of pre-built images that CircleCI provides for most common languages see
28
+ # https://circleci.com/docs/2.0/circleci-images/
29
+ docker:
30
+ - image: circleci/build-image:ubuntu-14.04-XXL-upstart-1189-5614f37
31
+ command: /sbin/init
32
+ steps:
33
+ # Machine Setup
34
+ # If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each
35
+ # The following `checkout` command checks out your code to your working directory. In 1.0 we did this implicitly. In 2.0 you can choose where in the course of a job your code should be checked out.
36
+ - checkout
37
+ # Prepare for artifact and test results collection equivalent to how it was done on 1.0.
38
+ # In many cases you can simplify this from what is generated here.
39
+ # 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/'
40
+ - run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
41
+ # This is based on your 1.0 configuration file or project settings
42
+ - run:
43
+ working_directory: ~/eLicenseSystems/kandata
44
+ command: 'echo ''Asia/Tokyo'' | sudo tee -a /etc/timezone; sudo dpkg-reconfigure
45
+ -f noninteractive tzdata; sudo service mysql restart; sudo service postgresql
46
+ restart; '
47
+ # Dependencies
48
+ # This would typically go in either a build or a build-and-test job when using workflows
49
+ # Restore the dependency cache
50
+ - restore_cache:
51
+ keys:
52
+ # This branch if available
53
+ - v1-dep-{{ .Branch }}-
54
+ # Default branch if not
55
+ - v1-dep-master-
56
+ # Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly
57
+ - v1-dep-
58
+ # The following line was run implicitly in your 1.0 builds based on what CircleCI inferred about the structure of your project. In 2.0 you need to be explicit about which commands should be run. In some cases you can discard inferred commands if they are not relevant to your project.
59
+ - run: echo -e "export RAILS_ENV=test\nexport RACK_ENV=test" >> $BASH_ENV
60
+ - run: 'bundle check --path=vendor/bundle || bundle install --path=vendor/bundle
61
+ --jobs=4 --retry=3 '
62
+ # Save dependency cache
63
+ - save_cache:
64
+ key: v1-dep-{{ .Branch }}-{{ epoch }}
65
+ paths:
66
+ # This is a broad list of cache paths to include many possible development environments
67
+ # You can probably delete some of these entries
68
+ - vendor/bundle
69
+ - ~/virtualenvs
70
+ - ~/.m2
71
+ - ~/.ivy2
72
+ - ~/.bundle
73
+ - ~/.go_workspace
74
+ - ~/.gradle
75
+ - ~/.cache/bower
76
+ # This is based on your 1.0 configuration file or project settings
77
+ - run: echo "Skipping DB section."
78
+ # Test
79
+ # This would typically be a build job when using workflows, possibly combined with build
80
+ # The following line was run implicitly in your 1.0 builds based on what CircleCI inferred about the structure of your project. In 2.0 you need to be explicit about which commands should be run. In some cases you can discard inferred commands if they are not relevant to your project.
81
+ - run:
82
+ command: bundle exec rspec --format documentation --color --require spec_helper --format progress spec
83
+ environment:
84
+ RAILS_ENV: test
85
+ RACK_ENV: test
86
+ # Teardown
87
+ # If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each
88
+ # Save test results
89
+ - store_test_results:
90
+ path: /tmp/circleci-test-results
91
+ # Save artifacts
92
+ - store_artifacts:
93
+ path: /tmp/circleci-artifacts
94
+ - store_artifacts:
95
+ path: /tmp/circleci-test-results
96
+
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Kandata
2
2
 
3
- [![CircleCI](https://circleci.com/gh/eLicenseSystems/kandata.svg?style=svg)](https://circleci.com/gh/eLicenseSystems/kandata)
3
+ [![CircleCI](https://circleci.com/gh/eLicenseSystems/kandata.svg?style=svg&circle-token=1ebe415cc46db33ee4a8f3af49fd6240ae5cd81e)](https://circleci.com/gh/eLicenseSystems/kandata)
4
4
  [![Gem Version](https://badge.fury.io/rb/kandata.svg)](https://badge.fury.io/rb/kandata)
5
5
 
6
6
  Kandataは、TSVファイルを自分のローカルのMySQLデータベース内に簡単にロードするためのツールです。
@@ -5,8 +5,7 @@ class Kandata
5
5
  # ignore :reek:Attribute:
6
6
  class ConnectionInfo
7
7
  class << self
8
- attr_reader :host, :user_name
9
- attr_accessor :database_name
8
+ attr_accessor :host, :user_name, :database_name
10
9
  end
11
10
 
12
11
  @host = 'localhost'
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  class Kandata
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kandata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuya TAMANO
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-06 00:00:00.000000000 Z
11
+ date: 2018-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -144,6 +144,7 @@ executables:
144
144
  extensions: []
145
145
  extra_rdoc_files: []
146
146
  files:
147
+ - ".circleci/config.yml"
147
148
  - ".gitignore"
148
149
  - ".reek"
149
150
  - ".rspec"
@@ -155,7 +156,6 @@ files:
155
156
  - Rakefile
156
157
  - bin/console
157
158
  - bin/setup
158
- - circle.yml
159
159
  - exe/kandata
160
160
  - kandata.gemspec
161
161
  - lib/kandata.rb
data/circle.yml DELETED
@@ -1,7 +0,0 @@
1
- machine:
2
- timezone:
3
- Asia/Tokyo
4
-
5
- database:
6
- override:
7
- - echo "Skipping DB section."