jsb_client 1.0.5 → 1.0.6

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 +4 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0d3574940028d0d5e5cd191ec42b49c8ca8675e
4
- data.tar.gz: 40f3bfda85c6fb1289940df5f75e1ddf159d9799
3
+ metadata.gz: ed3d4f77dfa6edb0ab5cfb4aaa50c9d68c9cebca
4
+ data.tar.gz: b231864099965d37fce5799004dce6b0887ef398
5
5
  SHA512:
6
- metadata.gz: 092651bc9b41a526bf2d91eb41693715f40999a63a2f8fd8daa9a09dbcbe8b8d3a7e64368b5e3b93dde9e41742fbb20ab0ff5a56dbab448490695bd420991678
7
- data.tar.gz: 4085816a3973d2e7a9fcf7249c17c06c1ffa7daf73ec9df45511d452cb20814e96d94c04ff5c15e8c91cc2a7b78e6c336545bcae79e38a3929a04187a19fd359
6
+ metadata.gz: cd8f971dc5c75836d57b17fe47bc89d312b85c2f4488e951fea28fd722b3001420170c7e9bba6e26dfe6a3401c475a2e4e6c08ee0fb6e6710348ae3d03599c89
7
+ data.tar.gz: c79835f9d43d954e91440cd3107160fe389daf359db08bc9b2f6837ae9e0062018b3d6d28806ed43444256344a44ce4fce7abc3549ca4e9701b12279521db004
data/lib/jsb.rb CHANGED
@@ -107,6 +107,10 @@ class JSB
107
107
  parse(@api["/journals"].post(:journal => {:site => site, :xml => xml}, :accept => :json, :timeout => 90000000, :open_timeout => 90000000))
108
108
  end
109
109
 
110
+ def disable_journal(journal_id)
111
+ parse(@api["/journals/#{journal_id}"].delete())
112
+ end
113
+
110
114
  # Return a list of articles from author.
111
115
  #
112
116
  # 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.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Definity Solutions
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-01 00:00:00.000000000 Z
12
+ date: 2015-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest_client