pipeline_dealers 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,5 +4,9 @@ require_relative "config"
4
4
  client = PipelineDealers::Client.new(api_key: YOUR_API_KEY)
5
5
  company = client.companies.create(name: "Awesome Company")
6
6
  company.name = "blah"
7
+
7
8
  company.save
9
+ puts "Created company #{company.name}, with id #{company.id}"
10
+
8
11
  company.destroy
12
+ puts "And destroyed it"
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative "config"
3
+ require "irb"
4
+
5
+ # Hack to force context
6
+ module IRB
7
+ def self.start_session(binding)
8
+ unless @__initialized
9
+ args = ARGV
10
+ ARGV.replace(ARGV.dup)
11
+ IRB.setup(nil)
12
+ ARGV.replace(args)
13
+ @__initialized = true
14
+ end
15
+ workspace = WorkSpace.new(binding)
16
+ irb = Irb.new(workspace)
17
+ @CONF[:IRB_RC].call(irb.context) if @CONF[:IRB_RC]
18
+ @CONF[:MAIN_CONTEXT] = irb.context
19
+
20
+ catch(:IRB_EXIT) do
21
+ irb.eval_input
22
+ end
23
+ end
24
+ end
25
+
26
+
27
+ module Context
28
+ extend self
29
+ def client
30
+ @client ||= PipelineDealers::Client.new(api_key: YOUR_API_KEY)
31
+ end
32
+ end
33
+
34
+
35
+ puts "You can access the client with 'client'."
36
+ IRB.start_session(Context)
@@ -31,6 +31,7 @@ module PipelineDealers
31
31
  :image_thumb_url,
32
32
  :updated_at,
33
33
  :total_pipeline,
34
+ :possible_notify_user_ids,
34
35
  :state,
35
36
  read_only: true
36
37
 
@@ -6,6 +6,7 @@ module PipelineDealers
6
6
 
7
7
  attrs :deal_id,
8
8
  :person_id,
9
+ :user_id,
9
10
  :company_id,
10
11
  :title,
11
12
  :created_by_user_id,
@@ -20,6 +21,11 @@ module PipelineDealers
20
21
  :deal,
21
22
  :person,
22
23
  :company,
24
+ :user,
25
+ :user,
26
+ :comments,
27
+ :possible_notify_user_ids,
28
+ :notify_user_ids,
23
29
  read_only: true
24
30
 
25
31
  alias_method :person_cache, :person
@@ -57,6 +57,7 @@ module PipelineDealers
57
57
  :company,
58
58
  :viewed_at,
59
59
  :total_pipeline,
60
+ :possible_notify_user_ids,
60
61
  read_only: true
61
62
  end
62
63
  end
@@ -1,3 +1,3 @@
1
1
  module PipelineDealers
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipeline_dealers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-18 00:00:00.000000000 Z
12
+ date: 2013-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -208,6 +208,7 @@ files:
208
208
  - examples/company_notes.rb
209
209
  - examples/company_people.rb
210
210
  - examples/config.rb
211
+ - examples/console.rb
211
212
  - examples/find_person.rb
212
213
  - examples/howto_rspec/README.md
213
214
  - examples/howto_rspec/notes_spec.rb