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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3f4a26994e8282c2ea46677fe0fc92811d6505d
4
- data.tar.gz: 8d072cbeda1c0ce3aafa4939520cb1db082d1354
3
+ metadata.gz: faf1e8223d9e541a96375c32036eb988170379f3
4
+ data.tar.gz: 50368297ac5f5bedc626b383817bbe27178dfdc5
5
5
  SHA512:
6
- metadata.gz: fd874cdaa01da2bd8ee81b2895ea0c789fd9f0a54058e29fcbb88fe379de7dd617d406730299f25d96f9d9039d2f8f8ab9753329cace23ff97638fd09154f19e
7
- data.tar.gz: 138dd68143e724499635a278bb50666397b7d8e538bbb6ce41d6370bb3824a25226818a360134445334bd4ab0394f0bc3dc3b1e1cc07b9902c13b865dbd1bebf
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
- ## Usage
12
-
13
- TODO: Write usage instructions here
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
- File.write("#{MarketplaceKit.builder_folder}.builder-autogenerated", { @endpoint => { token: value } }.to_json)
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
@@ -1,3 +1,3 @@
1
1
  module MarketplaceKit
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
@@ -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 = ['michal.janeczek@ymail.com']
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.0
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-01 00:00:00.000000000 Z
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
- - michal.janeczek@ymail.com
169
+ - support@near-me.com
170
170
  executables:
171
171
  - marketplace-kit
172
172
  extensions: []