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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d503d613912cbf567d47e614780eb870d4ad7b7d08bc97b0d6666a16e716241
4
- data.tar.gz: 5b737469f99d87c0edbe167bc039b38bc35390d56cf375bd0e0cce85a5c2615d
3
+ metadata.gz: ef707133db84935262b66e602ba0a645c8fc5570bbba72551e62080c07272859
4
+ data.tar.gz: 86db8fa959c1fc19a870ea73a9f75eeb0050525fd9565335c2150f6e475f5e27
5
5
  SHA512:
6
- metadata.gz: 96054c6193ac3893c6d55298f6dba29ad6f88d2cedf17220dc29cbc6622b4370be6b7d671e3c5994671d1224e1fcaf887ab3ef9412bef31e82c00afacf1ead2d
7
- data.tar.gz: 5bd205ea038b4e696488cc388622b0391849a5dd146e2f3546e591a8e31f00bad6a18364cf9c4ea19608ef60ccbb22db56034d795e9658099753b35af4f299f2
6
+ metadata.gz: e3f2b2f9c834e732f73697ea2a525db3c43b6eade20cc548795e53df1a00456f69e42a7863ad6c68e993834b5aec472d215573f003aa439ced91099fa3fc1ac0
7
+ data.tar.gz: f400944134b3969d67a10b1f36a2ec95b4f3b2101b134cca3f851e7603254bd396d2038800a28f9287c7b8f51f0d0f7624afbe8ae0da36fb0428922c4883f9a9
@@ -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
@@ -1,6 +1,12 @@
1
1
  # RubySolitaire ChangeLog
2
2
 
3
3
 
4
+ ## [v0.9.0] - 2023-06-20
5
+
6
+ - [en]First beta version
7
+ - [ja]最初のベータバージョン
8
+
9
+
4
10
  ## [v0.1.2] - 2023-06-16
5
11
 
6
12
  - [en]Fixed some minor bugs
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
@@ -1,4 +1,4 @@
1
- appName = "Solitaire in Space";
1
+ appName = "RubySolitaire";
2
2
 
3
3
  close = "Close";
4
4
 
@@ -11,6 +11,7 @@ struct MenuScreen: View {
11
11
  PrivacyPolicy()
12
12
  Licenses()
13
13
  }
14
+ .navigationBarTitleDisplayMode(.inline)
14
15
  .navigationTitle("\(Strings.appName.s) v\(Helper.appVersion)")
15
16
  .navigationBarItems(leading: BackButton())
16
17
  }
@@ -1,4 +1,4 @@
1
- appName = "宇宙ソリティア";
1
+ appName = "ルビーソリティア";
2
2
 
3
3
  close = "閉じる";
4
4
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.9.0
@@ -1 +1 @@
1
- Enjoy the best Solitaire experience with "Solitaire in Space"! Vibrant graphics, intuitive controls, and addictive gameplay await you. Lose track of time as you arrange the cards, relieving stress along the way. It's the best choice for Solitaire enthusiasts.
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
- - Fixed some minor bugs
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, hash.to_json
36
+ File.write path, to_json
33
37
  end
34
38
 
35
39
  def load(path)
@@ -510,6 +510,10 @@ class Klondike < Scene
510
510
  end
511
511
  d.close
512
512
  end
513
+ d.addButton str("Dump settings"), width: 6 do
514
+ puts settings.to_json
515
+ d.close
516
+ end
513
517
  d.addButton str('Close'), width: 6 do
514
518
  d.close
515
519
  end
data/project.yml CHANGED
@@ -16,8 +16,8 @@ settingGroups:
16
16
 
17
17
  settings:
18
18
  base:
19
- MARKETING_VERSION: 0.1.2
20
- CURRENT_PROJECT_VERSION: 0.1.2
19
+ MARKETING_VERSION: 0.9.0
20
+ CURRENT_PROJECT_VERSION: 0.9.0
21
21
  DEVELOPMENT_TEAM: $(TEAM_ID)
22
22
  configs:
23
23
  debug:
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.1.2
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-16 00:00:00.000000000 Z
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