safecrow 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 +4 -4
- data/README.md +13 -6
- data/lib/safecrow/configuration.rb +3 -3
- data/lib/safecrow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d00c17f8ad5c6277482edd4cd0042ccd8897556604e971c970ea4c52f5cd4b0
|
4
|
+
data.tar.gz: b8318e120c36dfec6ec56c43026b75a7836b606bc2b8676b52aae16e3572b692
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a8d42b0fbb531492727f676315fa9f2fd0ea0f97068bd518219358151850f0a0bc0ce0a63b71072ec9e69ca91c3a51314b57afb0ede45371e5d58d5fb191e5c
|
7
|
+
data.tar.gz: 041f909b9fe922c342805c5a912f6591af04932463995e75fc46c81c1de2579475a4948ac8960f1c65fa1bd7c9389835d99506893bbebfb7535caf7a95d3ff79
|
data/README.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
[](https://badge.fury.io/rb/safecrow)
|
2
|
+
[](https://github.com/dcrtit/safecrow/blob/master/LICENSE.txt)
|
3
|
+
[](https://codeclimate.com/github/dcrtit/safecrow/maintainability)
|
1
4
|
# Safecrow
|
2
5
|
|
3
6
|
This is SDK for Safecrow API
|
@@ -20,12 +23,16 @@ Or install it yourself as:
|
|
20
23
|
|
21
24
|
## Usage
|
22
25
|
|
23
|
-
First, configure api-key and api-secret in config/initializers/safecrow.rb
|
24
|
-
|
26
|
+
First, configure api-key and api-secret in config/initializers/safecrow.rb after running this:
|
27
|
+
```ruby
|
28
|
+
rails g safecrow:install
|
29
|
+
```
|
30
|
+
Now yo can do smothing like this:
|
25
31
|
```ruby
|
26
|
-
Safecrow.method_name(params)
|
32
|
+
Safecrow.method_name(params)
|
27
33
|
```
|
28
|
-
|
34
|
+
|
35
|
+
To all availible methods see https://www.rubydoc.info/gems/safecrow/0.1.0/Safecrow and https://github.com/safecrow/docs-apiv3
|
29
36
|
|
30
37
|
|
31
38
|
## Development
|
@@ -36,8 +43,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
36
43
|
|
37
44
|
## Contributing
|
38
45
|
|
39
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
46
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/dcrtit/safecrow. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
40
47
|
|
41
48
|
## License
|
42
49
|
|
43
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
50
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -1,5 +1,7 @@
|
|
1
1
|
module Safecrow
|
2
2
|
class Configuration
|
3
|
+
|
4
|
+
# @api private
|
3
5
|
attr_accessor :url, :apikey, :apisecret, :prefix
|
4
6
|
|
5
7
|
def initialize
|
@@ -9,6 +11,4 @@ module Safecrow
|
|
9
11
|
@prefix = nil
|
10
12
|
end
|
11
13
|
end
|
12
|
-
end
|
13
|
-
|
14
|
-
#URL='https://dev.safecrow.ru' APIKEY='414b7881-cf46-4af5-8c08-66e1f383cfa3' APISECRET='238f922e7bbbae58cec3d4774611a2fe70de31bec3068c0c5d6784800ee88c67' PREFIX='/api/v3' rspec
|
14
|
+
end
|
data/lib/safecrow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: safecrow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- McAlex
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|