scholarsphere-client 0.4.0 → 0.5.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 +3 -3
- data/.gitignore +2 -0
- data/.rubocop.yml +1 -0
- data/Gemfile +16 -0
- data/Gemfile.lock +141 -101
- data/README.md +1 -1
- data/lib/scholarsphere/client/ingest.rb +7 -17
- data/lib/scholarsphere/client/version.rb +1 -1
- data/lib/scholarsphere/client.rb +2 -2
- data/scholarsphere-client.gemspec +7 -17
- metadata +13 -155
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e160f46b9069c8904a99a385777d908bd77fbf32a134f3ca7558b9ee4766d77
|
4
|
+
data.tar.gz: 8fc4e0b5e6a9f364f7854ab5fa6c770800e7a092e4ff7209f19702c602c190ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0504321b307a988d9a40211ddbe42a26d98635564eec44026e72d2bb474360ccceb2be1b40269453471724e77d4e33e7009dce0a54458189ca989bd319da894d
|
7
|
+
data.tar.gz: '00680d74596b86a67ed520ce5b3579ba2575c8a3fbda8cf5fe44a881dac5afd1a589b28d4b4a50531dc65044cf9852f3abaf7c1adf1d85fb6b57c3cc2925e72a'
|
data/.circleci/config.yml
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
version: 2.1
|
2
2
|
orbs:
|
3
|
-
ruby: circleci/ruby@
|
3
|
+
ruby: circleci/ruby@2.5.0
|
4
4
|
|
5
5
|
jobs:
|
6
6
|
build:
|
7
7
|
docker:
|
8
|
-
- image:
|
8
|
+
- image: cimg/ruby:3.4.1
|
9
9
|
executor: ruby/default
|
10
10
|
steps:
|
11
11
|
- checkout
|
12
12
|
- run:
|
13
13
|
name: "Install Dependencides"
|
14
|
-
command: gem install bundler:2.
|
14
|
+
command: gem install bundler:2.6.3 && bundle install
|
15
15
|
- run:
|
16
16
|
name: "Rubocop"
|
17
17
|
command: bundle exec rubocop
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
@@ -4,3 +4,19 @@ source 'https://rubygems.org'
|
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in scholarsphere-client.gemspec
|
6
6
|
gemspec
|
7
|
+
|
8
|
+
group :development do
|
9
|
+
gem 'bundler', '~> 2.0'
|
10
|
+
gem 'niftany', '~> 0.6'
|
11
|
+
gem 'pry', '~> 0.12'
|
12
|
+
gem 'pry-byebug', '~> 3.9'
|
13
|
+
gem 'rake', '>= 12.3.3'
|
14
|
+
gem 'rspec', '~> 3.0'
|
15
|
+
gem 'rspec-its', '~> 1.3'
|
16
|
+
gem 'vcr', '~> 6.0'
|
17
|
+
gem 'webmock', '~> 3.11'
|
18
|
+
gem 'yard', '< 1.0'
|
19
|
+
|
20
|
+
# Latest version of simplecov is not compatible with Code Climate
|
21
|
+
gem 'simplecov', '< 0.18'
|
22
|
+
end
|
data/Gemfile.lock
CHANGED
@@ -1,72 +1,85 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
scholarsphere-client (0.
|
4
|
+
scholarsphere-client (0.5.0)
|
5
5
|
aws-sdk-s3 (~> 1.49)
|
6
6
|
faraday (> 0.12)
|
7
7
|
marcel (~> 1.0)
|
8
|
+
mutex_m (~> 0.3)
|
8
9
|
|
9
10
|
GEM
|
10
11
|
remote: https://rubygems.org/
|
11
12
|
specs:
|
12
|
-
actionview (
|
13
|
-
activesupport (=
|
13
|
+
actionview (8.0.2)
|
14
|
+
activesupport (= 8.0.2)
|
14
15
|
builder (~> 3.1)
|
15
|
-
erubi (~> 1.
|
16
|
-
rails-dom-testing (~> 2.
|
17
|
-
rails-html-sanitizer (~> 1.
|
18
|
-
activesupport (
|
19
|
-
|
16
|
+
erubi (~> 1.11)
|
17
|
+
rails-dom-testing (~> 2.2)
|
18
|
+
rails-html-sanitizer (~> 1.6)
|
19
|
+
activesupport (8.0.2)
|
20
|
+
base64
|
21
|
+
benchmark (>= 0.3)
|
22
|
+
bigdecimal
|
23
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
24
|
+
connection_pool (>= 2.2.5)
|
25
|
+
drb
|
20
26
|
i18n (>= 1.6, < 2)
|
27
|
+
logger (>= 1.4.2)
|
21
28
|
minitest (>= 5.1)
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
29
|
+
securerandom (>= 0.3)
|
30
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
31
|
+
uri (>= 0.13.1)
|
32
|
+
addressable (2.8.7)
|
33
|
+
public_suffix (>= 2.0.2, < 7.0)
|
26
34
|
ast (2.4.2)
|
27
|
-
aws-eventstream (1.
|
28
|
-
aws-partitions (1.
|
29
|
-
aws-sdk-core (3.
|
30
|
-
aws-eventstream (~> 1, >= 1.0
|
31
|
-
aws-partitions (~> 1, >= 1.
|
32
|
-
aws-sigv4 (~> 1.
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
aws-
|
37
|
-
|
38
|
-
|
35
|
+
aws-eventstream (1.3.2)
|
36
|
+
aws-partitions (1.1069.0)
|
37
|
+
aws-sdk-core (3.220.1)
|
38
|
+
aws-eventstream (~> 1, >= 1.3.0)
|
39
|
+
aws-partitions (~> 1, >= 1.992.0)
|
40
|
+
aws-sigv4 (~> 1.9)
|
41
|
+
base64
|
42
|
+
jmespath (~> 1, >= 1.6.1)
|
43
|
+
aws-sdk-kms (1.99.0)
|
44
|
+
aws-sdk-core (~> 3, >= 3.216.0)
|
45
|
+
aws-sigv4 (~> 1.5)
|
46
|
+
aws-sdk-s3 (1.182.0)
|
47
|
+
aws-sdk-core (~> 3, >= 3.216.0)
|
39
48
|
aws-sdk-kms (~> 1)
|
40
|
-
aws-sigv4 (~> 1.
|
41
|
-
aws-sigv4 (1.
|
49
|
+
aws-sigv4 (~> 1.5)
|
50
|
+
aws-sigv4 (1.11.0)
|
42
51
|
aws-eventstream (~> 1, >= 1.0.2)
|
43
|
-
|
44
|
-
|
45
|
-
|
52
|
+
base64 (0.2.0)
|
53
|
+
benchmark (0.4.0)
|
54
|
+
better_html (2.1.1)
|
55
|
+
actionview (>= 6.0)
|
56
|
+
activesupport (>= 6.0)
|
46
57
|
ast (~> 2.0)
|
47
58
|
erubi (~> 1.4)
|
48
|
-
html_tokenizer (~> 0.0.6)
|
49
59
|
parser (>= 2.4)
|
50
60
|
smart_properties
|
51
|
-
|
61
|
+
bigdecimal (3.1.9)
|
62
|
+
builder (3.3.0)
|
52
63
|
byebug (11.1.3)
|
53
64
|
coderay (1.1.3)
|
54
|
-
colorize (
|
55
|
-
concurrent-ruby (1.
|
56
|
-
|
65
|
+
colorize (1.1.0)
|
66
|
+
concurrent-ruby (1.3.5)
|
67
|
+
connection_pool (2.5.0)
|
68
|
+
crack (1.0.0)
|
69
|
+
bigdecimal
|
57
70
|
rexml
|
58
71
|
crass (1.0.6)
|
59
72
|
diff-lcs (1.4.4)
|
60
73
|
docile (1.4.0)
|
61
|
-
|
74
|
+
drb (2.2.1)
|
75
|
+
erb_lint (0.9.0)
|
62
76
|
activesupport
|
63
|
-
better_html (
|
64
|
-
html_tokenizer
|
77
|
+
better_html (>= 2.0.1)
|
65
78
|
parser (>= 2.7.1.4)
|
66
79
|
rainbow
|
67
|
-
rubocop
|
80
|
+
rubocop (>= 1)
|
68
81
|
smart_properties
|
69
|
-
erubi (1.
|
82
|
+
erubi (1.13.1)
|
70
83
|
faraday (1.4.1)
|
71
84
|
faraday-excon (~> 1.1)
|
72
85
|
faraday-net_http (~> 1.0)
|
@@ -76,56 +89,65 @@ GEM
|
|
76
89
|
faraday-excon (1.1.0)
|
77
90
|
faraday-net_http (1.0.1)
|
78
91
|
faraday-net_http_persistent (1.1.0)
|
79
|
-
ffi (1.
|
80
|
-
hashdiff (1.
|
81
|
-
|
82
|
-
i18n (1.8.10)
|
92
|
+
ffi (1.17.1)
|
93
|
+
hashdiff (1.1.2)
|
94
|
+
i18n (1.14.7)
|
83
95
|
concurrent-ruby (~> 1.0)
|
84
|
-
jmespath (1.
|
96
|
+
jmespath (1.6.2)
|
85
97
|
json (2.5.1)
|
86
|
-
|
98
|
+
language_server-protocol (3.17.0.4)
|
99
|
+
lint_roller (1.1.0)
|
100
|
+
logger (1.6.6)
|
101
|
+
loofah (2.24.0)
|
87
102
|
crass (~> 1.0.2)
|
88
|
-
nokogiri (>= 1.
|
103
|
+
nokogiri (>= 1.12.0)
|
89
104
|
marcel (1.0.1)
|
90
|
-
method_source (1.
|
91
|
-
mini_portile2 (2.
|
92
|
-
minitest (5.
|
105
|
+
method_source (1.1.0)
|
106
|
+
mini_portile2 (2.8.8)
|
107
|
+
minitest (5.25.5)
|
93
108
|
multipart-post (2.1.1)
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
rubocop
|
99
|
-
rubocop-
|
100
|
-
rubocop-
|
101
|
-
|
102
|
-
|
103
|
-
|
109
|
+
mutex_m (0.3.0)
|
110
|
+
niftany (0.12.0)
|
111
|
+
colorize (~> 1.1.0)
|
112
|
+
erb_lint (~> 0.9.0)
|
113
|
+
rubocop (~> 1.72)
|
114
|
+
rubocop-capybara (~> 2.21)
|
115
|
+
rubocop-factory_bot (~> 2.26)
|
116
|
+
rubocop-performance (~> 1.24)
|
117
|
+
rubocop-rails (~> 2.30)
|
118
|
+
rubocop-rspec (~> 3.5)
|
119
|
+
rubocop-rspec_rails (~> 2.30)
|
120
|
+
scss_lint (~> 0.60)
|
121
|
+
nokogiri (1.18.5)
|
122
|
+
mini_portile2 (~> 2.8.2)
|
104
123
|
racc (~> 1.4)
|
105
|
-
parallel (1.
|
106
|
-
parser (3.
|
124
|
+
parallel (1.26.3)
|
125
|
+
parser (3.3.7.1)
|
107
126
|
ast (~> 2.4.1)
|
108
|
-
|
127
|
+
racc
|
128
|
+
pry (0.14.2)
|
109
129
|
coderay (~> 1.1)
|
110
130
|
method_source (~> 1.0)
|
111
|
-
pry-byebug (3.
|
131
|
+
pry-byebug (3.10.1)
|
112
132
|
byebug (~> 11.0)
|
113
|
-
pry (
|
114
|
-
public_suffix (
|
115
|
-
racc (1.
|
116
|
-
rack (
|
117
|
-
rails-dom-testing (2.0
|
118
|
-
activesupport (>=
|
133
|
+
pry (>= 0.13, < 0.15)
|
134
|
+
public_suffix (6.0.1)
|
135
|
+
racc (1.8.1)
|
136
|
+
rack (3.1.12)
|
137
|
+
rails-dom-testing (2.2.0)
|
138
|
+
activesupport (>= 5.0.0)
|
139
|
+
minitest
|
119
140
|
nokogiri (>= 1.6)
|
120
|
-
rails-html-sanitizer (1.
|
121
|
-
loofah (~> 2.
|
122
|
-
|
141
|
+
rails-html-sanitizer (1.6.2)
|
142
|
+
loofah (~> 2.21)
|
143
|
+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
144
|
+
rainbow (3.1.1)
|
123
145
|
rake (13.0.3)
|
124
|
-
rb-fsevent (0.11.
|
125
|
-
rb-inotify (0.
|
146
|
+
rb-fsevent (0.11.2)
|
147
|
+
rb-inotify (0.11.1)
|
126
148
|
ffi (~> 1.0)
|
127
|
-
regexp_parser (2.
|
128
|
-
rexml (3.
|
149
|
+
regexp_parser (2.10.0)
|
150
|
+
rexml (3.4.1)
|
129
151
|
rspec (3.10.0)
|
130
152
|
rspec-core (~> 3.10.0)
|
131
153
|
rspec-expectations (~> 3.10.0)
|
@@ -142,52 +164,70 @@ GEM
|
|
142
164
|
diff-lcs (>= 1.2.0, < 2.0)
|
143
165
|
rspec-support (~> 3.10.0)
|
144
166
|
rspec-support (3.10.2)
|
145
|
-
rubocop (
|
167
|
+
rubocop (1.74.0)
|
168
|
+
json (~> 2.3)
|
169
|
+
language_server-protocol (~> 3.17.0.2)
|
170
|
+
lint_roller (~> 1.1.0)
|
146
171
|
parallel (~> 1.10)
|
147
|
-
parser (>=
|
172
|
+
parser (>= 3.3.0.2)
|
148
173
|
rainbow (>= 2.2.2, < 4.0)
|
149
|
-
regexp_parser (>=
|
150
|
-
|
151
|
-
rubocop-ast (>= 0.6.0)
|
174
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
175
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
152
176
|
ruby-progressbar (~> 1.7)
|
153
|
-
unicode-display_width (>=
|
154
|
-
rubocop-ast (1.
|
155
|
-
parser (>= 3.
|
156
|
-
rubocop-
|
157
|
-
|
158
|
-
rubocop
|
159
|
-
rubocop-
|
177
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
178
|
+
rubocop-ast (1.40.0)
|
179
|
+
parser (>= 3.3.1.0)
|
180
|
+
rubocop-capybara (2.22.1)
|
181
|
+
lint_roller (~> 1.1)
|
182
|
+
rubocop (~> 1.72, >= 1.72.1)
|
183
|
+
rubocop-factory_bot (2.27.1)
|
184
|
+
lint_roller (~> 1.1)
|
185
|
+
rubocop (~> 1.72, >= 1.72.1)
|
186
|
+
rubocop-performance (1.24.0)
|
187
|
+
lint_roller (~> 1.1)
|
188
|
+
rubocop (>= 1.72.1, < 2.0)
|
189
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
190
|
+
rubocop-rails (2.30.3)
|
160
191
|
activesupport (>= 4.2.0)
|
192
|
+
lint_roller (~> 1.1)
|
161
193
|
rack (>= 1.1)
|
162
|
-
rubocop (>=
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
194
|
+
rubocop (>= 1.72.1, < 2.0)
|
195
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
196
|
+
rubocop-rspec (3.5.0)
|
197
|
+
lint_roller (~> 1.1)
|
198
|
+
rubocop (~> 1.72, >= 1.72.1)
|
199
|
+
rubocop-rspec_rails (2.31.0)
|
200
|
+
lint_roller (~> 1.1)
|
201
|
+
rubocop (~> 1.72, >= 1.72.1)
|
202
|
+
rubocop-rspec (~> 3.5)
|
203
|
+
ruby-progressbar (1.13.0)
|
167
204
|
ruby2_keywords (0.0.4)
|
168
205
|
sass (3.7.4)
|
169
206
|
sass-listen (~> 4.0.0)
|
170
207
|
sass-listen (4.0.0)
|
171
208
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
172
209
|
rb-inotify (~> 0.9, >= 0.9.7)
|
173
|
-
scss_lint (0.
|
210
|
+
scss_lint (0.60.0)
|
174
211
|
sass (~> 3.5, >= 3.5.5)
|
212
|
+
securerandom (0.4.1)
|
175
213
|
simplecov (0.17.1)
|
176
214
|
docile (~> 1.1)
|
177
215
|
json (>= 1.8, < 3)
|
178
216
|
simplecov-html (~> 0.10.0)
|
179
217
|
simplecov-html (0.10.2)
|
180
|
-
smart_properties (1.
|
181
|
-
tzinfo (2.0.
|
218
|
+
smart_properties (1.17.0)
|
219
|
+
tzinfo (2.0.6)
|
182
220
|
concurrent-ruby (~> 1.0)
|
183
|
-
unicode-display_width (1.
|
221
|
+
unicode-display_width (3.1.4)
|
222
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
223
|
+
unicode-emoji (4.0.4)
|
224
|
+
uri (1.0.3)
|
184
225
|
vcr (6.0.0)
|
185
|
-
webmock (3.
|
186
|
-
addressable (>= 2.
|
226
|
+
webmock (3.25.1)
|
227
|
+
addressable (>= 2.8.0)
|
187
228
|
crack (>= 0.3.2)
|
188
229
|
hashdiff (>= 0.4.0, < 2.0.0)
|
189
230
|
yard (0.9.26)
|
190
|
-
zeitwerk (2.4.2)
|
191
231
|
|
192
232
|
PLATFORMS
|
193
233
|
ruby
|
@@ -207,4 +247,4 @@ DEPENDENCIES
|
|
207
247
|
yard (< 1.0)
|
208
248
|
|
209
249
|
BUNDLED WITH
|
210
|
-
2.
|
250
|
+
2.6.3
|
data/README.md
CHANGED
@@ -75,7 +75,7 @@ The json output should look like:
|
|
75
75
|
|
76
76
|
## Documentation
|
77
77
|
|
78
|
-
You can read the [ruby docs](https://www.rubydoc.info/github/psu-
|
78
|
+
You can read the [ruby docs](https://www.rubydoc.info/github/psu-libraries/scholarsphere-client/main) for the latest features.
|
79
79
|
|
80
80
|
## Testing
|
81
81
|
|
@@ -14,7 +14,7 @@ module Scholarsphere
|
|
14
14
|
# ingest = Scholarsphere::Client::Ingest.new(
|
15
15
|
# metadata: metadata,
|
16
16
|
# files: files,
|
17
|
-
# depositor:
|
17
|
+
# depositor: 'abc123'
|
18
18
|
# )
|
19
19
|
# response = ingest.publish
|
20
20
|
#
|
@@ -71,21 +71,11 @@ module Scholarsphere
|
|
71
71
|
#
|
72
72
|
# ## Depositor
|
73
73
|
#
|
74
|
-
#
|
75
|
-
#
|
76
|
-
#
|
77
|
-
#
|
78
|
-
#
|
79
|
-
# }
|
80
|
-
#
|
81
|
-
# Currently, the person identified as the depositor must have an active access account at Penn State. In most cases,
|
82
|
-
# the depositor will be the same person as the creator specified in the metadata; although, this is not always the
|
83
|
-
# case. The depositor may be someone who is uploading on behalf of the creator and is not affiliated with the
|
84
|
-
# creation of the work. The depositor is *not* the client itself, either. The client is identified separately via
|
85
|
-
# the API token.
|
86
|
-
#
|
87
|
-
# Note that the fields are the same for both `creators_attributes` and `depositor`, so if the depositor is the same
|
88
|
-
# as the creator, all the values will need to be duplicated.
|
74
|
+
# The depositor is identified by their Penn State access id, which must be active at the time of ingest. In most
|
75
|
+
# cases, the depositor will be the same person as the creator specified in the metadata; although, this is not
|
76
|
+
# always the case. The depositor may be someone who is uploading on behalf of the creator and is not affiliated
|
77
|
+
# with the creation of the work. The depositor is *not* the client itself, either. The client is identified
|
78
|
+
# separately via the API token.
|
89
79
|
#
|
90
80
|
#
|
91
81
|
class Ingest
|
@@ -93,7 +83,7 @@ module Scholarsphere
|
|
93
83
|
|
94
84
|
# @param metadata [Hash] Metadata attributes
|
95
85
|
# @param files [Array<File,IO,Pathnme>,Hash] An array of File or IO objects, or a hash with a :file param
|
96
|
-
# @param depositor [
|
86
|
+
# @param depositor [String] access id of the depositor
|
97
87
|
# @param permissions [Hash] (optional) Additional permissions to apply to the resource
|
98
88
|
def initialize(metadata:, files:, depositor:, permissions: {})
|
99
89
|
@content = build_content_hash(files)
|
data/lib/scholarsphere/client.rb
CHANGED
@@ -20,7 +20,7 @@ module Scholarsphere
|
|
20
20
|
# @return [Faraday::Connection] A cached connection to the Scholarsphere API with the provided credentials.
|
21
21
|
def connection
|
22
22
|
@connection ||= Faraday::Connection.new(
|
23
|
-
url: ENV
|
23
|
+
url: ENV.fetch('SS4_ENDPOINT', nil),
|
24
24
|
headers: {
|
25
25
|
'Content-Type' => 'application/json',
|
26
26
|
'X-API-KEY' => api_key
|
@@ -42,7 +42,7 @@ module Scholarsphere
|
|
42
42
|
|
43
43
|
# @return [String] Alphanumeric API key that grants access to the API.
|
44
44
|
def api_key
|
45
|
-
ENV
|
45
|
+
ENV.fetch('SS_CLIENT_KEY', nil)
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
@@ -12,15 +12,18 @@ Gem::Specification.new do |spec|
|
|
12
12
|
|
13
13
|
spec.summary = 'Client to connect to Scholarpshere'
|
14
14
|
spec.description = 'Client software to create new content for the Scholarsphere repository at Penn State.'
|
15
|
-
spec.homepage = 'https://github.com/psu-
|
15
|
+
spec.homepage = 'https://github.com/psu-libraries/scholarsphere-client'
|
16
16
|
|
17
17
|
spec.metadata = {
|
18
18
|
'homepage_uri' => spec.homepage,
|
19
19
|
'source_code_uri' => spec.homepage,
|
20
|
-
'documentation_uri' => 'https://www.rubydoc.info/github/psu-
|
21
|
-
'allowed_push_host' => 'https://rubygems.org'
|
20
|
+
'documentation_uri' => 'https://www.rubydoc.info/github/psu-libraries/scholarsphere-client/main',
|
21
|
+
'allowed_push_host' => 'https://rubygems.org',
|
22
|
+
'rubygems_mfa_required' => 'true'
|
22
23
|
}
|
23
24
|
|
25
|
+
spec.required_ruby_version = '>= 3.4'
|
26
|
+
|
24
27
|
# Specify which files should be added to the gem when it is released.
|
25
28
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
26
29
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
@@ -33,18 +36,5 @@ Gem::Specification.new do |spec|
|
|
33
36
|
spec.add_dependency 'aws-sdk-s3', '~> 1.49'
|
34
37
|
spec.add_dependency 'faraday', '> 0.12'
|
35
38
|
spec.add_dependency 'marcel', '~> 1.0'
|
36
|
-
|
37
|
-
spec.add_development_dependency 'bundler', '~> 2.0'
|
38
|
-
spec.add_development_dependency 'niftany', '~> 0.6'
|
39
|
-
spec.add_development_dependency 'pry', '~> 0.12'
|
40
|
-
spec.add_development_dependency 'pry-byebug', '~> 3.9'
|
41
|
-
spec.add_development_dependency 'rake', '>= 12.3.3'
|
42
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
43
|
-
spec.add_development_dependency 'rspec-its', '~> 1.3'
|
44
|
-
spec.add_development_dependency 'vcr', '~> 6.0'
|
45
|
-
spec.add_development_dependency 'webmock', '~> 3.11'
|
46
|
-
spec.add_development_dependency 'yard', '< 1.0'
|
47
|
-
|
48
|
-
# Latest version of simplecov is not compatible with Code Climate
|
49
|
-
spec.add_development_dependency 'simplecov', '< 0.18'
|
39
|
+
spec.add_dependency 'mutex_m', '~> 0.3'
|
50
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scholarsphere-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Wead
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-20 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: aws-sdk-s3
|
@@ -53,159 +52,19 @@ dependencies:
|
|
53
52
|
- !ruby/object:Gem::Version
|
54
53
|
version: '1.0'
|
55
54
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
55
|
+
name: mutex_m
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
58
57
|
requirements:
|
59
58
|
- - "~>"
|
60
59
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
62
|
-
type: :
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '2.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: niftany
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0.6'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0.6'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: pry
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0.12'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0.12'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: pry-byebug
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '3.9'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '3.9'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rake
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 12.3.3
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: 12.3.3
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rspec
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '3.0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '3.0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: rspec-its
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '1.3'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '1.3'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: vcr
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '6.0'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '6.0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: webmock
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '3.11'
|
174
|
-
type: :development
|
60
|
+
version: '0.3'
|
61
|
+
type: :runtime
|
175
62
|
prerelease: false
|
176
63
|
version_requirements: !ruby/object:Gem::Requirement
|
177
64
|
requirements:
|
178
65
|
- - "~>"
|
179
66
|
- !ruby/object:Gem::Version
|
180
|
-
version: '3
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: yard
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - "<"
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '1.0'
|
188
|
-
type: :development
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - "<"
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: '1.0'
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: simplecov
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - "<"
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: '0.18'
|
202
|
-
type: :development
|
203
|
-
prerelease: false
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - "<"
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: '0.18'
|
67
|
+
version: '0.3'
|
209
68
|
description: Client software to create new content for the Scholarsphere repository
|
210
69
|
at Penn State.
|
211
70
|
email:
|
@@ -238,14 +97,14 @@ files:
|
|
238
97
|
- lib/scholarsphere/s3/uploader.rb
|
239
98
|
- sample.rb
|
240
99
|
- scholarsphere-client.gemspec
|
241
|
-
homepage: https://github.com/psu-
|
100
|
+
homepage: https://github.com/psu-libraries/scholarsphere-client
|
242
101
|
licenses: []
|
243
102
|
metadata:
|
244
|
-
homepage_uri: https://github.com/psu-
|
245
|
-
source_code_uri: https://github.com/psu-
|
246
|
-
documentation_uri: https://www.rubydoc.info/github/psu-
|
103
|
+
homepage_uri: https://github.com/psu-libraries/scholarsphere-client
|
104
|
+
source_code_uri: https://github.com/psu-libraries/scholarsphere-client
|
105
|
+
documentation_uri: https://www.rubydoc.info/github/psu-libraries/scholarsphere-client/main
|
247
106
|
allowed_push_host: https://rubygems.org
|
248
|
-
|
107
|
+
rubygems_mfa_required: 'true'
|
249
108
|
rdoc_options: []
|
250
109
|
require_paths:
|
251
110
|
- lib
|
@@ -253,15 +112,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
253
112
|
requirements:
|
254
113
|
- - ">="
|
255
114
|
- !ruby/object:Gem::Version
|
256
|
-
version: '
|
115
|
+
version: '3.4'
|
257
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
258
117
|
requirements:
|
259
118
|
- - ">="
|
260
119
|
- !ruby/object:Gem::Version
|
261
120
|
version: '0'
|
262
121
|
requirements: []
|
263
|
-
rubygems_version: 3.
|
264
|
-
signing_key:
|
122
|
+
rubygems_version: 3.6.2
|
265
123
|
specification_version: 4
|
266
124
|
summary: Client to connect to Scholarpshere
|
267
125
|
test_files: []
|