tulpa-prompter 0.1.0 → 0.1.1

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: 66bae93b8c1e830f290c7a1ebe44d470981719356505c8012ee711a4edcd9ff0
4
- data.tar.gz: de69e08f71a875b74697d58b1f18a4c75d34e08013981bfd8169cce7eefb0378
3
+ metadata.gz: c687ce73414deb0efbfcba2c5f174abf354aa659b77df1104843a7b513d0bcca
4
+ data.tar.gz: 77d678771ceeb38e8374c199071ce73ff3056f80c35426eb9344345a755c4be8
5
5
  SHA512:
6
- metadata.gz: 7ad949a9a2e0d0fb57f247b3fa8ffe6452924ef244356f5d552c68effc74625d696f45d22efbcac83f7933b70c6de9b60d838a69bf85c3f2deadf044e8e911b7
7
- data.tar.gz: 9c683e0e3e5e26ba9c5d4b37727e5e150987e1a12c7914f354f213e60d4de0526968979705cb5db1ee6214706eebbaa6c5f9e4cc1824f94cc6118bee35a53388
6
+ metadata.gz: 9d053a0936a136a2bf7e7211cf3c89f2dba2d1945eef4ffba6b5f5cd2e99768083acd30fddce17b406fa9b29fc8dee7995600b5502e4b2a719d864a10152c422
7
+ data.tar.gz: 38cdcdc4ffad8009948b3bdf298d6fd8a81ae5cb93551551e8b9ce4d9aa9be342a0dba4d09f9523236bfff002eecc126a51258f8ca2b32ce1e30c4acf98bb147
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prompter (0.1.0)
4
+ tulpa-prompter (0.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -36,9 +36,9 @@ PLATFORMS
36
36
 
37
37
  DEPENDENCIES
38
38
  minitest (~> 5.0)
39
- prompter!
40
39
  rake (~> 13.0)
41
40
  rubocop (~> 1.21)
41
+ tulpa-prompter!
42
42
 
43
43
  BUNDLED WITH
44
44
  2.3.7
data/README.md CHANGED
@@ -1,15 +1,13 @@
1
- # Prompter
1
+ # TulpaPrompter
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/prompter`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ This is just a simple Ruby gem implementing the functionality of [Animation Prompter](https://dreamingtulpa.com/tools/prompter) on my website.
6
4
 
7
5
  ## Installation
8
6
 
9
7
  Add this line to your application's Gemfile:
10
8
 
11
9
  ```ruby
12
- gem 'prompter'
10
+ gem 'tulpa-prompter'
13
11
  ```
14
12
 
15
13
  And then execute:
@@ -18,22 +16,28 @@ And then execute:
18
16
 
19
17
  Or install it yourself as:
20
18
 
21
- $ gem install prompter
19
+ $ gem install tulpa-prompter
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
23
+ ```
24
+ json_string = TulpaPrompter.call(
25
+ lines: ["prompt #1", "prompt #2", "prompt #3"],
26
+ prefix: "portrait of ",
27
+ suffix: " by greg rutkowski",
28
+ interval: 15,
29
+ shuffle: false
30
+ )
31
+ ```
30
32
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
33
+ Or you can use it as a CLI:
32
34
 
33
- ## Contributing
35
+ ```
36
+ bin/tulpa_prompter path/to/prompts.txt --prefix "portrait of " --suffix " by greg rutkowski" --interval 15 --shuffle
37
+ ```
34
38
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/YOUR_GITHUB_USERNAME/prompter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/YOUR_GITHUB_USERNAME/prompter/blob/master/CODE_OF_CONDUCT.md).
39
+ This copies the output to the clipboard on macOS. Doesn't work for other platforms yet. If you want it, submit a PR.
36
40
 
37
- ## Code of Conduct
41
+ ## Development
38
42
 
39
- Everyone interacting in the Prompter project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/YOUR_GITHUB_USERNAME/prompter/blob/master/CODE_OF_CONDUCT.md).
43
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module TulpaPrompter
4
+ VERSION = "0.1.1"
5
+ end
@@ -1,6 +1,6 @@
1
- require_relative "prompter/version"
1
+ require_relative "tulpa_prompter/version"
2
2
 
3
- module Prompter
3
+ module TulpaPrompter
4
4
  class Error < StandardError; end
5
5
 
6
6
  def self.call(options)
data/sig/prompter.rbs CHANGED
@@ -1,4 +1,4 @@
1
- module Prompter
1
+ module TulpaPrompter
2
2
  VERSION: String
3
3
  # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
4
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tulpa-prompter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dreaming Tulpa
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2022-10-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description:
13
+ description:
14
14
  email:
15
15
  - hey@dreamingtulpa.com
16
16
  executables: []
@@ -24,16 +24,16 @@ files:
24
24
  - Gemfile.lock
25
25
  - README.md
26
26
  - Rakefile
27
- - lib/prompter.rb
28
- - lib/prompter/version.rb
27
+ - lib/tulpa_prompter.rb
28
+ - lib/tulpa_prompter/version.rb
29
29
  - sig/prompter.rbs
30
- homepage: https://github.com/dreamingtulpa/prompter
30
+ homepage: https://github.com/dreamingtulpa/tulpa_prompter
31
31
  licenses: []
32
32
  metadata:
33
- homepage_uri: https://github.com/dreamingtulpa/prompter
34
- source_code_uri: https://github.com/dreamingtulpa/prompter
35
- changelog_uri: https://github.com/dreamingtulpa/prompter/blob/master/CHANGELOG.md
36
- post_install_message:
33
+ homepage_uri: https://github.com/dreamingtulpa/tulpa_prompter
34
+ source_code_uri: https://github.com/dreamingtulpa/tulpa_prompter
35
+ changelog_uri: https://github.com/dreamingtulpa/tulpa_prompter/blob/master/CHANGELOG.md
36
+ post_install_message:
37
37
  rdoc_options: []
38
38
  require_paths:
39
39
  - lib
@@ -48,8 +48,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  requirements: []
51
- rubygems_version: 3.0.3.1
52
- signing_key:
51
+ rubygems_version: 3.3.7
52
+ signing_key:
53
53
  specification_version: 4
54
54
  summary: CLI tool to build animation prompts for AI notebooks like Deforum Stable
55
55
  Diffusion
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Prompter
4
- VERSION = "0.1.0"
5
- end