flutter 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Guardfile +3 -3
- data/README.md +10 -5
- data/Rakefile +1 -3
- data/TODO.md +2 -2
- data/lib/flutter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbd8d330334676bcfcb2d328466c569bd561ed05a7fd3a45e880cace5670af56
|
4
|
+
data.tar.gz: 5b4fcd28bb14fa1a6fd5b9c834abbd5bf368c56e7496b574864f2f443d7effb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6720c70a784f3b6862d7bc07749465fbf5834fb1c6b7fe19b76caa7c0fd52bec2e0b79fc9100385dcc878881ec77199f7e8ff34e0105f5d272b806eeb12ef06
|
7
|
+
data.tar.gz: 4cd2b8a88705a44a6b1f28159e01bc8f0e2aed6f54caf287617d81a2ebd823ddcc02ec0867110f7d38da4c5b3541d491cb366e82fd9d94bad319ca7588c74d6d
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
7
|
## Unreleased
|
8
|
+
## Fixed
|
9
|
+
- Corrected integration examples for guard in README
|
10
|
+
## 0.2.1
|
8
11
|
## 0.2.0
|
9
12
|
### Added
|
10
13
|
- CI Recipe in README
|
data/Guardfile
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
guard :minitest, test_folders: ["test"] do
|
4
|
-
watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { "test" }
|
4
|
+
watch(%r{^(test|lib)/(.*/)?([^/]+)\.rb$}) { "test" }
|
5
5
|
end
|
6
6
|
|
7
|
-
guard :rspec, cmd: "rspec" do
|
8
|
-
watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { "spec" }
|
7
|
+
guard :rspec, cmd: "rspec", all_on_start: true do
|
8
|
+
watch(%r{^(spec|lib)/(.*/)?([^/]+)\.rb$}) { "spec" }
|
9
9
|
end
|
data/README.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
[![CI](https://github.com/indydevs/flutter/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/indydevs/flutter/actions/workflows/main.yml)
|
4
4
|
[![codecov](https://codecov.io/github/indydevs/flutter/branch/main/graph/badge.svg?token=XANF37D9C1)](https://codecov.io/github/indydevs/flutter)
|
5
5
|
[![Gem](https://img.shields.io/gem/v/flutter)](https://rubygems.org/gems/flutter)
|
6
|
+
[![Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://www.rubydoc.info/gems/flutter)
|
6
7
|
|
7
8
|
```
|
8
9
|
__ __
|
@@ -61,11 +62,13 @@ all the following conditions are true:
|
|
61
62
|
```
|
62
63
|
|
63
64
|
#### With guard
|
64
|
-
|
65
|
+
Using the same configuration as above (and assuming that the application
|
66
|
+
sources are in the `./lib` folder while the tests are in the `./test` folder)
|
67
|
+
add the following to your `Guardfile`:
|
65
68
|
|
66
69
|
```ruby
|
67
70
|
guard :minitest, test_folders: ["test"] do
|
68
|
-
watch(%r{^
|
71
|
+
watch(%r{^(test|lib)/(.*/)?([^/]+)\.rb$}) { "test" }
|
69
72
|
end
|
70
73
|
```
|
71
74
|
|
@@ -87,7 +90,7 @@ end
|
|
87
90
|
Flutter.configure do |config|
|
88
91
|
config.enabled = true
|
89
92
|
# Paths to consider when tracking test -> source mappings. Default: Dir.pwd/*
|
90
|
-
config.sources = ["./app/*", "./
|
93
|
+
config.sources = ["./app/*", "./lib/*", "./spec/*"]
|
91
94
|
# Paths to ignore for tracking test -> source. Default: ./vendor
|
92
95
|
config.exclusions = ["./vendor/*"]
|
93
96
|
# Storage type. Default: Flutter::Persistence::Marshal
|
@@ -99,11 +102,13 @@ end
|
|
99
102
|
end
|
100
103
|
```
|
101
104
|
#### With guard
|
102
|
-
Using the same configuration as above
|
105
|
+
Using the same configuration as above (and assuming that the application
|
106
|
+
sources are in the `./app` & `./lib` folders while the specs are in the `./spec` folder)
|
107
|
+
add the following to your `Guardfile`:
|
103
108
|
|
104
109
|
```ruby
|
105
110
|
guard :rspec, cmd: "rspec" do
|
106
|
-
watch(%r{^
|
111
|
+
watch(%r{^(spec|app|lib)/(.*/)?([^/]+)\.rb$}) { "spec" }
|
107
112
|
end
|
108
113
|
```
|
109
114
|
## Configuring flutter in continuous integration
|
data/Rakefile
CHANGED
@@ -51,8 +51,6 @@ task :release_notes, [:version] do |_t, args|
|
|
51
51
|
parser.parsed_content.delete("title")
|
52
52
|
parser.parsed_content["versions"] = parser.parsed_content["versions"].select { |k, _v| k == version }
|
53
53
|
lines = parser.to_md.split("\n")
|
54
|
-
chunk =
|
55
|
-
lines.slice_after { |line| line.include?("## #{version}") }.to_a[1] || []
|
56
|
-
)
|
54
|
+
chunk = lines.slice_after { |line| line.include?("## #{version}") }.to_a[1] || []
|
57
55
|
puts chunk.join("\n")
|
58
56
|
end
|
data/TODO.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
## Code quality
|
10
10
|
- [ ] Separate public/private API
|
11
|
-
- [
|
11
|
+
- [x] Add rdoc / yard documentation
|
12
12
|
|
13
13
|
## Testing
|
14
14
|
- [x] Improve test coverage
|
@@ -26,5 +26,5 @@
|
|
26
26
|
## Usability
|
27
27
|
- [x] Quick start guide
|
28
28
|
- [x] Recipes for guard
|
29
|
-
- [
|
29
|
+
- [x] Recipes for CI
|
30
30
|
|
data/lib/flutter/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flutter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ali-Akber Saifee
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-10-
|
12
|
+
date: 2022-10-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: deep_merge
|