close 0.1.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ae57ff51e41efeb5bcf5464bca8b5e23a6388806e71fc73378d389be7d652a1
4
- data.tar.gz: 61eec10200545f071801b978090b9c43e8608e2dc3230207ecbe07bb903106ce
3
+ metadata.gz: 9b96218de9d48b51d11b6da08cd20976747d77bcc2e0d9e48ef1bfa875087db5
4
+ data.tar.gz: ab0ae2ae9463f006452b0872b8147d778dd7538469ff65e42a5295b2b62c00dd
5
5
  SHA512:
6
- metadata.gz: 84e59c4ef43627a67343d39f93ef6cf888aa5c038dfa54ee65d23ee3d38d54422788ce44ea6b8b9410e57a0a4bcb7527671d3ef20a5723232895127c177b8509
7
- data.tar.gz: 776e2d4bedb0051203e458e200ee6e45b016904dbb3d1b6cdaf180988bd3c482ff43408eb981c678389cc1db1cdefd8f2d9dd1cb25a16f8e724a64484bd06a34
6
+ metadata.gz: 503f1df9634a4a348dd4d7f96b447499ea22961a2e3870c5ad46bf7e8912a6992d15ee144bbda8e9f7b5c40cf1cf4c1f9226f2c34ef2507734fa6d2682c48866
7
+ data.tar.gz: 1ca33c0d03a6cbf89ef0b4a050553cdacf52a585a6653ef6375af0e0b4cb44086332f04eb16af411dff6d7f098fcc945df42d45c2a4b7086df09fe25a3bff9dc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,45 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.0](https://www.github.com/joynerd/close/compare/v0.2.0...v0.3.0) (2022-10-20)
4
+
5
+
6
+ ### Features
7
+
8
+ * Added support for Activity endpoint ([32d01fc](https://www.github.com/joynerd/close/commit/32d01fc2a65e7ff30605e855cbea2693d2410848))
9
+
10
+ ## [0.2.0](https://www.github.com/joynerd/close/compare/v0.1.5...v0.2.0) (2022-10-20)
11
+
12
+
13
+ ### Features
14
+
15
+ * Added auto deploy on pr ([3172ac5](https://www.github.com/joynerd/close/commit/3172ac52f2de593b97e1e6283294761a1e0d0bec))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * removed ci from GH ([1c6c56b](https://www.github.com/joynerd/close/commit/1c6c56b7e1f96cfaaa313b1cb8f080144d1a6618))
21
+
22
+ ### [0.1.5](https://www.github.com/joynerd/close/compare/v0.1.4...v0.1.5) (2022-10-20)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * updated action to use ruby@v1 ([aefcafb](https://www.github.com/joynerd/close/commit/aefcafb020d48ffcdfd1317189660c5562206c72))
28
+
29
+ ### [0.1.4](https://www.github.com/joynerd/close/compare/v0.1.3...v0.1.4) (2022-10-20)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * added support for actions ([b61d1d2](https://www.github.com/joynerd/close/commit/b61d1d2b31db786ef5ce9e18983226a47269643c))
35
+
36
+ ### [0.1.3](https://www.github.com/joynerd/close/compare/v0.1.2...v0.1.3) (2022-10-20)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * use master in workflows ([c2f0652](https://www.github.com/joynerd/close/commit/c2f0652310f69c2749763ba62500f201f99d1016))
42
+
3
43
  ## [0.1.0] - 2022-10-04
4
44
 
5
45
  - Initial release
data/Gemfile CHANGED
@@ -16,3 +16,7 @@ gem "faraday"
16
16
  gem "webmock"
17
17
 
18
18
  gem "sinatra"
19
+
20
+ gem 'simplecov', require: false, group: :test
21
+
22
+ gem 'simplecov_json_formatter', require: false, group: :test
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- close (0.1.1)
5
- faraday
4
+ close (0.3.0)
5
+ faraday (>= 2.0.0)
6
6
  ostruct
7
7
 
8
8
  GEM
@@ -14,6 +14,7 @@ GEM
14
14
  crack (0.4.5)
15
15
  rexml
16
16
  diff-lcs (1.5.0)
17
+ docile (1.4.0)
17
18
  faraday (2.6.0)
18
19
  faraday-net_http (>= 2.0, < 3.1)
19
20
  ruby2_keywords (>= 0.0.4)
@@ -61,6 +62,12 @@ GEM
61
62
  parser (>= 3.1.1.0)
62
63
  ruby-progressbar (1.11.0)
63
64
  ruby2_keywords (0.0.5)
65
+ simplecov (0.21.2)
66
+ docile (~> 1.1)
67
+ simplecov-html (~> 0.11)
68
+ simplecov_json_formatter (~> 0.1)
69
+ simplecov-html (0.12.3)
70
+ simplecov_json_formatter (0.1.4)
64
71
  sinatra (3.0.2)
65
72
  mustermann (~> 3.0)
66
73
  rack (~> 2.2, >= 2.2.4)
@@ -76,6 +83,7 @@ GEM
76
83
  PLATFORMS
77
84
  arm64-darwin-21
78
85
  ruby
86
+ x86_64-linux
79
87
 
80
88
  DEPENDENCIES
81
89
  close!
@@ -83,6 +91,8 @@ DEPENDENCIES
83
91
  rake (~> 13.0)
84
92
  rspec (~> 3.0)
85
93
  rubocop (~> 1.21)
94
+ simplecov
95
+ simplecov_json_formatter
86
96
  sinatra
87
97
  webmock
88
98
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Close
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/close.svg)](https://badge.fury.io/rb/close) [![Test Coverage](https://api.codeclimate.com/v1/badges/d83380e81bfb459ea027/test_coverage)](https://codeclimate.com/github/joynerd/close/test_coverage)
3
+ [![Gem Version](https://badge.fury.io/rb/close.svg)](https://badge.fury.io/rb/close) ![Tests](https://github.com/joynerd/close/actions/workflows/spec.yml/badge.svg) [![Test Coverage](https://api.codeclimate.com/v1/badges/d83380e81bfb459ea027/test_coverage)](https://codeclimate.com/github/joynerd/close/test_coverage)
4
4
 
5
5
  This a ruby gem that provides a robust way to interact with the Close
6
6
  CRM API.
@@ -140,6 +140,14 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
140
140
 
141
141
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
142
142
 
143
+ ## Testing
144
+
145
+ Tests are setup using RSpec. They do require a live API key on first run to generate a VCR cassette. After that, the cassette will be used for all tests.
146
+
147
+ ```bash
148
+ CLOSE_API_KEY=YOUR_API_KEY bundle exec rspec
149
+ ```
150
+
143
151
  ## Contributing
144
152
 
145
153
  Bug reports and pull requests are welcome on GitHub at https://github.com/JoyNerd/close. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/JoyNerd/close/blob/master/CODE_OF_CONDUCT.md).
data/lib/close/filter.rb CHANGED
@@ -81,7 +81,8 @@ module Close
81
81
  # @raise [Close::QueryNotFoundError] if the file does not exist.
82
82
  def self.load_query_from_file(name)
83
83
  begin
84
- file = File.read("lib/close/data/filters/#{name}.json")
84
+ file = File.read(File.join(File.dirname(__FILE__), "data/filters/#{name}.json"))
85
+ #file = File.read(File.expand_path("lib/close/data/filters/#{name}.json", __dir__))
85
86
  rescue Errno::ENOENT
86
87
  raise Close::QueryNotFoundError.new("Query #{name} not found.")
87
88
  end
@@ -0,0 +1,9 @@
1
+ module Close
2
+ class Activity < APIResource
3
+
4
+ def self.resource_url
5
+ 'api/v1/activity/'
6
+ end
7
+
8
+ end
9
+ end
@@ -1,3 +1,4 @@
1
+ require_relative "resource/activity"
1
2
  require_relative "resource/lead"
2
3
  require_relative "resource/contact"
3
4
  require_relative "resource/custom_activity_type"
data/lib/close/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Close
4
- VERSION = "0.1.2"
4
+ VERSION = "0.3.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: close
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - JoyNerd LLC
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-19 00:00:00.000000000 Z
11
+ date: 2022-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ostruct
@@ -54,8 +54,6 @@ files:
54
54
  - LICENSE.txt
55
55
  - README.md
56
56
  - Rakefile
57
- - close-0.1.0.gem
58
- - close-0.1.1.gem
59
57
  - lib/close.rb
60
58
  - lib/close/api_operations.rb
61
59
  - lib/close/api_resource.rb
@@ -63,6 +61,7 @@ files:
63
61
  - lib/close/data/filters/find_lead_by_contact_email.json
64
62
  - lib/close/errors.rb
65
63
  - lib/close/filter.rb
64
+ - lib/close/resource/activity.rb
66
65
  - lib/close/resource/contact.rb
67
66
  - lib/close/resource/custom_activity_type.rb
68
67
  - lib/close/resource/lead.rb
@@ -78,7 +77,7 @@ metadata:
78
77
  homepage_uri: https://github.com/joynerd/close
79
78
  source_code_uri: https://github.com/joynerd/close.git
80
79
  changelog_uri: https://github.com/joynerd/changelog.md
81
- post_install_message:
80
+ post_install_message:
82
81
  rdoc_options: []
83
82
  require_paths:
84
83
  - lib
@@ -93,8 +92,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
92
  - !ruby/object:Gem::Version
94
93
  version: '0'
95
94
  requirements: []
96
- rubygems_version: 3.0.9
97
- signing_key:
95
+ rubygems_version: 3.2.3
96
+ signing_key:
98
97
  specification_version: 4
99
98
  summary: A ruby wrapper for the close.com API
100
99
  test_files: []
data/close-0.1.0.gem DELETED
Binary file
data/close-0.1.1.gem DELETED
Binary file