close 0.1.2 → 0.2.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: ed73fa2146fd8957db21a0496e0ba480122cd352f6eca97661286593ec4ad374
4
+ data.tar.gz: 70a0800988e93bf3ce2e6cb26408d13a9841692c25015691c36edb5d09add831
5
5
  SHA512:
6
- metadata.gz: 84e59c4ef43627a67343d39f93ef6cf888aa5c038dfa54ee65d23ee3d38d54422788ce44ea6b8b9410e57a0a4bcb7527671d3ef20a5723232895127c177b8509
7
- data.tar.gz: 776e2d4bedb0051203e458e200ee6e45b016904dbb3d1b6cdaf180988bd3c482ff43408eb981c678389cc1db1cdefd8f2d9dd1cb25a16f8e724a64484bd06a34
6
+ metadata.gz: 3803b9d1d73b2f29d0ef73cdc2500b358e09f552aee4fc2bbba1da45362636ac46cfaa8bc2370117878d85dfd3cf1e90234cf47245848a05014107d93c843934
7
+ data.tar.gz: 82b88a593e72097347966567530e7b648dac5875b360e5347e251189bba8af1901e182b1db47340869e2848b897393057973b8e22853d6bbd9d09a4f36a5431d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.0](https://www.github.com/joynerd/close/compare/v0.1.5...v0.2.0) (2022-10-20)
4
+
5
+
6
+ ### Features
7
+
8
+ * Added auto deploy on pr ([3172ac5](https://www.github.com/joynerd/close/commit/3172ac52f2de593b97e1e6283294761a1e0d0bec))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * removed ci from GH ([1c6c56b](https://www.github.com/joynerd/close/commit/1c6c56b7e1f96cfaaa313b1cb8f080144d1a6618))
14
+
15
+ ### [0.1.5](https://www.github.com/joynerd/close/compare/v0.1.4...v0.1.5) (2022-10-20)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * updated action to use ruby@v1 ([aefcafb](https://www.github.com/joynerd/close/commit/aefcafb020d48ffcdfd1317189660c5562206c72))
21
+
22
+ ### [0.1.4](https://www.github.com/joynerd/close/compare/v0.1.3...v0.1.4) (2022-10-20)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * added support for actions ([b61d1d2](https://www.github.com/joynerd/close/commit/b61d1d2b31db786ef5ce9e18983226a47269643c))
28
+
29
+ ### [0.1.3](https://www.github.com/joynerd/close/compare/v0.1.2...v0.1.3) (2022-10-20)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * use master in workflows ([c2f0652](https://www.github.com/joynerd/close/commit/c2f0652310f69c2749763ba62500f201f99d1016))
35
+
3
36
  ## [0.1.0] - 2022-10-04
4
37
 
5
38
  - Initial release
data/Gemfile CHANGED
@@ -16,3 +16,5 @@ gem "faraday"
16
16
  gem "webmock"
17
17
 
18
18
  gem "sinatra"
19
+
20
+ gem 'simplecov', 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.2.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,7 @@ DEPENDENCIES
83
91
  rake (~> 13.0)
84
92
  rspec (~> 3.0)
85
93
  rubocop (~> 1.21)
94
+ simplecov
86
95
  sinatra
87
96
  webmock
88
97
 
data/README.md CHANGED
@@ -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
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.2.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.2.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
@@ -78,7 +76,7 @@ metadata:
78
76
  homepage_uri: https://github.com/joynerd/close
79
77
  source_code_uri: https://github.com/joynerd/close.git
80
78
  changelog_uri: https://github.com/joynerd/changelog.md
81
- post_install_message:
79
+ post_install_message:
82
80
  rdoc_options: []
83
81
  require_paths:
84
82
  - lib
@@ -93,8 +91,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
91
  - !ruby/object:Gem::Version
94
92
  version: '0'
95
93
  requirements: []
96
- rubygems_version: 3.0.9
97
- signing_key:
94
+ rubygems_version: 3.2.3
95
+ signing_key:
98
96
  specification_version: 4
99
97
  summary: A ruby wrapper for the close.com API
100
98
  test_files: []
data/close-0.1.0.gem DELETED
Binary file
data/close-0.1.1.gem DELETED
Binary file