pushmi_pullyu 0.2.3 → 0.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa029e62ba807ffc7e27d8cd1d83a88fe2c1d0be
4
- data.tar.gz: 3a4d45fb2ea65b51bcc87a57ef5e06a7fa612cb5
3
+ metadata.gz: 49b78fd0dffd69cf95a79028e1f64856cb821afe
4
+ data.tar.gz: 055cf63d10a7b24b4506f31ed680d581850cbbc8
5
5
  SHA512:
6
- metadata.gz: d77efad7e946049808f58f8cbbb9ae1ca3e0fec1371e99c1261c27040d63fd09346408ba4592d04c871109ac2887fd799254cb80ff0629bfc646c32d732a12f0
7
- data.tar.gz: 05e5e4952c71ed5b11b71d9d8dbdc74e17f4a30feee095a456c6eff7678af1118aa28323990828705daac72bf4159f1226f11f4c5394d934b2bfc9224816a777
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
 
@@ -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
- endpoint: http://localhost:8080
38
+ auth_url: http://localhost:8080/auth/v1.0
39
+ project_name: demo
40
+ project_domain_name: default
39
41
  container: ERA
@@ -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
- endpoint: 'http://localhost:8080',
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.values.each do |path|
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")
@@ -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
- endpoint: options[:swift][:endpoint],
215
- auth_version: options[:swift][:auth_version])
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: "#{connection[:endpoint]}/auth/#{connection[:auth_version]}",
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
  )
@@ -1,3 +1,3 @@
1
1
  module PushmiPullyu
2
- VERSION = '0.2.3'.freeze
2
+ VERSION = '0.2.4'.freeze
3
3
  end
@@ -1,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  lib = File.expand_path('../lib', __FILE__)
4
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
3
  require 'pushmi_pullyu/version'
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.3
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-08-29 00:00:00.000000000 Z
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.5.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