skippy 0.4.2.a → 0.4.3.a

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: 7fb507a519db6a67ab099f00097e2d631a7d1adf
4
- data.tar.gz: b8a6cea5346d7ed5bc3d699ecd9cedd98563e355
2
+ SHA256:
3
+ metadata.gz: 991d733215aa26f37690ad9c68cd6d515e648c287584c1acaa91d54ddfb74544
4
+ data.tar.gz: c5da843a98f179df55787c15805b3e0ea7b614bad8dcd450d1b503b0295050f9
5
5
  SHA512:
6
- metadata.gz: 2ae139c5630b471b4be7366321d8615fea6b367dd5e1f1133f0ec914b25f0d97b8138318e3fb11189263668a8d75f6b92467b8336e42328b7f477ab67a1e90db
7
- data.tar.gz: ce10a2212bb23fea1eccf02bf18ecd6fbe35619f49ac630d1afe47fdd21dafdf1ca0dd1004c1c71b0b4d73031701b63c9223f1952c1ea4a86beff2bcb28b14d4
6
+ metadata.gz: 4d095d565fc66112b57b16ab89d807ce8b2d3f4a8dc0dd8edd27f5456224a37b906b5b023bf9937fdb8fd533ea18fac75af7fad9ef61f735f003854c225f1ade
7
+ data.tar.gz: 2cc778b7b6b08973447c1868944302c2debb5a3b6e7ba03474873997f45c6b1dcd7af32866aab776740035eb0a4b3050c07dcbb7fa5f41837ee09ce1301fc748
data/.appveyor.yml ADDED
@@ -0,0 +1,32 @@
1
+ version: "{build}-{branch}"
2
+
3
+ branches:
4
+ only:
5
+ - master
6
+ - dev-appveyor
7
+
8
+ cache:
9
+ - vendor/bundle
10
+
11
+ environment:
12
+ matrix:
13
+ - RUBY_VERSION: 25
14
+ - RUBY_VERSION: 26
15
+
16
+ install:
17
+ - set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
18
+ - gem update --no-document --system 2.7.8
19
+ - gem install bundler --no-document --version="<2.0.0"
20
+ - bundle config --local path vendor/bundle
21
+ - bundle install
22
+ - git submodule update --init --recursive
23
+
24
+ build: off
25
+
26
+ before_test:
27
+ - ruby -v
28
+ - gem -v
29
+ - bundle -v
30
+
31
+ test_script:
32
+ - bundle exec rake
data/.vscode/tasks.json CHANGED
@@ -1,18 +1,18 @@
1
- {
2
- // See https://go.microsoft.com/fwlink/?LinkId=733558
3
- // for the documentation about the tasks.json format
4
- "version": "2.0.0",
5
- "tasks": [
6
- {
7
- "label": "rake test FILE",
8
- "type": "shell",
9
- "command": "bundle",
10
- "args": [
11
- "exec",
12
- "rake",
13
- "TEST=${relativeFile}"
14
- ],
15
- "group": "test"
16
- }
17
- ]
18
- }
1
+ {
2
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
3
+ // for the documentation about the tasks.json format
4
+ "version": "2.0.0",
5
+ "tasks": [
6
+ {
7
+ "label": "rake test FILE",
8
+ "type": "shell",
9
+ "command": "bundle",
10
+ "args": [
11
+ "exec",
12
+ "rake",
13
+ "TEST=${relativeFile}"
14
+ ],
15
+ "group": "test"
16
+ }
17
+ ]
18
+ }
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Skippy
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/skippy.svg)](https://badge.fury.io/rb/skippy)
3
+ [![Gem Version](https://badge.fury.io/rb/skippy.svg)](https://badge.fury.io/rb/skippy) [![Build status](https://ci.appveyor.com/api/projects/status/qu5nk3t7g5oaymyx/branch/master?svg=true)](https://ci.appveyor.com/project/thomthom/skippy/branch/master)
4
4
 
5
5
  Skippy is a Command Line Interface which aims to automate common developer tasks for SketchUp Ruby extension development.
6
6
 
@@ -32,7 +32,7 @@ For Windows the easiest way to get Ruby running is using the [Ruby Installer for
32
32
  ## Installation
33
33
 
34
34
  ```bash
35
- gem install skippy
35
+ gem install skippy --pre
36
36
  ```
37
37
 
38
38
  ## Usage
@@ -23,4 +23,11 @@ class Skippy::OSCommon
23
23
  raise NotImplementedError
24
24
  end
25
25
 
26
+ # @param [String] path
27
+ # @return [Integer, nil]
28
+ def sketchup_version_from_path(path)
29
+ match = File.basename(path).match(/[0-9.]+/)
30
+ match ? match[0].to_i : nil
31
+ end
32
+
26
33
  end
data/lib/skippy/os/mac.rb CHANGED
@@ -18,7 +18,9 @@ class Skippy::OSMac < Skippy::OSCommon
18
18
  Dir.glob(pattern) { |path|
19
19
  app = File.join(path, 'SketchUp.app')
20
20
  debug_lib = File.join(app, 'Contents/Frameworks/SURubyDebugger.dylib')
21
- version = File.basename(path).match(/[0-9.]+$/)[0].to_i
21
+ version = sketchup_version_from_path(path)
22
+ next unless version
23
+
22
24
  apps << Skippy::SketchUpApp.from_hash(
23
25
  executable: app,
24
26
  version: version,
data/lib/skippy/os/win.rb CHANGED
@@ -28,7 +28,9 @@ class Skippy::OSWin < Skippy::OSCommon
28
28
  Dir.glob(pattern) { |path|
29
29
  exe = File.join(path, 'SketchUp.exe')
30
30
  debug_dll = File.join(path, 'SURubyDebugger.dll')
31
- version = File.basename(path).match(/[0-9.]+$/)[0].to_i
31
+ version = sketchup_version_from_path(path)
32
+ next unless version
33
+
32
34
  apps << Skippy::SketchUpApp.from_hash(
33
35
  executable: exe,
34
36
  version: version,
@@ -1,5 +1,5 @@
1
1
  module Skippy
2
2
 
3
- VERSION = '0.4.2.a'.freeze
3
+ VERSION = '0.4.3.a'.freeze
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skippy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2.a
4
+ version: 0.4.3.a
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Thomassen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-10 00:00:00.000000000 Z
11
+ date: 2021-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git
@@ -137,6 +137,7 @@ executables:
137
137
  extensions: []
138
138
  extra_rdoc_files: []
139
139
  files:
140
+ - ".appveyor.yml"
140
141
  - ".editorconfig"
141
142
  - ".gitignore"
142
143
  - ".gitmodules"
@@ -245,7 +246,7 @@ homepage: https://github.com/thomthom/skippy
245
246
  licenses:
246
247
  - MIT
247
248
  metadata: {}
248
- post_install_message:
249
+ post_install_message:
249
250
  rdoc_options: []
250
251
  require_paths:
251
252
  - lib
@@ -260,9 +261,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
261
  - !ruby/object:Gem::Version
261
262
  version: 1.3.1
262
263
  requirements: []
263
- rubyforge_project:
264
- rubygems_version: 2.6.14
265
- signing_key:
264
+ rubygems_version: 3.0.3
265
+ signing_key:
266
266
  specification_version: 4
267
267
  summary: CLI development tool for SketchUp extensions.
268
268
  test_files: []