woopy 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +2 -2
- data/lib/woopy/client.rb +2 -2
- data/lib/woopy/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/woopy/account_spec.rb +5 -5
- data/spec/woopy/client_spec.rb +1 -1
- data/woopy.gemspec +1 -0
- metadata +22 -11
data/.travis.yml
CHANGED
data/lib/woopy/client.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Woopy
|
2
|
-
|
2
|
+
|
3
3
|
DEFAULT_SITE_BASE = "https://api.woople.com/services/v1/"
|
4
4
|
|
5
5
|
class Client
|
@@ -10,7 +10,7 @@ module Woopy
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def verify
|
13
|
-
Resource.connection.get(Resource.prefix + 'verify', Resource.headers).code ==
|
13
|
+
Resource.connection.get(Resource.prefix + 'verify', Resource.headers).code == 200
|
14
14
|
end
|
15
15
|
|
16
16
|
end
|
data/lib/woopy/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/woopy/account_spec.rb
CHANGED
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Woopy::Account do
|
4
4
|
|
5
|
-
before do
|
5
|
+
before do
|
6
6
|
@token = 'foo'
|
7
7
|
Woopy(token: @token)
|
8
8
|
ActiveResource::HttpMock.respond_to do |mock|
|
@@ -15,9 +15,9 @@ describe Woopy::Account do
|
|
15
15
|
|
16
16
|
describe "#save" do
|
17
17
|
|
18
|
-
context "valid name and
|
18
|
+
context "valid name, subdomain, and packages" do
|
19
19
|
before do
|
20
|
-
@account = Woopy::Account.new(account_attributes)
|
20
|
+
@account = Woopy::Account.new(account_attributes)
|
21
21
|
end
|
22
22
|
it 'saves correctly' do
|
23
23
|
@account.save.should be_true
|
@@ -29,10 +29,10 @@ describe Woopy::Account do
|
|
29
29
|
context "with an existing user" do
|
30
30
|
|
31
31
|
before do
|
32
|
-
@account = Woopy::Account.create(account_attributes)
|
32
|
+
@account = Woopy::Account.create(account_attributes)
|
33
33
|
@user = Woopy::User.create(user_attributes)
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
36
|
describe "#employ" do
|
37
37
|
subject { @account.employ(@user) }
|
38
38
|
|
data/spec/woopy/client_spec.rb
CHANGED
data/woopy.gemspec
CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
21
|
# specify any dependencies here; for example:
|
22
|
+
s.add_development_dependency "rake"
|
22
23
|
s.add_development_dependency "rspec", "~> 2.8"
|
23
24
|
s.add_development_dependency "json"
|
24
25
|
s.add_development_dependency "gem-release"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: woopy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
12
|
+
date: 2012-02-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: &70241783723400 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70241783723400
|
14
25
|
- !ruby/object:Gem::Dependency
|
15
26
|
name: rspec
|
16
|
-
requirement: &
|
27
|
+
requirement: &70241783722880 !ruby/object:Gem::Requirement
|
17
28
|
none: false
|
18
29
|
requirements:
|
19
30
|
- - ~>
|
@@ -21,10 +32,10 @@ dependencies:
|
|
21
32
|
version: '2.8'
|
22
33
|
type: :development
|
23
34
|
prerelease: false
|
24
|
-
version_requirements: *
|
35
|
+
version_requirements: *70241783722880
|
25
36
|
- !ruby/object:Gem::Dependency
|
26
37
|
name: json
|
27
|
-
requirement: &
|
38
|
+
requirement: &70241783722440 !ruby/object:Gem::Requirement
|
28
39
|
none: false
|
29
40
|
requirements:
|
30
41
|
- - ! '>='
|
@@ -32,10 +43,10 @@ dependencies:
|
|
32
43
|
version: '0'
|
33
44
|
type: :development
|
34
45
|
prerelease: false
|
35
|
-
version_requirements: *
|
46
|
+
version_requirements: *70241783722440
|
36
47
|
- !ruby/object:Gem::Dependency
|
37
48
|
name: gem-release
|
38
|
-
requirement: &
|
49
|
+
requirement: &70241783721940 !ruby/object:Gem::Requirement
|
39
50
|
none: false
|
40
51
|
requirements:
|
41
52
|
- - ! '>='
|
@@ -43,10 +54,10 @@ dependencies:
|
|
43
54
|
version: '0'
|
44
55
|
type: :development
|
45
56
|
prerelease: false
|
46
|
-
version_requirements: *
|
57
|
+
version_requirements: *70241783721940
|
47
58
|
- !ruby/object:Gem::Dependency
|
48
59
|
name: activeresource
|
49
|
-
requirement: &
|
60
|
+
requirement: &70241783721420 !ruby/object:Gem::Requirement
|
50
61
|
none: false
|
51
62
|
requirements:
|
52
63
|
- - ~>
|
@@ -54,7 +65,7 @@ dependencies:
|
|
54
65
|
version: '3.1'
|
55
66
|
type: :runtime
|
56
67
|
prerelease: false
|
57
|
-
version_requirements: *
|
68
|
+
version_requirements: *70241783721420
|
58
69
|
description: Wraps the Woople API as ActiveResources
|
59
70
|
email:
|
60
71
|
- developers@bigbangtechnology.com
|
@@ -101,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
112
|
version: '0'
|
102
113
|
requirements: []
|
103
114
|
rubyforge_project: woopy
|
104
|
-
rubygems_version: 1.8.
|
115
|
+
rubygems_version: 1.8.15
|
105
116
|
signing_key:
|
106
117
|
specification_version: 3
|
107
118
|
summary: Woople API Wrapper
|