archivesspace-client 0.1.3 → 0.1.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: 1723d47efa6b10e5106ca28bfa6f247bf79603d2
4
- data.tar.gz: f6b404154c5c87ee9a74036d6501cc3304df01ea
3
+ metadata.gz: 9b4ca0ba3d8d057c3e6173cfec463660ab5edca6
4
+ data.tar.gz: 78fb789484fb50bf3892e1a2e9d0d3eb56a8bc88
5
5
  SHA512:
6
- metadata.gz: 7de5e06e6900dda657cfae615058c10859ba565aa27f16184ec7d44f23c7c2513a52c9717186f8ce04361adabc3097b562db785694bb38556a003177e92b4718
7
- data.tar.gz: 17a2e5174475986516c757f7b4f875352546555f0f3aee8539c7f3d2f090789dd1f7087614ca38ea3d0b554c50a351d7307ec8d29706bc816b4fcb328b2e60d9
6
+ metadata.gz: cc2d5f97f7f2d444b1779db3bbd41052862f066051dd408b358f6d38fe85a0daa13c39d110d9a534f98c5e2bb8b47688316e2acefa05ee205a8956af7ad1bdb5
7
+ data.tar.gz: 71d430fba940727214d3a46fd5d249d7e580a9463418087e66c69ad27c0b5685cb7e2d12465f0f2c002977d4a5e05a999f88f91f1f11eaf288ef802e11ea8c2a
data/README.md CHANGED
@@ -1,10 +1,8 @@
1
- Archivesspace Client
2
- ===
1
+ # Archivesspace Client
3
2
 
4
- Interact with ArchivesSpace via its API.
3
+ Interact with ArchivesSpace via the API.
5
4
 
6
- Installation
7
- ---
5
+ ## Installation
8
6
 
9
7
  Add this line to your application's Gemfile:
10
8
 
@@ -20,10 +18,11 @@ bundle install
20
18
 
21
19
  Or install it yourself as:
22
20
 
23
- $ gem install archivesspace-client
21
+ ```bash
22
+ gem install archivesspace-client
23
+ ```
24
24
 
25
- Usage
26
- ---
25
+ ## Usage
27
26
 
28
27
  See the examples directory for a range of use cases.
29
28
 
@@ -37,8 +36,6 @@ client = ArchivesSpace::Client.new.login
37
36
 
38
37
  **Custom configuration**
39
38
 
40
- To supply custom configuration to client:
41
-
42
39
  ```ruby
43
40
  config = ArchivesSpace::Configuration.new({
44
41
  base_uri: "https://archives.university.edu/api",
@@ -90,8 +87,7 @@ client.get('digital_objects') # instead of "repositories/2/digital_objects" etc.
90
87
  client.config.base_repo = ""
91
88
  ```
92
89
 
93
- Development
94
- ---
90
+ ## Development
95
91
 
96
92
  To run the examples start a local instance of ArchivesSpace then:
97
93
 
@@ -99,7 +95,9 @@ To run the examples start a local instance of ArchivesSpace then:
99
95
  bundle exec ruby examples/repo_and_user.rb
100
96
  ```
101
97
 
102
- Any script placed in the examples directory with a `my_` prefix are ignored by git. Follow the convention used by the existing scripts to bootstrap and experiment away.
98
+ Any script placed in the examples directory with a `my_` prefix are ignored by
99
+ git. Follow the convention used by the existing scripts to bootstrap and
100
+ experiment away.
103
101
 
104
102
  To run the tests:
105
103
 
@@ -107,13 +105,23 @@ To run the tests:
107
105
  bundle exec rake
108
106
  ```
109
107
 
110
- Contributing
111
- ---
108
+ ## Publishing
109
+
110
+ Bump version in `lib/archivesspace/client/version.rb` then:
111
+
112
+ ```bash
113
+ VERSION=0.1.4
114
+ gem build archivesspace-client
115
+ gem push archivesspace-client-$VERSION.gem
116
+ git tag v$VERSION
117
+ git push --tags
118
+ ```
119
+
120
+ ## Contributing
112
121
 
113
122
  Bug reports and pull requests are welcome on GitHub at https://github.com/lyrasis/archivesspace-client.
114
123
 
115
- License
116
- ---
124
+ ## License
117
125
 
118
126
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
119
127
 
@@ -23,7 +23,7 @@ module ArchivesSpace
23
23
  def initialize(config, method = "GET", path = "", options = {})
24
24
  @config = config
25
25
  @method = method.downcase.to_sym
26
- @path = path
26
+ @path = path.gsub(/^\/+/, '')
27
27
 
28
28
  @options = options
29
29
  @options[:headers] = options[:headers] ? default_headers(@method).merge(options[:headers]) : default_headers(@method)
@@ -1,5 +1,5 @@
1
1
  module ArchivesSpace
2
2
  class Client
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:8089//users/admin/login?password=admin
5
+ uri: http://localhost:8089/users/admin/login?password=admin
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: ''
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: archivesspace-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Cooper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-01 00:00:00.000000000 Z
11
+ date: 2018-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  requirements: []
193
193
  rubyforge_project:
194
- rubygems_version: 2.6.10
194
+ rubygems_version: 2.6.13
195
195
  signing_key:
196
196
  specification_version: 4
197
197
  summary: Interact with ArchivesSpace via its RESTful API.