uservoice-ruby 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -10,9 +10,15 @@ Installation
10
10
 
11
11
  Place this in your Gemfile:
12
12
  ```ruby
13
- gem 'uservoice', :git => 'https://github.com/uservoice/uservoice-ruby'
13
+ gem 'uservoice-ruby'
14
14
  ```
15
- Run the bundle command and then try one of the examples below.
15
+ and run the bundle command or type this in the command line:
16
+
17
+ ```
18
+ gem install uservoice-ruby
19
+ ```
20
+
21
+ Then try one of the examples below.
16
22
 
17
23
  Examples
18
24
  ========
@@ -32,7 +38,7 @@ SSO-token can be used to create sessions for SSO users. They are capable of sync
32
38
  Generating the SSO token from SSO key and given uservoice subdomain can be done by calling UserVoice.generate\_sso\_token method like this:
33
39
 
34
40
  ```ruby
35
- require 'uservoice'
41
+ require 'uservoice-ruby'
36
42
  sso_token = UserVoice.generate_sso_token(USERVOICE_SUBDOMAIN, SSO_KEY, {
37
43
  :guid => 1001,
38
44
  :display_name => "John Doe",
@@ -51,7 +57,7 @@ API_KEY and API_SECRET from an API client which you can create in Admin Console
51
57
  -> Settings -> Channels -> API.
52
58
 
53
59
  ```ruby
54
- require 'uservoice'
60
+ require 'uservoice-ruby'
55
61
  begin
56
62
  uservoice_client = UserVoice::Client.new(USERVOICE_SUBDOMAIN, API_KEY, API_SECRET)
57
63
 
@@ -97,7 +103,7 @@ calls. Just pass your user an authorize link to click, so that user may grant
97
103
  your site permission to access his or her data in UserVoice.
98
104
 
99
105
  ```ruby
100
- require 'uservoice'
106
+ require 'uservoice-ruby'
101
107
  CALLBACK_URL = 'http://localhost:3000/' # your site
102
108
 
103
109
  uservoice_client = UserVoice::Client.new(USERVOICE_SUBDOMAIN, API_KEY, API_SECRET, :callback => CALLBACK_URL)
@@ -1,3 +1,3 @@
1
1
  module Uservoice
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'uservoice'
1
+ require 'uservoice-ruby'
2
2
  require 'yaml'
3
3
 
4
4
  def config
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uservoice-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-09-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70340927735480 !ruby/object:Gem::Requirement
16
+ requirement: &70164033138200 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70340927735480
24
+ version_requirements: *70164033138200
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: ezcrypto
27
- requirement: &70340927734840 !ruby/object:Gem::Requirement
27
+ requirement: &70164033137660 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70340927734840
35
+ version_requirements: *70164033137660
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: json
38
- requirement: &70340927732680 !ruby/object:Gem::Requirement
38
+ requirement: &70164033135360 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70340927732680
46
+ version_requirements: *70164033135360
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: oauth
49
- requirement: &70340927731780 !ruby/object:Gem::Requirement
49
+ requirement: &70164033134420 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70340927731780
57
+ version_requirements: *70164033134420
58
58
  description: The gem provides Ruby-bindings to UserVoice API and helps generating
59
59
  Single-Sign-On tokens.
60
60
  email: