jsb_client 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jsb.rb +5 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 923569b27228b57202340f605f0c00612381ed4a
4
- data.tar.gz: ad7e77a008e73ad287eda9e80ae877fe563fd560
3
+ metadata.gz: 2ce907dba59fd66c7997a4b358405b2fe0870cc0
4
+ data.tar.gz: 880c1e4ca393a973b8eedd1096e8c8b34286c118
5
5
  SHA512:
6
- metadata.gz: e62929c88fc52de8d4e4387baf381161c35559564b4911f983b420b3f2a2fe3a62c8929fc27dbb40be0bc58186d992f78bf5b26842a91209923d5296081e64be
7
- data.tar.gz: 3bb43650fb916454957f2ca904253dc927f17888945459101b3bf4d92899cf6078aeb4888c7d3435e1c6b60fa3b11b2d43ce909ab93c891afa3d38b6205dad25
6
+ metadata.gz: 4f4ddbd9df09fc19b576b9e68e2317a7073eb0ad30a1a8b1f7d88c20ab82d24595bfa9db2f3c8384e2d5d5d40d98f73bb6a914f8e0117a46bdf0f9c56d244176
7
+ data.tar.gz: 334e44d6da168a1abea534291c7d626fcc27f0b5c5e15da6c1615b3c51de3e66a9c1174a858479eb8d0394f46f77043814e0608c41a4bee0b942d5690be993a5
data/lib/jsb.rb CHANGED
@@ -107,6 +107,11 @@ class JSB
107
107
  parse(@api["/authors"].get(:accept => :json))
108
108
  end
109
109
 
110
+ # Return an author.
111
+ def author(author_id)
112
+ parse(@api["/authors/#{author_id}"].get(:accept => :json))
113
+ end
114
+
110
115
  # Return a list of authors from a journal.
111
116
  #
112
117
  # Arguments:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsb_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Definity Solutions