magento 0.0.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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/magento.rb +30 -0
  3. metadata +70 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3e1e1da5166c184efe64579ac0ecac8d00fd74563ff48afecbc18408e6fda549
4
+ data.tar.gz: cab7c16786fb77d757d5700c797426a6e8fcf7894398457b3db288fa950d4915
5
+ SHA512:
6
+ metadata.gz: 30b5ee0b40741644264242596be14fc4fdc764f1cdcdd11b0b2ad3dba925b620fdb7544e5e7852e3ea7b35d01a28d6e00cd7eec4f2c5521a772889d050525828
7
+ data.tar.gz: 0db9425021010206ed3c9c441d0b2f11ec621ce52ef0e884fe5f7c2873f1338fd63d387c285000f22f01ef59b34c805c768534add6ce56a6da309090cbffa9f8
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'time'
4
+
5
+ require_relative 'magento/error'
6
+ require_relative 'magento/request'
7
+ require_relative 'magento/model'
8
+ require_relative 'magento/product'
9
+
10
+ Dir[File.expand_path('magento/product/*.rb', __dir__)].map do |path|
11
+ require path
12
+ end
13
+
14
+ module Magento
15
+ class << self
16
+ attr_accessor :url, :open_timeout, :timeout, :token
17
+ end
18
+
19
+ self.url = ENV['MAGENTO_URL']
20
+ self.open_timeout = 30
21
+ self.timeout = 90
22
+ self.token = ENV['MAGENTO_TOKEN']
23
+
24
+ def self.production?
25
+ ENV['RACK_ENV'] == 'production' ||
26
+ ENV['RAILS_ENV'] == 'production' ||
27
+ ENV['PRODUCTION'] ||
28
+ ENV['production']
29
+ end
30
+ end
metadata ADDED
@@ -0,0 +1,70 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: magento
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Nick Quaranto
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-07-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: http
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: dry-inflector
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.2.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.2.0
41
+ description: Magento Ruby library
42
+ email: nick@quaran.to
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files: []
46
+ files:
47
+ - lib/magento.rb
48
+ homepage: https://github.com/WallasFaria/magento-ruby
49
+ licenses: []
50
+ metadata: {}
51
+ post_install_message:
52
+ rdoc_options: []
53
+ require_paths:
54
+ - lib
55
+ required_ruby_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ requirements: []
66
+ rubygems_version: 3.0.6
67
+ signing_key:
68
+ specification_version: 4
69
+ summary: Magento Ruby library
70
+ test_files: []