insightly 0.2.1 → 0.2.2

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.
@@ -10,7 +10,7 @@ module Insightly
10
10
  "FIELD_TYPE",
11
11
  "FIELD_FOR"
12
12
  def initialize(id = nil)
13
- @data = {"CUSTOM_FIELD_OPTIONS" = []}
13
+ @data = {"CUSTOM_FIELD_OPTIONS" => []}
14
14
  load(id) if id
15
15
  end
16
16
  def remote_id
@@ -18,4 +18,4 @@ module Insightly
18
18
  end
19
19
 
20
20
  end
21
- end
21
+ end
@@ -4,7 +4,7 @@ module Insightly
4
4
  module Version
5
5
  Major = 0
6
6
  Minor = 2
7
- Tiny = 1
7
+ Tiny = 2
8
8
  String = "#{Major}.#{Minor}.#{Tiny}"
9
9
  end
10
10
  end
@@ -1,6 +1,6 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
2
2
 
3
- describe Insightly::OpportunityStateReason do
3
+ describe Insightly::CustomField do
4
4
  before(:each) do
5
5
  Insightly::Configuration.api_key = INSIGHTLY_API_KEY
6
6
  Insightly::Configuration.logger = Insightly::Configuration._debug_logger
@@ -37,7 +37,7 @@ describe Insightly::OpportunityStateReason do
37
37
 
38
38
  end
39
39
  it "should get the custom_field id" do
40
- @custom_field.custom_field_id.should == 1
40
+ @custom_field.custom_field_id.should == "OPPORTUNITY_FIELD_1"
41
41
  end
42
42
  it "should have a remote id" do
43
43
  @custom_field.remote_id.should == @custom_field.custom_field_id
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: insightly
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dirk Elmendorf