heart_seed 0.2.0 → 0.2.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
- SHA1:
3
- metadata.gz: 72519e6c42efae07fac452d67d5ae4c97f44be5e
4
- data.tar.gz: 6ad7ead4918223c3c17b9721021c39be61142452
2
+ SHA256:
3
+ metadata.gz: 83bf236073c81560457a5ac1a4c70ac8da4346526af3a4553a2c28e9c081b983
4
+ data.tar.gz: a3b7e7cf5f9d0c7b1a464f02fe4aaf1147b1dc7790b4ef7d169396bfb8a126e9
5
5
  SHA512:
6
- metadata.gz: b5f1a13af6dbfb825cae06b8dc60e5ca1d41d49b3cbdd68b1fcd432ee3238e430888c937ef2e3a2ad3a92debbfbf4eefdbd2ce814d00ab3abab6fb11db1cbb37
7
- data.tar.gz: 0dcd02b8bfc8f44f0a6ae6a7f4e0913a241ba3a58a8e3b0f8fbd8991619f024b06fba9faa2aaac94c291a4ee3e4edd2684c5b75520f76b0a229c2ceea8909288
6
+ metadata.gz: f2447389cd0d58e6e1f79ed1a2f14f8b58e619507d8c8a2e0a319de8fcc89811dd78f05e4643f0a8070b0d573a710ebbdc402e2ea53c88b15e1f163abd614fbe
7
+ data.tar.gz: 9eacb3fd0a51cb5f9633ac57715ff6aa4d750b3c93fe800b25540faf7ea4f107e66c575968ed1eede66bf6eca94ee1043f0b5a700fd6722fc911310296105f15
@@ -0,0 +1,112 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ types:
9
+ - opened
10
+ - synchronize
11
+ - reopened
12
+ schedule:
13
+ - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
+
15
+ env:
16
+ CI: "true"
17
+
18
+ jobs:
19
+ test:
20
+ runs-on: ubuntu-latest
21
+
22
+ container: ${{ matrix.ruby }}
23
+
24
+ strategy:
25
+ fail-fast: false
26
+
27
+ matrix:
28
+ ruby:
29
+ - ruby:2.2
30
+ - ruby:2.3
31
+ - ruby:2.4
32
+ - ruby:2.5
33
+ - ruby:2.6
34
+ - ruby:2.7
35
+ - ruby:3.0
36
+ - rubylang/ruby:master-nightly-bionic
37
+ include:
38
+ - ruby: rubylang/ruby:master-nightly-bionic
39
+ allow_failures: "true"
40
+
41
+ steps:
42
+ - uses: actions/checkout@v2
43
+
44
+ - run: apt-get update && apt-get install -y libsqlite3-dev
45
+
46
+ - name: Cache vendor/bundle
47
+ uses: actions/cache@v1
48
+ id: cache_gem
49
+ with:
50
+ path: vendor/bundle
51
+ key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
52
+ restore-keys: |
53
+ v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
54
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
55
+
56
+ - name: bundle update
57
+ run: |
58
+ set -xe
59
+ bundle config path vendor/bundle
60
+ bundle update --jobs $(nproc) --retry 3
61
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
62
+
63
+ - name: Setup Code Climate Test Reporter
64
+ uses: aktions/codeclimate-test-reporter@v1
65
+ with:
66
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
67
+ command: before-build
68
+ if: matrix.ruby >= 'ruby:2.4'
69
+ continue-on-error: true
70
+
71
+ - name: Run test
72
+ run: |
73
+ set -xe
74
+ bundle exec rspec
75
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
76
+
77
+ - name: Teardown Code Climate Test Reporter
78
+ uses: aktions/codeclimate-test-reporter@v1
79
+ with:
80
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
81
+ command: after-build
82
+ if: matrix.ruby >= 'ruby:2.4' && always()
83
+ continue-on-error: true
84
+
85
+ - name: Slack Notification (not success)
86
+ uses: lazy-actions/slatify@master
87
+ if: "! success()"
88
+ continue-on-error: true
89
+ with:
90
+ job_name: ${{ format('*build* ({0})', matrix.ruby) }}
91
+ type: ${{ job.status }}
92
+ icon_emoji: ":octocat:"
93
+ url: ${{ secrets.SLACK_WEBHOOK }}
94
+ token: ${{ secrets.GITHUB_TOKEN }}
95
+
96
+ notify:
97
+ needs:
98
+ - test
99
+
100
+ runs-on: ubuntu-latest
101
+
102
+ steps:
103
+ - name: Slack Notification (success)
104
+ uses: lazy-actions/slatify@master
105
+ if: always()
106
+ continue-on-error: true
107
+ with:
108
+ job_name: '*build*'
109
+ type: ${{ job.status }}
110
+ icon_emoji: ":octocat:"
111
+ url: ${{ secrets.SLACK_WEBHOOK }}
112
+ token: ${{ secrets.GITHUB_TOKEN }}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## master
2
- [full changelog](https://github.com/sue445/heart_seed/compare/v0.2.0...master)
2
+ [full changelog](https://github.com/sue445/heart_seed/compare/v0.2.1...master)
3
+
4
+ ## 0.2.1 (2021/11/20)
5
+ [full changelog](https://github.com/sue445/heart_seed/compare/v0.2.0...v0.2.1)
6
+
7
+ * Enable MFA requirement for gem releasing
8
+ * https://github.com/sue445/heart_seed/pull/57
3
9
 
4
10
  ## 0.2.0 (2017/10/01)
5
11
  [full changelog](https://github.com/sue445/heart_seed/compare/v0.1.0...v0.2.0)
data/Gemfile CHANGED
@@ -4,6 +4,31 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.2")
7
+ # NOTE: rails 5+ requires Ruby 2.2.2+
7
8
  gem "activerecord", "< 5.0.0"
8
9
  gem "activesupport", "< 5.0.0"
10
+
11
+ # https://github.com/rails/rails/blob/v4.2.11.1/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L5
12
+ gem "sqlite3", "~> 1.3.6"
13
+
14
+ elsif Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
15
+ # NOTE: rails 6+ requires Ruby 2.5.0+
16
+ gem "activerecord", "< 6.0.0"
17
+ gem "activesupport", "< 6.0.0"
18
+
19
+ # https://github.com/rails/rails/blob/v5.2.3/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
20
+ gem "sqlite3", "~> 1.3.6"
21
+
22
+ else
23
+ # FIXME: Support activerecord 6.1+
24
+ gem "activerecord", "< 6.1.0"
25
+ gem "activesupport", "< 6.1.0"
26
+
27
+ # https://github.com/rails/rails/blob/v6.0.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
28
+ gem "sqlite3", "~> 1.4"
29
+ end
30
+
31
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
32
+ # NOTE: unparser v0.3.0+ requires Ruby 2.5+
33
+ gem "unparser", "< 0.3.0"
9
34
  end
data/README.md CHANGED
@@ -3,14 +3,11 @@
3
3
  seed util (convert excel to yaml and insert yaml to db)
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/heart_seed.svg)](http://badge.fury.io/rb/heart_seed)
6
- [![Build Status](https://travis-ci.org/sue445/heart_seed.svg)](https://travis-ci.org/sue445/heart_seed)
6
+ [![Build Status](https://github.com/sue445/heart_seed/workflows/test/badge.svg?branch=master)](https://github.com/sue445/heart_seed/actions?query=workflow%3Atest)
7
7
  [![Code Climate](https://codeclimate.com/github/sue445/heart_seed.png)](https://codeclimate.com/github/sue445/heart_seed)
8
8
  [![Coverage Status](https://img.shields.io/coveralls/sue445/heart_seed.svg)](https://coveralls.io/r/sue445/heart_seed?branch=master)
9
- [![Dependency Status](https://gemnasium.com/sue445/heart_seed.svg)](https://gemnasium.com/sue445/heart_seed)
10
9
  [![Inline docs](http://inch-ci.org/github/sue445/heart_seed.svg?branch=master)](http://inch-ci.org/github/sue445/heart_seed)
11
10
 
12
- [![Stories in Ready](https://badge.waffle.io/sue445/heart_seed.png?label=ready&title=Ready)](https://waffle.io/sue445/heart_seed)
13
-
14
11
  ## Require
15
12
  * ruby 2.0+
16
13
  * [Ruby on Rails](http://rubyonrails.org/) , [Padrino](http://www.padrinorb.com/) or other ruby app
@@ -37,17 +34,17 @@ If you want to use `.xls` file (NOT `.xlsx` file), `gem install` (or write to Ge
37
34
  ## Usage
38
35
 
39
36
  1. `bundle exec rake heart_seed:init`
40
- * create `config/heart_seed.yml`, `db/xls`, `db/seeds`
41
- * append to `db/seeds.rb`
37
+ * create `config/heart_seed.yml`, `db/xls`, `db/seeds`
38
+ * append to `db/seeds.rb`
42
39
  2. Create xls
43
- * sheet name (xls,xlsx) = table name (DB)
44
- * example https://github.com/sue445/heart_seed/tree/master/spec/dummy/db/xls
40
+ * sheet name (xls,xlsx) = table name (DB)
41
+ * example https://github.com/sue445/heart_seed/tree/master/spec/dummy/db/xls
45
42
  3. `bundle exec rake heart_seed:xls`
46
- * Generate yml to `db/seeds`
47
- * If you want to specify files: `FILES=comments_and_likes.xls SHEETS=comments,likes bundle exec rake heart_seed:xls`
43
+ * Generate yml to `db/seeds`
44
+ * If you want to specify files: `FILES=comments_and_likes.xls SHEETS=comments,likes bundle exec rake heart_seed:xls`
48
45
  4. `bundle exec rake db:seed` or `bundle exec rake heart_seed:db:seed`
49
- * Import yml to db
50
- * Exists `TABLES`, `CATALOGS` options
46
+ * Import yml to db
47
+ * Exists `TABLES`, `CATALOGS` options
51
48
 
52
49
  examples
53
50
 
data/heart_seed.gemspec CHANGED
@@ -13,6 +13,11 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/sue445/heart_seed"
14
14
  spec.license = "MIT"
15
15
 
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = spec.homepage
18
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
19
+ spec.metadata["rubygems_mfa_required"] = "true"
20
+
16
21
  spec.required_ruby_version = '>= 2.0.0'
17
22
 
18
23
  spec.files = `git ls-files -z`.split("\x0")
@@ -26,12 +31,8 @@ Gem::Specification.new do |spec|
26
31
  spec.add_dependency "roo", ">= 2.0.0"
27
32
 
28
33
  spec.add_development_dependency "bundler"
29
- spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
30
34
  spec.add_development_dependency "coveralls"
31
35
  spec.add_development_dependency "database_rewinder", ">= 0.4.2"
32
- spec.add_development_dependency "pry"
33
- spec.add_development_dependency "pry-nav"
34
- spec.add_development_dependency "pry-remote"
35
36
  spec.add_development_dependency "rake"
36
37
  spec.add_development_dependency "rake_shared_context", "0.2.2"
37
38
  spec.add_development_dependency "roo-xls"
@@ -44,4 +45,3 @@ Gem::Specification.new do |spec|
44
45
  spec.add_development_dependency "sqlite3"
45
46
  spec.add_development_dependency "yard"
46
47
  end
47
-
@@ -1,3 +1,3 @@
1
1
  module HeartSeed
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -15,7 +15,7 @@
15
15
  #
16
16
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
17
17
 
18
- if ENV["COVERAGE"]
18
+ if ENV["CI"]
19
19
  require "simplecov"
20
20
  require "coveralls"
21
21
 
@@ -29,7 +29,6 @@ require "rspec/its"
29
29
  require "rspec/collection_matchers"
30
30
  require "rspec-parameterized"
31
31
  require "rspec/temp_dir"
32
- require "pry"
33
32
  require "rake_shared_context"
34
33
  require "database_rewinder"
35
34
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heart_seed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-01 00:00:00.000000000 Z
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: codeclimate-test-reporter
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 1.0.0
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 1.0.0
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: coveralls
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -122,48 +108,6 @@ dependencies:
122
108
  - - ">="
123
109
  - !ruby/object:Gem::Version
124
110
  version: 0.4.2
125
- - !ruby/object:Gem::Dependency
126
- name: pry
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: pry-nav
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: pry-remote
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
111
  - !ruby/object:Gem::Dependency
168
112
  name: rake
169
113
  requirement: !ruby/object:Gem::Requirement
@@ -326,9 +270,9 @@ extensions: []
326
270
  extra_rdoc_files: []
327
271
  files:
328
272
  - ".coveralls.yml"
273
+ - ".github/workflows/test.yml"
329
274
  - ".gitignore"
330
275
  - ".rspec"
331
- - ".travis.yml"
332
276
  - ".yardopts"
333
277
  - CHANGELOG.md
334
278
  - Gemfile
@@ -419,8 +363,12 @@ files:
419
363
  homepage: https://github.com/sue445/heart_seed
420
364
  licenses:
421
365
  - MIT
422
- metadata: {}
423
- post_install_message:
366
+ metadata:
367
+ homepage_uri: https://github.com/sue445/heart_seed
368
+ source_code_uri: https://github.com/sue445/heart_seed
369
+ changelog_uri: https://github.com/sue445/heart_seed/blob/master/CHANGELOG.md
370
+ rubygems_mfa_required: 'true'
371
+ post_install_message:
424
372
  rdoc_options: []
425
373
  require_paths:
426
374
  - lib
@@ -435,9 +383,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
435
383
  - !ruby/object:Gem::Version
436
384
  version: '0'
437
385
  requirements: []
438
- rubyforge_project:
439
- rubygems_version: 2.6.11
440
- signing_key:
386
+ rubygems_version: 3.2.22
387
+ signing_key:
441
388
  specification_version: 4
442
389
  summary: seed util (convert excel to yaml and insert yaml to db)
443
390
  test_files:
data/.travis.yml DELETED
@@ -1,26 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1
4
- - 2.2
5
- - 2.3.3
6
- - 2.4.1
7
- - ruby-head
8
- bundler_args: "--jobs=2"
9
- cache: bundler
10
- before_script:
11
- - export CODECLIMATE_REPO_TOKEN=9fe512c81149a06ced2b890ab071422bf553cbaf3253fe6830ad75ce92f37516
12
- - export COVERAGE=true
13
- script:
14
- - bundle exec rspec
15
- - bundle exec codeclimate-test-reporter
16
- branches:
17
- only:
18
- - master
19
- notifications:
20
- email: false
21
- slack:
22
- secure: ZlXJJ1No8ZY7I8kpl+FDdhU/f6GaTCbstE8P1iIuW0f/gmk1mGhlxT7YLdWfRlBqQxMjxid6CfFuxfYNYBj8j/V4tR2z2Q22vb7YkMvBK32CdFTWeKVdNC0Znt91dbB5UwyHuUbkrWHGzGDddpr2tytbo6shaNDH3B7KQm30/WE=
23
- matrix:
24
- allow_failures:
25
- - rvm: ruby-head
26
- sudo: false