skadategems-dev 0.0.10.rc1 → 0.0.10.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -17
- data/integration/lib/remote/{download_file_spec.rb → file_spec.rb} +16 -17
- data/lib/skadategems/dev/remote/clone_logger.rb +1 -1
- data/lib/skadategems/dev/version.rb +1 -1
- data/skadategems-dev.gemspec +0 -1
- data/spec/skadategems/dev/remote/clone_logger_spec.rb +4 -3
- data/spec/skadategems/dev/remote/file_spec.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f27df4b5c3392eb9090d37b18371a674e85ae6d
|
4
|
+
data.tar.gz: c44d4bfe465ba82da8ac373184a9cdc30fbeea38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a4c449ce08eb3c641763e470800200cb7ad656157ebbf465284a7c50f9350e98f55ca4f589fb58c29a543b93d0a0fa2bfaf8f571bd624ccda227773bcdff9eb
|
7
|
+
data.tar.gz: 3ec354a8693a8eeeef37fa2bcfe225e86483e2f5fd82d3935eb8c517b7e185c22ffe4c2fb3c917c9c8fb479b2edc07b74a64c1307b7081488618edd2e9e68291
|
data/README.md
CHANGED
@@ -1,15 +1,12 @@
|
|
1
1
|
Skadate Development Toolkit
|
2
2
|
===========================
|
3
3
|
|
4
|
-
[](http://badge.fury.io/rb/skadategems-dev)
|
5
|
-
[](https://travis-ci.org/skadategems/skadategems-dev)
|
6
|
-
[](https://gemnasium.com/skadategems/skadategems-dev)
|
7
|
-
[](https://coveralls.io/r/skadategems/skadategems-dev)
|
4
|
+
[](http://badge.fury.io/rb/skadategems-dev)
|
8
5
|
|
9
6
|
`skadategems-dev` is a command line tool that is created and maintained by the [SkadateGems][skadategems] development team to increase their productivity and code quality.
|
10
7
|
If you are not familiar with Skadate development, this tool will give you a basic understandings of Skadate-specific framework architecture and will be a good kick-start to begin to extend and modify your Skadate Software.
|
11
8
|
|
12
|
-
>
|
9
|
+
> _This tool is currently under development, more features and usage docs will come soon..._
|
13
10
|
|
14
11
|
[skadategems]: http://skadategems.com/
|
15
12
|
|
@@ -52,19 +49,8 @@ Usage and documentation
|
|
52
49
|
-----------------------
|
53
50
|
|
54
51
|
Please see the [wiki] for basic usage and other documentation on using the tool.
|
55
|
-
You can also checkout the [official homepage][homepage].
|
56
52
|
|
57
|
-
[wiki]: https://
|
58
|
-
[homepage]: http://skadategems.com/dev-toolkit
|
59
|
-
|
60
|
-
Contributing
|
61
|
-
------------
|
62
|
-
|
63
|
-
1. Fork it
|
64
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
65
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
66
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
67
|
-
5. Create new Pull Request
|
53
|
+
[wiki]: https://bitbucket.org/skadategems/skadategems-dev/wiki
|
68
54
|
|
69
55
|
License
|
70
56
|
-------
|
@@ -68,29 +68,28 @@ module SkadateGems::Dev
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
counter = 0
|
75
|
-
|
76
|
-
remote_file.request do |_|
|
77
|
-
case (counter += 1)
|
78
|
-
when 1
|
79
|
-
raise Errno::ECONNRESET
|
80
|
-
when 2
|
81
|
-
raise EOFError
|
82
|
-
else
|
83
|
-
# ...
|
84
|
-
end
|
85
|
-
end
|
71
|
+
end
|
72
|
+
|
73
|
+
context 'when a system call error occurred' do
|
86
74
|
|
87
|
-
|
75
|
+
it 'retries the request' do
|
76
|
+
counter = 0
|
77
|
+
|
78
|
+
remote_file.request do |_|
|
79
|
+
case (counter += 1)
|
80
|
+
when 1
|
81
|
+
raise Errno::ECONNRESET
|
82
|
+
when 2
|
83
|
+
raise EOFError
|
84
|
+
else
|
85
|
+
# ...
|
86
|
+
end
|
88
87
|
end
|
89
88
|
|
89
|
+
expect(counter).to be >= 3
|
90
90
|
end
|
91
91
|
|
92
92
|
end
|
93
|
-
|
94
93
|
end
|
95
94
|
|
96
95
|
describe '#save_as(filename)' do
|
@@ -81,7 +81,7 @@ module SkadateGems::Dev
|
|
81
81
|
rescue
|
82
82
|
print "\b" * 4 if can_display_colors?
|
83
83
|
print " [#{set_color('error', :red)}]"
|
84
|
-
write " [error]\n#{'>' *
|
84
|
+
write " [error]\n\n#{'>' * 60}\n[#{$!.class.name}]: #{$!.message}\n\n#{$!.backtrace.join("\n")}"
|
85
85
|
raise $!
|
86
86
|
ensure
|
87
87
|
print "\n"
|
data/skadategems-dev.gemspec
CHANGED
@@ -7,7 +7,6 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = 'skadategems-dev'
|
8
8
|
spec.version = SkadateGems::Dev::VERSION
|
9
9
|
spec.summary = 'Skadate Development Toolkit'
|
10
|
-
spec.homepage = 'https://github.com/skadategems/skadategems-dev'
|
11
10
|
|
12
11
|
spec.description = <<-EOT
|
13
12
|
Command line tool for Skadate Software developers
|
@@ -307,11 +307,12 @@ module SkadateGems::Dev
|
|
307
307
|
rescue TestError
|
308
308
|
# ...
|
309
309
|
ensure
|
310
|
-
expect(io_probe.string).to
|
310
|
+
expect(io_probe.string).to start_with <<-ERROR
|
311
311
|
~> nonexistent.php (0 B) [error]
|
312
|
-
|
312
|
+
|
313
|
+
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
313
314
|
[SkadateGems::Dev::Remote::TestError]: Uh! Ogh!
|
314
|
-
|
315
|
+
|
315
316
|
ERROR
|
316
317
|
end
|
317
318
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skadategems-dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.10.
|
4
|
+
version: 0.0.10.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Kerimdzhanov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -88,7 +88,7 @@ files:
|
|
88
88
|
- integration/cli/skadate_init_spec.rb
|
89
89
|
- integration/cli/skadate_spec.rb
|
90
90
|
- integration/cli/spec_helper.rb
|
91
|
-
- integration/lib/remote/
|
91
|
+
- integration/lib/remote/file_spec.rb
|
92
92
|
- integration/spec_helper.rb
|
93
93
|
- lib/skadategems/dev/bundle.rb
|
94
94
|
- lib/skadategems/dev/cli/remote.rb
|
@@ -115,7 +115,7 @@ files:
|
|
115
115
|
- spec/skadategems/dev/software_version_spec.rb
|
116
116
|
- spec/skadategems/dev/source_controller_spec.rb
|
117
117
|
- spec/spec_helper.rb
|
118
|
-
homepage:
|
118
|
+
homepage:
|
119
119
|
licenses:
|
120
120
|
- MIT
|
121
121
|
metadata: {}
|