rubysketch-solitaire 0.1.2 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hooks/post-commit +37 -0
- data/ChangeLog.md +6 -0
- data/README.md +8 -0
- data/RubySolitaire/Base.lproj/Localizable.strings +1 -1
- data/RubySolitaire/MenuScreen.swift +1 -0
- data/RubySolitaire/ja.lproj/Localizable.strings +1 -1
- data/VERSION +1 -1
- data/fastlane/metadata/en-US/promotional_text.txt +1 -1
- data/fastlane/metadata/en-US/release_notes.txt +1 -1
- data/fastlane/metadata/ja/release_notes.txt +1 -1
- data/lib/rubysketch/solitaire/common/settings.rb +5 -1
- data/lib/rubysketch/solitaire/klondike.rb +4 -0
- data/project.yml +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef707133db84935262b66e602ba0a645c8fc5570bbba72551e62080c07272859
|
4
|
+
data.tar.gz: 86db8fa959c1fc19a870ea73a9f75eeb0050525fd9565335c2150f6e475f5e27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3f2b2f9c834e732f73697ea2a525db3c43b6eade20cc548795e53df1a00456f69e42a7863ad6c68e993834b5aec472d215573f003aa439ced91099fa3fc1ac0
|
7
|
+
data.tar.gz: f400944134b3969d67a10b1f36a2ec95b4f3b2101b134cca3f851e7603254bd396d2038800a28f9287c7b8f51f0d0f7624afbe8ae0da36fb0428922c4883f9a9
|
data/.hooks/post-commit
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
|
3
|
+
|
4
|
+
def versions()
|
5
|
+
File.read(File.expand_path '../../ChangeLog.md', __dir__)
|
6
|
+
.split(/^\s*##\s*\[\s*v([\d\.]+)\s*\].*$/)
|
7
|
+
.slice(1..-1)
|
8
|
+
.each_slice(2)
|
9
|
+
.to_h
|
10
|
+
.transform_values do |changes|
|
11
|
+
changes.strip.lines
|
12
|
+
.group_by {|line| line[/^\W*(\[\w{2}\])/, 1]}
|
13
|
+
.map {|lang, lines|
|
14
|
+
[
|
15
|
+
lang[/\w+/],
|
16
|
+
lines.map {|line| line.sub(lang, '')}.join
|
17
|
+
]
|
18
|
+
}
|
19
|
+
.to_h
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
begin
|
25
|
+
ver = File.read(File.expand_path '../../VERSION', __dir__)[/[\d\.]+/]
|
26
|
+
changes = versions[ver].dig 'en'
|
27
|
+
tag = "v#{ver}"
|
28
|
+
tags = `git tag`.lines chomp: true
|
29
|
+
|
30
|
+
raise "no version found" unless ver
|
31
|
+
return if tags.include?(tag)
|
32
|
+
|
33
|
+
raise "no changes found" unless changes
|
34
|
+
|
35
|
+
puts "Tag '#{tag}'\n#{changes}"
|
36
|
+
`git tag -a -m "#{changes}" #{tag}`
|
37
|
+
end
|
data/ChangeLog.md
CHANGED
data/README.md
CHANGED
@@ -16,6 +16,14 @@
|
|
16
16
|
$ ruby -rrubysketch/solitaire -e ''
|
17
17
|
```
|
18
18
|
|
19
|
+
## How to release to AppStore
|
20
|
+
|
21
|
+
### Upload to TestFlight on local macOS
|
22
|
+
|
23
|
+
1. Edit ChangeLog.md and commit
|
24
|
+
2. Make sure you have a config.yml file
|
25
|
+
3. run "rake release:testflight"
|
26
|
+
|
19
27
|
## License
|
20
28
|
|
21
29
|
see [LICENSE](LICENSE) file
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.9.0
|
@@ -1 +1 @@
|
|
1
|
-
Enjoy the best Solitaire experience
|
1
|
+
Enjoy the best Solitaire experience! Vibrant graphics, intuitive controls, and addictive gameplay await you. It's the best choice for Solitaire enthusiasts.
|
@@ -1 +1 @@
|
|
1
|
-
-
|
1
|
+
- First beta version
|
@@ -1 +1 @@
|
|
1
|
-
-
|
1
|
+
- 最初のベータバージョン
|
@@ -22,6 +22,10 @@ class Settings
|
|
22
22
|
hash[key]
|
23
23
|
end
|
24
24
|
|
25
|
+
def to_json()
|
26
|
+
hash.to_json
|
27
|
+
end
|
28
|
+
|
25
29
|
private
|
26
30
|
|
27
31
|
def hash()
|
@@ -29,7 +33,7 @@ class Settings
|
|
29
33
|
end
|
30
34
|
|
31
35
|
def save(path)
|
32
|
-
File.write path,
|
36
|
+
File.write path, to_json
|
33
37
|
end
|
34
38
|
|
35
39
|
def load(path)
|
data/project.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysketch-solitaire
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xordog
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xot
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- ".github/workflows/test.yml"
|
64
64
|
- ".github/workflows/utils.rb"
|
65
65
|
- ".gitignore"
|
66
|
+
- ".hooks/post-commit"
|
66
67
|
- ".hooks/pre-commit"
|
67
68
|
- ChangeLog.md
|
68
69
|
- Gemfile
|