MuranoCLI 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/Gemfile +3 -2
- data/MuranoCLI.gemspec +2 -2
- data/README.markdown +107 -10
- data/lib/MrMurano/Product-Resources.rb +10 -0
- data/lib/MrMurano/ProjectFile.rb +7 -0
- data/lib/MrMurano/Solution-Endpoint.rb +24 -12
- data/lib/MrMurano/Solution-File.rb +17 -5
- data/lib/MrMurano/Solution-ServiceConfig.rb +7 -5
- data/lib/MrMurano/Solution-Services.rb +61 -31
- data/lib/MrMurano/SyncUpDown.rb +200 -49
- data/lib/MrMurano/commands/gb.rb +4 -3
- data/lib/MrMurano/commands/init.rb +55 -3
- data/lib/MrMurano/commands/login.rb +20 -0
- data/lib/MrMurano/commands/password.rb +12 -9
- data/lib/MrMurano/commands/status.rb +5 -1
- data/lib/MrMurano/commands.rb +1 -1
- data/lib/MrMurano/version.rb +1 -1
- data/spec/Account_spec.rb +8 -0
- data/spec/ConfigMigrate_spec.rb +3 -0
- data/spec/Config_spec.rb +16 -1
- data/spec/Solution-Endpoint_spec.rb +28 -20
- data/spec/Solution-ServiceEventHandler_spec.rb +27 -21
- data/spec/Solution-ServiceModules_spec.rb +42 -43
- data/spec/SyncUpDown_spec.rb +75 -68
- data/spec/cmd_init_spec.rb +303 -9
- data/spec/cmd_status_spec.rb +14 -12
- data/spec/spec_helper.rb +4 -1
- metadata +7 -6
data/spec/cmd_status_spec.rb
CHANGED
@@ -70,25 +70,27 @@ RSpec.describe 'murano status', :cmd, :needs_password do
|
|
70
70
|
expect(status.exitstatus).to eq(0)
|
71
71
|
end
|
72
72
|
|
73
|
-
it "matches file path" do
|
73
|
+
it "matches file path", :broken_on_windows do
|
74
74
|
out, err, status = Open3.capture3(capcmd('murano', 'status', '**/icon.png'))
|
75
75
|
expect(err).to eq('')
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
76
|
+
expect(out.lines).to match([
|
77
|
+
"Adding:\n",
|
78
|
+
a_string_matching(/ \+ S .*files\/icon\.png/),
|
79
|
+
"Deleteing:\n",
|
80
|
+
"Changing:\n",
|
81
|
+
])
|
81
82
|
expect(status.exitstatus).to eq(0)
|
82
83
|
end
|
83
84
|
|
84
|
-
it "matches route" do
|
85
|
+
it "matches route", :broken_on_windows do
|
85
86
|
out, err, status = Open3.capture3(capcmd('murano', 'status', '#put#'))
|
86
87
|
expect(err).to eq('')
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
88
|
+
expect(out.lines).to match([
|
89
|
+
"Adding:\n",
|
90
|
+
a_string_matching(/ \+ A .*routes\/manyRoutes\.lua:4/),
|
91
|
+
"Deleteing:\n",
|
92
|
+
"Changing:\n",
|
93
|
+
])
|
92
94
|
expect(status.exitstatus).to eq(0)
|
93
95
|
end
|
94
96
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -32,6 +32,9 @@ RSpec.configure do |config|
|
|
32
32
|
if ENV['MURANO_PASSWORD'].nil? then
|
33
33
|
config.filter_run_excluding :needs_password
|
34
34
|
end
|
35
|
+
if Gem.win_platform? then
|
36
|
+
config.filter_run_excluding :broken_on_windows
|
37
|
+
end
|
35
38
|
|
36
39
|
# rspec-expectations config goes here. You can use an alternate
|
37
40
|
# assertion/expectation library such as wrong or the stdlib/minitest
|
@@ -76,7 +79,7 @@ RSpec.configure do |config|
|
|
76
79
|
# Allows RSpec to persist some state between runs in order to support
|
77
80
|
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
78
81
|
# you configure your source control system to ignore this file.
|
79
|
-
|
82
|
+
config.example_status_persistence_file_path = ".rspec_examples.txt"
|
80
83
|
|
81
84
|
# Limits the available syntax to the non-monkey patched syntax that is
|
82
85
|
# recommended. For more details, see:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: MuranoCLI
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Conrad Tadpol Tilstra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.4.
|
19
|
+
version: 4.4.3
|
20
20
|
type: :runtime
|
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: 4.4.
|
26
|
+
version: 4.4.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: certified
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - ~>
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 1.
|
145
|
+
version: 1.7.3
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - ~>
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 1.
|
152
|
+
version: 1.7.3
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: bundler
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -288,6 +288,7 @@ files:
|
|
288
288
|
- lib/MrMurano/commands/gb.rb
|
289
289
|
- lib/MrMurano/commands/init.rb
|
290
290
|
- lib/MrMurano/commands/keystore.rb
|
291
|
+
- lib/MrMurano/commands/login.rb
|
291
292
|
- lib/MrMurano/commands/logs.rb
|
292
293
|
- lib/MrMurano/commands/mock.rb
|
293
294
|
- lib/MrMurano/commands/password.rb
|