woopy 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,8 +4,8 @@ rvm:
4
4
  - 1.9.2
5
5
  - 1.9.3
6
6
  # - jruby-18mode
7
- - jruby-19mode # JRuby in 1.9 mode
7
+ #- jruby-19mode # JRuby in 1.9 mode
8
8
  # - rbx-18mode
9
9
  - ruby-head
10
- - ree
10
+ #- ree
11
11
 
@@ -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 == '200'
13
+ Resource.connection.get(Resource.prefix + 'verify', Resource.headers).code == 200
14
14
  end
15
15
 
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module Woopy
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
@@ -21,7 +21,7 @@ def account_response
21
21
  end
22
22
 
23
23
  def account_attributes
24
- { name: "Account", subdomain: "subdomain1" }
24
+ { name: "Account", subdomain: "subdomain1", packages: ["package1", "package2"] }
25
25
  end
26
26
 
27
27
  def user_response
@@ -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 subdomain" do
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
 
@@ -5,7 +5,7 @@ describe Woopy::Client do
5
5
 
6
6
  describe '#new' do
7
7
  before {Woopy(token: @token)}
8
-
8
+
9
9
  it "sets the header token" do
10
10
  Woopy::Resource.headers['X-WoopleToken'].should eq(@token)
11
11
  end
@@ -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.6
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-02 00:00:00.000000000 Z
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: &70267775901220 !ruby/object:Gem::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: *70267775901220
35
+ version_requirements: *70241783722880
25
36
  - !ruby/object:Gem::Dependency
26
37
  name: json
27
- requirement: &70267775900620 !ruby/object:Gem::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: *70267775900620
46
+ version_requirements: *70241783722440
36
47
  - !ruby/object:Gem::Dependency
37
48
  name: gem-release
38
- requirement: &70267775899920 !ruby/object:Gem::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: *70267775899920
57
+ version_requirements: *70241783721940
47
58
  - !ruby/object:Gem::Dependency
48
59
  name: activeresource
49
- requirement: &70267775899320 !ruby/object:Gem::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: *70267775899320
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.10
115
+ rubygems_version: 1.8.15
105
116
  signing_key:
106
117
  specification_version: 3
107
118
  summary: Woople API Wrapper