mergent 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 991390648edd146ed10b823a1a47c2c7af7b480cdbf89600018f74d1430f878b
4
- data.tar.gz: cc42af168a1dc2ea25622a24b200cee773cb8ebe54197215bf3e5bbe30b4fff1
3
+ metadata.gz: 6fa436289497477ab6333360f5d93cf451a31a30de5f935b0837bcf2766028af
4
+ data.tar.gz: 2e9563a47585a5c1b950c8430fe16835418087cca8959d624f4065c482194c47
5
5
  SHA512:
6
- metadata.gz: c12851c47f643729e3f8f2d1a90266bbf71a636ca76c2b51f633886efe62c71f9c0492968842230846f8e78d59877233a17f5c9fad8e461590a9528ab05c4eaa
7
- data.tar.gz: 91179f7fbb9a5cfda2e28e1d87641d98e28b17dac8df398a32a89d18ce354f164adb5848120459479db3157e0d83d0e23340eeebe87d4f5dd6700ec41ffee632
6
+ metadata.gz: 7485effdaa452ede27002ee7cab32e4962e826b6cadf17781dfed2ae60e09c34cfad6bc5782db829f5c934297096f2f1cc54e2b10419d9e23bc94bddc1205bd7
7
+ data.tar.gz: 4ad86522e95f4dfbb934a5e66b80842042df15943371db92a6ff3ff8fc01361e64b25e7c677c28ef61f01102095e8716b4b17f95bda6d3b196697fe317e3d7b2
data/.rubocop.yml CHANGED
@@ -22,9 +22,6 @@ RSpec/MultipleExpectations:
22
22
  Style/Documentation:
23
23
  Enabled: false
24
24
 
25
- Style/FrozenStringLiteralComment:
26
- Enabled: false
27
-
28
25
  Style/StringLiterals:
29
26
  EnforcedStyle: double_quotes
30
27
 
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-3.0.2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.1] - 2021-12-21
4
+
5
+ - Define explicit methods in `Mergent::Task`, to allow for use of verifying doubles when testing against them.
6
+ - Update summary and description for RubyGems.org
7
+
3
8
  ## [0.1.0] - 2021-11-21
4
9
 
5
10
  - Initial release
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "https://rubygems.org"
2
4
 
3
5
  gemspec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mergent (0.1.0)
