moysklad_integration 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.travis.yml +6 -0
- data/CHANGELOG.md +1 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +45 -0
- data/LICENSE.txt +21 -0
- data/README.md +44 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/moysklad_integration.rb +23 -0
- data/lib/moysklad_integration/connector.rb +14 -0
- data/lib/moysklad_integration/entity.rb +52 -0
- data/lib/moysklad_integration/service.rb +83 -0
- data/lib/moysklad_integration/version.rb +3 -0
- data/moysklad_integration.gemspec +33 -0
- metadata +137 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 748a93a36dfb2341f6524ae16ce24329009a2f1366208972e6c85112d00534ea
|
4
|
+
data.tar.gz: 54c11bc571d0008db2df2ea3e3274add9871e6ebadb19630f2ec922e864333e6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7b5cbe1beed421534cf82787f58c2849d646781a5c48f3c13865dac5d3debc08522d018be3c88b86c87b16ca77f7a3bdbbc248cf6b82235ec9b352c97513d9bd
|
7
|
+
data.tar.gz: f176b2ae4c02edc3a9093b295c3c7fbbf817b7480fd5fd7fe187c0b14ec751a3ccf6d6594fd345afaac2de42006e95158f6fa3777a1fb4d3052cac5921d95647
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Moysklad Integration Changelog
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at kalach.vladislav@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [https://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: https://contributor-covenant.org
|
74
|
+
[version]: https://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
moysklad_integration (0.1.0)
|
5
|
+
activesupport (~> 6.0, >= 6.0.3.1)
|
6
|
+
addressable (~> 2.7)
|
7
|
+
faraday (~> 1.0, >= 1.0.1)
|
8
|
+
log4r (~> 1.1, >= 1.1.10)
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
activesupport (6.0.3.1)
|
14
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
|
+
i18n (>= 0.7, < 2)
|
16
|
+
minitest (~> 5.1)
|
17
|
+
tzinfo (~> 1.1)
|
18
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
19
|
+
addressable (2.7.0)
|
20
|
+
public_suffix (>= 2.0.2, < 5.0)
|
21
|
+
concurrent-ruby (1.1.6)
|
22
|
+
faraday (1.0.1)
|
23
|
+
multipart-post (>= 1.2, < 3)
|
24
|
+
i18n (1.8.3)
|
25
|
+
concurrent-ruby (~> 1.0)
|
26
|
+
log4r (1.1.10)
|
27
|
+
minitest (5.14.1)
|
28
|
+
multipart-post (2.1.1)
|
29
|
+
public_suffix (4.0.5)
|
30
|
+
rake (12.3.3)
|
31
|
+
thread_safe (0.3.6)
|
32
|
+
tzinfo (1.2.7)
|
33
|
+
thread_safe (~> 0.1)
|
34
|
+
zeitwerk (2.3.0)
|
35
|
+
|
36
|
+
PLATFORMS
|
37
|
+
ruby
|
38
|
+
|
39
|
+
DEPENDENCIES
|
40
|
+
minitest (~> 5.0)
|
41
|
+
moysklad_integration!
|
42
|
+
rake (~> 12.0)
|
43
|
+
|
44
|
+
BUNDLED WITH
|
45
|
+
2.1.4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Vladislav Kalach
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# MoyskladIntegration
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/moysklad_integration`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'moysklad_integration'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle install
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install moysklad_integration
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Vladislav Kalach/moysklad_integration. 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/Vladislav Kalach/moysklad_integration/blob/master/CODE_OF_CONDUCT.md).
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
41
|
+
|
42
|
+
## Code of Conduct
|
43
|
+
|
44
|
+
Everyone interacting in the MoyskladIntegration project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Vladislav Kalach/moysklad_integration/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "moysklad_integration"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'log4r'
|
4
|
+
require 'faraday'
|
5
|
+
require 'json'
|
6
|
+
require 'active_support'
|
7
|
+
require 'addressable/uri'
|
8
|
+
require 'moysklad_integration/version'
|
9
|
+
require 'moysklad_integration/connector'
|
10
|
+
require 'moysklad_integration/service'
|
11
|
+
require 'moysklad_integration/entity'
|
12
|
+
|
13
|
+
module MoyskladIntegration
|
14
|
+
class Error < StandardError; end
|
15
|
+
Faraday::Utils.default_uri_parser = ->(uri) { Addressable::URI.parse(uri) }
|
16
|
+
|
17
|
+
def self.logger
|
18
|
+
@log = Log4r::Logger.new(name)
|
19
|
+
@log.outputters << Log4r::StdoutOutputter.new('log_stdout')
|
20
|
+
@log.level = Log4r::INFO
|
21
|
+
@log
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module MoyskladIntegration
|
4
|
+
class Connector
|
5
|
+
API_URL_LOGIN = 'https://online.moysklad.ru/api/remap/1.1'
|
6
|
+
|
7
|
+
attr_reader :connection
|
8
|
+
|
9
|
+
def initialize
|
10
|
+
@connection = Faraday.new(url: API_URL_LOGIN, headers: { 'Content-Type': 'application/json' })
|
11
|
+
@connection.basic_auth(ENV['MOYSKLAD_USERNAME'], ENV['MOYSKLAD_PASSWORD'])
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module MoyskladIntegration
|
4
|
+
class Entity
|
5
|
+
def initialize(params)
|
6
|
+
params.each do |key, val|
|
7
|
+
next if val.blank?
|
8
|
+
|
9
|
+
self.class.__send__(:define_method, key, -> { instance_variable_get("@#{key}") })
|
10
|
+
self.class.__send__(:define_method, "#{key}=", ->(val) { instance_variable_set("@#{key}", val) })
|
11
|
+
__send__("#{key}=", val)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def update(params)
|
16
|
+
service.update(self, params)
|
17
|
+
end
|
18
|
+
|
19
|
+
def meta_link
|
20
|
+
{ meta: meta }
|
21
|
+
end
|
22
|
+
|
23
|
+
def add_positions(positions_params)
|
24
|
+
service.create_positions(self, positions_params)
|
25
|
+
end
|
26
|
+
|
27
|
+
def update_positions(positions_params)
|
28
|
+
current_positions = service.get_positions(self)
|
29
|
+
current_positions.map! do |current_position|
|
30
|
+
current_position.instance_variables.each_with_object({}) do |var, hash|
|
31
|
+
key = var.to_s.delete('@').to_sym
|
32
|
+
keys_to_compare = positions_params.select { |position| position.dig(:assortment, 'meta', 'uuidHref') == current_position.instance_variable_get(:@assortment).dig('meta', 'uuidHref') }.first&.keys
|
33
|
+
|
34
|
+
next if keys_to_compare.present? && !keys_to_compare&.include?(key)
|
35
|
+
|
36
|
+
hash[key] = current_position.instance_variable_get(var)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
new_positions = (positions_params - current_positions)
|
41
|
+
removed_positions = (current_positions - positions_params)
|
42
|
+
service.create_positions(self, new_positions) if new_positions.present?
|
43
|
+
service.delete_positions(self, removed_positions) if removed_positions.present?
|
44
|
+
end
|
45
|
+
|
46
|
+
private
|
47
|
+
|
48
|
+
def service
|
49
|
+
Service.new
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# frozen_string_literal: false
|
2
|
+
|
3
|
+
module MoyskladIntegration
|
4
|
+
class Service
|
5
|
+
attr_accessor :connection
|
6
|
+
|
7
|
+
def initialize
|
8
|
+
@connection = MoyskladIntegration::Connector.new.connection
|
9
|
+
end
|
10
|
+
|
11
|
+
def create(object_name, params)
|
12
|
+
initialize_entity(object_name, params)
|
13
|
+
response = connection.post(entity_path, entity_instance.to_json)
|
14
|
+
if response.status == 200
|
15
|
+
Entity.new(JSON.parse(response.body))
|
16
|
+
else
|
17
|
+
JSON.parse(response.body)['errors'].each do |error|
|
18
|
+
MoyskladIntegration.logger.warn(error['error'])
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def filter(object_name, params)
|
24
|
+
initialize_entity(object_name, params)
|
25
|
+
params_for_filter = params.each_with_object('') { |(k, v), str| str << "#{k}=#{v};" }
|
26
|
+
response = connection.get("#{entity_path}?filter=#{params_for_filter}")
|
27
|
+
if response.status == 200
|
28
|
+
JSON.parse(response.body)['rows'].each_with_object([]) do |entity_params, arr|
|
29
|
+
arr << Entity.new(entity_params)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def get(object_name, _id = nil)
|
35
|
+
@entity_path = "entity/#{object_name.downcase}"
|
36
|
+
response = connection.get(entity_path)
|
37
|
+
if response.status == 200
|
38
|
+
JSON.parse(response.body)['rows'].each_with_object([]) do |entity_params, arr|
|
39
|
+
arr << Entity.new(entity_params)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def update(object, params)
|
45
|
+
params.delete_if do |k, v|
|
46
|
+
object.__send__(k) == (v.is_a?(String) ? v : v.collect { |key, val| [key.to_s, val] }.to_h)
|
47
|
+
end
|
48
|
+
@entity_path = "entity/#{object.meta['type']}/#{object.id}"
|
49
|
+
response = connection.put(entity_path.to_s, params.to_json)
|
50
|
+
end
|
51
|
+
|
52
|
+
def create_positions(object, positions_params)
|
53
|
+
@entity_path = "entity/#{object.meta['type']}/#{object.id}/positions"
|
54
|
+
response = connection.post(entity_path, positions_params.to_json)
|
55
|
+
end
|
56
|
+
|
57
|
+
def get_positions(object)
|
58
|
+
@entity_path = "entity/#{object.meta['type']}/#{object.id}/positions"
|
59
|
+
response = connection.get(entity_path)
|
60
|
+
if response.status == 200
|
61
|
+
JSON.parse(response.body)['rows'].each_with_object([]) do |entity_params, arr|
|
62
|
+
arr << Entity.new(entity_params)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
def delete_positions(object, positions)
|
68
|
+
positions.each do |position|
|
69
|
+
@entity_path = "entity/#{object.meta['type']}/#{object.id}/positions/#{position[:id]}"
|
70
|
+
response = connection.delete(entity_path)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
private
|
75
|
+
|
76
|
+
attr_reader :entity_instance, :entity_path
|
77
|
+
|
78
|
+
def initialize_entity(object_name, params)
|
79
|
+
@entity_instance = Entity.new(params)
|
80
|
+
@entity_path = "entity/#{object_name.downcase}"
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/moysklad_integration/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'moysklad_integration'
|
7
|
+
spec.version = MoyskladIntegration::VERSION
|
8
|
+
spec.authors = ['Vladislav Kalach']
|
9
|
+
spec.email = ['kalach.vladislav@gmail.com']
|
10
|
+
spec.summary = 'Moysklad Integration.'
|
11
|
+
spec.description = 'Gem for easier integration ruby and moysklad.ru'
|
12
|
+
spec.homepage = 'https://github.com/vkalach/moysklad_integration'
|
13
|
+
spec.license = 'MIT'
|
14
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
15
|
+
|
16
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
17
|
+
spec.metadata['source_code_uri'] = 'https://github.com/vkalach/moysklad_integration'
|
18
|
+
spec.metadata['changelog_uri'] = 'https://github.com/vkalach/moysklad_integration/blob/master/CHANGELOG.md'
|
19
|
+
|
20
|
+
# Specify which files should be added to the gem when it is released.
|
21
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
22
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
23
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
|
+
end
|
25
|
+
spec.bindir = 'exe'
|
26
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
|
+
spec.require_paths = ['lib']
|
28
|
+
|
29
|
+
spec.add_dependency 'activesupport', '~> 6.0', '>= 6.0.3.1'
|
30
|
+
spec.add_dependency 'faraday', '~> 1.0', '>= 1.0.1'
|
31
|
+
spec.add_dependency 'addressable', '~> 2.7'
|
32
|
+
spec.add_dependency 'log4r', '~> 1.1', '>= 1.1.10'
|
33
|
+
end
|
metadata
ADDED
@@ -0,0 +1,137 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: moysklad_integration
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Vladislav Kalach
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-06-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '6.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 6.0.3.1
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '6.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 6.0.3.1
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: faraday
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.0'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 1.0.1
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '1.0'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 1.0.1
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: addressable
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '2.7'
|
60
|
+
type: :runtime
|
61
|
+
prerelease: false
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - "~>"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '2.7'
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: log4r
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '1.1'
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 1.1.10
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '1.1'
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 1.1.10
|
87
|
+
description: Gem for easier integration ruby and moysklad.ru
|
88
|
+
email:
|
89
|
+
- kalach.vladislav@gmail.com
|
90
|
+
executables: []
|
91
|
+
extensions: []
|
92
|
+
extra_rdoc_files: []
|
93
|
+
files:
|
94
|
+
- ".gitignore"
|
95
|
+
- ".travis.yml"
|
96
|
+
- CHANGELOG.md
|
97
|
+
- CODE_OF_CONDUCT.md
|
98
|
+
- Gemfile
|
99
|
+
- Gemfile.lock
|
100
|
+
- LICENSE.txt
|
101
|
+
- README.md
|
102
|
+
- Rakefile
|
103
|
+
- bin/console
|
104
|
+
- bin/setup
|
105
|
+
- lib/moysklad_integration.rb
|
106
|
+
- lib/moysklad_integration/connector.rb
|
107
|
+
- lib/moysklad_integration/entity.rb
|
108
|
+
- lib/moysklad_integration/service.rb
|
109
|
+
- lib/moysklad_integration/version.rb
|
110
|
+
- moysklad_integration.gemspec
|
111
|
+
homepage: https://github.com/vkalach/moysklad_integration
|
112
|
+
licenses:
|
113
|
+
- MIT
|
114
|
+
metadata:
|
115
|
+
homepage_uri: https://github.com/vkalach/moysklad_integration
|
116
|
+
source_code_uri: https://github.com/vkalach/moysklad_integration
|
117
|
+
changelog_uri: https://github.com/vkalach/moysklad_integration/blob/master/CHANGELOG.md
|
118
|
+
post_install_message:
|
119
|
+
rdoc_options: []
|
120
|
+
require_paths:
|
121
|
+
- lib
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: 2.3.0
|
127
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
requirements: []
|
133
|
+
rubygems_version: 3.1.2
|
134
|
+
signing_key:
|
135
|
+
specification_version: 4
|
136
|
+
summary: Moysklad Integration.
|
137
|
+
test_files: []
|