gamefic-sdk 3.0.1 → 3.1.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: 7d90eb96a94149551b573259fd78410c1f0332b0a5ecaa9d559cc091a8962629
4
- data.tar.gz: 4547e88ec7f62bcbe08d60d6411461327d1ff9f27c50755c47135c98cb4b1806
3
+ metadata.gz: a1a52e09b3e29c8c869f67561d732d54493043a4ee04e75a49eade71d4396ddf
4
+ data.tar.gz: 8085b05a412924f4c4783bdcc09d9a6f9e97ef5aadc719257ed9a34b0a77e5a0
5
5
  SHA512:
6
- metadata.gz: '01081048d9c32716574e9ff9d906ee03cf07259875d608ea36fb73bea310440d43760c4d12f8e33159dfc346b31a33bf5eabf50c042c06bb169204aa5f8d98c4'
7
- data.tar.gz: 6fadb23c6b9cfeeb855bfb082a932ae6abde7c722ebb194d20b3902900d8c50b679ce52e4205a04d6ac7544386e8c41baa47587d7323f9cfa9157ff43c8ea8f1
6
+ metadata.gz: 4b0f9ac162876dd92ed56ae979d9f4fcaa16ae49e0aa1550be1f5c61a82ba486190c22cff45b1617eb1e275af4141cef4393a6c352dd26e2e356f51ab06a33c8
7
+ data.tar.gz: d263b78b4dca96bb0994bc8a9b3ff1d9734ac84380e312e3987f3ac7747f9374660c64ccda2c642a72e8c86dd33bb08d9e3557b9f29d2485984809bd403a70f7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 3.1.0 - July 13, 2024
2
+ - Plot and Subplot classes in scaffold
3
+ - Scaffold requires ostruct
4
+ - Support for lib path in web project
5
+
1
6
  ## 3.0.1 - April 10, 2024
2
7
  - Updates to README in project scaffold
3
8
 
@@ -1,5 +1,6 @@
1
1
  require 'fileutils'
2
2
  require 'erb'
3
+ require 'ostruct'
3
4
  require 'pathname'
4
5
  require 'securerandom'
5
6
  require 'shellwords'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'gamefic-tty'
2
4
  require 'tmpdir'
3
5
  require 'zlib'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'listen'
2
4
 
3
5
  module Gamefic
@@ -16,7 +18,7 @@ module Gamefic
16
18
  FileUtils.mkdir_p web_path
17
19
  Dir.chdir web_path do
18
20
  name = File.basename(absolute_path)
19
- system 'npx', 'react-gamefic', '--name', name, '--class', 'GAMEFIC_PLOT_CLASS'
21
+ system 'npx', 'react-gamefic', '--name', name, '--class', 'GAMEFIC_PLOT_CLASS', '--path', '../lib'
20
22
  puts 'The web app is ready.'
21
23
  puts 'Run `rake web:run` to start the app in dev mode.'
22
24
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gamefic
4
4
  module Sdk
5
- VERSION = '3.0.1'
5
+ VERSION = '3.1.0'
6
6
  end
7
7
  end
@@ -1,2 +1,2 @@
1
- builds
1
+ build
2
2
  node_modules
@@ -1,10 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ lib = File.expand_path('./lib', File.dirname(__FILE__))
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+
3
6
  require 'gamefic'
4
7
  require 'gamefic-standard'
5
8
 
6
- require_relative '<%= name %>/plot'
7
- require_relative '<%= name %>/subplot'
9
+ require '<%= name %>/plot'
10
+ require '<%= name %>/subplot'
8
11
 
9
12
  # The Gamefic SDK uses this constant to select the main Plot for game engines.
10
13
  GAMEFIC_PLOT_CLASS = <%= camelcase(name) %>::Plot
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gamefic-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred Snyder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-10 00:00:00.000000000 Z
11
+ date: 2024-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gamefic
@@ -245,8 +245,8 @@ files:
245
245
  - scaffolds/project/Gemfile
246
246
  - scaffolds/project/README.md.gf.erb
247
247
  - scaffolds/project/Rakefile
248
- - scaffolds/project/__name__/plot.rb.gf.erb
249
- - scaffolds/project/__name__/subplot.rb.gf.erb
248
+ - scaffolds/project/lib/__name__/plot.rb.gf.erb
249
+ - scaffolds/project/lib/__name__/subplot.rb.gf.erb
250
250
  - scaffolds/project/main.rb.gf.erb
251
251
  homepage: http://gamefic.com
252
252
  licenses: