snow_sync 3.1.4 → 3.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +14 -14
- data/lib/snow_sync/version.rb +1 -1
- data/spec/docker_install_spec.rb +30 -0
- data/spec/sync_util_spec.rb +3 -5
- metadata +26 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 94f2f27e9878dc97c7f3cc662cf3519fbccb3cd771666feb5a9976585607ae4f
|
4
|
+
data.tar.gz: 8803cd91afadab4e1e0a572f46547fb569518c50a15121003496eb4f7cdca47b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00dfb1a35ef10a6331c7df8f84df2ab401a7d6de794317be1d6a04c2808830e063b1830e12081fb2aa93dcf81f34164dedc930a224c37b684cf2e07824a23a0e
|
7
|
+
data.tar.gz: 7eeeec614853accf1ba6c72f10e24f5210ae811bf01cc773c70eb5f9f71e7ebb1505b244bb24c7a4def4bb5134fc4195103686190617d7693f9d72a7bb3b422b
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# SnowSync
|
2
2
|
|
3
|
-
[![Gem Version](https://img.shields.io/badge/gem-v3.1.
|
3
|
+
[![Gem Version](https://img.shields.io/badge/gem-v3.1.5-brightgreen.svg)](https://rubygems.org/gems/snow_sync) [![Dependency Status](https://img.shields.io/badge/dependencies-up--to--date-blue.svg)](https://rubygems.org/gems/snow_sync) [![Downloads](https://img.shields.io/badge/downloads-25k%2B-lightgrey.svg)](https://rubygems.org/gems/snow_sync)
|
4
4
|
|
5
5
|
SnowSync is a file sync utility tool and API which provides a bridge for off platform ServiceNow development using an IDE or text editor locally.
|
6
6
|
|
@@ -9,15 +9,15 @@ SnowSync syncronizes configured fields (scripts) for a ServiceNow instance local
|
|
9
9
|
## Installation
|
10
10
|
|
11
11
|
```bash
|
12
|
-
mkdir
|
12
|
+
mkdir snow-sync
|
13
13
|
```
|
14
14
|
|
15
15
|
```bash
|
16
|
-
cd
|
16
|
+
cd snow-sync
|
17
17
|
```
|
18
18
|
|
19
19
|
```ruby
|
20
|
-
gem install --install-dir <path-to-the-
|
20
|
+
gem install --install-dir <path-to-the-snow-sync-dir> snow_sync
|
21
21
|
```
|
22
22
|
|
23
23
|
## Setup & Usage
|
@@ -43,11 +43,12 @@ source "https://rubygems.org"
|
|
43
43
|
gem "facets", "~> 3.1.0"
|
44
44
|
gem "guard", "~> 2.14.0"
|
45
45
|
gem "guard-yield", "~> 0.1.0"
|
46
|
-
gem "json", "
|
47
|
-
gem "libnotify", "~> 0.9.
|
48
|
-
gem "rake", "~>
|
46
|
+
gem "json", "~> 2.6.1"
|
47
|
+
gem "libnotify", "~> 0.9.2"
|
48
|
+
gem "rake", "~> 13.0.6"
|
49
49
|
gem "rest-client", "~> 2.0.0"
|
50
|
-
gem "rspec", "~> 3.
|
50
|
+
gem "rspec", "~> 3.10.0"
|
51
|
+
gem "rspec-core", "~> 3.10.1"
|
51
52
|
gem "terminal-notifier-guard", "~> 1.7"
|
52
53
|
gem "thor", "0.19.1"
|
53
54
|
```
|
@@ -62,7 +63,7 @@ cd /lib/snow_sync
|
|
62
63
|
|
63
64
|
* Setup the configurations in the configs.yml
|
64
65
|
* Now supports multi-table map configurations
|
65
|
-
*
|
66
|
+
* YAML configuration path is the current working directory
|
66
67
|
* Append /api/now/table/ to the base_url
|
67
68
|
|
68
69
|
```bash
|
@@ -75,17 +76,16 @@ guard -i
|
|
75
76
|
## Running the Tests
|
76
77
|
|
77
78
|
```bash
|
78
|
-
cd <path-to-the-
|
79
|
+
cd <path-to-the-snow-sync-dir>/gems/snow_sync-<version>
|
79
80
|
```
|
80
81
|
|
81
|
-
* Integration tests use a test record in the instance
|
82
|
-
* Unit tests are all stubbed out
|
82
|
+
* Integration tests use a test record in the instance, unit tests do not
|
83
83
|
* Setup the test configurations in the test_configs.yml
|
84
|
-
*
|
84
|
+
* YAML configuration path is the current working directory
|
85
85
|
* Append /api/now/table/ to the base_url
|
86
86
|
|
87
87
|
```ruby
|
88
|
-
rspec spec/sync_util_spec.rb
|
88
|
+
bundle exec rspec spec/sync_util_spec.rb
|
89
89
|
```
|
90
90
|
|
91
91
|
**Note:** if the sync directory is deleted after a successful sync, reset the credential configs in the test_configs.yml so they can be re-encrypted on the next sync
|
data/lib/snow_sync/version.rb
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
describe "Dockerfile" do
|
2
|
+
|
3
|
+
def run_os_check(command)
|
4
|
+
`#{command}`.downcase
|
5
|
+
end
|
6
|
+
|
7
|
+
it "installs the right version of Ubuntu" do
|
8
|
+
os = "ubuntu"
|
9
|
+
version = "20.04"
|
10
|
+
installation = run_os_check('lsb_release -a')
|
11
|
+
expect(installation).to include(os)
|
12
|
+
expect(installation).to include(version)
|
13
|
+
end
|
14
|
+
|
15
|
+
it "installs vim" do
|
16
|
+
installation = run_os_check('vim --version')
|
17
|
+
expect(installation).to include('vim - vi')
|
18
|
+
end
|
19
|
+
|
20
|
+
it "installs git" do
|
21
|
+
installation = run_os_check('git version')
|
22
|
+
expect(installation).to include('git version')
|
23
|
+
end
|
24
|
+
|
25
|
+
it "installs ruby" do
|
26
|
+
installation = run_os_check('ruby -v')
|
27
|
+
expect(installation).to include('ruby')
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
data/spec/sync_util_spec.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
## --> unit tests
|
4
3
|
describe "utility object" do
|
5
4
|
|
6
5
|
let! :util do
|
@@ -162,7 +161,6 @@ describe "merge_update" do
|
|
162
161
|
|
163
162
|
end
|
164
163
|
|
165
|
-
## --> integration tests
|
166
164
|
describe "setup_sync_directories" do
|
167
165
|
|
168
166
|
let! :util do
|
@@ -233,12 +231,12 @@ describe "push_modifications - mutli-table configuration" do
|
|
233
231
|
# sys_script_include
|
234
232
|
do_edit("sync/script_include/test_class.js", "// test comment -\n")
|
235
233
|
# sys_ui_action
|
236
|
-
do_edit("sync/ui_action/
|
234
|
+
do_edit("sync/ui_action/test_action.js", "// test comment -\n")
|
237
235
|
# queued mods, push in sequence
|
238
|
-
util.push_modifications(["sync/script_include/test_class.js", "sync/ui_action/
|
236
|
+
util.push_modifications(["sync/script_include/test_class.js", "sync/ui_action/test_action.js"])
|
239
237
|
util.run_setup_and_sync
|
240
238
|
run_check("sync/script_include/test_class.js", "// test comment -\n")
|
241
|
-
run_check("sync/ui_action/
|
239
|
+
run_check("sync/ui_action/test_action.js", "// test comment -\n")
|
242
240
|
end
|
243
241
|
|
244
242
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snow_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Wallace
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.3.3
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.3.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: facets
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,20 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
76
|
-
- - ">="
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version: 1.8.3
|
75
|
+
version: 2.6.1
|
79
76
|
type: :development
|
80
77
|
prerelease: false
|
81
78
|
version_requirements: !ruby/object:Gem::Requirement
|
82
79
|
requirements:
|
83
80
|
- - "~>"
|
84
81
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
86
|
-
- - ">="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: 1.8.3
|
82
|
+
version: 2.6.1
|
89
83
|
- !ruby/object:Gem::Dependency
|
90
84
|
name: libnotify
|
91
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +100,14 @@ dependencies:
|
|
106
100
|
requirements:
|
107
101
|
- - "~>"
|
108
102
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
103
|
+
version: 13.0.6
|
110
104
|
type: :development
|
111
105
|
prerelease: false
|
112
106
|
version_requirements: !ruby/object:Gem::Requirement
|
113
107
|
requirements:
|
114
108
|
- - "~>"
|
115
109
|
- !ruby/object:Gem::Version
|
116
|
-
version:
|
110
|
+
version: 13.0.6
|
117
111
|
- !ruby/object:Gem::Dependency
|
118
112
|
name: rest-client
|
119
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,14 +128,28 @@ dependencies:
|
|
134
128
|
requirements:
|
135
129
|
- - "~>"
|
136
130
|
- !ruby/object:Gem::Version
|
137
|
-
version: 3.
|
131
|
+
version: 3.10.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 3.10.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rspec-core
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 3.10.1
|
138
146
|
type: :development
|
139
147
|
prerelease: false
|
140
148
|
version_requirements: !ruby/object:Gem::Requirement
|
141
149
|
requirements:
|
142
150
|
- - "~>"
|
143
151
|
- !ruby/object:Gem::Version
|
144
|
-
version: 3.
|
152
|
+
version: 3.10.1
|
145
153
|
- !ruby/object:Gem::Dependency
|
146
154
|
name: terminal-notifier-guard
|
147
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -187,6 +195,7 @@ files:
|
|
187
195
|
- lib/snow_sync/configs.yml
|
188
196
|
- lib/snow_sync/sync_util.rb
|
189
197
|
- lib/snow_sync/version.rb
|
198
|
+
- spec/docker_install_spec.rb
|
190
199
|
- spec/spec_helper.rb
|
191
200
|
- spec/sync_util_spec.rb
|
192
201
|
homepage: https://rubygems.org/gems/snow_sync
|
@@ -208,8 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
217
|
- !ruby/object:Gem::Version
|
209
218
|
version: '0'
|
210
219
|
requirements: []
|
211
|
-
|
212
|
-
rubygems_version: 2.6.8
|
220
|
+
rubygems_version: 3.3.3
|
213
221
|
signing_key:
|
214
222
|
specification_version: 4
|
215
223
|
summary: SnowSync is a file sync utility tool and API which provides a bridge for
|