4
+ mergent (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -34,7 +34,7 @@ GEM
34
34
  diff-lcs (>= 1.2.0, < 2.0)
35
35
  rspec-support (~> 3.10.0)
36
36
  rspec-support (3.10.2)
37
- rubocop (1.22.3)
37
+ rubocop (1.23.0)
38
38
  parallel (~> 1.10)
39
39
  parser (>= 3.0.0.0)
40
40
  rainbow (>= 2.2.2, < 4.0)
@@ -43,14 +43,14 @@ GEM
43
43
  rubocop-ast (>= 1.12.0, < 2.0)
44
44
  ruby-progressbar (~> 1.7)
45
45
  unicode-display_width (>= 1.4.0, < 3.0)
46
- rubocop-ast (1.12.0)
46
+ rubocop-ast (1.13.0)
47
47
  parser (>= 3.0.1.1)
48
48
  rubocop-performance (1.12.0)
49
49
  rubocop (>= 1.7.0, < 2.0)
50
50
  rubocop-ast (>= 0.4.0)
51
51
  rubocop-rake (0.6.0)
52
52
  rubocop (~> 1.0)
53
- rubocop-rspec (2.5.0)
53
+ rubocop-rspec (2.6.0)
54
54
  rubocop (~> 1.19)
55
55
  ruby-progressbar (1.11.0)
56
56
  unicode-display_width (2.1.0)
@@ -73,4 +73,4 @@ DEPENDENCIES
73
73
  webmock
74
74
 
75
75
  BUNDLED WITH
76
- 2.2.31
76
+ 2.2.33
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Mergent
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/mergent.svg)](https://badge.fury.io/rb/mergent)
4
+ [![CI](https://github.com/mergentlabs/mergent-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/mergentlabs/mergent-ruby/actions/workflows/ci.yml)
5
+
3
6
  The Mergent Ruby library provides convenient access to the Mergent API from
4
7
  applications written in the Ruby language.
5
8
 
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
4
  require "rspec/core/rake_task"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "net/http"
2
4
  require "json"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Mergent
2
4
  class Error < StandardError; end
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Mergent
2
- class Object < OpenStruct; end
4
+ class Object < OpenStruct; end # rubocop:disable Style/OpenStructUse
3
5
  end
data/lib/mergent/task.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "client"
2
4
  require_relative "object"
3
5
 
@@ -7,5 +9,11 @@ module Mergent
7
9
  object = Client.post("tasks", params)
8
10
  new(object)
9
11
  end
12
+
13
+ %i[name description status request scheduled_for delay cron].each do |name|
14
+ define_method(name) do
15
+ self[name]
16
+ end
17
+ end
10
18
  end
11
19
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Mergent
2
- VERSION = "0.1.0".freeze
4
+ VERSION = "0.1.1"
3
5
  end
data/lib/mergent.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "mergent/errors"
2
4
  require_relative "mergent/task"
3
5
  require_relative "mergent/version"
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mergent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mergent
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-21 00:00:00.000000000 Z
11
+ date: 2021-12-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: See https://mergent.co for details.
13
+ description: Ruby library for the Mergent API. See https://mergent.co for details.
14
14
  email: support@mergent.co
15
15
  executables: []
16
16
  extensions: []
@@ -18,6 +18,7 @@ extra_rdoc_files: []
18
18
  files:
19
19
  - ".rspec"
20
20
  - ".rubocop.yml"
21
+ - ".ruby-version"
21
22
  - CHANGELOG.md
22
23
  - Gemfile
23
24
  - Gemfile.lock
@@ -30,14 +31,14 @@ files:
30
31
  - lib/mergent/object.rb
31
32
  - lib/mergent/task.rb
32
33
  - lib/mergent/version.rb
33
- - mergent.gemspec
34
34
  homepage: https://mergent.co
35
35
  licenses:
36
36
  - MIT
37
37
  metadata:
38
38
  homepage_uri: https://mergent.co
39
- source_code_uri: https://github.com/jamescmartinez/mergent-ruby
40
- changelog_uri: https://github.com/jamescmartinez/mergent-ruby/blob/main/CHANGELOG.md
39
+ source_code_uri: https://github.com/mergentlabs/mergent-ruby
40
+ changelog_uri: https://github.com/mergentlabs/mergent-ruby/blob/main/CHANGELOG.md
41
+ rubygems_mfa_required: 'true'
41
42
  post_install_message:
42
43
  rdoc_options: []
43
44
  require_paths:
@@ -56,5 +57,5 @@ requirements: []
56
57
  rubygems_version: 3.2.22
57
58
  signing_key:
58
59
  specification_version: 4
59
- summary: Ruby bindings for the Mergent API
60
+ summary: Ruby library for the Mergent API.
60
61
  test_files: []
data/mergent.gemspec DELETED
@@ -1,28 +0,0 @@
1
- require_relative "lib/mergent/version"
2
-
3
- Gem::Specification.new do |spec|
4
- spec.name = "mergent"
5
- spec.version = Mergent::VERSION
6
- spec.author = "Mergent"
7
- spec.email = "support@mergent.co"
8
-
9
- spec.summary = "Ruby bindings for the Mergent API"
10
- spec.description = "See https://mergent.co for details."
11
- spec.homepage = "https://mergent.co"
12
- spec.license = "MIT"
13
- spec.required_ruby_version = ">= 2.6.0"
14
-
15
- spec.metadata["homepage_uri"] = spec.homepage
16
- spec.metadata["source_code_uri"] = "https://github.com/jamescmartinez/mergent-ruby"
17
- spec.metadata["changelog_uri"] = "https://github.com/jamescmartinez/mergent-ruby/blob/main/CHANGELOG.md"
18
-
19
- # Specify which files should be added to the gem when it is released.
20
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
- `git ls-files -z`.split("\x0").reject do |f|
23
- (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
24
- end
25
- end
26
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
27
- spec.require_paths = ["lib"]
28
- end