limesurvey 0.0.1 → 0.0.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 +4 -4
- data/README.md +11 -3
- data/lib/limesurvey.rb +7 -3
- data/lib/limesurvey/init.rb +0 -0
- data/lib/limesurvey/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 812145d7d633281617846793695f4543dabe786c
|
|
4
|
+
data.tar.gz: 1b2e4c3bd9751527d067d3f34dafa5688802acaa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36fdd7e88c18466d1fde5d717e60edf180306994035a3ee51ed0feabf02bbe4dd17663d1d6562fac87ede30b378df82c1fabcc1555152e6dc33c86ea4791369d
|
|
7
|
+
data.tar.gz: 405df88ff6b3f0f23b0ddd6c1b731c847c187e5e543d71b9e14870612817edc9c3ebe892b1f4ab7061af1ad5582c9502e9974a08a05d97fa22cb313b37a1248f
|
data/README.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
# Limesurvey
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This is the initial commit of the site. The goal of this gem is to have an easy Ruby on Rails interface to
|
|
4
|
+
LimeSurvey.
|
|
5
|
+
|
|
6
|
+
http://www.limesurvey.org/
|
|
7
|
+
|
|
8
|
+
LimeSurvey is a PHP::Yi based web application that allows users to create, manage, and review surveys.
|
|
4
9
|
|
|
5
10
|
## Installation
|
|
6
11
|
|
|
@@ -18,11 +23,14 @@ Or install it yourself as:
|
|
|
18
23
|
|
|
19
24
|
## Usage
|
|
20
25
|
|
|
21
|
-
|
|
26
|
+
Add to your environment development.rb and production.rb if you have separate servers. Otherwise, you can add
|
|
27
|
+
to your environment.rb. Make sure that you have the JSON RPC enabled on the LimeSurvey site.
|
|
28
|
+
|
|
22
29
|
LIMESURVEY_USERNAME = "username"
|
|
23
30
|
LIMESURVEY_PASSWORD = "password"
|
|
24
31
|
|
|
32
|
+
Change the url and protocol to match your settings.
|
|
25
33
|
|
|
26
34
|
LIMESURVEY_API_URL = "http://url/index.php?r=admin/remotecontrol"
|
|
27
35
|
LIMESURVEY_SSO_URL = "http://url/index.php?r=admin/authentication/sa/login"
|
|
28
|
-
LIMESURVEY_SUR_URL = "http://url/index.php?r=survey/index/sid"
|
|
36
|
+
LIMESURVEY_SUR_URL = "http://url/index.php?r=survey/index/sid"
|
data/lib/limesurvey.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require "limesurvey/version"
|
|
2
|
-
|
|
2
|
+
require "net/http"
|
|
3
3
|
module Limesurvey
|
|
4
4
|
class API
|
|
5
5
|
def initialize(service_url)
|
|
@@ -24,7 +24,11 @@ module Limesurvey
|
|
|
24
24
|
|
|
25
25
|
class JSONRPCError < RuntimeError; end
|
|
26
26
|
|
|
27
|
-
def get_session_key
|
|
28
|
-
|
|
27
|
+
def get_session_key
|
|
28
|
+
Limesurvey::API.new
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def release_session_key(session_key)
|
|
32
|
+
|
|
29
33
|
end
|
|
30
34
|
end
|
|
File without changes
|
data/lib/limesurvey/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: limesurvey
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kobaltz
|
|
@@ -51,6 +51,7 @@ files:
|
|
|
51
51
|
- README.md
|
|
52
52
|
- Rakefile
|
|
53
53
|
- lib/limesurvey.rb
|
|
54
|
+
- lib/limesurvey/init.rb
|
|
54
55
|
- lib/limesurvey/version.rb
|
|
55
56
|
- limesurvey.gemspec
|
|
56
57
|
homepage: ''
|