comufy 0.0.2.pre2 → 0.0.3pre1
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.
- data/README.md +2 -2
- data/example/comufy_example.rb +4 -6
- data/lib/comufy/config.rb +18 -31
- data/lib/comufy/constants.rb +15 -0
- data/lib/comufy/version.rb +2 -2
- data/lib/comufy.rb +776 -11
- data/spec/comufy_spec.rb +18 -8
- data/yaml/config.yaml +2 -0
- metadata +20 -9
- data/lib/comufy/connector.rb +0 -774
data/spec/comufy_spec.rb
CHANGED
@@ -2,17 +2,27 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
describe Comufy do
|
4
4
|
|
5
|
-
|
6
|
-
Comufy.
|
5
|
+
before :each do
|
6
|
+
@comufy = Comufy.new user: 'user', password: 'password'
|
7
7
|
end
|
8
8
|
|
9
|
-
it "should
|
10
|
-
|
11
|
-
object.should == Comufy.connector
|
9
|
+
it "should have configured the user" do
|
10
|
+
@comufy::config.user.should == 'user'
|
12
11
|
end
|
13
12
|
|
14
|
-
it "should
|
15
|
-
|
16
|
-
|
13
|
+
it "should have configured the password" do
|
14
|
+
@comufy::config.password.should == 'password'
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should have configured the default url" do
|
18
|
+
@comufy::config.base_api_url.should == 'http://www.sociableapi.com/xcoreweb/client'
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should have not configured the access token" do
|
22
|
+
@comufy::config.access_token.should == nil
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should have not configured the expiry time" do
|
26
|
+
@comufy::config.expiry_time.should == nil
|
17
27
|
end
|
18
28
|
end
|
data/yaml/config.yaml
ADDED
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comufy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.3pre1
|
5
|
+
prerelease: 5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- plcstevens
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '2.5'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.5'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: rdoc
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,7 +37,12 @@ dependencies:
|
|
32
37
|
version: '0'
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
description: This library can be used with Heroku
|
37
47
|
email:
|
38
48
|
- philip@tauri-tec.com
|
@@ -48,10 +58,11 @@ files:
|
|
48
58
|
- example/comufy_example.rb
|
49
59
|
- lib/comufy.rb
|
50
60
|
- lib/comufy/config.rb
|
51
|
-
- lib/comufy/
|
61
|
+
- lib/comufy/constants.rb
|
52
62
|
- lib/comufy/version.rb
|
53
63
|
- spec/comufy_spec.rb
|
54
64
|
- spec/spec_helper.rb
|
65
|
+
- yaml/config.yaml
|
55
66
|
homepage: https://github.com/plcstevens/comufyruby
|
56
67
|
licenses: []
|
57
68
|
post_install_message:
|
@@ -72,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
83
|
version: 1.3.1
|
73
84
|
requirements: []
|
74
85
|
rubyforge_project:
|
75
|
-
rubygems_version: 1.8.
|
86
|
+
rubygems_version: 1.8.24
|
76
87
|
signing_key:
|
77
88
|
specification_version: 3
|
78
89
|
summary: This library allows customers to interact with the Comufy backend and perform
|