pushmi_pullyu 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -0
- data/examples/pushmi_pullyu.yml +4 -2
- data/lib/pushmi_pullyu.rb +3 -2
- data/lib/pushmi_pullyu/aip/downloader.rb +1 -1
- data/lib/pushmi_pullyu/cli.rb +5 -2
- data/lib/pushmi_pullyu/swift_depositer.rb +3 -1
- data/lib/pushmi_pullyu/version.rb +1 -1
- data/pushmi_pullyu.gemspec +0 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49b78fd0dffd69cf95a79028e1f64856cb821afe
|
4
|
+
data.tar.gz: 055cf63d10a7b24b4506f31ed680d581850cbbc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecf8747859244ba697d9ea773e0f61c3b07d87f3b3613cb32471bb61e8674533dfd51d916e962d1d03585b0f0c24b8d664066ac68d14a547d4f5c61a30ecf563
|
7
|
+
data.tar.gz: 90fcf95c9f03b2f8a9374b521188cc1f80079daf7f71b5ffc0cb0af6a9b112074b7be4544d86a6e6a063ee67e9ad0040c236c7c7c74dacc20fed17718d9f0594
|
data/README.md
CHANGED
@@ -124,6 +124,23 @@ To run rubocop by itself:
|
|
124
124
|
```bash
|
125
125
|
bundle exec rubocop
|
126
126
|
```
|
127
|
+
## Releasing a new gem version
|
128
|
+
|
129
|
+
To release a new version, bump the version file found here: `lib/pushmi_pullyu/version.rb`
|
130
|
+
|
131
|
+
Try to bump versions using [semantic versioning](http://semver.org/).
|
132
|
+
|
133
|
+
Commit this change into master branch via a PR.
|
134
|
+
|
135
|
+
Once committed, you can do a release by running the following rake command:
|
136
|
+
|
137
|
+
`rake release[remote]`
|
138
|
+
|
139
|
+
This will cut a tag version, builds the gem, and pushes the gem up to Rubygems
|
140
|
+
|
141
|
+
Note: You may need permission to push a gem up to Rubygems!
|
142
|
+
You will first need to create an account on rubygems.org.
|
143
|
+
Once you have an account, bug Shane or Matt to [add you as an owner](http://guides.rubygems.org/command-reference/#gem-owner) to pushmi_pullyu Rubygem. Once you are an owner you should be able to push new versions of pushmi_pullyu up to Rubygems.
|
127
144
|
|
128
145
|
## Deployment
|
129
146
|
|
data/examples/pushmi_pullyu.yml
CHANGED
@@ -30,10 +30,12 @@ fedora:
|
|
30
30
|
password: fedoraAdmin
|
31
31
|
base_path: /dev
|
32
32
|
|
33
|
+
#parameters project_name and project_domain_name are required only for keystone v3 authentication
|
33
34
|
swift:
|
34
|
-
auth_version: v1.0
|
35
35
|
tenant: tester
|
36
36
|
username: test:tester
|
37
37
|
password: testing
|
38
|
-
|
38
|
+
auth_url: http://localhost:8080/auth/v1.0
|
39
|
+
project_name: demo
|
40
|
+
project_domain_name: default
|
39
41
|
container: ERA
|
data/lib/pushmi_pullyu.rb
CHANGED
@@ -43,11 +43,12 @@ module PushmiPullyu
|
|
43
43
|
base_path: '/dev'
|
44
44
|
},
|
45
45
|
swift: {
|
46
|
-
auth_version: 'v1.0',
|
47
46
|
tenant: 'tester',
|
48
47
|
username: 'test:tester',
|
49
48
|
password: 'testing',
|
50
|
-
|
49
|
+
auth_url: 'http://localhost:8080/auth/v1.0',
|
50
|
+
project_name: 'demo',
|
51
|
+
project_domain_name: 'default',
|
51
52
|
container: 'ERA'
|
52
53
|
}
|
53
54
|
}.freeze
|
@@ -100,7 +100,7 @@ class PushmiPullyu::AIP::Downloader
|
|
100
100
|
def make_directories
|
101
101
|
clean_directories
|
102
102
|
PushmiPullyu.logger.debug("#{@noid}: Creating directories ...")
|
103
|
-
aip_dirs.to_h.
|
103
|
+
aip_dirs.to_h.each_value do |path|
|
104
104
|
FileUtils.mkdir_p(path)
|
105
105
|
end
|
106
106
|
PushmiPullyu.logger.debug("#{@noid}: Creating directories done")
|
data/lib/pushmi_pullyu/cli.rb
CHANGED
@@ -170,12 +170,14 @@ class PushmiPullyu::CLI
|
|
170
170
|
# Log successful preservation event to the log files
|
171
171
|
PushmiPullyu::Logging.log_preservation_event(deposited_file)
|
172
172
|
end
|
173
|
+
# rubocop:disable RescueWithoutErrorClass
|
173
174
|
rescue => e
|
174
175
|
Rollbar.error(e)
|
175
176
|
logger.error(e)
|
176
177
|
# TODO: we could re-raise here and let the daemon die on any preservation error, or just log the issue and
|
177
178
|
# move on to the next item.
|
178
179
|
end
|
180
|
+
# rubocop:enaable RescueWithoutErrorClass
|
179
181
|
end
|
180
182
|
end
|
181
183
|
|
@@ -211,8 +213,9 @@ class PushmiPullyu::CLI
|
|
211
213
|
@swift ||= PushmiPullyu::SwiftDepositer.new(username: options[:swift][:username],
|
212
214
|
password: options[:swift][:password],
|
213
215
|
tenant: options[:swift][:tenant],
|
214
|
-
|
215
|
-
|
216
|
+
project_name: options[:project_name],
|
217
|
+
project_domain_name: options[:project_domain_name],
|
218
|
+
auth_url: options[:swift][:auth_url])
|
216
219
|
end
|
217
220
|
|
218
221
|
# On first call of shutdown, this will gracefully close the main run loop
|
@@ -10,7 +10,9 @@ class PushmiPullyu::SwiftDepositer
|
|
10
10
|
username: connection[:username],
|
11
11
|
api_key: connection[:password],
|
12
12
|
auth_method: 'password',
|
13
|
-
auth_url:
|
13
|
+
auth_url: connection[:auth_url],
|
14
|
+
project_name: connection[:project_name],
|
15
|
+
project_domain_name: connection[:project_domain_name],
|
14
16
|
authtenant_name: connection[:tenant],
|
15
17
|
service_type: 'object-store'
|
16
18
|
)
|
data/pushmi_pullyu.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pushmi_pullyu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Murnaghan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -384,7 +384,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
384
384
|
version: '0'
|
385
385
|
requirements: []
|
386
386
|
rubyforge_project:
|
387
|
-
rubygems_version: 2.
|
387
|
+
rubygems_version: 2.6.13
|
388
388
|
signing_key:
|
389
389
|
specification_version: 4
|
390
390
|
summary: Ruby application to manage flow of content from Fedora into Swift for preservation
|