pan_domain 0.1.0.rc1 → 0.1.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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +224 -0
- data/CHANGELOG.md +23 -0
- data/README.md +7 -0
- data/lib/pan_domain/version.rb +1 -1
- data/pan_domain.gemspec +12 -17
- data/spec/lib/pan_domain/cli_spec.rb +7 -7
- metadata +9 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cdd79899454a87f13aaa81a7fe6f98e71c71fbb24dc628dd20a0e027cee7cf83
|
|
4
|
+
data.tar.gz: 73eb52a43439f53ea33e551a959b1836b0fc192f9e3c646f8a2e9876440d075c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c6ff07b12195fa05c7f27dd0bd6bb6ebf2a65e00afb238ddba3a4f76d5dbf5663226e45a18702a04b28ab7b7fdd9ebc07c7ed56b3e8216525b6c3ca5a3e74e3a
|
|
7
|
+
data.tar.gz: 2da11e051c595296ffe4de5de015716a8a34f49b749be27325272540da19b44a1be0e2a555c6d8fb00f7781c700bff2691309e2d4d3956bab0f0d6844c381043
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
install-gem-dependencies: &install_gem_dependencies
|
|
2
|
+
name: Install gem dependencies
|
|
3
|
+
command: |
|
|
4
|
+
apk add --update tzdata
|
|
5
|
+
apk add git build-base postgresql-dev
|
|
6
|
+
|
|
7
|
+
run-database-configuration: &run_database_configuration
|
|
8
|
+
name: Configure database
|
|
9
|
+
command: |
|
|
10
|
+
cd spec/sample_app
|
|
11
|
+
echo "test:
|
|
12
|
+
adapter: postgresql
|
|
13
|
+
host: 127.0.0.1
|
|
14
|
+
username: postgres
|
|
15
|
+
pool: 5
|
|
16
|
+
timeout: 5000
|
|
17
|
+
database: test_pan_domain" > config/database.yml
|
|
18
|
+
|
|
19
|
+
run-create-database: &run_create_database
|
|
20
|
+
name: Create Database
|
|
21
|
+
command: |
|
|
22
|
+
cd spec/sample_app
|
|
23
|
+
RAILS_ENV=test bundle exec rake db:create
|
|
24
|
+
|
|
25
|
+
run-bundle-install: &run_bundle_install
|
|
26
|
+
name: Install Bundle dependencies
|
|
27
|
+
command: bundle install --path vendor/bundle
|
|
28
|
+
|
|
29
|
+
run-all-tests: &run_all_tests
|
|
30
|
+
name: Run all tests
|
|
31
|
+
command: |
|
|
32
|
+
echo "
|
|
33
|
+
--color
|
|
34
|
+
--require spec_helper" > .rspec
|
|
35
|
+
bundle exec rake spec
|
|
36
|
+
|
|
37
|
+
run-all-steps: &run_all_steps
|
|
38
|
+
steps:
|
|
39
|
+
- restore_cache:
|
|
40
|
+
key: pan_domain-repository-cache-v1-{{ .Environment.CIRCLE_SHA1 }}
|
|
41
|
+
- restore_cache:
|
|
42
|
+
key: gems-cache-v1-{{ checksum "Gemfile.lock" }}
|
|
43
|
+
- checkout
|
|
44
|
+
- run: *install_gem_dependencies
|
|
45
|
+
- run: *run_database_configuration
|
|
46
|
+
- run: *run_bundle_install
|
|
47
|
+
- run: *run_create_database
|
|
48
|
+
- run: *run_all_tests
|
|
49
|
+
- save_cache:
|
|
50
|
+
key: pan_domain-repository-cache-v1-{{ .Environment.CIRCLE_SHA1 }}
|
|
51
|
+
paths: ~/pan_domain/
|
|
52
|
+
- save_cache:
|
|
53
|
+
key: gems-cache-v1-{{ checksum "Gemfile.lock" }}
|
|
54
|
+
paths: vendor/bundle
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
version: 2
|
|
58
|
+
jobs:
|
|
59
|
+
ruby_2_3_8_and_postgres_9_5_14_test:
|
|
60
|
+
working_directory: ~/pan_domain/
|
|
61
|
+
docker:
|
|
62
|
+
- image: ruby:2.3.8-alpine
|
|
63
|
+
- image: postgres:9.5.14-alpine
|
|
64
|
+
<<: *run_all_steps
|
|
65
|
+
|
|
66
|
+
ruby_2_3_8_and_postgres_9_6_10_test:
|
|
67
|
+
working_directory: ~/pan_domain/
|
|
68
|
+
docker:
|
|
69
|
+
- image: ruby:2.3.8-alpine
|
|
70
|
+
- image: postgres:9.6.10-alpine
|
|
71
|
+
<<: *run_all_steps
|
|
72
|
+
|
|
73
|
+
ruby_2_3_8_and_postgres_10_5_test:
|
|
74
|
+
working_directory: ~/pan_domain/
|
|
75
|
+
docker:
|
|
76
|
+
- image: ruby:2.3.8-alpine
|
|
77
|
+
- image: postgres:10.5-alpine
|
|
78
|
+
<<: *run_all_steps
|
|
79
|
+
|
|
80
|
+
ruby_2_3_8_and_postgres_11_0_test:
|
|
81
|
+
working_directory: ~/pan_domain/
|
|
82
|
+
docker:
|
|
83
|
+
- image: ruby:2.3.8-alpine
|
|
84
|
+
- image: postgres:11.0-alpine
|
|
85
|
+
<<: *run_all_steps
|
|
86
|
+
|
|
87
|
+
ruby_2_4_5_and_postgres_9_5_14_test:
|
|
88
|
+
working_directory: ~/pan_domain/
|
|
89
|
+
docker:
|
|
90
|
+
- image: ruby:2.4.5-alpine
|
|
91
|
+
- image: postgres:9.5.14-alpine
|
|
92
|
+
<<: *run_all_steps
|
|
93
|
+
|
|
94
|
+
ruby_2_4_5_and_postgres_9_6_10_test:
|
|
95
|
+
working_directory: ~/pan_domain/
|
|
96
|
+
docker:
|
|
97
|
+
- image: ruby:2.4.5-alpine
|
|
98
|
+
- image: postgres:9.6.10-alpine
|
|
99
|
+
<<: *run_all_steps
|
|
100
|
+
|
|
101
|
+
ruby_2_4_5_and_postgres_10_5_test:
|
|
102
|
+
working_directory: ~/pan_domain/
|
|
103
|
+
docker:
|
|
104
|
+
- image: ruby:2.4.5-alpine
|
|
105
|
+
- image: postgres:10.5-alpine
|
|
106
|
+
<<: *run_all_steps
|
|
107
|
+
|
|
108
|
+
ruby_2_4_5_and_postgres_11_0_test:
|
|
109
|
+
working_directory: ~/pan_domain/
|
|
110
|
+
docker:
|
|
111
|
+
- image: ruby:2.4.5-alpine
|
|
112
|
+
- image: postgres:11.0-alpine
|
|
113
|
+
<<: *run_all_steps
|
|
114
|
+
|
|
115
|
+
ruby_2_5_and_postgres_9_5_14_test:
|
|
116
|
+
working_directory: ~/pan_domain/
|
|
117
|
+
docker:
|
|
118
|
+
- image: ruby:2.5-alpine
|
|
119
|
+
- image: postgres:9.5.14-alpine
|
|
120
|
+
<<: *run_all_steps
|
|
121
|
+
|
|
122
|
+
ruby_2_5_and_postgres_9_6_10_test:
|
|
123
|
+
working_directory: ~/pan_domain/
|
|
124
|
+
docker:
|
|
125
|
+
- image: ruby:2.5-alpine
|
|
126
|
+
- image: postgres:9.6.10-alpine
|
|
127
|
+
<<: *run_all_steps
|
|
128
|
+
|
|
129
|
+
ruby_2_5_and_postgres_10_5_test:
|
|
130
|
+
working_directory: ~/pan_domain/
|
|
131
|
+
docker:
|
|
132
|
+
- image: ruby:2.5-alpine
|
|
133
|
+
- image: postgres:10.5-alpine
|
|
134
|
+
<<: *run_all_steps
|
|
135
|
+
|
|
136
|
+
ruby_2_5_and_postgres_11_0_test:
|
|
137
|
+
working_directory: ~/pan_domain/
|
|
138
|
+
docker:
|
|
139
|
+
- image: ruby:2.5-alpine
|
|
140
|
+
- image: postgres:11.0-alpine
|
|
141
|
+
<<: *run_all_steps
|
|
142
|
+
|
|
143
|
+
ruby_2_5_3_and_postgres_9_5_14_test:
|
|
144
|
+
working_directory: ~/pan_domain/
|
|
145
|
+
docker:
|
|
146
|
+
- image: ruby:2.5.3-alpine
|
|
147
|
+
- image: postgres:9.5.14-alpine
|
|
148
|
+
<<: *run_all_steps
|
|
149
|
+
|
|
150
|
+
ruby_2_5_3_and_postgres_9_6_10_test:
|
|
151
|
+
working_directory: ~/pan_domain/
|
|
152
|
+
docker:
|
|
153
|
+
- image: ruby:2.5.3-alpine
|
|
154
|
+
- image: postgres:9.6.10-alpine
|
|
155
|
+
<<: *run_all_steps
|
|
156
|
+
|
|
157
|
+
ruby_2_5_3_and_postgres_10_5_test:
|
|
158
|
+
working_directory: ~/pan_domain/
|
|
159
|
+
docker:
|
|
160
|
+
- image: ruby:2.5.3-alpine
|
|
161
|
+
- image: postgres:10.5-alpine
|
|
162
|
+
<<: *run_all_steps
|
|
163
|
+
|
|
164
|
+
ruby_2_5_3_and_postgres_11_0_test:
|
|
165
|
+
working_directory: ~/pan_domain/
|
|
166
|
+
docker:
|
|
167
|
+
- image: ruby:2.5.3-alpine
|
|
168
|
+
- image: postgres:11.0-alpine
|
|
169
|
+
<<: *run_all_steps
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
workflows:
|
|
173
|
+
version: 2
|
|
174
|
+
ruby-2-3-8-with-postgreSQL-database-tests:
|
|
175
|
+
jobs:
|
|
176
|
+
- ruby_2_3_8_and_postgres_9_5_14_test
|
|
177
|
+
- ruby_2_3_8_and_postgres_9_6_10_test:
|
|
178
|
+
requires:
|
|
179
|
+
- ruby_2_3_8_and_postgres_9_5_14_test
|
|
180
|
+
- ruby_2_3_8_and_postgres_10_5_test:
|
|
181
|
+
requires:
|
|
182
|
+
- ruby_2_3_8_and_postgres_9_5_14_test
|
|
183
|
+
- ruby_2_3_8_and_postgres_11_0_test:
|
|
184
|
+
requires:
|
|
185
|
+
- ruby_2_3_8_and_postgres_9_5_14_test
|
|
186
|
+
|
|
187
|
+
ruby-2-4-5-with-postgreSQL-database-tests:
|
|
188
|
+
jobs:
|
|
189
|
+
- ruby_2_4_5_and_postgres_9_5_14_test
|
|
190
|
+
- ruby_2_4_5_and_postgres_9_6_10_test:
|
|
191
|
+
requires:
|
|
192
|
+
- ruby_2_4_5_and_postgres_9_5_14_test
|
|
193
|
+
- ruby_2_4_5_and_postgres_10_5_test:
|
|
194
|
+
requires:
|
|
195
|
+
- ruby_2_4_5_and_postgres_9_5_14_test
|
|
196
|
+
- ruby_2_4_5_and_postgres_11_0_test:
|
|
197
|
+
requires:
|
|
198
|
+
- ruby_2_4_5_and_postgres_9_5_14_test
|
|
199
|
+
|
|
200
|
+
ruby-2-5-with-postgreSQL-database-tests:
|
|
201
|
+
jobs:
|
|
202
|
+
- ruby_2_5_and_postgres_9_5_14_test
|
|
203
|
+
- ruby_2_5_and_postgres_9_6_10_test:
|
|
204
|
+
requires:
|
|
205
|
+
- ruby_2_5_and_postgres_9_5_14_test
|
|
206
|
+
- ruby_2_5_and_postgres_10_5_test:
|
|
207
|
+
requires:
|
|
208
|
+
- ruby_2_5_and_postgres_9_5_14_test
|
|
209
|
+
- ruby_2_5_and_postgres_11_0_test:
|
|
210
|
+
requires:
|
|
211
|
+
- ruby_2_5_and_postgres_9_5_14_test
|
|
212
|
+
|
|
213
|
+
ruby-2-5-3-with-postgreSQL-database-tests:
|
|
214
|
+
jobs:
|
|
215
|
+
- ruby_2_5_3_and_postgres_9_5_14_test
|
|
216
|
+
- ruby_2_5_3_and_postgres_9_6_10_test:
|
|
217
|
+
requires:
|
|
218
|
+
- ruby_2_5_3_and_postgres_9_5_14_test
|
|
219
|
+
- ruby_2_5_3_and_postgres_10_5_test:
|
|
220
|
+
requires:
|
|
221
|
+
- ruby_2_5_3_and_postgres_9_5_14_test
|
|
222
|
+
- ruby_2_5_3_and_postgres_11_0_test:
|
|
223
|
+
requires:
|
|
224
|
+
- ruby_2_5_3_and_postgres_9_5_14_test
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
## [0.1.0](https://github.com/pangrams/pan_domain/tree/0.1.0) (2018-10-27)
|
|
4
|
+
[Full Changelog](https://github.com/pangrams/pan_domain/compare/0.1.0.rc1...0.1.0)
|
|
5
|
+
|
|
6
|
+
**Implemented enhancements**
|
|
7
|
+
|
|
8
|
+
- Integrate tests with CircleCI
|
|
9
|
+
- Integrate code maintainability with CodeClime
|
|
10
|
+
|
|
11
|
+
**Improvement**
|
|
12
|
+
|
|
13
|
+
- Fix failed tests in CircleCI
|
|
14
|
+
- Add Changelog file
|
|
15
|
+
|
|
16
|
+
## [0.1.0.rc1](https://github.com/pangrams/pan_domain/tree/0.1.0.rc1) (2018-10-25)
|
|
17
|
+
|
|
18
|
+
**Initial Features**
|
|
19
|
+
|
|
20
|
+
- Implement Human Domain
|
|
21
|
+
- Implement gem as command line (pan_domain
|
|
22
|
+
|
|
23
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/README.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# PanDomain
|
|
2
2
|
|
|
3
|
+
[](https://codeclimate.com/github/pangrams/pan_domain/maintainability) [](https://circleci.com/gh/pangrams/pan_domain/tree/master)
|
|
4
|
+
|
|
5
|
+
### Availabel domains:
|
|
6
|
+
- Human
|
|
7
|
+
- Blood Classification System
|
|
8
|
+
- Blood Group Name
|
|
9
|
+
|
|
3
10
|
## Installation
|
|
4
11
|
|
|
5
12
|
Add this line to your application's Gemfile:
|
data/lib/pan_domain/version.rb
CHANGED
data/pan_domain.gemspec
CHANGED
|
@@ -3,27 +3,22 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
3
3
|
require 'pan_domain/version'
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
|
-
spec.name
|
|
7
|
-
spec.version
|
|
8
|
-
spec.authors
|
|
9
|
-
spec.email
|
|
6
|
+
spec.name = 'pan_domain'
|
|
7
|
+
spec.version = PanDomain::VERSION
|
|
8
|
+
spec.authors = ['Yosua Jaya Candra']
|
|
9
|
+
spec.email = 'yosuajayacandra@gmail.com'
|
|
10
|
+
spec.summary = 'A tool for create common tables powered by ActiveRecord'
|
|
11
|
+
spec.description = 'A gem which create common tables and data' \
|
|
12
|
+
' which prioritize on data integrity.'
|
|
13
|
+
spec.homepage = 'https://github.com/pangrams/pan_domain'
|
|
14
|
+
spec.license = 'MIT'
|
|
10
15
|
|
|
11
|
-
spec.
|
|
12
|
-
spec.description = 'A gem which create common tables and data' \
|
|
13
|
-
' which prioritize on data integrity.'
|
|
14
|
-
spec.homepage = 'https://github.com/pangrams/pan_domain'
|
|
15
|
-
spec.license = 'MIT'
|
|
16
|
+
spec.required_ruby_version = '>= 2.3.8'
|
|
16
17
|
|
|
17
|
-
# Prevent pushing this gem to RubyGems.org.
|
|
18
|
-
# To allow pushes either set the 'allowed_push_host'
|
|
19
|
-
# to allow pushing to a single host
|
|
20
|
-
# or delete this section to allow pushing to any host.
|
|
21
18
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
|
19
|
+
spec.metadata['source_code_uri'] = 'https://github.com/pangrams/pan_domain'
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
# The `git ls-files -z` loads the files in the RubyGem
|
|
25
|
-
# that have been added into git.
|
|
26
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
21
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
27
22
|
`git ls-files -z`.split("\x0").reject do |f|
|
|
28
23
|
f.match(%r{^(test|spec|features)/})
|
|
29
24
|
end
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
require 'pan_domain
|
|
1
|
+
require 'pan_domain'
|
|
2
2
|
|
|
3
3
|
describe PanDomain::CLI do
|
|
4
4
|
describe '--version' do
|
|
5
|
-
it 'displays "PanDomain {VERSION}
|
|
5
|
+
it 'displays "PanDomain {VERSION}"' do
|
|
6
6
|
expect { PanDomain::CLI.start ['--version'] }.to output(
|
|
7
|
-
|
|
7
|
+
/^PanDomain \d+.\d+.\d+(.rc\d+)?$/
|
|
8
8
|
).to_stdout
|
|
9
9
|
end
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
describe '-v' do
|
|
13
|
-
it 'displays "PanDomain {VERSION}
|
|
13
|
+
it 'displays "PanDomain {VERSION}"' do
|
|
14
14
|
expect { PanDomain::CLI.start ['-v'] }.to output(
|
|
15
|
-
|
|
15
|
+
/^PanDomain \d+.\d+.\d+(.rc\d+)?$/
|
|
16
16
|
).to_stdout
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
describe 'version' do
|
|
21
|
-
it 'displays "PanDomain {VERSION}
|
|
21
|
+
it 'displays "PanDomain {VERSION}"' do
|
|
22
22
|
expect { PanDomain::CLI.start ['version'] }.to output(
|
|
23
|
-
|
|
23
|
+
/^PanDomain \d+.\d+.\d+(.rc\d+)?$/
|
|
24
24
|
).to_stdout
|
|
25
25
|
end
|
|
26
26
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pan_domain
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yosua Jaya Candra
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-10-
|
|
11
|
+
date: 2018-10-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -109,15 +109,16 @@ dependencies:
|
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
110
|
version: '3.6'
|
|
111
111
|
description: A gem which create common tables and data which prioritize on data integrity.
|
|
112
|
-
email:
|
|
113
|
-
- yosuajayacandra@gmail.com
|
|
112
|
+
email: yosuajayacandra@gmail.com
|
|
114
113
|
executables:
|
|
115
114
|
- pan_domain
|
|
116
115
|
extensions: []
|
|
117
116
|
extra_rdoc_files: []
|
|
118
117
|
files:
|
|
118
|
+
- ".circleci/config.yml"
|
|
119
119
|
- ".gitignore"
|
|
120
120
|
- ".rspec"
|
|
121
|
+
- CHANGELOG.md
|
|
121
122
|
- Gemfile
|
|
122
123
|
- Gemfile.lock
|
|
123
124
|
- LICENSE.txt
|
|
@@ -184,6 +185,7 @@ licenses:
|
|
|
184
185
|
- MIT
|
|
185
186
|
metadata:
|
|
186
187
|
allowed_push_host: https://rubygems.org
|
|
188
|
+
source_code_uri: https://github.com/pangrams/pan_domain
|
|
187
189
|
post_install_message:
|
|
188
190
|
rdoc_options: []
|
|
189
191
|
require_paths:
|
|
@@ -192,12 +194,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
192
194
|
requirements:
|
|
193
195
|
- - ">="
|
|
194
196
|
- !ruby/object:Gem::Version
|
|
195
|
-
version:
|
|
197
|
+
version: 2.3.8
|
|
196
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
199
|
requirements:
|
|
198
|
-
- - "
|
|
200
|
+
- - ">="
|
|
199
201
|
- !ruby/object:Gem::Version
|
|
200
|
-
version:
|
|
202
|
+
version: '0'
|
|
201
203
|
requirements: []
|
|
202
204
|
rubyforge_project:
|
|
203
205
|
rubygems_version: 2.7.7
|