gamefic-sdk 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6c4f0e95c5070c542773224a6c2d94bbf80b1bf5dbabb41c0bdc499ac0ef04d
4
- data.tar.gz: 596aa92c24c9291b837a8b65f3245be8e17df2d429ac49555178e9708af3d8bd
3
+ metadata.gz: a5ee344b4b5abb09130b616bb599493ad3fbcc17038aa0f306497dfe9311feab
4
+ data.tar.gz: f84186419a9963616f6e0b5447cd83609659fb80383315a384ec433623db4740
5
5
  SHA512:
6
- metadata.gz: 525f8604a996e3858a30023779d93c5d23cef10d77331fe1dbda45440953fa3d3b27c2e5edf29a1ebdfe822a8c1f32d9e501eba96ccbd1350e5340c124ba3f62
7
- data.tar.gz: d406d814b1969b64ac759ba0ca0b3c0b4c746a51003b332fab1e9203f9f41f32bf00de75a499308b69e5d2c0feed707b72b36e5cdebe648882aae276f3a47db0
6
+ metadata.gz: 9f88ab68b9ef0fb62b06ee12ed91e073fc8a971ec31c7b74ebd9b53671dc62f686b8b66dc1925ccc7ab27f4df4874a01b4992d995b7501a5255fca5db06a950e
7
+ data.tar.gz: 03f287863bda66c3b6c8553c323553f8daad83e83555bddfdf49e75c6a8e5b7b8890671b8a0b615d677c334c7461cdcf57a6987e2c193d57768ec8bde4d4f242
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.3.2 - March 11, 2021
2
+ - Add READMEs to project scaffolds
3
+ - Disable css-loader esModule option in webpack config
4
+
1
5
  ## 2.3.1 - March 3, 2021
2
6
  - Update opal dependency
3
7
 
@@ -1,5 +1,5 @@
1
1
  module Gamefic
2
2
  module Sdk
3
- VERSION = '2.3.1'
3
+ VERSION = '2.3.2'
4
4
  end
5
5
  end
@@ -0,0 +1,19 @@
1
+ # <%= name %>
2
+
3
+ An extension library for Gamefic
4
+
5
+ ## Installation
6
+
7
+ Add this line to your Gamefic project's Gemfile:
8
+
9
+ ```ruby
10
+ gem '<%= name %>'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ ## Usage
18
+
19
+ TODO: Write usage instructions here
@@ -0,0 +1,49 @@
1
+ # <%= name %>
2
+
3
+ A Gamefic game project
4
+
5
+ ## Installation
6
+
7
+ $ bundle install
8
+
9
+ ## Running on the Command Line
10
+
11
+ $ rake ruby:run
12
+
13
+ ## Building a CLI Game
14
+
15
+ $ rake ruby:build
16
+
17
+ The script will be saved in the `builds/ruby` directory.
18
+
19
+ ## Web-Based Games
20
+
21
+ The Gamefic SDK also supports web-based versions of games. The project gets built into a single-page application with the Ruby game code compiled into JavaScript.
22
+
23
+ First you need to install the web project scaffold:
24
+
25
+ ```
26
+ $ rake web:generate
27
+ ```
28
+
29
+ ## Running a Web Game
30
+
31
+ To run the app in debug mode:
32
+
33
+ ```
34
+ $ rake web:run
35
+ ```
36
+
37
+ Open http://localhost:4342 in a browser.
38
+
39
+ ## Building a Web Game
40
+
41
+ ```
42
+ $ rake web:build
43
+ ```
44
+
45
+ The application will be saved in the `builds/web/production` directory.
46
+
47
+ ## More Information
48
+
49
+ Go to https://gamefic.com for documentation.
@@ -23,27 +23,30 @@ module.exports = (_env, argv) => {
23
23
  })
24
24
  ],
25
25
  module: {
26
- rules: [
27
- {
28
- test: /\.css$/,
29
- use: ['style-loader', 'css-loader']
30
- },
31
- {
32
- test: /\.(png|jp(e*)g|svg)$/,
33
- use: [{
34
- loader: 'url-loader',
35
- options: {
36
- limit: 8000, // Convert images < 8kb to base64 strings
37
- name: 'images/[hash]-[name].[ext]'
38
- }
39
- }]
40
- },
41
- {
42
- test: /\.jsx?/,
43
- include: path.resolve(__dirname, 'web'),
44
- use: 'babel-loader'
26
+ rules: [
27
+ {
28
+ test: /\.css$/,
29
+ use: [
30
+ 'style-loader',
31
+ { loader: 'css-loader', options: { esModule: false } }
32
+ ]
33
+ },
34
+ {
35
+ test: /\.(png|jp(e*)g|svg)$/,
36
+ use: [{
37
+ loader: 'url-loader',
38
+ options: {
39
+ limit: 8000, // Convert images < 8kb to base64 strings
40
+ name: 'images/[hash]-[name].[ext]'
45
41
  }
46
- ]
42
+ }]
43
+ },
44
+ {
45
+ test: /\.jsx?/,
46
+ include: path.resolve(__dirname, 'web'),
47
+ use: 'babel-loader'
48
+ }
49
+ ]
47
50
  }
48
51
  }
49
52
 
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: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred Snyder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-03 00:00:00.000000000 Z
11
+ date: 2021-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gamefic
@@ -248,10 +248,12 @@ files:
248
248
  - lib/gamefic-sdk/tasks/web.rb
249
249
  - lib/gamefic-sdk/version.rb
250
250
  - scaffolds/library/Gemfile
251
+ - scaffolds/library/README.md.erb
251
252
  - scaffolds/library/__name__.gemspec.gf.erb
252
253
  - scaffolds/library/lib/__name__.rb
253
254
  - scaffolds/project/.gitignore
254
255
  - scaffolds/project/Gemfile
256
+ - scaffolds/project/README.md.erb
255
257
  - scaffolds/project/Rakefile
256
258
  - scaffolds/project/main.rb.gf.erb
257
259
  - scaffolds/react/.babelrc