limesurvey 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8ea368be9d29701cb3ace80ed8d657358411c84
4
- data.tar.gz: 85f0ba053a3e0972c335366a86293ecccfb56472
3
+ metadata.gz: 812145d7d633281617846793695f4543dabe786c
4
+ data.tar.gz: 1b2e4c3bd9751527d067d3f34dafa5688802acaa
5
5
  SHA512:
6
- metadata.gz: 7821e2c7f8892194eb7c655bb4ac61ccbabc86478cce9f4870e013221a5e0f98634a68802499c4eb2903c67a849ff5089fd669969c0619e649c0933603e50f91
7
- data.tar.gz: 0fc0f73ac821df69703e6f4ed75b3009ac1fc09d430b9d6967a957c3bc2f86a91c68edafa6db64e87b4764742faf7097cb33925d8d1a2731d48559136a242b25
6
+ metadata.gz: 36fdd7e88c18466d1fde5d717e60edf180306994035a3ee51ed0feabf02bbe4dd17663d1d6562fac87ede30b378df82c1fabcc1555152e6dc33c86ea4791369d
7
+ data.tar.gz: 405df88ff6b3f0f23b0ddd6c1b731c847c187e5e543d71b9e14870612817edc9c3ebe892b1f4ab7061af1ad5582c9502e9974a08a05d97fa22cb313b37a1248f
data/README.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Limesurvey
2
2
 
3
- TODO: Write a gem description
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
- ### Add to your environment development and production if you have separate servers
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(LIMESURVEY_USERNAME,LIMESURVEY_PASSWORD)
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
@@ -1,3 +1,3 @@
1
1
  module Limesurvey
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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: ''