kishu 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cd28b236f98196067ebc06b77d57aef3ccaabb063e6fe1f1511594209d76652b
4
+ data.tar.gz: f3d3ed101c448cd57886bd26a0f8eeb4cd4b80e45c84796a6c3f17dfc293af91
5
+ SHA512:
6
+ metadata.gz: f1b31244f1e44002e7f8c41087b14a724c411d91a479455d2f9d2bbbd86bf0fbbd724c44f55fbc42da327b96af193b6a22f08b4dcd9e0de2070fe17cc25fd818
7
+ data.tar.gz: 7ca97ddb6f56396adc7886aa2cb11e1ef6d6aea12a7781026c030b388aa05f2bf7d398d0ce35817b6ef91a1b5af25b54bda98f481c4f44b2fd757957181c1d78
@@ -0,0 +1,36 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ 201804/DataCite-access.log-201804-sps4
13
+ 201804/datacite_resolution_logs_2018-04-01.log
14
+ 201804/datacite_resolution_logs_2018-04-01_sorted.log
15
+ 201808/DataCite-access.log-201808-ap-southeast-1
16
+ 201808/DataCite-access.log-201808-eu-west-1
17
+ 201808/DataCite-access.log-201808-sa-east-1
18
+ 201808/DataCite-access.log-201808-us-east-1
19
+ 201808/DataCite-access.log-201808-us-west-2
20
+ 201808/datacite_resolution_logs_2018-08-01.log
21
+ 201808/datacite_resolution_logs_2018-08-01_sorted.log
22
+ 201809/DataCite-access.log-201809-ap-southeast-1
23
+ 201809/DataCite-access.log-201809-eu-west-1
24
+ 201809/DataCite-access.log-201809-us-east-1
25
+ 201809/DataCite-access.log-201809-us-west-2
26
+ 201809/datacite_resolution_logs_2018-09-01.log
27
+ 201809/datacite_resolution_logs_2018-09-01_sorted.log
28
+ 201810/DataCite-access.log-201810-ap-southeast-1
29
+ 201810/DataCite-access.log-201810-eu-west-1
30
+ 201810/DataCite-access.log-201810-us-east-1
31
+ 201810/DataCite-access.log-201810-us-west-2
32
+ 201810/datacite_resolution_logs_2018-10-01.log
33
+ 201810/datacite_resolution_logs_2018-10-01_sorted.log
34
+ reports/datacite_resolution_report_2018-04.json
35
+ reports/datacite_resolution_report_2018-08.json
36
+ reports/datacite_resolution_report_2018-08_2.json
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.3.3
7
+ before_install: gem install bundler -v 1.16.4
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at kj.garza@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ # git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in kishu.gemspec
6
+ gemspec
@@ -0,0 +1,222 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ kishu (0.1.1)
5
+ bolognese (~> 0.9, >= 0.10)
6
+ builder (~> 3.2, >= 3.2.2)
7
+ dotenv (~> 2.1, >= 2.1.1)
8
+ elasticsearch (~> 6.1.0)
9
+ faraday (~> 0.15.3)
10
+ faraday_middleware-aws-sigv4 (~> 0.2.4)
11
+ maremma (>= 4.1, < 5)
12
+ sucker_punch (~> 2.0)
13
+ thor (~> 0.19)
14
+
15
+ GEM
16
+ remote: https://rubygems.org/
17
+ specs:
18
+ activesupport (5.2.2)
19
+ concurrent-ruby (~> 1.0, >= 1.0.2)
20
+ i18n (>= 0.7, < 2)
21
+ minitest (~> 5.1)
22
+ tzinfo (~> 1.1)
23
+ addressable (2.5.2)
24
+ public_suffix (>= 2.0.2, < 4.0)
25
+ aws-sigv4 (1.0.3)
26
+ benchmark_methods (0.7)
27
+ bibtex-ruby (4.4.7)
28
+ latex-decode (~> 0.0)
29
+ bolognese (0.15.9)
30
+ activesupport (>= 4.2.5, < 6)
31
+ benchmark_methods (~> 0.7)
32
+ bibtex-ruby (~> 4.1)
33
+ builder (~> 3.2, >= 3.2.2)
34
+ citeproc-ruby (~> 1.1, >= 1.1.10)
35
+ colorize (~> 0.8.1)
36
+ csl-styles (~> 1.0, >= 1.0.1.8)
37
+ edtf (~> 3.0, >= 3.0.4)
38
+ gender_detector (~> 0.1.2)
39
+ iso8601 (~> 0.9.1)
40
+ json-ld (~> 2.1, >= 2.1.2)
41
+ jsonlint (~> 0.2.0)
42
+ loofah (~> 2.0, >= 2.0.3)
43
+ maremma (>= 3.5.7, < 5)
44
+ namae (~> 1.0)
45
+ nokogiri (~> 1.8.1)
46
+ oj (>= 2.8.3)
47
+ postrank-uri (~> 1.0, >= 1.0.18)
48
+ rdf-rdfxml (~> 2.0)
49
+ rdf-turtle (~> 2.2)
50
+ thor (~> 0.19)
51
+ builder (3.2.3)
52
+ citeproc (1.0.9)
53
+ namae (~> 1.0)
54
+ citeproc-ruby (1.1.10)
55
+ citeproc (~> 1.0, >= 1.0.9)
56
+ csl (~> 1.5)
57
+ colorize (0.8.1)
58
+ concurrent-ruby (1.1.3)
59
+ crack (0.4.3)
60
+ safe_yaml (~> 1.0.0)
61
+ crass (1.0.4)
62
+ csl (1.5.0)
63
+ namae (~> 1.0)
64
+ csl-styles (1.0.1.9)
65
+ csl (~> 1.0)
66
+ diff-lcs (1.3)
67
+ docile (1.1.5)
68
+ dotenv (2.5.0)
69
+ ebnf (1.1.3)
70
+ rdf (~> 3.0)
71
+ sxp (~> 1.0)
72
+ edtf (3.0.4)
73
+ activesupport (>= 3.0, < 6.0)
74
+ elasticsearch (6.1.0)
75
+ elasticsearch-api (= 6.1.0)
76
+ elasticsearch-transport (= 6.1.0)
77
+ elasticsearch-api (6.1.0)
78
+ multi_json
79
+ elasticsearch-transport (6.1.0)
80
+ faraday
81
+ multi_json
82
+ excon (0.62.0)
83
+ factory_bot (4.11.1)
84
+ activesupport (>= 3.0.0)
85
+ faraday (0.15.4)
86
+ multipart-post (>= 1.2, < 3)
87
+ faraday-encoding (0.0.5)
88
+ faraday
89
+ faraday_middleware (0.12.2)
90
+ faraday (>= 0.7.4, < 1.0)
91
+ faraday_middleware-aws-sigv4 (0.2.4)
92
+ aws-sigv4 (~> 1.0)
93
+ faraday (>= 0.9)
94
+ gender_detector (0.1.2)
95
+ unicode_utils (>= 1.3.0)
96
+ haml (5.0.4)
97
+ temple (>= 0.8.0)
98
+ tilt
99
+ hamster (3.0.0)
100
+ concurrent-ruby (~> 1.0)
101
+ hashdiff (0.3.7)
102
+ htmlentities (4.3.4)
103
+ i18n (1.1.1)
104
+ concurrent-ruby (~> 1.0)
105
+ iso8601 (0.9.1)
106
+ json (2.1.0)
107
+ json-ld (2.2.1)
108
+ multi_json (~> 1.12)
109
+ rdf (>= 2.2.8, < 4.0)
110
+ jsonlint (0.2.0)
111
+ oj (~> 2)
112
+ trollop (~> 2)
113
+ latex-decode (0.3.1)
114
+ link_header (0.0.8)
115
+ loofah (2.2.3)
116
+ crass (~> 1.0.2)
117
+ nokogiri (>= 1.5.9)
118
+ maremma (4.1.1)
119
+ activesupport (>= 4.2.5, < 6)
120
+ addressable (>= 2.3.6)
121
+ builder (~> 3.2, >= 3.2.2)
122
+ excon (~> 0.60)
123
+ faraday (~> 0.14)
124
+ faraday-encoding (~> 0.0.4)
125
+ faraday_middleware (~> 0.12.0)
126
+ multi_json (~> 1.12)
127
+ nokogiri (~> 1.8.1)
128
+ oj (>= 2.8.3)
129
+ mini_portile2 (2.3.0)
130
+ minitest (5.11.3)
131
+ multi_json (1.13.1)
132
+ multipart-post (2.0.0)
133
+ namae (1.0.1)
134
+ nokogiri (1.8.5)
135
+ mini_portile2 (~> 2.3.0)
136
+ oj (2.18.5)
137
+ postrank-uri (1.0.23)
138
+ addressable (>= 2.3.0, < 2.6)
139
+ nokogiri (>= 1.6.1, < 1.9)
140
+ public_suffix (>= 2.0.0, < 2.1)
141
+ public_suffix (2.0.5)
142
+ rack (2.0.6)
143
+ rack-test (0.8.3)
144
+ rack (>= 1.0, < 3)
145
+ rake (10.5.0)
146
+ rdf (3.0.7)
147
+ hamster (~> 3.0)
148
+ link_header (~> 0.0, >= 0.0.8)
149
+ rdf-aggregate-repo (2.2.1)
150
+ rdf (>= 2.2, < 4.0)
151
+ rdf-rdfa (3.0.1)
152
+ haml (~> 5.0)
153
+ htmlentities (~> 4.3)
154
+ rdf (~> 3.0)
155
+ rdf-aggregate-repo (>= 2.2, < 4.0)
156
+ rdf-xsd (~> 3.0)
157
+ rdf-rdfxml (2.2.1)
158
+ htmlentities (~> 4.3)
159
+ rdf (>= 2.2, < 4.0)
160
+ rdf-rdfa (>= 2.2, < 4.0)
161
+ rdf-xsd (>= 2.2, < 4.0)
162
+ rdf-turtle (2.2.2)
163
+ ebnf (~> 1.1)
164
+ rdf (>= 2.2, < 4.0)
165
+ rdf-xsd (3.0.1)
166
+ rdf (~> 3.0)
167
+ rspec (3.8.0)
168
+ rspec-core (~> 3.8.0)
169
+ rspec-expectations (~> 3.8.0)
170
+ rspec-mocks (~> 3.8.0)
171
+ rspec-core (3.8.0)
172
+ rspec-support (~> 3.8.0)
173
+ rspec-expectations (3.8.2)
174
+ diff-lcs (>= 1.2.0, < 2.0)
175
+ rspec-support (~> 3.8.0)
176
+ rspec-mocks (3.8.0)
177
+ diff-lcs (>= 1.2.0, < 2.0)
178
+ rspec-support (~> 3.8.0)
179
+ rspec-support (3.8.0)
180
+ safe_yaml (1.0.4)
181
+ simplecov (0.14.1)
182
+ docile (~> 1.1.0)
183
+ json (>= 1.8, < 3)
184
+ simplecov-html (~> 0.10.0)
185
+ simplecov-html (0.10.2)
186
+ sucker_punch (2.1.1)
187
+ concurrent-ruby (~> 1.0)
188
+ sxp (1.0.1)
189
+ rdf (>= 2.2, < 4.0)
190
+ temple (0.8.0)
191
+ thor (0.20.3)
192
+ thread_safe (0.3.6)
193
+ tilt (2.0.9)
194
+ trollop (2.9.9)
195
+ tzinfo (1.2.5)
196
+ thread_safe (~> 0.1)
197
+ unicode_utils (1.4.0)
198
+ vcr (3.0.3)
199
+ webmock (3.4.2)
200
+ addressable (>= 2.3.6)
201
+ crack (>= 0.3.2)
202
+ hashdiff
203
+
204
+ PLATFORMS
205
+ ruby
206
+
207
+ DEPENDENCIES
208
+ bundler (~> 1.16)
209
+ elasticsearch (~> 6.1.0)
210
+ factory_bot (~> 4.0)
211
+ faraday (~> 0.15.3)
212
+ kishu!
213
+ rack-test (~> 0)
214
+ rake (~> 10.0)
215
+ rspec (~> 3.0)
216
+ simplecov (~> 0.14.1)
217
+ thor (~> 0.19)
218
+ vcr (~> 3.0, >= 3.0.3)
219
+ webmock (~> 3.0, >= 3.0.1)
220
+
221
+ BUNDLED WITH
222
+ 1.16.4
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Kristian Garza
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,47 @@
1
+ # CLI Generator of DOI Resolution Reports from an ElasticSearch Index
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/kishu`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ ![kishu](https://c1.staticflickr.com/8/7196/6947533965_2ae463d1c6_b.jpg)
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'kishu'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install kishu
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ We use rspec for unit testing:
30
+
31
+ ```
32
+ bundle exec rspec
33
+ ```
34
+
35
+ Follow along via [Github Issues](https://github.com/datacite/kishu/issues).
36
+
37
+ ## Contributing
38
+
39
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/kishu. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
40
+
41
+ ## License
42
+
43
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
44
+
45
+ ## Code of Conduct
46
+
47
+ Everyone interacting in the Kishu project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/kishu/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,20 @@
1
+ # require "bundler/gem_tasks"
2
+ # require "rspec/core/rake_task"
3
+
4
+ # RSpec::Core::RakeTask.new(:spec)
5
+
6
+ # task :default => :spec
7
+
8
+
9
+ #!/usr/bin/env rake
10
+
11
+ require 'bundler'
12
+ require 'rake'
13
+ require 'yaml'
14
+ require 'rspec/core/rake_task'
15
+
16
+ Bundler::GemHelper.install_tasks
17
+ RSpec::Core::RakeTask.new('spec')
18
+
19
+ # default task is running rspec tests
20
+ task :default => :spec