marketplace-kit 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +42 -3
- data/lib/marketplace_kit/services/config.rb +9 -1
- data/lib/marketplace_kit/version.rb +1 -1
- data/marketplace_kit.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: faf1e8223d9e541a96375c32036eb988170379f3
|
4
|
+
data.tar.gz: 50368297ac5f5bedc626b383817bbe27178dfdc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbc628256fa642b395740c25e3925c329f01900355cb547bf25a27a0ed10bc261cd0cd9b8e7285e2e2c28d40c431a4e11100bc3799de875154d2ba0d60fc935e
|
7
|
+
data.tar.gz: 3bf43d895b5810a04f38900a7f71ad490adad0d2658f1abdffa30e462ca6e22dda7202584725a15a5c91a960125f2105caa05a86889b655a87a81a1b0280871c
|
data/README.md
CHANGED
@@ -8,9 +8,48 @@ Install it yourself as:
|
|
8
8
|
|
9
9
|
$ gem install marketplace-kit
|
10
10
|
|
11
|
-
##
|
12
|
-
|
13
|
-
|
11
|
+
## Configuration
|
12
|
+
|
13
|
+
1. Go to marketplace folder you are working on
|
14
|
+
2. Ensure marketplace_builder directory exists
|
15
|
+
3. Create marketplace_builder/.builder file
|
16
|
+
```
|
17
|
+
{
|
18
|
+
"staging": {
|
19
|
+
"url": "https://staging-url.near-me.com"
|
20
|
+
},
|
21
|
+
"production": {
|
22
|
+
"url": "https://production-url.near-me.com"
|
23
|
+
}
|
24
|
+
}
|
25
|
+
```
|
26
|
+
|
27
|
+
## Commands
|
28
|
+
All commands should be run in the marketplace directory (ie. marketplace-nearme/)
|
29
|
+
|
30
|
+
```
|
31
|
+
marketplace-kit pull
|
32
|
+
```
|
33
|
+
Pulls files from database and saves them in the filesystem
|
34
|
+
|
35
|
+
```
|
36
|
+
marketplace-kit deploy
|
37
|
+
```
|
38
|
+
Updates database using the filesystem as a source
|
39
|
+
|
40
|
+
```
|
41
|
+
marketplace-kit deploy -e staging
|
42
|
+
```
|
43
|
+
Deploys to staging environment (-e option is available for all commands)
|
44
|
+
|
45
|
+
```
|
46
|
+
marketplace-kit deploy -f
|
47
|
+
```
|
48
|
+
Updates database using the filesystem as a source with force mode enabled (override all files, don't skip not changed)
|
49
|
+
```
|
50
|
+
marketplace-kit sync
|
51
|
+
```
|
52
|
+
Enables sync mode - saves changes made in the filesystem to the database
|
14
53
|
|
15
54
|
## Contributing
|
16
55
|
|
@@ -36,8 +36,16 @@ module MarketplaceKit
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def save_token(value)
|
39
|
-
|
39
|
+
config = autogenerated_config.merge({ @endpoint => { token: value } })
|
40
|
+
File.write("#{MarketplaceKit.builder_folder}.builder-autogenerated", config.to_json)
|
40
41
|
end
|
42
|
+
|
43
|
+
def autogenerated_config
|
44
|
+
return {} unless File.exist?("#{MarketplaceKit.builder_folder}.builder-autogenerated")
|
45
|
+
|
46
|
+
raw_config = File.read("#{MarketplaceKit.builder_folder}.builder-autogenerated")
|
47
|
+
JSON.parse raw_config
|
48
|
+
end
|
41
49
|
end
|
42
50
|
end
|
43
51
|
end
|
data/marketplace_kit.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = 'marketplace-kit'
|
8
8
|
spec.version = MarketplaceKit::VERSION
|
9
9
|
spec.authors = ['Michal Janeczek']
|
10
|
-
spec.email = ['
|
10
|
+
spec.email = ['support@near-me.com']
|
11
11
|
|
12
12
|
spec.summary = 'Marketplace Kit'
|
13
13
|
spec.description = 'Marketplace Kit'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marketplace-kit
|
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
|
- Michal Janeczek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -166,7 +166,7 @@ dependencies:
|
|
166
166
|
version: '0'
|
167
167
|
description: Marketplace Kit
|
168
168
|
email:
|
169
|
-
-
|
169
|
+
- support@near-me.com
|
170
170
|
executables:
|
171
171
|
- marketplace-kit
|
172
172
|
extensions: []
|