snow_sync 3.1.1 → 3.1.5

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
- SHA1:
3
- metadata.gz: 53c3a999b1ba7e617391b1a9c33d92ebb4c7f981
4
- data.tar.gz: 07df090058d818844693e44baba3a0946df42f20
2
+ SHA256:
3
+ metadata.gz: 94f2f27e9878dc97c7f3cc662cf3519fbccb3cd771666feb5a9976585607ae4f
4
+ data.tar.gz: 8803cd91afadab4e1e0a572f46547fb569518c50a15121003496eb4f7cdca47b
5
5
  SHA512:
6
- metadata.gz: 3bd28e08daf13bbfd2191784705615c2c7f7dcfdffb6cd3e97ada3ecb39b4dd564023847cb2ccd8a5c9fbde1ca82120ed0dc4183c9323574e41315d900daeb9f
7
- data.tar.gz: 46b5502227c1b05edbf33132cf888ff62a599c335b5cd35afd4f577ef88d4efd184fb5ede15b1338a459447ba3e57d995474816ea2ca0ed6dee60740966563f1
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.0.1-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-4k%2B-lightgrey.svg)](https://rubygems.org/gems/snow_sync)
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 snow_sync
12
+ mkdir snow-sync
13
13
  ```
14
14
 
15
15
  ```bash
16
- cd snow_sync
16
+ cd snow-sync
17
17
  ```
18
18
 
19
19
  ```ruby
20
- gem install --install-dir <path-to-the-snow_sync-dir> snow_sync
20
+ gem install --install-dir <path-to-the-snow-sync-dir> snow_sync
21
21
  ```
22
22
 
23
23
  ## Setup & Usage
@@ -30,20 +30,27 @@ gem install bundler
30
30
  cd <path-to-the-snow_sync-dir>/gems/snow_sync-<version>
31
31
  ```
32
32
 
33
+ OSX users run the following command:
34
+
35
+ ```bash
36
+ brew install terminal-notifier
37
+ ```
38
+
33
39
  Create a Gemfile and add the following Gem dependencies:
34
40
 
35
41
  ```ruby
36
- source 'https://rubygems.org'
37
- gem 'byebug', '~> 9.0.6'
38
- gem 'facets', '~> 3.1.0'
39
- gem 'guard', '~> 2.14.0'
40
- gem 'guard-yield', '~> 0.1.0'
41
- gem 'json', '>= 1.8.3', '~> 1.8.0'
42
- gem 'libnotify', '~> 0.9.1'
43
- gem 'rake', '~> 10.0.0'
44
- gem 'rest-client', '~> 2.0.0'
45
- gem 'rspec', '~> 3.5.0'
46
- gem 'thor', '0.19.1'
42
+ source "https://rubygems.org"
43
+ gem "facets", "~> 3.1.0"
44
+ gem "guard", "~> 2.14.0"
45
+ gem "guard-yield", "~> 0.1.0"
46
+ gem "json", "~> 2.6.1"
47
+ gem "libnotify", "~> 0.9.2"
48
+ gem "rake", "~> 13.0.6"
49
+ gem "rest-client", "~> 2.0.0"
50
+ gem "rspec", "~> 3.10.0"
51
+ gem "rspec-core", "~> 3.10.1"
52
+ gem "terminal-notifier-guard", "~> 1.7"
53
+ gem "thor", "0.19.1"
47
54
  ```
48
55
 
49
56
  ```bash
@@ -56,7 +63,7 @@ cd /lib/snow_sync
56
63
 
57
64
  * Setup the configurations in the configs.yml
58
65
  * Now supports multi-table map configurations
59
- * Configuration path is the current working directory
66
+ * YAML configuration path is the current working directory
60
67
  * Append /api/now/table/ to the base_url
61
68
 
62
69
  ```bash
@@ -69,17 +76,16 @@ guard -i
69
76
  ## Running the Tests
70
77
 
71
78
  ```bash
72
- cd <path>/gems/snow_sync-<version>
79
+ cd <path-to-the-snow-sync-dir>/gems/snow_sync-<version>
73
80
  ```
74
81
 
75
- * Integration tests use a test record in the instance (e.g. a script include)
76
- * Unit tests are all stubbed out
82
+ * Integration tests use a test record in the instance, unit tests do not
77
83
  * Setup the test configurations in the test_configs.yml
78
- * Configuration path is the current working directory
84
+ * YAML configuration path is the current working directory
79
85
  * Append /api/now/table/ to the base_url
80
86
 
81
87
  ```ruby
82
- rspec spec/sync_util_spec.rb
88
+ bundle exec rspec spec/sync_util_spec.rb
83
89
  ```
84
90
 
85
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
@@ -199,9 +199,9 @@ module SnowSync
199
199
  end
200
200
  end
201
201
 
202
- # dispatches osx & linux platform notification when file updates are pushed
202
+ # Dispatches osx & linux platform notification when file updates are pushed
203
203
  # @param [Array] update File updated
204
- # @param [Object] log Log Object
204
+ # @param [Object] log Log object
205
205
 
206
206
  def notify(update, log)
207
207
  if `uname` =~ /Darwin/
@@ -1,3 +1,3 @@
1
1
  module SnowSync
2
- VERSION = "3.1.1"
2
+ VERSION = "3.1.5"
3
3
  end
@@ -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
@@ -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/test.js", "// test comment -\n")
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/test.js"])
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/test.js", "// test comment -\n")
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.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: 2017-06-03 00:00:00.000000000 Z
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: '1.13'
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: '1.13'
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: 1.8.0
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: 1.8.0
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: 10.0.0
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: 10.0.0
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.5.0
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.5.0
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
- rubyforge_project:
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