jsb_client 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jsb.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0d3574940028d0d5e5cd191ec42b49c8ca8675e
|
4
|
+
data.tar.gz: 40f3bfda85c6fb1289940df5f75e1ddf159d9799
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 092651bc9b41a526bf2d91eb41693715f40999a63a2f8fd8daa9a09dbcbe8b8d3a7e64368b5e3b93dde9e41742fbb20ab0ff5a56dbab448490695bd420991678
|
7
|
+
data.tar.gz: 4085816a3973d2e7a9fcf7249c17c06c1ffa7daf73ec9df45511d452cb20814e96d94c04ff5c15e8c91cc2a7b78e6c336545bcae79e38a3929a04187a19fd359
|
data/lib/jsb.rb
CHANGED
@@ -25,7 +25,7 @@ class JSB
|
|
25
25
|
def journals
|
26
26
|
parse(@api["/journals"].get(:accept => :json))
|
27
27
|
end
|
28
|
-
|
28
|
+
|
29
29
|
def journal_exists?(site)
|
30
30
|
@api["/journals/exists"].get(:params => {:site => site}, :accept => :json)
|
31
31
|
end
|
@@ -95,8 +95,8 @@ class JSB
|
|
95
95
|
parse(@api["/journals/#{journal_id}/apps/#{app_id}"].get(:accept => :json))
|
96
96
|
end
|
97
97
|
|
98
|
-
def journal_install_app(journal_id, app_id)
|
99
|
-
parse(@api["/journals/#{journal_id}/apps/#{app_id}"].put(:accept => :json))
|
98
|
+
def journal_install_app(journal_id, app_id, expires_at)
|
99
|
+
parse(@api["/journals/#{journal_id}/apps/#{app_id}"].put(:expires_at => expires_at, :accept => :json))
|
100
100
|
end
|
101
101
|
|
102
102
|
def journal_uninstall_app(journal_id, app_id)
|
@@ -104,7 +104,7 @@ class JSB
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def create_journal(site, xml)
|
107
|
-
parse(@api["/journals"].post(:journal => {:site => site, :xml => xml}, :accept => :json, :timeout =>
|
107
|
+
parse(@api["/journals"].post(:journal => {:site => site, :xml => xml}, :accept => :json, :timeout => 90000000, :open_timeout => 90000000))
|
108
108
|
end
|
109
109
|
|
110
110
|
# Return a list of articles from author.
|