riddler 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +105 -6
- data/lib/riddler.rb +52 -3
- data/lib/riddler/configuration.rb +11 -0
- data/lib/riddler/context.rb +40 -2
- data/lib/riddler/context_builder.rb +35 -0
- data/lib/riddler/context_builders/faraday_builder.rb +23 -0
- data/lib/riddler/context_builders/user_agent.rb +34 -0
- data/lib/riddler/context_director.rb +67 -0
- data/lib/riddler/drops/hash_drop.rb +29 -0
- data/lib/riddler/element.rb +15 -14
- data/lib/riddler/elements/heading.rb +0 -1
- data/lib/riddler/elements/image.rb +21 -0
- data/lib/riddler/elements/link.rb +30 -0
- data/lib/riddler/elements/text.rb +17 -0
- data/lib/riddler/elements/variant.rb +21 -0
- data/lib/riddler/includeable.rb +19 -0
- data/lib/riddler/protobuf/content_definition.proto +51 -0
- data/lib/riddler/protobuf/content_definition_pb.rb +33 -0
- data/lib/riddler/protobuf/content_management.proto +35 -0
- data/lib/riddler/protobuf/content_management_pb.rb +43 -0
- data/lib/riddler/protobuf/content_management_services_pb.rb +27 -0
- data/lib/riddler/protobuf/slug.proto +61 -0
- data/lib/riddler/protobuf/slug_pb.rb +52 -0
- data/lib/riddler/step.rb +16 -16
- data/lib/riddler/steps/content.rb +5 -5
- data/lib/riddler/steps/variant.rb +23 -0
- data/lib/riddler/test_generator.rb +73 -0
- data/lib/riddler/use_cases.rb +7 -0
- data/lib/riddler/use_cases/admin_preview_step.rb +32 -0
- data/lib/riddler/use_cases/complete_interaction.rb +20 -0
- data/lib/riddler/use_cases/dismiss_interaction.rb +20 -0
- data/lib/riddler/use_cases/preview_context.rb +28 -0
- data/lib/riddler/use_cases/preview_step.rb +16 -5
- data/lib/riddler/use_cases/show_content_definition.rb +42 -0
- data/lib/riddler/use_cases/show_slug.rb +138 -0
- data/lib/riddler/version.rb +1 -1
- data/riddler.gemspec +12 -8
- metadata +100 -10
- data/.gitignore +0 -8
- data/.travis.yml +0 -7
- data/Gemfile +0 -6
- data/Gemfile.lock +0 -58
- data/Rakefile +0 -10
- data/bin/console +0 -14
- data/bin/setup +0 -8
data/lib/riddler/version.rb
CHANGED
data/riddler.gemspec
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
|
2
|
-
lib
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
1
|
+
lib = File.expand_path "lib", __dir__
|
2
|
+
$LOAD_PATH.unshift lib unless $LOAD_PATH.include? lib
|
4
3
|
require "riddler/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
@@ -15,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
15
14
|
|
16
15
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
16
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
-
if spec.respond_to?
|
17
|
+
if spec.respond_to? :metadata
|
19
18
|
spec.metadata["homepage_uri"] = spec.homepage
|
20
19
|
spec.metadata["source_code_uri"] = spec.homepage
|
21
20
|
spec.metadata["changelog_uri"] = [spec.metadata["source_code_uri"], "CHANGELOG.md"].join "/"
|
@@ -26,15 +25,20 @@ Gem::Specification.new do |spec|
|
|
26
25
|
|
27
26
|
# Specify which files should be added to the gem when it is released.
|
28
27
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
29
|
-
spec.files = Dir.chdir
|
30
|
-
`git ls-files -z`.split("\x0").
|
28
|
+
spec.files = Dir.chdir __dir__ do
|
29
|
+
`git ls-files -z`.split("\x0").select { |f| f.match %r{^(riddler.gemspec|LIC|CODE|READ|lib/riddler)} }
|
31
30
|
end
|
32
31
|
spec.bindir = "exe"
|
33
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename
|
32
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename f }
|
34
33
|
spec.require_paths = ["lib"]
|
35
34
|
|
36
|
-
spec.add_dependency "
|
35
|
+
spec.add_dependency "faraday"
|
36
|
+
spec.add_dependency "faraday_middleware"
|
37
|
+
spec.add_dependency "grpc"
|
37
38
|
spec.add_dependency "liquid"
|
39
|
+
spec.add_dependency "outlog"
|
40
|
+
spec.add_dependency "predicator"
|
41
|
+
spec.add_dependency "ulid-ruby"
|
38
42
|
|
39
43
|
spec.add_development_dependency "bundler", "~> 1.17"
|
40
44
|
spec.add_development_dependency "guard"
|
metadata
CHANGED
@@ -1,17 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: riddler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JohnnyT
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday_middleware
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: grpc
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
16
44
|
requirements:
|
17
45
|
- - ">="
|
@@ -38,6 +66,48 @@ dependencies:
|
|
38
66
|
- - ">="
|
39
67
|
- !ruby/object:Gem::Version
|
40
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: outlog
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: predicator
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: ulid-ruby
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
41
111
|
- !ruby/object:Gem::Dependency
|
42
112
|
name: bundler
|
43
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,24 +171,44 @@ executables: []
|
|
101
171
|
extensions: []
|
102
172
|
extra_rdoc_files: []
|
103
173
|
files:
|
104
|
-
- ".gitignore"
|
105
|
-
- ".travis.yml"
|
106
174
|
- CODE_OF_CONDUCT.md
|
107
|
-
- Gemfile
|
108
|
-
- Gemfile.lock
|
109
175
|
- LICENSE.txt
|
110
176
|
- README.md
|
111
|
-
- Rakefile
|
112
|
-
- bin/console
|
113
|
-
- bin/setup
|
114
177
|
- lib/riddler.rb
|
178
|
+
- lib/riddler/configuration.rb
|
115
179
|
- lib/riddler/context.rb
|
180
|
+
- lib/riddler/context_builder.rb
|
181
|
+
- lib/riddler/context_builders/faraday_builder.rb
|
182
|
+
- lib/riddler/context_builders/user_agent.rb
|
183
|
+
- lib/riddler/context_director.rb
|
184
|
+
- lib/riddler/drops/hash_drop.rb
|
116
185
|
- lib/riddler/element.rb
|
117
186
|
- lib/riddler/elements/copy.rb
|
118
187
|
- lib/riddler/elements/heading.rb
|
188
|
+
- lib/riddler/elements/image.rb
|
189
|
+
- lib/riddler/elements/link.rb
|
190
|
+
- lib/riddler/elements/text.rb
|
191
|
+
- lib/riddler/elements/variant.rb
|
192
|
+
- lib/riddler/includeable.rb
|
193
|
+
- lib/riddler/protobuf/content_definition.proto
|
194
|
+
- lib/riddler/protobuf/content_definition_pb.rb
|
195
|
+
- lib/riddler/protobuf/content_management.proto
|
196
|
+
- lib/riddler/protobuf/content_management_pb.rb
|
197
|
+
- lib/riddler/protobuf/content_management_services_pb.rb
|
198
|
+
- lib/riddler/protobuf/slug.proto
|
199
|
+
- lib/riddler/protobuf/slug_pb.rb
|
119
200
|
- lib/riddler/step.rb
|
120
201
|
- lib/riddler/steps/content.rb
|
202
|
+
- lib/riddler/steps/variant.rb
|
203
|
+
- lib/riddler/test_generator.rb
|
204
|
+
- lib/riddler/use_cases.rb
|
205
|
+
- lib/riddler/use_cases/admin_preview_step.rb
|
206
|
+
- lib/riddler/use_cases/complete_interaction.rb
|
207
|
+
- lib/riddler/use_cases/dismiss_interaction.rb
|
208
|
+
- lib/riddler/use_cases/preview_context.rb
|
121
209
|
- lib/riddler/use_cases/preview_step.rb
|
210
|
+
- lib/riddler/use_cases/show_content_definition.rb
|
211
|
+
- lib/riddler/use_cases/show_slug.rb
|
122
212
|
- lib/riddler/version.rb
|
123
213
|
- riddler.gemspec
|
124
214
|
homepage: https://github.com/riddler/riddler
|
data/.gitignore
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
riddler (0.1.0)
|
5
|
-
ksuid
|
6
|
-
liquid
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
coderay (1.1.2)
|
12
|
-
ffi (1.9.25)
|
13
|
-
formatador (0.2.5)
|
14
|
-
guard (2.15.0)
|
15
|
-
formatador (>= 0.2.4)
|
16
|
-
listen (>= 2.7, < 4.0)
|
17
|
-
lumberjack (>= 1.0.12, < 2.0)
|
18
|
-
nenv (~> 0.1)
|
19
|
-
notiffany (~> 0.0)
|
20
|
-
pry (>= 0.9.12)
|
21
|
-
shellany (~> 0.0)
|
22
|
-
thor (>= 0.18.1)
|
23
|
-
ksuid (0.1.0)
|
24
|
-
liquid (4.0.1)
|
25
|
-
listen (3.1.5)
|
26
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
27
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
28
|
-
ruby_dep (~> 1.2)
|
29
|
-
lumberjack (1.0.13)
|
30
|
-
method_source (0.9.2)
|
31
|
-
minitest (5.11.3)
|
32
|
-
nenv (0.3.0)
|
33
|
-
notiffany (0.1.1)
|
34
|
-
nenv (~> 0.1)
|
35
|
-
shellany (~> 0.0)
|
36
|
-
pry (0.12.2)
|
37
|
-
coderay (~> 1.1.0)
|
38
|
-
method_source (~> 0.9.0)
|
39
|
-
rake (10.5.0)
|
40
|
-
rb-fsevent (0.10.3)
|
41
|
-
rb-inotify (0.9.10)
|
42
|
-
ffi (>= 0.5.0, < 2)
|
43
|
-
ruby_dep (1.5.0)
|
44
|
-
shellany (0.0.1)
|
45
|
-
thor (0.20.3)
|
46
|
-
|
47
|
-
PLATFORMS
|
48
|
-
ruby
|
49
|
-
|
50
|
-
DEPENDENCIES
|
51
|
-
bundler (~> 1.17)
|
52
|
-
guard
|
53
|
-
minitest (~> 5.0)
|
54
|
-
rake (~> 10.0)
|
55
|
-
riddler!
|
56
|
-
|
57
|
-
BUNDLED WITH
|
58
|
-
1.17.1
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "riddler"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|