ezid-client 0.4.1 → 0.4.2

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: f0b9d3dc7c1df7191bb249e09e448ef6a5f55957
4
- data.tar.gz: 18456cea4f31aa57fe04e7aa8f2c60c9d05eb1a6
3
+ metadata.gz: 2b09cc8d07326bf5ec70e376feb37a7958018724
4
+ data.tar.gz: a95378e37e305a0dd79e127b654bcd41a6d4e658
5
5
  SHA512:
6
- metadata.gz: a97573030689afb7beef02c8cc3d38a3b0efd830537ff780f51a20211a3cb1dd19cf78a06d17aa87bcf59664d3062bdbfc40f039f3ce6b4c85874887e898b944
7
- data.tar.gz: 49ead39cafe8695052078fa86c92f17f21679240cc83d78f010bf9a95c88126024fb380b3ec1b37584723a67938e663559900357988db15a5248526846f65c12
6
+ metadata.gz: 2d07041e9bf5961f6b5f5def5936f24f08553d789032de6c9c1cebeba0da4e848b5b8f34515995f6e52646df916f7cf234b52c228a63cd64bef0ae3e36ec9bf4
7
+ data.tar.gz: c35e0ab65837eb7d4bfbfc3f6b2a29cf645e68b1c2862e2fbd1013d6a2096e646671291e423daeffa3b9a16e8502b2b3054e6b5d65f7bacb0d0590af272687ab
@@ -4,7 +4,7 @@ rvm:
4
4
  - 2.0.0
5
5
  cache:
6
6
  - bundler
7
- env: SPEC_OPTS="--tag ~type:integration"
7
+ script: "bundle exec rake ci"
8
8
  notifications:
9
9
  email:
10
10
  - lib-drs@duke.edu
data/README.md CHANGED
@@ -98,7 +98,7 @@ client = Ezid::Client.new(user: "eziduser", password: "ezidpass")
98
98
 
99
99
  See http://ezid.cdlib.org/doc/apidoc.html#testing-the-api.
100
100
 
101
- Integration tests have been tagged `type: :feature`. In order to run those tests successfully, you must supply the password for the test account "apitest" (contact EZID). You can exclude the integration tests with the RSpec option `--tag ~type:feature`.
101
+ In order to run the integration tests successfully, you must supply the password for the test account "apitest" (contact EZID). To run the test suite without the integration tests, use the `rake ci` task.
102
102
 
103
103
  ## Contributing
104
104
 
data/Rakefile CHANGED
@@ -4,4 +4,9 @@ require "rspec/core/rake_task"
4
4
  desc "Run all specs in spec directory"
5
5
  RSpec::Core::RakeTask.new(:spec)
6
6
 
7
+ desc "Run the ci build (no integration tests)"
8
+ task :ci do
9
+ system "rspec ./spec/unit/"
10
+ end
11
+
7
12
  task default: :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
@@ -1,5 +1,5 @@
1
1
  module Ezid
2
- RSpec.describe Client, type: :integration do
2
+ RSpec.describe Client do
3
3
 
4
4
  shared_examples "an EZID client" do |client|
5
5
  it "should mint and modify" do
@@ -1,7 +1,7 @@
1
1
  module Ezid
2
2
  RSpec.describe Identifier do
3
3
 
4
- it "should handle CRUD operations", type: :integration do
4
+ it "should handle CRUD operations" do
5
5
  # create (mint)
6
6
  identifier = described_class.create(shoulder: ARK_SHOULDER)
7
7
  expect(identifier.status).to eq("public")
@@ -23,7 +23,8 @@ require "ezid-client"
23
23
  Ezid::Client.configure do |config|
24
24
  config.user = "apitest"
25
25
  # Contact EZID for password
26
- # config.password = "********"
26
+ # config.password = "********"
27
+ config.logger = Logger.new(File::NULL)
27
28
  end
28
29
 
29
30
  ARK_SHOULDER = "ark:/99999/fk4"
@@ -85,7 +86,7 @@ RSpec.configure do |config|
85
86
  # Print the 10 slowest examples and example groups at the
86
87
  # end of the spec run, to help surface which specs are running
87
88
  # particularly slow.
88
- config.profile_examples = 10
89
+ # config.profile_examples = 10
89
90
 
90
91
  # Run specs in random order to surface order dependencies. If you find an
91
92
  # order dependency and want to debug it, you can fix the order by providing
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ezid-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chandek-Stark