inform-runtime 1.2.0 → 1.2.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 +4 -4
- data/Rakefile +1 -18
- data/lib/story_teller/ephemeral_adapter.rb +0 -2
- data/lib/story_teller/helpers.rb +1 -1
- data/lib/story_teller/model_adapter.rb +4 -4
- data/lib/story_teller/stdlib.rb +2 -0
- data/lib/story_teller/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c1f6b9a2d86d9855a752009619386dd1e8af63c40e2c0cf9dfba94f38b1ac3c
|
|
4
|
+
data.tar.gz: b0558bb28bf5348f55b42b0b9a038ba23a77a75ee6c939e5deb843820f616022
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 73ad7ed36d79a1a512f9c69c9c1b0069a04718e72c7547869326559bfe3d56f3fea32c383e57191e6ef1c48048195aed4380bc1014d79be13d3a6514c52eebeb
|
|
7
|
+
data.tar.gz: ebb8265637ff63fe25ea54b9f0dbcdd81a6c9aab2e1b9a900b02b113fe350011973083af788b68c3950a09c2506a514ed59b74daaa09037bfa582bbafed4d7d2
|
data/Rakefile
CHANGED
|
@@ -23,24 +23,6 @@ CLOBBER.add '*.gem', 'pkg'
|
|
|
23
23
|
|
|
24
24
|
task default: %i[package]
|
|
25
25
|
|
|
26
|
-
desc 'Archive the current codebase snapshot'
|
|
27
|
-
task :archive do
|
|
28
|
-
repo_path = '.'
|
|
29
|
-
archive = File.expand_path(File.join('..', "#{StoryTeller::PROJECT}.zip"), Dir.pwd)
|
|
30
|
-
|
|
31
|
-
diff_clean = system('git', '-C', repo_path, 'diff-index', '--quiet', 'HEAD', '--')
|
|
32
|
-
untracked = `git -C #{repo_path.shellescape} ls-files --others --exclude-standard`
|
|
33
|
-
|
|
34
|
-
unless diff_clean && untracked.empty?
|
|
35
|
-
warn 'Please resolve uncommitted or untracked changes in working tree.'
|
|
36
|
-
exit 1
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
FileUtils.rm_f(archive)
|
|
40
|
-
|
|
41
|
-
system('git', '-C', repo_path, 'archive', '-o', archive, '--format=zip', 'HEAD') or abort
|
|
42
|
-
end
|
|
43
|
-
|
|
44
26
|
desc 'Run the rubocop linter'
|
|
45
27
|
task :lint do
|
|
46
28
|
system('bundle', 'exec', 'rubocop') or abort
|
|
@@ -63,6 +45,7 @@ task :verify do
|
|
|
63
45
|
system('bundle', 'exec', 'rspec', 'spec/verify_gem_spec.rb') or abort
|
|
64
46
|
system('bundle', 'exec', 'rake', 'clean')
|
|
65
47
|
end
|
|
48
|
+
task verify: :package
|
|
66
49
|
|
|
67
50
|
desc 'Publish the gem'
|
|
68
51
|
task :publish do
|
data/lib/story_teller/helpers.rb
CHANGED
|
@@ -88,22 +88,22 @@ module StoryTeller
|
|
|
88
88
|
module_function :available?
|
|
89
89
|
|
|
90
90
|
def object_class
|
|
91
|
-
current&.fetch(:object_class, nil)
|
|
91
|
+
current&.fetch(:object_class, nil)
|
|
92
92
|
end
|
|
93
93
|
module_function :object_class
|
|
94
94
|
|
|
95
95
|
def tag_class
|
|
96
|
-
current&.fetch(:tag_class, nil)
|
|
96
|
+
current&.fetch(:tag_class, nil)
|
|
97
97
|
end
|
|
98
98
|
module_function :tag_class
|
|
99
99
|
|
|
100
100
|
def link_class
|
|
101
|
-
current&.fetch(:link_class, nil)
|
|
101
|
+
current&.fetch(:link_class, nil)
|
|
102
102
|
end
|
|
103
103
|
module_function :link_class
|
|
104
104
|
|
|
105
105
|
def module_class
|
|
106
|
-
current&.fetch(:module_class, nil)
|
|
106
|
+
current&.fetch(:module_class, nil)
|
|
107
107
|
end
|
|
108
108
|
module_function :module_class
|
|
109
109
|
|
data/lib/story_teller/stdlib.rb
CHANGED
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
# You should have received a copy of the GNU General Public License
|
|
20
20
|
# along with StoryTeller. If not, see <http://www.gnu.org/licenses/>.
|
|
21
21
|
|
|
22
|
+
require_relative 'version'
|
|
23
|
+
|
|
22
24
|
# The Inform module
|
|
23
25
|
module Inform
|
|
24
26
|
# These are built-ins primarily found used in the InformLibrary.
|
data/lib/story_teller/version.rb
CHANGED